/* =========================================================================
   Parkland Wallpaper Installers — style.css
   Palette: warm ivory / charcoal ink / taupe & stone accents
   Type: Playfair Display (serif display) + Inter (sans body)
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  --ivory:        #F6F2EA;   /* page background */
  --ivory-2:      #FBF8F2;   /* lighter panels */
  --stone:        #EFE9DE;   /* card / alt-section background */
  --stone-line:   #E1D8C8;   /* fine borders */
  --ink:          #23201B;   /* body text */
  --ink-soft:     #37322A;   /* headings on light */
  --muted:        #6E6559;   /* captions, labels — 5.1:1 on ivory */
  --accent:       #75664F;   /* functional accent: buttons, links — AA */
  --accent-deep:  #5F5340;   /* hover */
  --taupe:        #8A7A63;   /* decorative only: eyebrows, rules */
  --charcoal:     #23211C;   /* dark band background */
  --charcoal-2:   #2C2922;
  --on-dark:      #F3EEE4;   /* text on charcoal */
  --on-dark-mut:  #C9BFAF;   /* muted text on charcoal */
  --gold:         #C2A77E;   /* accent on dark band */

  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 3px;
  --shadow: 0 1px 2px rgba(35,32,27,.05), 0 8px 30px -18px rgba(35,32,27,.28);
  --ease: cubic-bezier(.22,.61,.36,1);

  --ff-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --ff-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }

h1, h2, h3, h4 {
  font-family: var(--ff-serif);
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--ff-sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--taupe);
  margin: 0 0 1rem;
  display: flex; align-items: center; gap: .75rem;
}
.eyebrow::before {
  content: ""; width: 34px; height: 1px; background: var(--taupe); display: inline-block;
}
.eyebrow.center { justify-content: center; }

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section-head { max-width: 62ch; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; margin-top: .5rem; }

.lead { font-size: clamp(1.1rem, 1rem + .6vw, 1.3rem); line-height: 1.5; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: .85rem; --pad-x: 1.6rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--ff-sans); font-size: .92rem; font-weight: 600;
  letter-spacing: .02em;
  padding: var(--pad-y) var(--pad-x);
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--stone-line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost-dark { background: transparent; color: var(--on-dark); border-color: rgba(243,238,228,.35); }
.btn-ghost-dark:hover { background: rgba(243,238,228,.08); color: #fff; border-color: rgba(243,238,228,.6); }
.btn-lg { --pad-y: 1rem; --pad-x: 2rem; font-size: 1rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(246,242,234,.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { background: rgba(246,242,234,.96); border-bottom-color: var(--stone-line); box-shadow: 0 6px 24px -20px rgba(35,32,27,.6); }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 72px;
}
.brand {
  font-family: var(--ff-serif); font-size: 1.15rem; font-weight: 600;
  color: var(--ink-soft); letter-spacing: -.01em; line-height: 1.1;
  display: inline-flex; align-items: center; gap: .6rem;
}
.brand .mark { width: 26px; height: 26px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: .92rem; font-weight: 500; color: var(--ink-soft); position: relative; padding: .25rem 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px;
  background: var(--accent); transition: width .28s var(--ease);
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .5rem;
  width: 44px; height: 44px; color: var(--ink);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* Mobile nav */
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .mobile-menu {
    position: fixed; inset: 72px 0 auto 0; z-index: 55;
    background: var(--ivory); border-bottom: 1px solid var(--stone-line);
    box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .3s var(--ease), opacity .3s var(--ease), visibility .3s var(--ease);
    padding: 1rem var(--gutter) 1.5rem;
  }
  .mobile-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .mobile-menu ul { list-style: none; margin: 0 0 1rem; padding: 0; }
  .mobile-menu a { display: block; padding: .85rem 0; font-size: 1.05rem; color: var(--ink-soft); border-bottom: 1px solid var(--stone-line); }
  .mobile-menu .btn { width: 100%; margin-top: .5rem; }
}
.mobile-menu { display: none; }
@media (max-width: 900px) { .mobile-menu { display: block; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92vh, 820px); display: flex; align-items: center; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(28,25,20,.72) 0%, rgba(28,25,20,.5) 42%, rgba(28,25,20,.22) 72%, rgba(28,25,20,.12) 100%);
}
.hero-inner { padding-block: clamp(4rem, 12vh, 8rem); max-width: 44rem; }
.hero .eyebrow { color: var(--gold); }
.hero .eyebrow::before { background: var(--gold); }
.hero h1 {
  color: #fff; font-size: clamp(2.3rem, 1.3rem + 4.6vw, 4.4rem);
  line-height: 1.05; margin-bottom: 1.1rem; text-wrap: balance;
}
.hero p.sub { color: rgba(255,255,255,.92); font-size: clamp(1.05rem, .98rem + .6vw, 1.3rem); max-width: 40rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-meta { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; color: rgba(255,255,255,.85); font-size: .9rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: .5rem; }
.hero-meta svg { width: 18px; height: 18px; color: var(--gold); flex: none; }

/* ---------- Intro ---------- */
.intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.intro-copy h2 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.7rem); }
.intro-points { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1rem; }
.intro-points li { display: flex; gap: .85rem; align-items: flex-start; }
.intro-points svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: .15rem; }
.intro-points strong { color: var(--ink-soft); }
.intro-figure { position: relative; }
.intro-figure img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.intro-figure .tag {
  position: absolute; left: -14px; bottom: 28px; background: var(--charcoal); color: var(--on-dark);
  padding: .9rem 1.2rem; border-radius: var(--radius); font-family: var(--ff-serif); font-size: 1.05rem; box-shadow: var(--shadow);
}
@media (max-width: 820px) { .intro-grid { grid-template-columns: 1fr; } .intro-figure { order: -1; } .intro-figure .tag { left: 12px; } }

/* ---------- Services ---------- */
.services { background: var(--stone); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--ivory-2); border: 1px solid var(--stone-line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--taupe); }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 1.5rem 1.5rem 1.75rem; }
.card-body h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.card-body p { color: var(--muted); font-size: .97rem; margin: 0; }
.card-num { font-family: var(--ff-serif); color: var(--taupe); font-size: .95rem; letter-spacing: .1em; }

/* ---------- Gallery ---------- */
.gallery-grid { columns: 3 260px; column-gap: 1.25rem; margin-top: 3rem; }
.gallery-grid figure {
  margin: 0 0 1.25rem; break-inside: avoid; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--stone-line); position: relative; background: var(--stone);
}
.gallery-grid img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-grid figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.5rem 1rem .9rem;
  background: linear-gradient(transparent, rgba(28,25,20,.75));
  color: #fff; font-size: .85rem; letter-spacing: .02em;
  opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.gallery-grid figure:hover figcaption { opacity: 1; transform: translateY(0); }

/* ---------- Process ---------- */
.process { position: relative; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .process-grid { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 1.5rem; border-top: 2px solid var(--stone-line); transition: border-color .3s var(--ease); }
.step:hover { border-top-color: var(--accent); }
.step .n { font-family: var(--ff-serif); font-size: 2.6rem; color: var(--taupe); line-height: 1; display: block; margin-bottom: .75rem; }
.step h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Why (editorial dark band) ---------- */
.why { background: var(--charcoal); color: var(--on-dark); }
.why .eyebrow { color: var(--gold); }
.why .eyebrow::before { background: var(--gold); }
.why-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.why h2 { color: #fff; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.7rem); }
.why p { color: var(--on-dark-mut); }
.why-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; }
@media (max-width: 560px) { .why-list { grid-template-columns: 1fr; } }
.why-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--on-dark); font-size: .97rem; }
.why-list svg { width: 20px; height: 20px; color: var(--gold); flex: none; margin-top: .1rem; }
.why-figure img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 820px) { .why-grid { grid-template-columns: 1fr; } .why-figure { order: -1; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-figure img { width: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-copy h2 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.7rem); }
.about-owner { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--stone-line); }
.about-owner .name { font-family: var(--ff-serif); font-size: 1.2rem; color: var(--ink-soft); }
.about-owner .role { color: var(--muted); font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--charcoal-2); color: var(--on-dark); text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); }
.cta-band p { color: var(--on-dark-mut); max-width: 48ch; margin-inline: auto; }
.cta-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------- Service area + contact ---------- */
.contact { background: var(--stone); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h2 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.6rem); }
.info-list { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: .2rem; }
.info-list .k { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: .1rem; }
.info-list a, .info-list address { color: var(--ink-soft); font-style: normal; font-size: 1.05rem; }
.info-list a:hover { color: var(--accent); }

/* Map */
.map-card { margin-top: 2rem; border: 1px solid var(--stone-line); border-radius: var(--radius); overflow: hidden; background: var(--ivory-2); }
.map-visual {
  aspect-ratio: 16 / 8; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 1.5rem; gap: .75rem;
  background:
    repeating-linear-gradient(45deg, rgba(138,122,99,.06) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, #E7DFD1, #EFE9DE);
  color: var(--ink-soft);
}
.map-visual svg.pin { width: 40px; height: 40px; color: var(--accent); }
.map-visual .addr { font-family: var(--ff-serif); font-size: 1.1rem; }

/* Form */
.form-card { background: var(--ivory-2); border: 1px solid var(--stone-line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.form-card h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); }
.form-card > p { color: var(--muted); margin-bottom: 1.5rem; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .4rem; letter-spacing: .02em; }
.field .req { color: var(--accent); }
.field input, .field textarea {
  width: 100%; font-family: var(--ff-sans); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--stone-line); border-radius: var(--radius);
  padding: .8rem .9rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(117,102,79,.15); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:user-invalid { border-color: #b23b2e; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.form-actions { margin-top: 1.25rem; }
.form-actions .btn { width: 100%; }
.form-note { margin-top: .9rem; font-size: .82rem; color: var(--muted); text-align: center; }
.error-message { color: #b23b2e; margin-top: 5px; font-size: 14px; }

/* Success */
#form-success { display: none; text-align: center; padding: 1rem 0; }
#form-success .check { width: 64px; height: 64px; margin: 0 auto 1.25rem; color: var(--accent); }
#form-success h3 { font-size: 1.5rem; }
#form-success p { color: var(--muted); max-width: 36ch; margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: var(--on-dark-mut); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-family: var(--ff-serif); font-size: 1.25rem; color: #fff; margin-bottom: .75rem; display: inline-flex; align-items: center; gap: .6rem; }
.footer-brand .mark { width: 26px; height: 26px; }
.site-footer h4 { color: var(--on-dark); font-family: var(--ff-sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 1rem; font-weight: 600; }
.site-footer p, .site-footer address { font-style: normal; font-size: .95rem; line-height: 1.7; margin: 0; color: var(--on-dark-mut); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-links a { color: var(--on-dark-mut); font-size: .95rem; }
.footer-links a:hover { color: var(--gold); }
.site-footer a { color: var(--on-dark-mut); }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(243,238,228,.14); font-size: .85rem; color: var(--on-dark-mut); }

/* ---------- Scroll reveal (progressive enhancement) ---------- */
/* Visible by default. JS adds .reveal-on to <html> only when supported. */
@media (prefers-reduced-motion: no-preference) {
  .reveal-on [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal-on [data-reveal].is-visible { opacity: 1; transform: none; }
  .reveal-on [data-reveal][data-delay="1"] { transition-delay: .08s; }
  .reveal-on [data-reveal][data-delay="2"] { transition-delay: .16s; }
  .reveal-on [data-reveal][data-delay="3"] { transition-delay: .24s; }
}
@media print {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .site-header, .nav-toggle, .hero-actions, .cta-actions { position: static; }
}

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--charcoal); color: #fff; padding: .75rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Focus-visible baseline */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}
