/*
Theme Name: BuildWebsitePilot
Theme URI: https://buildwebsitepilot.com
Author: BuildWebsitePilot
Description: Responsive website design packages theme with colorful professional design, gallery of 36 business concepts, light/dark mode, and contact tools.
Version: 1.5.1
Requires at least: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: buildwebsitepilot
*/

:root {
  --pilot: #614bea;
  --pilot-dark: #4a36c7;
  --accent: #ff6b6b;
  --accent2: #4ecdc4;
  --accent3: #ffe66d;
  --ink: #1a1d2e;
  --soft: #f8f7ff;
  --card: #ffffff;
  --muted: #6b7280;
  --line: #e6e7ed;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(97, 75, 234, 0.12);
  --shadow-lg: 0 20px 60px rgba(97, 75, 234, 0.18);
}

[data-theme="dark"] {
  --ink: #f3f4f6;
  --soft: #0f111a;
  --card: #1a1d2e;
  --muted: #9ca3af;
  --line: #2d3148;
  --shadow: 0 10px 40px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--soft); color: var(--ink); line-height: 1.6; padding-bottom: 80px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.center { text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, var(--pilot), #8b5cf6); color: white; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; }
.dot { width: 8px; height: 8px; background: #ffe66d; border-radius: 50%; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 16px; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); background: linear-gradient(135deg, var(--ink), var(--pilot)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.muted { color: var(--muted); font-size: 0.95rem; }
a { color: inherit; text-decoration: none; }
.button { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, var(--pilot), #7c3aed); color: white !important; padding: 14px 26px; border-radius: 12px; font-weight: 700; box-shadow: var(--shadow); transition: all 0.2s; border: none; cursor: pointer; }
.button:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.button.outline { background: transparent; color: var(--pilot) !important; border: 2px solid var(--pilot); }
.button.outline:hover { background: var(--pilot); color: white !important; }
.button.small { padding: 10px 18px; font-size: 14px; }
.text-link { color: var(--pilot); font-weight: 700; }
.text-link:hover { text-decoration: underline; }

/* Icons — critical size lock */
.bwp-icon { width: 22px !important; height: 22px !important; display: inline-block; vertical-align: middle; flex: none; }
.contact-icon .bwp-icon, .quick-contacts .bwp-icon { width: 24px !important; height: 24px !important; }

/* Header */
.site-header { position: sticky; top: 0; background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--line); z-index: 40; backdrop-filter: blur(8px); }
[data-theme="dark"] .site-header { background: rgba(26,29,46,0.96); }
.offer-strip { background: linear-gradient(110deg, #4331b4, #5b32cf 55%, #8d2867); color: #fff; padding: 8px 0; font-size: 13px; font-weight: 600; }
.offer-strip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.offer-strip a { color: #fff; text-decoration: underline; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; font-weight: 800; font-size: 20px; white-space: nowrap; }
.brand > span:last-child { color: var(--pilot); }
.brand-icon { background: linear-gradient(135deg, #5634d3, #137d87); color: white; border-radius: 8px; width: 30px; height: 30px; display: grid; place-items: center; margin-right: 8px; font-size: 18px; }
.nav-links { display: flex; list-style: none; gap: 22px; margin: 0; padding: 0; font-size: 14px; font-weight: 600; }
.theme-toggle, .menu-toggle { border: 1px solid var(--line); background: #f4f0ff; color: #49329b; border-radius: 9px; padding: 8px 12px; font-weight: 700; font-size: 13px; }
.menu-toggle { display: none; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding: 64px 0 40px; }
.hero-copy > p { font-size: 17px; max-width: 500px; }
.hero-price { background: linear-gradient(135deg, #fff, #f0edff); border: 2px solid #e0d9ff; padding: 18px 24px; border-radius: 18px; display: inline-block; margin: 18px 0; }
.hero-price strong { font-size: 2.6rem; color: var(--pilot); letter-spacing: -1px; }
.hero-price .price-label { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: #443b76; display: block; }
.hero-perks { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.hero-perks span { background: #f0edff; color: var(--pilot); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 20px 0; align-items: center; }
.hero-art { position: relative; }
.browser { background: white; border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid #eee; }
.browser-bar { background: #f1f1f4; padding: 10px 14px; display: flex; gap: 6px; align-items: center; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.browser-bar i:nth-child(2) { background: #febc2e; }
.browser-bar i:nth-child(3) { background: #28c840; }
.mock-site { padding: 20px; min-height: 280px; background: linear-gradient(135deg, #e3ebcb, #eff0dc); }
.floating-card { position: absolute; bottom: -16px; left: 16px; background: white; padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow); border-left: 4px solid var(--accent2); font-size: 13px; }
.floating-tag { position: absolute; top: 8px; right: 12px; background: #fff7e6; padding: 8px 12px; border-radius: 10px; font-size: 12px; color: #473277; }
.status-pulse { display: inline-block; width: 9px; height: 9px; background: #147775; border-radius: 50%; margin-right: 6px; }

/* Trust */
.trust-strip { background: linear-gradient(90deg, var(--pilot), #7c3aed, #4ecdc4); color: white; padding: 14px 0; text-align: center; font-weight: 700; font-size: 14px; }
.trust-strip span { margin: 0 14px; opacity: 0.92; }

/* Gallery */
.section-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 20px; }
.example-controls { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0; align-items: center; }
.example-search-label input { padding: 12px 16px; border: 2px solid #e5e7eb; border-radius: 12px; font-size: 15px; width: 280px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button { border: 1px solid var(--line); border-radius: 999px; background: white; padding: 8px 16px; font-size: 13px; font-weight: 600; }
.filters button.active { background: var(--pilot); color: white; border-color: var(--pilot); }
.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.template-card { background: var(--card); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(97,75,234,0.08); transition: transform 0.2s; }
.template-card:hover { transform: translateY(-5px); }
.example-img { width: 100%; height: 170px; object-fit: cover; display: block; background: #f0edff; }
.template-preview { display: block; width: 100%; border: 0; padding: 0; background: none; cursor: pointer; text-align: left; }
.template-meta { padding: 14px 18px 6px; }
.template-meta h3 { font-size: 16px; margin-bottom: 4px; }
.template-meta p { font-size: 13px; margin: 0; color: var(--muted); }
.template-actions { padding: 0 18px 16px; display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; font-weight: 700; }
.template-actions a { display: inline-flex; align-items: center; gap: 6px; }

/* Comparison, Testimonials, Portfolio */
.comparison { overflow-x: auto; margin-top: 24px; }
.comparison table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.comparison th, .comparison td { padding: 14px; text-align: center; border-bottom: 1px solid #eee; font-size: 14px; }
.comparison th { background: linear-gradient(135deg, var(--pilot), #7c3aed); color: white; }
.comparison .featured { background: #f0edff; font-weight: 700; }
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.testimonial { background: var(--card); padding: 24px; border-radius: 18px; box-shadow: var(--shadow); border-top: 4px solid var(--accent); }
.stars { color: #fbbf24; font-size: 1.1rem; margin-bottom: 8px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.portfolio-item { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); position: relative; }
.portfolio-item img { width: 100%; height: 200px; object-fit: cover; display: block; }
.portfolio-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.75)); color: white; padding: 16px; }

/* Form */
.form-card { background: var(--card); padding: 28px; border-radius: 20px; box-shadow: var(--shadow-lg); }
.form-step { display: none; }
.form-step.active { display: block; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 14px; border: 2px solid #e5e7eb; border-radius: 10px; font-size: 15px; }
.step-indicator { display: flex; gap: 8px; margin-bottom: 20px; }
.step-indicator span { width: 30px; height: 30px; border-radius: 50%; background: #e5e7eb; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.step-indicator span.active { background: var(--pilot); color: white; }

/* Contact & FAQ */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.contact-card { display: flex; align-items: center; gap: 12px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); transition: transform 0.2s; }
.contact-card:hover { transform: translateY(-3px); }
.contact-icon { width: 42px; height: 42px; border-radius: 10px; background: #eee7ff; display: grid; place-items: center; color: #5433bd; }
.quick-contacts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.quick-contacts a { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid #ded9ed; border-radius: 10px; background: white; font-weight: 700; font-size: 13px; }
details { background: var(--card); border-radius: 12px; margin-bottom: 10px; padding: 14px 18px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
details summary { font-weight: 700; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Footer & Persistent */
.site-footer { background: #1a1d2e; color: #e5e7eb; padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.footer-bottom { border-top: 1px solid #333; margin-top: 32px; padding-top: 16px; text-align: center; font-size: 13px; }
.persistent-actions { position: fixed; bottom: 16px; right: 16px; display: flex; gap: 10px; z-index: 50; }
.persistent-actions a { background: white; padding: 12px 16px; border-radius: 999px; box-shadow: var(--shadow); font-weight: 700; font-size: 13px; }
.persistent-pay { background: linear-gradient(110deg, #5133c4, #6d36c5) !important; color: white !important; }

/* Dark mode extras */
[data-theme="dark"] .browser, [data-theme="dark"] .template-card, [data-theme="dark"] .testimonial, [data-theme="dark"] .form-card, [data-theme="dark"] details, [data-theme="dark"] .contact-card { background: #1a1d2e; border-color: #2d3148; }
[data-theme="dark"] .hero-price { background: #1a1d2e; border-color: #2d3148; }
[data-theme="dark"] .filters button { background: #25283c; color: #dce1f2; }
[data-theme="dark"] .filters button.active { background: #bca6ff; color: #211b33; }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  #primary-nav { display: none; width: 100%; }
  #primary-nav.open { display: block; }
  .nav-links { flex-direction: column; padding: 12px 0; }
  .template-grid { grid-template-columns: 1fr; }
  .persistent-actions { left: 10px; right: 10px; bottom: 10px; }
  .persistent-actions a { flex: 1; text-align: center; }
}
dialog { width: min(760px, 92vw); border: 0; border-radius: 16px; padding: 28px; box-shadow: 0 30px 80px #0003; max-height: 85vh; overflow: auto; }
dialog::backdrop { background: #161225aa; }
.dialog-close { position: absolute; right: 10px; top: 6px; border: 0; background: none; font-size: 28px; cursor: pointer; }
.skip { position: absolute; left: 12px; top: -100px; background: white; padding: 12px; z-index: 100; }
.skip:focus { top: 12px; }

/* Top contacts in offer strip */
.top-contacts { display: flex; gap: 14px; align-items: center; }
.top-contacts a { color: #fff; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.top-contacts .bwp-icon { width: 16px !important; height: 16px !important; }

/* Stronger mobile friendliness */
@media (max-width: 760px) {
  .top-contacts { display: none; }
  .offer-strip .wrap { flex-wrap: wrap; justify-content: center; text-align: center; gap: 6px; }
  .hero { padding-top: 32px; }
  .hero h1 { font-size: 2.1rem; }
  .template-grid { grid-template-columns: 1fr; }
  .example-img { height: 160px; }
  .persistent-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; justify-content: center; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .button, .actions .text-link { width: 100%; text-align: center; }
}
