/* ═══════════════════════════════════════════════
   Vezina Industries — Shared Stylesheet
   ═══════════════════════════════════════════════ */

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── VARIABLES ─── */
:root {
  --navy:       #0C0C0C;
  --navy-mid:   #161616;
  --navy-light: #222222;
  --orange:     #F5B300;
  --orange-h:   #FFC72C;
  --cream:      #F5F5F5;
  --gold:       #F5B300;
  --white:      #FFFFFF;
  --text:       #111111;
  --muted:      #6B7280;
  --border:     #E5E7EB;
}

/* ─── BASE ─── */
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); overflow-x: hidden; }

/* ─── TYPOGRAPHY ─── */
h1,h2,h3,h4 { font-family: 'Barlow Condensed', sans-serif; line-height: 1.05; text-transform: uppercase; letter-spacing: -.01em; }
.label       { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.label--gold   { color: var(--gold); }
.label--orange { color: var(--orange); }
.label--muted  { color: var(--muted); }

/* ─── BUTTONS ─── */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .9rem 2rem; border-radius: 4px; font-weight: 600; font-size: .9rem; letter-spacing: .02em; text-decoration: none; cursor: pointer; border: none; transition: all .2s; }
.btn svg { width: 18px; height: 18px; }

.btn--primary       { background: var(--orange); color: #000000; font-weight: 700; }
.btn--primary:hover { background: var(--orange-h); transform: translateY(-1px); }

.btn--outline       { background: transparent; color: white; border: 2px solid rgba(255,255,255,.35); }
.btn--outline:hover { border-color: white; }

.btn--outline-dark       { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.4); }
.btn--outline-dark:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

.btn--outline-navy       { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn--outline-navy:hover { background: var(--navy); color: white; }

.btn--white       { background: white; color: #000000; font-weight: 700; }
.btn--white:hover { background: var(--cream); }

.btn--outline-white       { background: transparent; color: white; border: 2px solid rgba(255,255,255,.5); }
.btn--outline-white:hover { border-color: white; background: rgba(255,255,255,.1); }

.btn--dark       { background: transparent; color: var(--navy); border: 2px solid var(--border); }
.btn--dark:hover { border-color: var(--navy); }

/* ─── NAV ─── */
nav { position: sticky; top: 0; z-index: 100; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; height: 68px; }

.nav-logo      { display: flex; align-items: center; gap: .75rem; text-decoration: none; flex-shrink: 0; }
.nav-logo-mark { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }

/* Sub-page nav: simple name text */
.nav-logo-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.1rem; color: white; letter-spacing: .04em; text-transform: uppercase; }

/* Homepage nav: name + tagline stacked */
.nav-logo-text        { line-height: 1.15; }
.nav-logo-text strong { display: block; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.1rem; color: white; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .1rem; }
.nav-logo-text small  { display: block; font-size: .57rem; color: rgba(255,255,255,.38); letter-spacing: .08em; text-transform: uppercase; line-height: 1.55; }

/* Sub-page back link */
.nav-back      { color: rgba(255,255,255,.6); text-decoration: none; font-size: .85rem; display: flex; align-items: center; gap: .4rem; transition: color .2s; }
.nav-back:hover { color: white; }
.nav-back svg  { width: 14px; height: 14px; }

/* Homepage full nav */
.nav-inner.full { justify-content: flex-start; gap: 2rem; }
.nav-links { display: flex; align-items: center; gap: .25rem; flex: 1; }
.nav-item  { position: relative; }
.nav-link  { display: flex; align-items: center; gap: .3rem; padding: .5rem .9rem; color: rgba(255,255,255,.75); font-size: .88rem; font-weight: 500; text-decoration: none; border-radius: 4px; transition: color .2s, background .2s; white-space: nowrap; }
.nav-link:hover { color: white; background: rgba(255,255,255,.07); }
.nav-link svg { width: 14px; height: 14px; opacity: .6; transition: transform .2s; }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

.nav-dropdown       { display: none; position: absolute; top: 100%; left: 0; padding-top: 8px; min-width: 220px; }
.nav-dropdown-inner { background: var(--navy-mid); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: .5rem; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown { display: block; }
.nav-dropdown-inner a       { display: block; padding: .6rem 1rem; color: rgba(255,255,255,.75); font-size: .85rem; text-decoration: none; border-radius: 4px; transition: all .15s; }
.nav-dropdown-inner a:hover { color: white; background: rgba(255,255,255,.08); padding-left: 1.25rem; }

.nav-right       { display: flex; align-items: center; gap: 1rem; margin-left: auto; flex-shrink: 0; }
.nav-phone       { color: rgba(255,255,255,.7); font-size: .85rem; text-decoration: none; display: flex; align-items: center; gap: .4rem; }
.nav-phone:hover { color: white; }
.nav-phone svg   { width: 14px; height: 14px; }

/* ─── HAMBURGER ─── */
.nav-toggle-input  { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.nav-hamburger     { display: none; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; padding: .6rem; border-radius: 4px; transition: background .2s; margin-left: auto; flex-shrink: 0; }
.nav-hamburger:hover { background: rgba(255,255,255,.07); }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: white; border-radius: 2px; transition: transform .25s, opacity .2s; transform-origin: center; }
.nav-toggle-input:checked + .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle-input:checked + .nav-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle-input:checked + .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── PAGE HERO (sub-pages) ─── */
.page-hero { background: linear-gradient(135deg, #0C0C0C, #141414 50%, #0D0D0D); padding: 5rem 2rem; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; right: -5%; top: -30%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(245,179,0,.15) 0%, transparent 65%); pointer-events: none; }
.page-hero-inner  { max-width: 1280px; margin: 0 auto; position: relative; z-index: 2; }
.page-hero-tag    { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.tag-line         { width: 36px; height: 2px; background: var(--gold); }
.page-hero-tag-line { width: 36px; height: 2px; background: var(--gold); }
.page-hero-tag span { font-size: .72rem; font-weight: 600; letter-spacing: .15em; color: var(--gold); text-transform: uppercase; }
.page-hero h1    { font-size: clamp(3rem, 5vw, 5rem); color: white; max-width: 700px; margin-bottom: 1.25rem; }
.page-hero h1 em { font-style: normal; color: var(--orange); }
.page-hero p     { font-size: 1.1rem; color: rgba(255,255,255,.65); max-width: 560px; line-height: 1.7; margin-bottom: 2.5rem; }
.page-hero-sub   { font-size: 1.05rem; color: rgba(255,255,255,.65); max-width: 520px; line-height: 1.7; margin-bottom: 2.5rem; }
.page-hero-ctas  { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ─── CITY HERO (location pages with background image) ─── */
.page-hero.city-hero { background-image: linear-gradient(to right, rgba(12,12,12,.93) 0%, rgba(12,12,12,.65) 100%), url('/images/vi-hero-bg.jpg'); background-size: cover; background-position: center; }

/* ─── WHY CARDS (shared: city pages, service pages) ─── */
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 2.5rem; }
.why-card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 2rem; transition: all .2s; }
.why-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,.08); border-color: var(--orange); }
.why-icon { width: 48px; height: 48px; background: var(--navy); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.why-icon svg { width: 24px; height: 24px; color: var(--orange); stroke: var(--orange); }
.why-card h3 { font-size: 1.4rem; color: var(--navy); margin-bottom: .5rem; }
.why-card p  { font-size: .88rem; color: var(--muted); line-height: 1.7; }

/* ─── FAQ CARDS (city service sub-pages) ─── */
.faq-card h4 { text-transform: none; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1rem; line-height: 1.4; }

/* ─── SECTION BASICS ─── */
section { padding: 5rem 2rem; }
.inner          { max-width: 1280px; margin: 0 auto; }
.section-inner  { max-width: 1280px; margin: 0 auto; }
.section-header { margin-bottom: 3.5rem; }
.section-header.centered { text-align: center; }
.section-header h2 { font-size: clamp(2rem, 3.5vw, 3.5rem); color: var(--navy); }
.section-header h2.white { color: var(--white); }
.section-header p { font-size: 1rem; color: var(--muted); margin-top: .75rem; max-width: 560px; line-height: 1.7; }
.section-header p.centered { margin: .75rem auto 0; }

/* ─── CTA BANNER (sub-pages) ─── */
#cta-banner    { text-align: center; }
#cta-banner h2 { font-size: clamp(2rem, 4vw, 3.5rem); color: white; margin-bottom: 1rem; }
#cta-banner p  { font-size: 1rem; margin-bottom: 2.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-btns      { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── TRUST BAR ─── */
.trust-bar   { background: var(--cream); padding: 1.5rem 2rem; }
.trust-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.trust-item     { display: flex; align-items: center; gap: .6rem; }
.trust-item svg { width: 18px; height: 18px; color: var(--orange); flex-shrink: 0; }
.trust-item span { font-size: .85rem; font-weight: 600; color: var(--navy); }

/* ─── DIVIDER ─── */
.divider      { display: flex; align-items: center; gap: 1rem; margin: 0 auto 2.5rem; max-width: 120px; }
.divider-line { flex: 1; height: 2px; background: var(--orange); }
.divider-dot  { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* ─── MINI FOOTER (sub-pages) ─── */
footer   { background: var(--navy); border-top: 1px solid rgba(255,255,255,.08); padding: 1.5rem 2rem; text-align: center; }
footer p { font-size: .78rem; color: rgba(255,255,255,.3); }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .page-hero-inner { grid-template-columns: 1fr !important; }
  .why-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .why-grid { grid-template-columns: repeat(2,1fr); }
  /* Nav — sub-pages */
  .nav-inner { padding: 0 1.25rem; }
  .nav-back span { display: none; }

  /* Nav — hamburger + mobile menu */
  .nav-logo { padding: 1rem 0; }
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none; flex-direction: column; width: 100%; gap: 0;
    border-top: 1px solid rgba(255,255,255,.08); padding: .5rem 0; order: 10;
  }
  .nav-right {
    display: none; flex-direction: column; width: 100%; padding: .75rem 1rem 1.25rem;
    gap: .75rem; border-top: 1px solid rgba(255,255,255,.08); align-items: stretch; order: 11;
  }
  .nav-toggle-input:checked ~ .nav-links,
  .nav-toggle-input:checked ~ .nav-right { display: flex; }

  /* "Services" acts as a section label on mobile */
  .nav-item .nav-link {
    font-size: .68rem; letter-spacing: .12em; color: rgba(255,255,255,.38);
    font-weight: 700; padding: .9rem 1rem .2rem; text-transform: uppercase;
  }
  .nav-item:hover .nav-link svg { transform: none; }
  .nav-item .nav-link svg { display: none; }

  /* Service sub-items: left-accent indent */
  .nav-dropdown { display: block; position: static; padding-top: 0; min-width: unset; }
  .nav-dropdown-inner {
    border: none; border-left: 2px solid rgba(245,179,0,.25);
    box-shadow: none; border-radius: 0; background: transparent;
    padding: .15rem 0 .6rem .5rem; margin: 0 0 .35rem 1rem;
  }
  .nav-dropdown-inner a { padding: .5rem .75rem; font-size: .88rem; color: rgba(255,255,255,.72); }
  .nav-dropdown-inner a:hover { padding-left: .75rem; background: rgba(255,255,255,.05); color: white; }

  /* Top-level nav links (non-dropdown) */
  .nav-links > a.nav-link {
    font-size: .92rem; font-weight: 500; color: rgba(255,255,255,.8);
    padding: .72rem 1rem; border-top: 1px solid rgba(255,255,255,.05);
  }
  .nav-links > a.nav-link:hover { color: white; background: rgba(255,255,255,.05); }

  /* Nav right: phone + full-width CTA */
  .nav-phone { font-size: .92rem; padding: .25rem 0; }
  .nav-right .btn { justify-content: center; padding: .85rem; }

  /* Sections */
  section { padding: 3.5rem 1.25rem; }

  /* Page hero */
  .page-hero { padding: 3rem 1.25rem; }
  .page-hero-ctas { flex-direction: column; }
  .page-hero-ctas .btn { justify-content: center; }

  /* Trust bar */
  .trust-bar { padding: 1rem 1.25rem; }
  .trust-inner { gap: 1rem; justify-content: flex-start; }

  /* CTA banner */
  .cta-btns { flex-direction: column; align-items: center; }
  .cta-btns .btn { width: 100%; justify-content: center; max-width: 320px; }
}

@media (max-width: 540px) {
  .nav-inner { padding: 0 1rem; }
  .why-grid { grid-template-columns: 1fr; }
}

/* ─── FORMS ─── */
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group label { font-size: .75rem; font-weight: 700; color: var(--navy); letter-spacing: .09em; text-transform: uppercase; }
.form-group input,
.form-group select,
.form-group textarea { padding: .75rem 1rem; border: 1.5px solid var(--border); border-radius: 8px; font-family: 'Inter',sans-serif; font-size: .92rem; color: var(--navy); background: white; outline: none; transition: border-color .2s,box-shadow .2s; width: 100%; }
.form-group input:focus,.form-group select:focus,.form-group textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(245,179,0,.12); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-submit { width: 100%; justify-content: center; margin-top: .4rem; }

/* Dark form variant (for navy backgrounds) */
.form--dark .form-group label { color: rgba(255,255,255,.55); }
.form--dark .form-group input,.form--dark .form-group select,.form--dark .form-group textarea { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: white; }
.form--dark .form-group input::placeholder,.form--dark .form-group textarea::placeholder { color: rgba(255,255,255,.25); }
.form--dark .form-group input:focus,.form--dark .form-group select:focus,.form--dark .form-group textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,179,0,.15); }
.form--dark .form-group select option { background: #1a1a1a; color: white; }

/* Contact info card (used beside forms) */
.contact-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-sidebar-card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 1.75rem; }
.contact-sidebar-card h4 { font-size: 1.1rem; color: var(--navy); margin-bottom: 1rem; }
.contact-detail { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .85rem; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.contact-detail svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--orange); margin-top: 1px; }
.contact-detail a { color: var(--navy); text-decoration: none; font-weight: 600; }
.contact-detail a:hover { color: var(--orange); }

@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }

  /* Prevent iOS auto-zoom on focus — inputs must be ≥16px */
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 1rem; }

  /* Tighten form card padding on small screens */
  .contact-form-wrap { padding: 1.5rem 1.25rem; }
  #homeowner-quote > .inner > div > div:last-child,
  #builder-quote > .inner > div > div:last-child { padding: 1.5rem 1.25rem !important; }

  /* Contact page layout */
  .contact-layout { grid-template-columns: 1fr !important; }
}
