/* ==========================================================================
   Grand River Renovations — styles.css
   Vanilla, no build. Tokens first, then layout. Warm + light, one bold accent.
   ========================================================================== */

:root {
  /* Color (see DESIGN-RATIONALE.md) */
  --paper:   #F5EFE6;   /* warm beige canvas */
  --paper-2: #FBF7F0;   /* lighter card surface */
  --ink:     #262524;   /* charcoal text */
  --navy:    #1E3A5F;   /* dependable blue — structure */
  --navy-2:  #16293f;   /* deeper navy for footer */
  --teal:    #1FAE9C;   /* bright accent — slider handle, icons (graphics only) */
  --teal-d:  #0b7a6a;   /* deep teal — AA-safe: text-on-light 4.6:1 + white-on-teal CTA 5.3:1 */
  --teal-deeper: #096457; /* CTA hover */
  --amber:   #F2B705;   /* micro-highlight only */
  --stone:   #8A8F98;   /* neutral grey — light text on DARK bg only */
  --muted:   #5e626b;   /* muted text on LIGHT bg (AA ~5.4:1) */
  --line:    #E4DBCC;   /* hairline on paper */

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono:    "Space Mono", ui-monospace, "Courier New", monospace;

  /* Rhythm */
  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --shadow: 0 18px 40px -24px rgba(30, 58, 95, 0.45);
}

/* ----- reset-ish ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }

/* ----- shared utilities ----- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.kicker {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal-d);
  margin: 0 0 1rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--amber); display: inline-block; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section__head { max-width: 42rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.section__head p { color: #5b5852; font-size: 1.075rem; margin: .9rem 0 0; }

/* focus visibility (quality floor) */
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .98rem; letter-spacing: .01em; line-height: 1;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--teal-d); color: #fff; }
.btn--primary:hover { background: var(--teal-deeper); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--paper-2); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--navy); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand small { display: block; font-family: var(--mono); font-size: .56rem; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; font-weight: 400; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { font-weight: 500; font-size: .96rem; color: var(--ink); position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--teal); transition: width .2s ease; }
.nav a:hover::after { width: 100%; }
.header-cta { display: inline-flex; align-items: center; gap: .5rem; }
.nav .header-cta { display: none; } /* in-menu CTA shows on mobile only; desktop uses .header-cta--desktop */
.nav-toggle { display: none; background: none; border: 0; padding: .55rem; margin-right: -.55rem; color: var(--navy); min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2.5rem, 5vw, 4rem); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.hero h1 em { font-style: italic; color: var(--teal-d); }
.hero p.lede { font-size: 1.2rem; color: #514e48; max-width: 34rem; margin: 1.4rem 0 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; }
.trust { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; margin-top: 2.4rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.trust__item { display: flex; align-items: center; gap: .6rem; font-size: .92rem; color: #4f4c46; font-weight: 500; }
.trust__item svg { width: 20px; height: 20px; color: var(--teal); flex: none; }

/* ==========================================================================
   Before/After slider (signature)
   ========================================================================== */
.ba {
  position: relative; aspect-ratio: 16 / 10; width: 100%;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  user-select: none; touch-action: pan-y; background: var(--navy);
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__img--before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba__line {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 3px; background: rgba(255,255,255,.9); transform: translateX(-50%); pointer-events: none;
  box-shadow: 0 0 0 1px rgba(30,58,95,.25);
}
.ba__handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: var(--teal); border: 3px solid #fff;
  display: grid; place-items: center; color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.3);
}
.ba__handle svg { width: 22px; height: 22px; }
/* measuring-tape tick rule under the line */
.ba__line::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 14px; transform: translateX(-50%);
  background-image: repeating-linear-gradient(to bottom, rgba(255,255,255,.55) 0 2px, transparent 2px 12px);
  opacity: .5;
}
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba__tag {
  position: absolute; bottom: 14px; font-family: var(--mono); font-size: .66rem; letter-spacing: .16em;
  text-transform: uppercase; color: #fff; background: rgba(30,58,95,.78); padding: .35rem .7rem; border-radius: 999px;
  pointer-events: none; backdrop-filter: blur(4px);
}
.ba__tag--before { left: 14px; }
.ba__tag--after { right: 14px; }

/* ==========================================================================
   Services — floor-tile grid
   ========================================================================== */
.services { background: var(--paper-2); border-block: 1px solid var(--line); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tile { background: var(--paper-2); padding: 1.8rem 1.5rem; min-height: 188px; display: flex; flex-direction: column; gap: .8rem; transition: background .2s ease; }
.tile:hover { background: #fff; }
.tile__icon { width: 40px; height: 40px; color: var(--navy); }
.tile__icon svg { width: 100%; height: 100%; }
.tile h3 { font-size: 1.28rem; }
.tile p { margin: 0; font-size: .92rem; color: #5b5852; }
.tile--accent { background: var(--navy); color: #fff; }
.tile--accent:hover { background: var(--navy-2); }
.tile--accent .tile__icon, .tile--accent p { color: #fff; }
.tile--accent p { opacity: .8; }

/* ==========================================================================
   Work / gallery
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filter {
  background: transparent; border: 1.5px solid var(--line); color: var(--ink);
  padding: .5rem 1.1rem; border-radius: 999px; font-size: .9rem; font-weight: 500; transition: all .18s ease;
}
.filter:hover { border-color: var(--navy); }
.filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.shot { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--line); aspect-ratio: 4 / 3; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.shot:hover img { transform: scale(1.05); }
.shot__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem .9rem .8rem;
  background: linear-gradient(to top, rgba(22,41,63,.82), transparent);
  color: #fff; font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease;
}
.shot:hover .shot__cap, .shot:focus-within .shot__cap { opacity: 1; transform: none; }
.shot--tall { grid-row: span 2; aspect-ratio: 3 / 4; }

/* before/after band */
.ba-band { background: var(--navy); color: #fff; }
.ba-band .section__head h2 { color: #fff; }
.ba-band .section__head p { color: rgba(255,255,255,.72); }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.ba-pair .ba { box-shadow: 0 24px 50px -30px rgba(0,0,0,.7); }
.ba-pair figcaption { margin-top: .9rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); }

/* ==========================================================================
   About / why-us
   ========================================================================== */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; }
.reasons { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: 1.3rem; }
.reasons li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.reasons .num { font-family: var(--mono); color: var(--teal-d); font-size: .9rem; padding-top: .15rem; }
.reasons strong { font-family: var(--display); font-size: 1.18rem; display: block; margin-bottom: .15rem; }
.reasons p { margin: 0; color: #5b5852; font-size: .96rem; }

/* ==========================================================================
   Process
   ========================================================================== */
.process { background: var(--paper-2); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding-top: 2.2rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--mono); color: var(--teal-d); font-size: .85rem; position: absolute; top: 0; left: 0;
}
.step::after { content: ""; position: absolute; top: 6px; left: 2.6rem; right: -.75rem; height: 1px; background: var(--line); }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.step p { margin: 0; font-size: .94rem; color: #5b5852; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.quote { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.quote__stars { color: var(--amber); letter-spacing: .15em; margin-bottom: .8rem; font-size: 1rem; }
.quote p { font-size: 1.02rem; margin: 0 0 1.1rem; }
.quote cite { font-style: normal; font-weight: 600; color: var(--navy); font-size: .92rem; }
.quote cite span { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; font-family: var(--mono); letter-spacing: .04em; }
.placeholder-note { font-family: var(--mono); font-size: .72rem; color: var(--stone); margin-top: 1.2rem; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { background: var(--navy); color: #fff; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact h2 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); }
.contact .lede { color: rgba(255,255,255,.78); margin: 1rem 0 2rem; font-size: 1.08rem; }
.contact__phone {
  display: inline-flex; align-items: center; gap: .8rem; font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #fff; margin-bottom: 1.5rem;
}
.contact__phone svg { width: 32px; height: 32px; color: var(--teal); }
.contact__meta { display: grid; gap: 1rem; margin-top: 1.5rem; }
.contact__meta div { display: flex; gap: .7rem; align-items: flex-start; color: rgba(255,255,255,.85); font-size: .96rem; }
.contact__meta svg { width: 20px; height: 20px; color: var(--teal); flex: none; margin-top: .15rem; }

.form { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.3rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .4rem; letter-spacing: .01em; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; font: inherit; color: var(--ink); transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); outline: none; }
.field textarea { resize: vertical; min-height: 96px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form .btn { width: 100%; margin-top: .4rem; }
.form__note { font-size: .8rem; color: var(--muted); margin: .9rem 0 0; text-align: center; }
.form__status { font-size: .92rem; margin-top: 1rem; padding: .8rem 1rem; border-radius: 10px; display: none; }
.form__status--ok { display: block; background: #e3f5f1; color: var(--teal-d); border: 1px solid var(--teal); }
.form__status--err { display: block; background: #fbeaea; color: #a33; border: 1px solid #d99; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-2); color: rgba(255,255,255,.7); padding-block: 3rem 2rem; }
.site-footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: rgba(255,255,255,.62); } /* light on navy (overrides --muted) */
.site-footer__links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-footer__links a:hover { color: var(--teal); }
.site-footer__legal { width: 100%; border-top: 1px solid rgba(255,255,255,.12); margin-top: 1.5rem; padding-top: 1.5rem; font-size: .8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero__grid, .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero__grid { gap: 2.5rem; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .quotes { grid-template-columns: 1fr; }
  .ba-pair { grid-template-columns: 1fr; }
  .about img { aspect-ratio: 16/10; max-height: 360px; width: 100%; }
}
@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.5rem;
    transform: translateY(-130%); transition: transform .28s ease; box-shadow: var(--shadow);
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .header-cta { display: inline-flex; margin-top: 1rem; }
  .nav-toggle { display: inline-flex; }
  .header-cta--desktop { display: none; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .shot--tall { grid-row: span 1; aspect-ratio: 4/3; }
  .steps { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .trust { gap: 1rem 1.5rem; }
}
