/* KOC website styles.
   All colors live in :root below. Use the variables everywhere else, never a hex value.
   Sections: tokens, base, components (wordmark, buttons, cards, slots), page sections, footer. */

:root {
  /* Brand colors (from KOC-Brand-Guide.html) */
  --deep-harbor: #1D3A44;
  --aged-brass: #B08D57;
  --clay: #B8664A;
  --sea-glass: #A9C3BC;
  --linen: #F6F1E8;
  --sand: #E7DECF;
  --stone: #6F6A5F;
  --charcoal: #26292B;
  --mist: #B9C6C3; /* muted text on Deep Harbor, from the guide's cover */

  /* Roles */
  --bg: var(--linen);
  --bg-alt: var(--sand);
  --text: var(--charcoal);
  --heading: var(--deep-harbor);
  --muted: var(--stone);

  /* Type */
  --display: 'Cormorant Garamond', Georgia, serif;
  --body: 'DM Sans', Arial, Helvetica, sans-serif;

  /* Spacing (8px grid) */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s6: 48px;
  --s8: 64px;
  --s12: 96px;
  --section-pad: var(--s8);
  --wrap: 1120px;
  --gutter: 24px;
  --radius: 0;
  --ease: 200ms ease;
}

@media (min-width: 768px) {
  :root { --section-pad: var(--s12); }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--deep-harbor); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--linen); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link {
  position: absolute; left: var(--s2); top: -100px; z-index: 100;
  background: var(--deep-harbor); color: var(--linen);
  padding: 12px 20px; font: 500 15px/1 var(--body); text-decoration: none;
}
.skip-link:focus { top: var(--s2); }

/* Type */
.eyebrow {
  font: 500 13px/1.4 var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: var(--s1);
}
.on-dark .eyebrow { color: var(--mist); }
h1, h2, h3 { font-family: var(--display); color: var(--heading); text-wrap: balance; }
h1 { font-weight: 600; font-size: 40px; line-height: 1.1; margin-bottom: var(--s3); }
h2 { font-weight: 600; font-size: 32px; line-height: 1.15; margin-bottom: var(--s2); }
h3 { font-weight: 500; font-size: 26px; line-height: 1.25; margin-bottom: var(--s1); }
@media (min-width: 768px) {
  h1 { font-size: 56px; }
  h2 { font-size: 40px; }
  h3 { font-size: 28px; }
}
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--linen); }
.prose { max-width: 68ch; }
.prose p + p { margin-top: var(--s2); }
.lede { font-size: 19px; }
.caption { font-size: 14px; line-height: 1.5; color: var(--stone); }
.num { font-family: var(--body); font-variant-numeric: lining-nums; }

/* Wordmark (live text, from the brand guide) */
.wm {
  --wm-fg: var(--deep-harbor);
  --wm-rule: var(--aged-brass);
  --wm-sub: var(--stone);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-size: 17px;
  line-height: 1;
  text-decoration: none;
}
.wm .n {
  font: 600 1em/1 var(--display);
  letter-spacing: 0.18em;
  margin-right: -0.18em;
  text-transform: uppercase;
  color: var(--wm-fg);
  white-space: nowrap;
}
.wm .r { height: 1px; align-self: stretch; background: var(--wm-rule); margin: 0.6em 0 0.65em; }
.wm .s {
  font: 500 0.4em/1 var(--body);
  letter-spacing: 0.42em;
  margin-right: -0.42em;
  text-transform: uppercase;
  color: var(--wm-sub);
}
.on-dark .wm { --wm-fg: var(--linen); --wm-sub: var(--mist); }

/* Buttons */
.btn {
  display: inline-block;
  font: 500 15px/1 var(--body);
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border: 1px solid var(--deep-harbor);
  border-radius: var(--radius);
  background: var(--deep-harbor);
  color: var(--linen);
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 0 0 0 var(--aged-brass);
  transition: box-shadow var(--ease);
}
.btn:hover { box-shadow: inset 0 -3px 0 0 var(--aged-brass); }
.on-dark .btn { background: var(--linen); color: var(--deep-harbor); border-color: var(--linen); }
.text-link {
  font: 500 15px/1.4 var(--body);
  letter-spacing: 0.04em;
  color: var(--deep-harbor);
  text-decoration: underline;
  text-decoration-color: var(--aged-brass);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-decoration-thickness var(--ease);
}
.text-link:hover { text-decoration-thickness: 2px; }
.on-dark .text-link { color: var(--linen); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); margin-top: var(--s4); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--sand);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 72px; }
.menu-toggle { display: none; }
.nav-list { display: flex; flex-direction: column; gap: var(--s1); }
.nav-list a:not(.btn) {
  font: 500 15px/1 var(--body);
  color: var(--deep-harbor);
  text-decoration: none;
  padding: 10px 0;
  display: inline-block;
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease);
}
.nav-list a:not(.btn):hover, .nav-list a[aria-current="page"] { border-bottom-color: var(--aged-brass); }

/* Collapse nav on small screens (only when JS is available) */
@media (max-width: 959px) {
  .js .menu-toggle {
    display: inline-block;
    font: 500 15px/1 var(--body);
    letter-spacing: 0.04em;
    background: transparent;
    color: var(--deep-harbor);
    border: 1px solid var(--deep-harbor);
    border-radius: var(--radius);
    padding: 12px 20px;
    cursor: pointer;
  }
  .site-header .wrap { flex-wrap: wrap; }
  .js .site-nav { display: none; flex-basis: 100%; padding-bottom: var(--s3); }
  .js .site-nav.open { display: block; }
  .nav-list .btn { margin-top: var(--s1); text-align: center; }
  html:not(.js) .site-header .wrap { padding-block: var(--s2); }
  html:not(.js) .site-nav { flex-basis: 100%; }
  html:not(.js) .nav-list { flex-direction: row; flex-wrap: wrap; gap: 0 var(--s3); }
}
@media (min-width: 960px) {
  .site-nav { margin-left: auto; }
  .nav-list { flex-direction: row; align-items: center; gap: var(--s3); }
  .nav-list .btn { margin-left: var(--s1); }
}

/* Sections */
.section { padding-block: var(--section-pad); background: var(--bg); }
.section.alt { background: var(--bg-alt); }
.section.on-dark { background: var(--deep-harbor); color: var(--linen); }
.section-head { max-width: 62ch; margin-bottom: var(--s6); }

/* Arch pattern (Aged Brass line, 8 to 15% opacity) */
.has-arch { position: relative; overflow: hidden; }
.has-arch > .wrap { position: relative; }
.arch {
  position: absolute; inset: 0; width: 100%; height: 100%;
  color: var(--aged-brass); opacity: 0.1;
  pointer-events: none;
}

/* Photo slot (marked empty, no placeholder photos) */
.slot {
  display: grid; place-content: center; gap: var(--s1);
  min-height: 280px;
  padding: var(--s3);
  border: 1px solid var(--aged-brass);
  border-radius: var(--radius);
  text-align: center;
  color: var(--stone);
}
.on-dark .slot { color: var(--mist); }
.slot .label { font: 500 13px/1.4 var(--body); letter-spacing: 0.14em; text-transform: uppercase; }
.slot p { max-width: 28ch; margin-inline: auto; font-size: 15px; line-height: 1.5; }

/* Photos (real photography only) */
.photo { aspect-ratio: 4 / 5; max-height: 520px; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* Hero */
.hero { padding-block: var(--s8) var(--s8); }
.hero .grid { display: grid; gap: var(--s6); align-items: center; }
.hero .rule { width: 56px; height: 1px; background: var(--aged-brass); margin-bottom: var(--s3); }
.hero .lede { max-width: 52ch; color: var(--linen); }
.hero .slot { aspect-ratio: 4 / 5; min-height: 0; max-height: 520px; }
@media (min-width: 768px) {
  .hero { padding-block: var(--s12); }
}
@media (min-width: 960px) {
  .hero .grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s8); }
}

/* Statement (the general line about who I represent) */
.statement {
  font: 500 26px/1.35 var(--display);
  color: var(--deep-harbor);
  border-top: 1px solid var(--aged-brass);
  padding-top: var(--s3);
  margin-top: var(--s6);
  max-width: 36ch;
  text-wrap: balance;
}
@media (min-width: 768px) { .statement { font-size: 32px; } }

/* Cards */
.cards { display: grid; gap: var(--s3); }
.card {
  background: var(--sand);
  padding: var(--s4);
  border-radius: var(--radius);
  border-top: 1px solid var(--aged-brass);
}
.card .icon { width: 40px; height: 40px; margin-bottom: var(--s3); fill: none; stroke: var(--deep-harbor); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card .icon .accent { stroke: var(--aged-brass); }
.card p { max-width: 40ch; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card p { max-width: 52ch; }

/* Steps */
.steps { display: grid; gap: var(--s3); counter-reset: step; }
.step { border-top: 1px solid var(--aged-brass); padding-top: var(--s2); }
.step .num { display: block; font: 500 14px/1 var(--body); letter-spacing: 0.14em; color: var(--stone); margin-bottom: var(--s1); }
.step h3 { font-size: 26px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Columns (Why) */
.cols { display: grid; gap: var(--s4) var(--s3); }
.col { border-top: 1px solid var(--sand); padding-top: var(--s2); }
.col h3 { font-size: 26px; }
@media (min-width: 768px) { .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.col p { max-width: 52ch; }
@media (min-width: 900px) { .cols.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.principles .col { border-top-color: var(--aged-brass); }

/* Page hero (inner pages) */
.page-hero { padding-block: var(--s8); }
.page-hero .lede { max-width: 60ch; color: var(--linen); }
@media (min-width: 768px) { .page-hero { padding-block: var(--s12); } }

/* Contact page */
.contact-cards { display: grid; gap: var(--s3); }
@media (min-width: 768px) { .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact-card { background: var(--sand); border-top: 1px solid var(--aged-brass); padding: var(--s4); border-radius: var(--radius); min-width: 0; }
.contact-card .eyebrow { margin-bottom: var(--s2); }
.contact-value { font: 500 24px/1.3 var(--display); color: var(--deep-harbor); overflow-wrap: anywhere; }
@media (min-width: 768px) { .contact-value { font-size: 28px; } }
.contact-value a { text-decoration: underline; text-decoration-color: var(--aged-brass); text-decoration-thickness: 1px; text-underline-offset: 6px; transition: text-decoration-thickness var(--ease); }
.contact-value a:hover { text-decoration-thickness: 2px; }
.contact-value a[href^="tel"] { font-family: var(--body); font-weight: 500; font-size: 22px; letter-spacing: 0.02em; }
.accent { color: var(--clay); }

/* References page: quote cards on Sand with a Brass hairline */
.quote-list { display: grid; gap: var(--s3); max-width: 880px; }
.quote-card { background: var(--sand); border-top: 1px solid var(--aged-brass); padding: var(--s4); border-radius: var(--radius); }
.quote-text { margin: 0 0 var(--s3); font: 500 26px/1.35 var(--display); color: var(--deep-harbor); text-wrap: pretty; }
@media (min-width: 768px) { .quote-text { font-size: 30px; } }
.quote-name { font: 500 15px/1.5 var(--body); letter-spacing: 0.04em; color: var(--charcoal); }
.quote-card .placeholder { font-style: italic; color: var(--charcoal); }
.refs-note { margin-top: var(--s4); }

/* Service list (Services page) */
.service-list { border-top: 1px solid var(--aged-brass); }
.service { display: grid; gap: var(--s1) var(--s6); padding-block: var(--s4); border-bottom: 1px solid var(--aged-brass); }
.service .num { font: 500 14px/1 var(--body); letter-spacing: 0.14em; color: var(--stone); margin-bottom: var(--s1); display: block; }
.service h3, .service h2 { font-family: var(--display); font-weight: 500; font-size: 28px; line-height: 1.25; margin-bottom: 0; }
.service .placeholder { font-size: 15px; }
.closing h2.long { font-size: 32px; max-width: 24ch; margin-inline: auto; margin-bottom: 0; }
@media (min-width: 768px) { .closing h2.long { font-size: 48px; max-width: 28ch; } }
.service p { max-width: 60ch; }
@media (min-width: 768px) {
  .service { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); padding-block: var(--s6); }
}

/* About */
.about-grid { display: grid; gap: var(--s6); align-items: center; }
.about-grid .slot { aspect-ratio: 4 / 5; min-height: 0; max-height: 480px; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s8); }
}
.placeholder { color: var(--stone); font-style: italic; }

/* Closing call to action: the one Clay moment on the page (large text only) */
.closing { text-align: center; }
.closing .prose { margin-inline: auto; }
.closing h2 { font-size: 40px; }
@media (min-width: 768px) { .closing h2 { font-size: 56px; } }
.closing .accent { color: var(--clay); }
.closing .actions { justify-content: center; }

/* Footer */
.site-footer { background: var(--deep-harbor); color: var(--linen); padding-block: var(--s8); }
.site-footer .wrap { display: grid; gap: var(--s6); }
.site-footer a { color: var(--linen); text-underline-offset: 4px; text-decoration-color: var(--aged-brass); }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); }
.footer-nav a { font: 500 15px/1.4 var(--body); padding: 4px 0; }
.footer-meta { font-size: 15px; line-height: 1.6; color: var(--mist); }
.footer-meta a { color: var(--mist); }
.footer-rule { height: 1px; background: var(--aged-brass); opacity: 0.6; }
.site-footer .wm { font-size: 22px; align-self: start; justify-self: start; }
@media (min-width: 900px) {
  .site-footer .wrap { grid-template-columns: auto 1fr auto; align-items: start; gap: var(--s8); }
  .footer-rule { grid-column: 1 / -1; }
}
