/* ===========================================================================
   O.C. Design Group — site styles
   ---------------------------------------------------------------------------
   Edit colors and fonts in the TOKENS block below. Nothing else in this file
   hardcodes a brand color; everything reads from these variables.

   Fonts (Fraunces + Work Sans) load from Google Fonts in includes/header.php.
   =========================================================================== */


/* ---------------------------------------------------------------------------
   1. TOKENS — the only place brand values are defined
   --------------------------------------------------------------------------- */

:root {
  /* Core palette — Hudson Autumn */
  --cream:      #F6EFE4;  /* page background */
  --cream-deep: #EDE3D4;  /* recessed panels, the specialty strip, contact box */
  --paper:      #FDFAF5;  /* form fields, anything that should read as white */
  --ink:        #2E2A24;  /* body text, headings, and the header/footer bars */
  --ink-soft:   #5C544A;  /* secondary text */
  --line:       #DDD1BF;  /* hairlines and borders */
  --rust:       #A4502F;  /* primary accent — buttons, numerals, emphasis */
  --rust-deep:  #7E3B22;  /* button hover, link hover */
  --rust-strip: #8F4527;  /* rust on the deeper cream of the strip — plain
                             --rust only reaches 4.39:1 there, under AA */
  --olive:      #5E6346;  /* eyebrow labels, tagline */
  --clay:       #C98F6B;  /* secondary accent */

  /* Dark areas: the header bar, the process band, the footer.
     These are FIXED values, not derived from the palette above. They must
     never swap with the light tokens — that was the cause of the unreadable
     process band in an earlier draft. */
  --dark:        #2E2A24;
  --dark-soft:   #453F35;
  --on-dark:     #F7F1E7;
  --on-dark-soft:#C4BCAC;
  --dark-rule:   #554E42;
  --dark-accent: #DA8D5C;  /* 5.39:1 on --dark; #C9713F was 4.02 and failed AA */

  /* Type */
  --serif: Fraunces, Georgia, "Times New Roman", serif;
  --sans:  "Work Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}


/* ---------------------------------------------------------------------------
   2. BASE
   --------------------------------------------------------------------------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.7 var(--sans);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "SOFT" 30, "WONK" 1;
  letter-spacing: -.015em;
  margin: 0;
}

h1 { font-size: clamp(2.5rem, 6.5vw, 3.6rem); line-height: 1.08; }

/* The italic is reserved for emphasis in headlines, so it carries meaning
   when it appears. Keeping it on one line stops a single word stranding. */
h1 em, h2 em { color: var(--rust); font-style: italic; white-space: nowrap; }
@media (max-width: 380px) { h1 em, h2 em { white-space: normal; } }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

.wrap { width: min(100% - 2.5rem, 1180px); margin: auto; }

section { padding: 3.25rem 0; }
/* The materials row reads as part of the process story above it, so it sits
   closer to the band than a normal section break. */
#materials { padding-top: 2.75rem; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 3px;
}

.skip-link { position: absolute; left: -999px; }
.skip-link:focus {
  left: 1rem; top: 1rem; z-index: 999;
  background: var(--paper); color: var(--ink); padding: .5rem 1rem;
}

/* Small uppercase label above a heading. */
.eyebrow {
  margin: 0 0 1rem;
  color: var(--olive); font-weight: 600;
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
}


/* ---------------------------------------------------------------------------
   3. HEADER — a dark bar across the top
   --------------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--dark);
  color: var(--on-dark);
}

.nav {
  min-height: 64px;
  display: flex; align-items: center; gap: 1.5rem;
  justify-content: space-between;
}

.wordmark { display: block; flex-shrink: 0; }
.wordmark img { height: 30px; width: auto; }

.nav-links {
  display: none;
  position: absolute; top: 64px; left: 0; right: 0;
  padding: .75rem 1.25rem 1.25rem;
  background: var(--dark-soft);
  border-top: 1px solid var(--dark-rule);
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .5);
  flex-direction: column;
}
.nav-links.open { display: flex; }
.nav-links a { min-height: 44px; display: flex; align-items: center; color: var(--on-dark); }
.nav-links a:hover { color: var(--dark-accent); }

.menu-button {
  margin-left: auto;
  border: 1px solid var(--dark-rule); background: none;
  font: 500 .8rem var(--sans); color: var(--on-dark);
  letter-spacing: .06em; text-transform: uppercase;
  padding: .55rem 1rem; border-radius: 0;
  min-height: 44px; cursor: pointer;
}

.nav-cta {
  display: none;
  background: var(--rust); color: var(--paper);
  padding: .7rem 1.15rem;
  font: 600 .68rem var(--sans);
  letter-spacing: .12em; text-transform: uppercase;
}
.nav-cta:hover { background: var(--rust-deep); }

/* The header button is hidden on phones, so the menu carries it instead. */
.nav-links .menu-cta {
  margin-top: .9rem; justify-content: center;
  background: var(--rust); color: var(--paper);
  padding: .8rem 1.15rem;
  font: 600 .7rem var(--sans);
  letter-spacing: .12em; text-transform: uppercase;
}
.nav-links .menu-cta:hover { background: var(--rust-deep); color: var(--paper); }


/* ---------------------------------------------------------------------------
   4. BUTTONS
   --------------------------------------------------------------------------- */

.button {
  display: inline-block;
  background: var(--rust); color: var(--paper);
  padding: .85rem 1.5rem; border: 1px solid var(--rust); border-radius: 0;
  font: 600 .7rem var(--sans);
  letter-spacing: .12em; text-transform: uppercase;
  min-height: 44px; cursor: pointer;
}
.button:hover { background: var(--rust-deep); border-color: var(--rust-deep); }

.button-ghost {
  background: none; color: var(--ink); border-color: var(--line);
}
.button-ghost:hover { background: none; color: var(--rust); border-color: var(--rust); }


/* ---------------------------------------------------------------------------
   5. HERO
   --------------------------------------------------------------------------- */

.hero { padding: 4rem 0 3.5rem; display: grid; gap: 2.5rem; align-items: center; }

.lede { max-width: 26rem; color: var(--ink-soft); font-size: .98rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 2rem; }

/* Collage: one tall swatch beside two stacked ones. */
.hero-art {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: .4rem;
  aspect-ratio: 16 / 11;
}
.hero-art .sw-tall { grid-row: span 2; }


/* ---------------------------------------------------------------------------
   6. MATERIAL SWATCHES
   Drawn in CSS as stand-ins for photography. Each is a labelled block; to
   use a real photo instead, put an <img> inside the .swatch and delete the
   sw-* class.
   --------------------------------------------------------------------------- */

.swatch {
  position: relative;
  min-height: 7rem;
  overflow: hidden;
}
.swatch span {
  position: absolute; left: .7rem; bottom: .6rem;
  color: #fff;
  font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
}

/* White oak — fine vertical grain over warm tan */
.sw-oak {
  background:
    repeating-linear-gradient(90deg, rgba(120, 80, 40, .16) 0 1px, transparent 1px 7px),
    linear-gradient(160deg, #D6A05C, #C08B48);
}

/* Quartzite — pale veining across mid grey */
.sw-quartzite {
  background:
    linear-gradient(118deg, transparent 38%, rgba(255,255,255,.55) 39.5%, transparent 41%),
    linear-gradient(118deg, transparent 56%, rgba(255,255,255,.4) 57.5%, transparent 59%),
    linear-gradient(160deg, #8E8B86, #74716C);
}

/* Carrara / tile — thin grout grid on near-white */
.sw-carrara, .sw-tile {
  background:
    repeating-linear-gradient(0deg, rgba(150,135,115,.35) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(150,135,115,.35) 0 1px, transparent 1px 34px),
    linear-gradient(160deg, #F3EDE1, #E7DECE);
}
.sw-carrara span, .sw-tile span { color: var(--ink-soft); text-shadow: none; }

/* Unlacquered brass — warm metallic sweep */
.sw-brass {
  background: linear-gradient(135deg, #E3B55F 0%, #C08F35 45%, #E8C578 70%, #B8862E 100%);
}

/* Painted inset — deep cabinet green */
.sw-green { background: linear-gradient(160deg, #57634F, #46503C); }

/* Rift walnut — tighter, darker grain */
.sw-walnut {
  background:
    repeating-linear-gradient(90deg, rgba(50,30,15,.22) 0 1px, transparent 1px 6px),
    linear-gradient(160deg, #9A7150, #7C5A3D);
}

.materials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .4rem;
}


/* ---------------------------------------------------------------------------
   7. SPECIALTY STRIP — four columns, divided by rules
   --------------------------------------------------------------------------- */

.strip { background: var(--cream-deep); border-block: 1px solid var(--line); }
.strip-inner {
  display: grid; grid-template-columns: repeat(2, 1fr);
  padding: 1.75rem 0;
}
.strip-inner > div { padding: .6rem 1.25rem; }
.strip-inner > div + div { border-left: 1px solid var(--line); }
.strip h2 { font-size: 1.35rem; color: var(--rust-strip); }
.strip p { margin: .2rem 0 0; color: var(--ink-soft); font-size: .8rem; }


/* ---------------------------------------------------------------------------
   8. SECTION HEADS
   --------------------------------------------------------------------------- */

.section-head { max-width: 42rem; margin-bottom: 2.25rem; }
.section-head h2, .contact h2 { font-size: clamp(1.9rem, 4.5vw, 2.5rem); line-height: 1.15; }
.section-head > p { color: var(--ink-soft); margin: .6rem 0 0; font-size: .95rem; }


/* ---------------------------------------------------------------------------
   9. SERVICES — numbered cards with material tags
   --------------------------------------------------------------------------- */

.services {
  display: grid; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.services article {
  background: var(--cream);
  padding: 1.6rem 1.5rem 1.4rem;
  display: flex; flex-direction: column;
}
.services i {
  font-style: normal; font-weight: 600;
  font-size: .68rem; letter-spacing: .1em; color: var(--rust);
  margin-bottom: .5rem;
}
.services h3 { font-size: 1.2rem; }
.services p { color: var(--ink-soft); margin: .45rem 0 0; font-size: .88rem; }

.tags {
  list-style: none; margin: 1rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .35rem;
}
.tags li {
  border: 1px solid var(--line);
  padding: .3rem .55rem;
  font-size: .58rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft);
}

/* Pricing note under the services grid. It is not a service, so it does not
   take a card — a seventh card would also leave two empty cells in the grid. */
.services-note {
  margin: 1.5rem 0 0;
  max-width: 44rem;
  color: var(--ink-soft);
  font-size: .92rem;
}


/* ---------------------------------------------------------------------------
   10. PROCESS BAND — full-bleed dark
   Uses the fixed --dark tokens. Do not swap these for --ink / --cream.
   --------------------------------------------------------------------------- */

.process {
  background: var(--dark); color: var(--on-dark);
  padding: 3.5rem 0;
}
.process .section-head h2 { color: var(--on-dark); }
.process .eyebrow { color: var(--on-dark-soft); }
.process ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; }
.process li { border-top: 1px solid var(--dark-accent); padding-top: .9rem; }
.process b {
  display: block;
  font-family: var(--serif); font-size: 1.3rem; font-weight: 400;
  color: var(--dark-accent);
}
.process h3 { margin: .25rem 0 0; color: var(--on-dark); font-size: 1.05rem; }
.process p { margin: .4rem 0 0; color: var(--on-dark-soft); font-size: .82rem; }


/* ---------------------------------------------------------------------------
   11. PROJECTS
   --------------------------------------------------------------------------- */

.portfolio { display: grid; gap: .8rem; }
.tile {
  margin: 0;
  background: var(--cream-deep);
  border: 1px solid var(--line);
  min-height: 15rem;
  display: flex; align-items: flex-end;
}
.tile figcaption {
  font-family: var(--serif); font-style: italic;
  font-size: .95rem; color: var(--ink-soft);
  padding: 1rem 1.15rem;
}


/* ---------------------------------------------------------------------------
   12. CONTACT
   --------------------------------------------------------------------------- */

.contact {
  background: var(--cream-deep);
  border: 1px solid var(--line);
  padding: 2rem; display: grid; gap: 2rem;
}
.contact > div > p { color: var(--ink-soft); margin: .6rem 0 0; font-size: .95rem; }
.contact form { display: grid; gap: .6rem; }
.contact label { font-size: .8rem; font-weight: 500; }
/* The first label is the honeypot — hidden from people, visible to bots. */
.contact form > label:first-child { position: absolute; left: -9999px; }
.contact input,
.contact textarea {
  width: 100%; padding: .8rem;
  border: 1px solid var(--line); background: var(--paper);
  font: inherit; font-size: .92rem; color: var(--ink);
}
.contact textarea { min-height: 7rem; resize: vertical; }
.contact input:focus,
.contact textarea:focus { outline: 2px solid var(--rust); outline-offset: 2px; }
.contact .button { width: 100%; margin-top: .4rem; }
.contact-direct { font-size: .92rem; margin-top: 1.25rem; }
.contact-direct a { border-bottom: 1px solid var(--line); }
.contact-direct a:hover { color: var(--rust); }
.field-note { color: var(--ink-soft); font-size: .76rem; margin: .3rem 0 0; }

.notice { padding: .75rem 1rem; margin: 0 0 1rem; }
.notice.success { background: #E7ECE3; color: #405038; }
.notice.error   { background: #F3E4DE; color: #7C3724; }


/* ---------------------------------------------------------------------------
   13. FOOTER — dark bar to match the header
   --------------------------------------------------------------------------- */

.site-footer {
  margin-top: 3rem;
  background: var(--dark); color: var(--on-dark);
  padding: 2.5rem 0;
}
.footer-inner { display: grid; gap: 1.75rem; }
.site-footer .wordmark img { height: 30px; }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 1.1rem;
  margin-top: 1.1rem; font-size: .82rem;
}
.footer-links a:hover { color: var(--dark-accent); }
.footer-meta { font-size: .85rem; display: grid; gap: .15rem; }
.footer-meta a:hover { color: var(--dark-accent); }
.site-footer small { color: var(--on-dark-soft); font-size: .76rem; line-height: 1.7; margin-top: .6rem; }


/* ---------------------------------------------------------------------------
   14. STUDIO PAGE
   --------------------------------------------------------------------------- */

.studio-hero { padding: 4.5rem 0 1rem; max-width: 45rem; }
.studio-hero h1 { font-size: clamp(2rem, 6vw, 3rem); }
.studio-hero p:last-child { color: var(--ink-soft); }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .3rem; }
.gallery figure {
  margin: 0; min-height: 12rem;
  position: relative; overflow: hidden; background: var(--cream-deep);
}
.gallery img { width: 100%; height: 100%; min-height: 12rem; object-fit: cover; }
.gallery figcaption {
  position: absolute; inset: auto 0 0; padding: 1rem;
  color: var(--paper); background: linear-gradient(transparent, rgba(0,0,0,.6));
  font-family: var(--serif); font-style: italic; font-size: 1rem;
}


/* ---------------------------------------------------------------------------
   15. TABLET AND DESKTOP
   --------------------------------------------------------------------------- */

@media (min-width: 760px) {
  .menu-button { display: none; }
  .nav-links {
    display: flex; position: static;
    padding: 0; border: 0; background: none; box-shadow: none;
    flex-direction: row; gap: 1.6rem; font-size: .85rem;
    margin-left: auto;
  }
  .nav-links .menu-cta { display: none; }
  .nav-cta { display: inline-block; }
  .nav { min-height: 72px; gap: 2.5rem; }
  .wordmark img { height: 34px; }
  .site-footer .wordmark img { height: 34px; }

  .hero { padding: 4.5rem 0 3.5rem; grid-template-columns: 1fr 1.05fr; gap: 3.5rem; }

  .strip-inner { grid-template-columns: repeat(4, 1fr); }

  /* Six cards as two even rows of three. Change this number if you add or
     remove a card, or the grid will show an empty cell. */
  .services { grid-template-columns: repeat(3, 1fr); }

  .process ol { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }

  .materials { grid-template-columns: repeat(6, 1fr); }

  .portfolio { grid-template-columns: repeat(3, 1fr); }

  .contact { grid-template-columns: 1fr 1fr; padding: 3rem; gap: 3rem; }
  .contact .button { width: auto; }

  .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
  .footer-meta { text-align: right; justify-items: end; }
}


/* ---------------------------------------------------------------------------
   16. REDUCED MOTION
   --------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
