/*
Theme Name:  idealHome4me
Theme URI:   https://idealhome4me.com
Author:      Mobile Photo Lab / MrDearShotMe LLC
Author URI:  https://mobilephotolab.com
Description: The official idealHome4me home addition planning theme. Mobile-first, fully responsive, with a complete 6-step planner wizard, zoning feasibility checks, AI-powered concept visualization, cost estimator, and contractor-ready export. Designed for Hampton Roads, Virginia — configurable for any market.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: idealhome4me
Tags:        custom-colors, custom-logo, custom-menu, full-width-template, mobile-first, responsive-layout
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --navy:        #0A1628;
  --navy-mid:    #122040;
  --navy-light:  #1E3A5F;
  --teal:        #00C2CB;
  --teal-dk:     #009BA3;
  --teal-glow:   rgba(0,194,203,0.12);
  --amber:       #F5A623;
  --surface:     #F4F7FB;
  --white:       #FFFFFF;
  --text:        #1E293B;
  --muted:       #64748B;
  --border:      #E2E8F0;
  --success-bg:  #DCFCE7;
  --warn-bg:     #FEF3C7;
  --info-bg:     #EFF6FF;
  --font-disp:   'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:   'DM Sans', 'Segoe UI', sans-serif;
  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   22px;
  --shadow-sm:   0 2px 8px rgba(10,22,40,0.07);
  --shadow:      0 4px 20px rgba(10,22,40,0.10);
  --shadow-lg:   0 12px 40px rgba(10,22,40,0.15);
  --shadow-teal: 0 8px 28px rgba(0,194,203,0.28);
  --trans:       0.2s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: var(--teal); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--teal-dk); }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-disp); font-weight: 800; line-height: 1.1; color: var(--navy); }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
button { font-family: var(--font-body); cursor: pointer; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container        { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.container--narrow{ max-width: 920px; }

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,194,203,0.12);
}
.header-inner {
  height: 62px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; flex-shrink: 0; }
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dk));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; box-shadow: var(--shadow-teal); flex-shrink: 0;
}
.logo-wordmark { line-height: 1; }
.logo-name {
  font-family: var(--font-disp); font-size: 1.45rem; font-weight: 900;
  color: white; letter-spacing: 0.01em; display: block;
}
.logo-name .accent { color: var(--teal); }
.logo-sub {
  font-size: 0.57rem; color: rgba(255,255,255,0.32);
  letter-spacing: 0.1em; text-transform: uppercase; display: block;
}

/* Desktop nav */
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  color: rgba(255,255,255,0.65); font-size: 0.87rem; font-weight: 500;
  padding: 0.5rem 0.85rem; border-radius: var(--radius-sm); transition: all var(--trans);
}
.main-nav a:hover, .main-nav .current-menu-item > a {
  color: white; background: rgba(0,194,203,0.1);
}
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-toggle {
  display: none; width: 42px; height: 42px;
  background: none; border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm); color: white; font-size: 1.2rem;
  align-items: center; justify-content: center; flex-shrink: 0;
}

/* Mobile drawer */
.nav-drawer {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(10,22,40,0.98); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex; flex-direction: column; padding: 5rem 1.5rem 2rem;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}
.nav-drawer.is-open   { transform: translateX(0); }
.nav-drawer-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; color: rgba(255,255,255,0.55);
  font-size: 1.5rem; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.nav-drawer-links { list-style: none; margin-bottom: 1.5rem; }
.nav-drawer-links a {
  display: block; padding: 1rem 0; font-size: 1.2rem; font-weight: 600;
  color: rgba(255,255,255,0.8); border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color var(--trans);
}
.nav-drawer-links a:hover { color: var(--teal); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 48px; padding: 0 1.25rem;
  border: 2px solid transparent; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 700; line-height: 1;
  transition: all var(--trans); white-space: nowrap;
  -webkit-tap-highlight-color: transparent; text-decoration: none;
}
.btn:active  { transform: scale(0.97); }
.btn:disabled{ opacity: 0.4; cursor: not-allowed; transform: none !important; }
.btn-primary  { background: var(--teal);  color: var(--navy); border-color: var(--teal); }
.btn-primary:hover:not(:disabled) { background: var(--teal-dk); border-color: var(--teal-dk); box-shadow: var(--shadow-teal); }
.btn-amber    { background: var(--amber); color: var(--navy); }
.btn-amber:hover:not(:disabled)   { background: #D4881A; transform: translateY(-1px); }
.btn-dark     { background: var(--navy);  color: white; }
.btn-dark:hover:not(:disabled)    { background: var(--navy-light); }
.btn-outline  { background: transparent; border-color: var(--border); color: var(--muted); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-outline-teal { background: transparent; border-color: var(--teal); color: var(--teal-dk); }
.btn-outline-teal:hover { background: var(--teal-glow); }
.btn-ghost    { background: transparent; border-color: rgba(255,255,255,0.25); color: white; }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }
.btn-lg   { min-height: 54px; padding: 0 1.75rem; font-size: 1rem; border-radius: 12px; }
.btn-sm   { min-height: 40px; padding: 0 1rem; font-size: 0.82rem; }
.btn-block{ width: 100%; }

/* ============================================================
   HERO
   ============================================================ */
.hero { background: var(--navy); position: relative; overflow: hidden; padding: 4rem 0 3.5rem; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,194,203,0.04) 1px,transparent 1px),
                    linear-gradient(90deg,rgba(0,194,203,0.04) 1px,transparent 1px);
  background-size: 48px 48px; pointer-events: none;
}
.hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 65% 55% at 75% 55%,rgba(0,194,203,0.10) 0%,transparent 70%),
              radial-gradient(ellipse 45% 55% at 15% 75%,rgba(245,166,35,0.05) 0%,transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(0,194,203,0.1); border: 1px solid rgba(0,194,203,0.3);
  color: var(--teal); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.38rem 0.9rem; border-radius: 100px; margin-bottom: 1.25rem;
}
.hero-badge-dot { width: 5px; height: 5px; background: var(--teal); border-radius: 50%; flex-shrink: 0; animation: pulseDot 2s infinite; }
.hero-heading {
  font-size: clamp(2.8rem, 8vw, 5rem); font-weight: 900;
  color: white; line-height: 1.0; letter-spacing: -0.02em; margin-bottom: 1.25rem;
}
.hero-heading em { font-style: normal; color: var(--teal); }
.hero-sub { font-size: clamp(0.95rem,2.5vw,1.1rem); color: rgba(255,255,255,0.6); line-height: 1.7; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 2.5rem; }
.hero-stats { display: flex; gap: 1.75rem; flex-wrap: wrap; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,0.07); }
.hero-stat-value { font-family: var(--font-disp); font-size: 1.9rem; font-weight: 900; color: var(--teal); display: block; line-height: 1; }
.hero-stat-label { font-size: 0.68rem; color: rgba(255,255,255,0.38); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 3px; }

/* Mobile preview */
.hero-preview-mobile {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg); padding: 1.25rem;
}
.preview-prop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.preview-prop-card { background: rgba(255,255,255,0.05); border-radius: 8px; padding: 0.6rem 0.75rem; }
.preview-prop-label { font-size: 0.6rem; color: rgba(255,255,255,0.32); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 3px; }
.preview-prop-value { font-family: var(--font-disp); font-size: 0.95rem; font-weight: 700; color: white; }
.preview-prop-value.teal { color: var(--teal); }
.preview-status { display: flex; align-items: center; gap: 6px; border-radius: 6px; padding: 0.5rem 0.75rem; font-size: 0.78rem; font-weight: 600; margin-bottom: 8px; }
.preview-status.ok   { background: rgba(22,163,74,0.12); border: 1px solid rgba(22,163,74,0.3); color: #4ADE80; }
.preview-status.warn { background: rgba(217,119,6,0.12); border: 1px solid rgba(217,119,6,0.3); color: #FCD34D; }
.preview-cost { background: rgba(255,255,255,0.05); border-radius: 8px; padding: 0.65rem 0.85rem; }
.preview-cost-label { font-size: 0.6rem; color: rgba(255,255,255,0.32); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 3px; }
.preview-cost-value { font-family: var(--font-disp); font-size: 1.15rem; font-weight: 800; color: var(--amber); }

/* Desktop panel */
.hero-panel-desktop { display: none; }
.hero-panel-inner {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl); padding: 1.5rem;
  box-shadow: 0 32px 72px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,194,203,0.07);
  animation: floatY 6s ease-in-out infinite;
}
.panel-winbar { display: flex; gap: 6px; margin-bottom: 1.1rem; padding-bottom: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.06); align-items: center; }
.panel-dot    { width: 10px; height: 10px; border-radius: 50%; }
.panel-titlebar { flex: 1; height: 7px; background: rgba(255,255,255,0.07); border-radius: 4px; margin-left: 8px; }
.panel-steps  { display: flex; gap: 3px; margin-bottom: 1.1rem; }
.panel-step   { flex: 1; height: 4px; border-radius: 2px; }
.panel-step.done   { background: rgba(0,194,203,0.5); }
.panel-step.active { background: var(--teal); }
.panel-step.future { background: rgba(255,255,255,0.09); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 3.5rem 0; }
.section-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); display: block; margin-bottom: 0.6rem; }
.section-title { font-size: clamp(1.9rem,5vw,3rem); font-weight: 800; color: var(--navy); margin-bottom: 0.6rem; }
.section-sub   { font-size: 1rem; color: var(--muted); max-width: 480px; line-height: 1.65; }
.section-header { margin-bottom: 2.5rem; }
.section-header.centered { text-align: center; }
.section-header.centered .section-sub { margin: 0 auto; }

/* Steps grid */
.how-it-works { background: white; }
.steps-grid   { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.step-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem 1.5rem;
  position: relative; overflow: hidden; transition: all var(--trans);
}
.step-card:hover { border-color: var(--teal); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,194,203,0.15); transform: translateY(-2px); }
.step-num  { font-family: var(--font-disp); font-size: 4.5rem; font-weight: 900; color: rgba(10,22,40,0.05); position: absolute; top: 0.75rem; right: 1.25rem; line-height: 1; }
.step-icon { width: 48px; height: 48px; background: var(--navy); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 1rem; box-shadow: 0 4px 12px rgba(10,22,40,0.18); }
.step-title{ font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; }
.step-desc { font-size: 0.87rem; color: var(--muted); line-height: 1.65; margin: 0; }

/* Additions */
.additions-section { background: var(--navy); }
.additions-section .section-title { color: white; }
.additions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px,1fr)); gap: 0.65rem; }
.addition-tile { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 1rem 0.75rem; text-align: center; cursor: pointer; transition: all var(--trans); -webkit-tap-highlight-color: transparent; text-decoration: none; display: block; }
.addition-tile:hover { border-color: rgba(0,194,203,0.45); background: rgba(0,194,203,0.07); transform: translateY(-2px); }
.addition-emoji{ font-size: 1.6rem; margin-bottom: 0.35rem; display: block; }
.addition-name { font-family: var(--font-disp); font-size: 0.88rem; font-weight: 700; color: white; line-height: 1.2; display: block; }
.addition-size { font-size: 0.68rem; color: rgba(255,255,255,0.35); margin-top: 2px; display: block; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-light) 100%); position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; top: -30%; right: -5%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(0,194,203,0.07) 0%,transparent 70%); pointer-events: none; }
.cta-inner { position: relative; z-index: 1; text-align: center; }
.cta-inner .section-title { color: white; }
.cta-inner .section-sub   { color: rgba(255,255,255,0.5); margin: 0 auto 1.75rem; }

/* Disclaimer */
.disclaimer-bar { background: rgba(245,166,35,0.07); border-top: 3px solid var(--amber); padding: 0.85rem 0; }
.disclaimer-inner { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.79rem; color: var(--muted); line-height: 1.6; }
.disclaimer-inner p { margin: 0; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.5); padding: 3rem 0 1.5rem; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-top  { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-brand { margin-bottom: 2rem; }
.footer-desc { font-size: 0.83rem; color: rgba(255,255,255,0.38); line-height: 1.7; max-width: 260px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.footer-col-title { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.28); margin-bottom: 1rem; display: block; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a  { font-size: 0.83rem; color: rgba(255,255,255,0.46); transition: color var(--trans); }
.footer-links a:hover { color: var(--teal); }
.footer-bottom { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.72rem; color: rgba(255,255,255,0.22); }

/* ============================================================
   PLANNER WIZARD
   ============================================================ */
.planner-wrap { max-width: 880px; margin: 0 auto; padding: 1.25rem 1.25rem 3rem; }
.ih-progress { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0.85rem 0.75rem; margin-bottom: 1.25rem; box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: space-between; }
.ih-step-dot { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; cursor: default; }
.ih-step-dot::after { content: ''; position: absolute; top: 18px; left: 50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.ih-step-dot:last-child::after { display: none; }
.ih-step-dot.done::after { background: var(--teal); }
.ih-dot-circle { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; border: 2px solid var(--border); background: var(--surface); position: relative; z-index: 1; transition: all 0.3s; flex-shrink: 0; }
.ih-step-dot.done   .ih-dot-circle { background: var(--teal);   border-color: var(--teal-dk); color: white; font-size: 0.85rem; }
.ih-step-dot.active .ih-dot-circle { background: var(--navy);   border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0,194,203,0.18); }
.ih-dot-label { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); display: none; }
.ih-step-dot.active .ih-dot-label { color: var(--navy); }
.ih-step-dot.done   .ih-dot-label { color: var(--teal-dk); }

.ih-screen { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow); animation: fadeUp 0.35s ease both; display: none; }
.ih-screen.is-active { display: block; }
.ih-screen-title { font-size: 1.8rem; font-weight: 800; color: var(--navy); margin-bottom: 0.3rem; }
.ih-screen-sub   { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.5rem; }
.ih-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.ih-actions .btn-back { order: 2; }
.ih-actions .btn-next { order: 1; }

.ih-field  { margin-bottom: 1rem; }
.ih-label  { font-size: 0.82rem; font-weight: 600; color: var(--text); display: block; margin-bottom: 4px; }
.ih-input, .ih-select, .ih-textarea { width: 100%; padding: 0.8rem 1rem; border: 2px solid var(--border); border-radius: var(--radius); font-family: var(--font-body); font-size: 0.95rem; color: var(--text); background: white; outline: none; transition: border-color var(--trans); min-height: 50px; appearance: none; -webkit-appearance: none; }
.ih-input:focus, .ih-select:focus, .ih-textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,194,203,0.12); }
.ih-input-row  { display: flex; gap: 8px; }
.ih-input-row .ih-input { flex: 1; }
.ih-hint   { font-size: 0.75rem; color: #94A3B8; margin-top: 4px; }
.ih-textarea { resize: vertical; min-height: 80px; }
.ih-select-wrap { position: relative; }
.ih-select-wrap::after { content: '▾'; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; font-size: 0.85rem; }

.prop-snapshot { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; margin-top: 1.25rem; animation: fadeUp 0.35s ease both; }
.prop-snapshot-title { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #94A3B8; margin-bottom: 0.85rem; display: block; }
.prop-grid   { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 8px; margin-bottom: 0.85rem; }
.prop-card   { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 0.65rem 0.85rem; }
.prop-card.highlight { border-color: rgba(0,194,203,0.4); }
.prop-label  { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #94A3B8; margin-bottom: 3px; display: block; }
.prop-value  { font-family: var(--font-disp); font-size: 0.95rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
.prop-value.teal { color: var(--teal-dk); }
.prop-notice { background: var(--success-bg); border: 1px solid rgba(22,163,74,0.3); border-radius: 6px; padding: 0.6rem 0.85rem; font-size: 0.82rem; color: #15803D; display: flex; gap: 7px; align-items: flex-start; }
.prop-notice.warn { background: var(--info-bg); border-color: #BFDBFE; color: #1E40AF; }

.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1rem; }
.upload-zone { border: 2px dashed var(--border); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem 0.75rem; gap: 4px; background: var(--surface); cursor: pointer; text-align: center; min-height: 100px; transition: all var(--trans); -webkit-tap-highlight-color: transparent; position: relative; }
.upload-zone.required { border-color: rgba(0,194,203,0.45); }
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--teal); background: rgba(0,194,203,0.05); }
.upload-zone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-icon{ font-size: 1.7rem; }
.upload-name{ font-size: 0.8rem; font-weight: 600; color: var(--navy); }
.upload-hint{ font-size: 0.68rem; color: #94A3B8; }
.upload-hint.req { color: var(--teal-dk); font-weight: 700; }
.upload-tap { font-size: 0.7rem; color: var(--teal); margin-top: 3px; }
.upload-preview { display: none; position: relative; }
.upload-preview img { width: 100%; height: 100px; object-fit: cover; border-radius: 10px; }
.upload-remove { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; background: rgba(10,22,40,0.8); color: white; border: none; border-radius: 50%; font-size: 0.7rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }

.path-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; margin-bottom: 1.5rem; }
.path-btn { display: flex; flex-direction: column; gap: 4px; padding: 1rem 1.1rem; border: 2px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; text-align: left; transition: all var(--trans); -webkit-tap-highlight-color: transparent; }
.path-btn.active, .path-btn:hover { border-color: var(--teal); background: rgba(0,194,203,0.05); }
.path-btn-icon  { font-size: 1.3rem; }
.path-btn-label { font-size: 0.9rem; font-weight: 700; color: var(--navy); }
.path-btn-sub   { font-size: 0.75rem; color: var(--muted); }

.addition-tiles { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.6rem; margin-bottom: 1.25rem; }
.add-tile { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0.85rem 0.5rem; border: 2px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; text-align: center; min-height: 90px; justify-content: center; transition: all 0.18s; -webkit-tap-highlight-color: transparent; }
.add-tile.selected { border-color: var(--teal); background: rgba(0,194,203,0.06); box-shadow: 0 0 0 3px rgba(0,194,203,0.15); }
.add-tile:active   { transform: scale(0.96); }
.add-tile-emoji    { font-size: 1.4rem; }
.add-tile-name     { font-size: 0.72rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
.add-tile-sqft     { font-size: 0.62rem; color: var(--teal-dk); }

.add-details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem; margin-bottom: 1rem; display: none; animation: fadeUp 0.3s ease both; }
.add-details.is-visible { display: block; }
.add-details-title { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #94A3B8; margin-bottom: 0.75rem; display: block; }
.trades-row { display: flex; gap: 1.1rem; flex-wrap: wrap; padding-top: 4px; }
.trade-label { display: flex; align-items: center; gap: 6px; font-size: 0.86rem; font-weight: 500; cursor: pointer; min-height: 44px; }
.trade-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--teal); flex-shrink: 0; }

.style-selector { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 1.1rem; }
.style-btn { padding: 0.45rem 0.9rem; border: 1.5px solid var(--border); border-radius: 100px; background: var(--surface); font-size: 0.8rem; font-weight: 600; cursor: pointer; color: var(--muted); transition: all 0.18s; min-height: 38px; font-family: var(--font-body); white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.style-btn.active, .style-btn:hover { border-color: var(--teal); background: rgba(0,194,203,0.08); color: var(--navy); }

.vis-box { background: var(--navy); border-radius: 14px; min-height: 240px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; overflow: hidden; position: relative; }
.vis-box-glow { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 60% at 50% 50%,rgba(0,194,203,0.06) 0%,transparent 70%); pointer-events: none; }
.vis-placeholder { text-align: center; color: rgba(255,255,255,0.4); padding: 2rem 1.5rem; position: relative; z-index: 1; }
.vis-placeholder-icon { font-size: 3rem; margin-bottom: 0.85rem; display: block; }
.vis-placeholder p    { font-size: 0.88rem; max-width: 280px; margin: 0 0 1.25rem; line-height: 1.6; }
.vis-info-card { background: rgba(0,194,203,0.09); border: 1px solid rgba(0,194,203,0.28); border-radius: 10px; padding: 0.85rem 1.1rem; text-align: left; max-width: 280px; margin: 0 auto; }
.vis-info-label { font-size: 0.6rem; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.35rem; display: block; }
.vis-info-style { font-family: var(--font-disp); font-size: 1rem; font-weight: 700; color: white; }
.vis-info-type  { font-size: 0.72rem; color: rgba(255,255,255,0.4); margin-top: 3px; }

/* Results */
.zoning-badge { display: flex; align-items: center; gap: 9px; padding: 0.85rem 1rem; border-left: 4px solid; border-radius: 8px; font-size: 0.92rem; font-weight: 700; margin-bottom: 1.25rem; }
.zoning-badge.ok      { background: var(--success-bg); border-color: #22C55E; color: #15803D; }
.zoning-badge.review  { background: var(--info-bg);    border-color: #3B82F6; color: #1D4ED8; }
.zoning-badge.complex { background: var(--warn-bg);    border-color: #F59E0B; color: #92400E; }
.check-item { padding: 0.65rem 0.9rem; border-radius: 6px; border-left: 3px solid; margin-bottom: 0.5rem; font-size: 0.84rem; line-height: 1.5; }
.check-item strong { display: block; margin-bottom: 2px; }
.check-pass { background: var(--success-bg); border-color: #22C55E; color: #14532D; }
.check-info { background: var(--info-bg);    border-color: #3B82F6; color: #1E3A8A; }
.check-warn { background: var(--warn-bg);    border-color: #F59E0B; color: #78350F; }
.cost-table  { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.cost-row    { display: flex; justify-content: space-between; align-items: center; padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.86rem; gap: 0.5rem; }
.cost-row:last-child { border: none; background: var(--navy); border-radius: 0 0 11px 11px; }
.cost-label  { color: var(--muted); }
.cost-value  { font-weight: 600; color: var(--navy); text-align: right; }
.cost-row:last-child .cost-label { color: rgba(255,255,255,0.65); font-weight: 700; }
.cost-row:last-child .cost-value { font-family: var(--font-disp); font-size: 1.05rem; font-weight: 800; color: var(--teal); }
.permit-item { display: flex; align-items: flex-start; gap: 9px; padding: 0.55rem 0; border-bottom: 1px solid var(--border); font-size: 0.83rem; }
.permit-badge { background: var(--navy); color: white; padding: 2px 7px; border-radius: 4px; font-size: 0.62rem; font-weight: 700; white-space: nowrap; flex-shrink: 0; margin-top: 1px; }
.results-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.results-col-title { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #94A3B8; margin-bottom: 0.65rem; display: block; }
.export-grid  { display: grid; grid-template-columns: 1fr; gap: 0.85rem; margin-bottom: 1.5rem; }
.export-card  { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem; display: flex; flex-direction: column; gap: 0.55rem; transition: border-color var(--trans); }
.export-card:hover { border-color: var(--teal); }
.export-icon  { font-size: 1.8rem; }
.export-title { font-family: var(--font-disp); font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.export-desc  { font-size: 0.83rem; color: var(--muted); line-height: 1.55; margin: 0; }
.email-row    { display: flex; gap: 7px; margin-top: 4px; }
.email-row .ih-input { min-height: 42px; font-size: 0.85rem; }
.disclaimer-box { background: #FEF9EC; border: 1px solid #FCD34D; border-radius: 10px; padding: 0.9rem 1.1rem; font-size: 0.79rem; color: #78350F; line-height: 1.65; }
.disclaimer-box strong { display: block; margin-bottom: 0.2rem; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp   { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:none; } }
@keyframes floatY   { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-9px)} }
@keyframes pulseDot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(1.6)} }
@keyframes spin     { to { transform:rotate(360deg); } }

/* ============================================================
   RESPONSIVE — TABLET (≥640px)
   ============================================================ */
@media (min-width: 640px) {
  .hero { padding: 5rem 0 4rem; }
  .hero-actions { flex-direction: row; }
  .steps-grid   { grid-template-columns: 1fr 1fr; }
  .ih-actions   { flex-direction: row; }
  .ih-actions .btn-back { order: 1; }
  .ih-actions .btn-next { order: 2; margin-left: auto; }
  .upload-grid  { grid-template-columns: repeat(3,1fr); }
  .results-grid { grid-template-columns: 1fr 1fr; }
  .export-grid  { grid-template-columns: 1fr 1fr; }
  .footer-cols  { grid-template-columns: repeat(4,1fr); }
  .footer-brand { margin-bottom: 0; }
  .footer-top   { display: grid; grid-template-columns: 2fr 3fr; gap: 3rem; align-items: start; }
  .ih-screen    { padding: 2rem; }
  .ih-dot-label { display: block; }
  .addition-tiles { grid-template-columns: repeat(4,1fr); }
}

/* ============================================================
   RESPONSIVE — DESKTOP (≥900px)
   ============================================================ */
@media (min-width: 900px) {
  .nav-toggle       { display: none !important; }
  .main-nav         { display: flex !important; }
  .header-actions .btn-primary { display: inline-flex !important; }
  .hero { min-height: 88vh; padding: 5rem 0; display: flex; align-items: center; }
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .hero-preview-mobile { display: none; }
  .hero-panel-desktop  { display: block; }
  .section   { padding: 5rem 0; }
  .steps-grid { grid-template-columns: repeat(3,1fr); }
  .addition-tiles { grid-template-columns: repeat(6,1fr); }
  .cta-inner { text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
  .cta-inner .section-sub { margin: 0; max-width: 420px; }
}

@media (max-width: 899px) {
  .main-nav { display: none; }
  .header-actions .btn-primary.hide-mobile { display: none; }
  .nav-toggle { display: flex; }
}
