/* Tokens from DESIGN.md — match homepage DC chrome */
:root {
  --color-primary: #6d7356;
  --color-primary-dark: #3f4a33;
  --color-background: #f1ebdf;
  --color-surface: #f4efe3;
  --color-text: #3d4632;
  --color-muted: #525b44;
  --color-accent: #6d7356;
  --color-border: rgba(109, 115, 86, 0.22);
  --max-width: 1080px;
  --radius: 14px;
  --radius-pill: 999px;
  --shadow: 0 10px 30px rgba(63, 74, 51, 0.08);
  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-primary-dark); }
a:hover { color: var(--color-primary); }

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Header — homepage wordmark + nav, not factory favicon lockup */
.site-header {
  background: rgba(241, 235, 223, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(109, 115, 86, 0.18);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 6vw;
  width: 100%;
  box-sizing: border-box;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
  text-decoration: none;
  color: var(--color-primary-dark);
  flex-shrink: 0;
}

.brand-line {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #3f4a33;
}

.brand-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #6d7356;
  white-space: nowrap;
}

.brand-rule {
  flex: 1 1 16px;
  min-width: 16px;
  max-width: 48px;
  height: 1px;
  background: #9aa07f;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #6d7356;
  border-radius: 999px;
  padding: 11px 16px;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  color: #3f4a33;
  min-height: 44px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}

.nav a {
  text-decoration: none;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4b5339;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--color-primary-dark);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border: 1px solid #6d7356;
  background: transparent;
  color: #3f4a33;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  box-sizing: border-box;
}

.nav-cta:hover,
.nav-cta[aria-current="page"] {
  background: #6d7356;
  color: #f4efe3;
}

@media (max-width: 1024px) {
  .header-inner { padding: 14px 22px; gap: 12px; }
  .nav { gap: 18px; }
}

@media (max-width: 720px) {
  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "brand brand brand"
      "toggle . cta"
      "nav nav nav";
    align-items: center;
    row-gap: 10px;
  }
  .brand { grid-area: brand; justify-self: start; }
  .nav-toggle { display: inline-flex; align-items: center; grid-area: toggle; justify-self: start; }
  .nav-cta { grid-area: cta; padding: 11px 16px; justify-self: end; }
  .nav {
    display: none;
    grid-area: nav;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    width: 100%;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 12px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(109, 115, 86, 0.18);
  }
  .brand-line { font-size: 18px; letter-spacing: 0.18em; }
  .brand-sub { letter-spacing: 0.32em; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: #fff;
  padding: 3.5rem 0 3rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.15;
  max-width: 18ch;
}

.hero .lede {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--color-primary);
  color: #f4efe3;
  border-color: var(--color-primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
}
.btn-primary:hover { background: var(--color-primary-dark); color: #f4efe3; }

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* Sections */
.section { padding: 2.75rem 0; }
.section-alt { background: var(--color-surface); }

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-primary-dark);
}

.section p { margin: 0 0 1rem; color: var(--color-muted); }
.section p:last-child { margin-bottom: 0; }

.grid-3 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 1.5rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.35rem;
  box-shadow: none;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--color-primary-dark);
}

.card p { margin: 0; font-size: 0.95rem; }

/* Contact form */
.form-grid {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}

label {
  display: block;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  color: #7a8161;
}

/* GL-022: branded fields — never raw browser chrome on customer forms */
.studio-field,
.form-grid input,
.form-grid textarea,
.form-grid select,
input.studio-field,
textarea.studio-field,
select.studio-field {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font: inherit;
  color: var(--color-primary-dark);
  background: #fff;
  color-scheme: light;
}

.studio-field:focus,
.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
  outline: 3px solid rgba(0, 0, 0, 0.12);
  outline-offset: 1px;
  border-color: var(--color-primary);
}

.form-grid input[type='date'],
.form-grid input[type='time'],
.form-grid input[type='datetime-local'],
input.studio-field[type='date'],
input.studio-field[type='time'] {
  padding-right: 2.5rem;
}

.form-grid select,
select.studio-field {
  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 fill='%23333' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
}

textarea,
textarea.studio-field,
.form-grid textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-grid .btn {
  width: 100%;
  margin-top: 6px;
  text-align: center;
}

.honeypot { position: absolute; left: -9999px; }

.form-error {
  display: none;
  margin-top: 0.5rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  background: rgba(180, 60, 40, 0.08);
  border: 1px solid rgba(180, 60, 40, 0.35);
  font-size: 0.95rem;
  color: var(--color-primary-dark);
}

.form-error[hidden] { display: none !important; }

.form-error:not([hidden]) { display: block; }

.form-consent {
  margin: 0.25rem 0 0.75rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-muted);
}

.form-consent a { text-decoration: underline; }

/* Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(244, 239, 227, 0.88);
  padding: 2rem 0;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.site-footer a { color: #fff; }
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer .container > p:first-child {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-links a { text-decoration: none; opacity: 0.9; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }

/* Cookie consent (GA4) */
.cookie-consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1000;
  padding: 1rem;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent-inner {
  max-width: var(--max-width, 72rem);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.cookie-consent-title {
  margin: 0;
  width: 100%;
  font-weight: 700;
  color: var(--color-text);
}

.cookie-consent-desc {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cookie-consent-actions .btn {
  font-size: 0.9rem;
  padding: 0.65rem 1.1rem;
  cursor: pointer;
}

.cookie-consent-actions .cookie-consent-accept {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.cookie-consent-actions .cookie-consent-accept:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
}

.cookie-consent-actions .cookie-consent-reject {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.cookie-consent-actions .cookie-consent-reject:hover {
  background: var(--color-background);
  border-color: var(--color-text-muted);
  color: var(--color-text);
}

@media (max-width: 640px) {
  .cookie-consent-actions {
    width: 100%;
  }

  .cookie-consent-actions .btn {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* Utility */
.page-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #6d7356;
}

.page-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.12;
  color: var(--color-primary-dark);
}

.prose { max-width: 65ch; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  margin: 2rem 0 0.5rem;
  color: var(--color-primary-dark);
}
.prose ul { padding-left: 1.25rem; color: var(--color-muted); }
.prose li { margin-bottom: 0.5rem; }

.centered { text-align: center; padding: 4rem 0; }

/* Studio credit (care.footer_credit) */
.footer-studio {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border, rgba(0, 0, 0, 0.08));
  display: flex;
  justify-content: center;
}

.studio-credit {
  display: inline-flex;
  text-decoration: none;
  color: var(--color-text-muted, #5c6570);
}

.studio-credit:hover {
  color: var(--color-primary, #0d1113);
}

.studio-credit-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
}

.studio-credit-line {
  letter-spacing: 0.02em;
}

.studio-credit-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.studio-credit-brand {
  font-weight: 700;
  font-size: 0.95rem;
}

/* Dark site-footer: stacked studio credit, build stamp, cookie row */
.site-footer .footer-studio {
  flex: 1 1 100%;
  width: 100%;
  margin-top: 0.25rem;
  border-top-color: rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: center;
}

.site-footer .studio-credit {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer .studio-credit:hover {
  color: #fff;
}

.site-footer .studio-credit-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-footer .container > span {
  flex: 1 1 100%;
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
}

.site-footer .container > span a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
}

/* Optional social CTAs (hidden when manifest URLs empty) */
.social-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 0;
}

.social-cta-row[hidden] {
  display: none !important;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid #6d7356;
  border-radius: 999px;
  text-decoration: none;
  color: #3f4a33;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
}

.btn-social:hover {
  border-color: var(--color-primary, #0d1113);
}

.btn-social[hidden] {
  display: none !important;
}
