/* Clairen Haus — homepage styles
   Brand: Ivory #FAF8F5 · Dusty Rose #C79AA1 · Blush #E9D4D6 · Taupe #B39A86 · Bronze #7A5B3F · Espresso #3E2F28
   Type: Jost (UI and body). The Cinzel wordmark lives in the logo SVGs. */

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

:root {
  --ivory: #FAF8F5;
  --ivory-deep: #F3EEE8;
  --rose: #C79AA1;
  --blush: #E9D4D6;
  --blush-soft: #F4E8E9;
  --taupe: #B39A86;
  --bronze: #7A5B3F;
  --espresso: #3E2F28;
  --text: #3E2F28;
  --text-soft: #5E4D44;   /* 7.6:1 on ivory */
  --line: #E4DAD0;
  --font: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1160px;
  --radius: 6px;
  --focus: 0 0 0 3px var(--ivory), 0 0 0 5px var(--bronze);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.2; color: var(--espresso); }
p, ul, ol, dl, figure { margin: 0; }
a { color: var(--bronze); }
a:hover { color: var(--espresso); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 2rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--espresso); color: var(--ivory); padding: .75rem 1.25rem; border-radius: var(--radius); text-decoration: none; }
.skip-link:focus { top: 1rem; }

/* Buttons: espresso with ivory text (12.4:1) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: .7rem 1.4rem;
  font-family: var(--font); font-size: 1rem; font-weight: 500; line-height: 1.2;
  text-decoration: none; text-align: center;
  border: 2px solid var(--espresso); border-radius: var(--radius);
  cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--espresso); color: var(--ivory); }
.btn-primary:hover { background: #2A1F1A; border-color: #2A1F1A; color: var(--ivory); }
.btn-lg { min-height: 52px; padding: .85rem 1.75rem; font-size: 1.0625rem; }
.text-link { color: var(--espresso); font-weight: 500; text-decoration: underline; text-decoration-color: var(--rose); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.text-link:hover { text-decoration-color: var(--espresso); }

.eyebrow { font-size: 1rem; font-weight: 500; color: var(--bronze); margin-bottom: .75rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(250, 248, 245, .96); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 2rem; min-height: 84px; }
.brand { flex: none; display: inline-flex; padding: .25rem 0; }
.brand img { width: 200px; height: auto; }
.site-nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.nav-list a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem; color: var(--espresso); text-decoration: none; font-size: 1rem; }
.nav-list a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--rose); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-list-cta { display: none; }
.header-cta { flex: none; }
.nav-toggle { display: none; }

/* Hero */
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(540px, min(85vh, 54vw), 820px); padding: 4rem 0; overflow: hidden; background: var(--ivory); }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(250, 248, 245, .7) 0%, rgba(250, 248, 245, .4) 30%, rgba(250, 248, 245, 0) 50%); pointer-events: none; }
.hero-media picture { display: block; width: 100%; height: 100%; }
.hero-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% 8%; }
.hero-inner { width: 100%; }
.hero-copy { max-width: min(34rem, calc(46vw - max(2rem, (100vw - var(--wrap)) / 2 + 2rem))); }
.hero h1 { font-size: clamp(2.25rem, 4.2vw, 3.4rem); font-weight: 500; letter-spacing: -.01em; margin-bottom: 1.5rem; }
.lead { font-size: 1.1875rem; line-height: 1.7; color: var(--text-soft); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 2.25rem; }
.problems { max-width: 46rem; margin: -1rem 0 3rem; }
.problems-heading { font-size: 1.125rem; margin-bottom: .5rem; }
.problem-list { list-style: none; padding: 0; }
.problem-list li { position: relative; padding: .55rem 0 .55rem 1.5rem; border-bottom: 1px solid rgba(122, 91, 63, .15); }
.problem-list li:last-child { border-bottom: 0; }
.problem-list li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); }

/* Sections */
.section { padding: 5.5rem 0; }
.section-intro { max-width: 46rem; margin-bottom: 3rem; }
.section-intro h2 { font-size: clamp(1.75rem, 2.8vw, 2.25rem); margin-bottom: 1rem; }
.section-intro p { color: var(--text-soft); font-size: 1.125rem; }

.approach { background: var(--ivory-deep); }
.approach-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; counter-reset: approach; }
.approach-steps li { counter-increment: approach; border-top: 2px solid var(--taupe); padding-top: 1.25rem; }
.approach-steps h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.approach-steps h3::before { content: counter(approach) ". "; color: var(--bronze); }
.approach-steps p { color: var(--text-soft); }

/* Services: one anchor, two branches */
.anchor-service {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3rem;
  background: var(--espresso); color: var(--ivory);
  border-radius: 10px; padding: 3.25rem;
}
.anchor-service h3 { color: var(--ivory); font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: .75rem; }
.anchor-service h4 { color: var(--ivory); font-size: 1.125rem; margin-bottom: 1rem; }
.service-tag { display: inline-block; background: var(--blush); color: var(--espresso); font-weight: 500; font-size: .9375rem; padding: .3rem .8rem; border-radius: 999px; margin-bottom: 1.25rem; }
.anchor-lead { font-size: 1.25rem; color: var(--blush); margin-bottom: 1rem; }
.anchor-main p:not(.service-tag):not(.anchor-lead) { color: #EFE7E0; margin-bottom: 2rem; }
.anchor-service .btn-primary { background: var(--ivory); color: var(--espresso); border-color: var(--ivory); }
.anchor-service .btn-primary:hover { background: var(--blush); border-color: var(--blush); color: var(--espresso); }
.anchor-detail { border-left: 1px solid rgba(233, 212, 214, .3); padding-left: 3rem; }
.anchor-service .check-list li { color: #EFE7E0; }
.anchor-service .check-list li::before { border-color: var(--rose); }

.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 1.75rem; margin-bottom: .6rem; }
.check-list li::before { content: ""; position: absolute; left: .2rem; top: .5rem; width: .45rem; height: .8rem; border: solid var(--bronze); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.branch { position: relative; margin: 0 0 0 3.25rem; padding: 2.75rem 0 0 3rem; border-left: 2px solid var(--taupe); }
.branch-label { position: relative; font-weight: 500; color: var(--bronze); margin-bottom: 2rem; }
.branch-label::before { content: ""; position: absolute; left: -3rem; top: .8rem; width: 2.25rem; height: 2px; background: var(--taupe); }
.branch-service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 2.5rem; padding: 2.5rem 0; border-top: 1px solid var(--line); }
.branch-service:last-child { padding-bottom: 0; }
.branch-head h3 { font-size: 1.625rem; margin-bottom: .6rem; }
.branch-lead { color: var(--bronze); font-weight: 500; font-size: 1.0625rem; }
.branch-body > p { color: var(--text-soft); margin-bottom: 1.25rem; }

.product-feature {
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start;
  margin-top: 2rem; padding: 1.75rem 2rem;
  background: #fff; border: 1px solid var(--blush); border-radius: 8px;
}
.product-mark { width: 56px; height: 56px; }
.product-tag { font-size: .9375rem; font-weight: 500; color: var(--bronze); margin-bottom: .25rem; }
.product-feature h4 { font-size: 1.375rem; margin-bottom: .6rem; }
.product-feature p:not(.product-tag) { color: var(--text-soft); margin-bottom: 1rem; }

/* Digital services: separate, lighter */
.digital { background: var(--blush-soft); }
.digital-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 4rem; align-items: start; }
.digital .section-intro { margin-bottom: 0; }
.digital-items { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.digital-item { border-top: 2px solid var(--rose); padding-top: 1.25rem; }
.digital-item h3 { font-size: 1.3125rem; margin-bottom: .5rem; }
.digital-item p { color: var(--text-soft); }

/* Process */
.process-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.process-steps li { position: relative; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--blush); color: var(--espresso); font-weight: 600; margin-bottom: 1rem; }
.process-steps h3 { font-size: 1.1875rem; margin-bottom: .4rem; }
.process-steps p { color: var(--text-soft); }

/* About */
.about { background: var(--ivory-deep); }
.about-layout { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 4.5rem; align-items: center; }
.about-photo img { border-radius: 10px; width: 100%; }
.about-copy h2 { font-size: clamp(1.75rem, 2.8vw, 2.25rem); margin-bottom: 1.25rem; }
.about-copy p:not(.eyebrow):not(.tagline):not(.about-sign) { color: var(--text-soft); font-size: 1.125rem; margin-bottom: 1rem; }
.about-sign { margin-top: 1.5rem; font-weight: 500; }
.tagline { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--taupe); font-size: 1.125rem; color: var(--bronze); font-weight: 500; }

/* Contact */
.contact { background: var(--ivory); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 4.5rem; align-items: start; }
.contact-copy h2 { font-size: clamp(1.75rem, 2.8vw, 2.25rem); margin-bottom: 1rem; }
.contact-copy > p { color: var(--text-soft); font-size: 1.125rem; margin-bottom: 2rem; }
.contact-details > div { padding: .9rem 0; border-top: 1px solid var(--line); }
.contact-details dt { font-weight: 500; }
.contact-details dd { margin: 0; color: var(--text-soft); }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 2.5rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 500; margin-bottom: .4rem; }
.req { color: var(--bronze); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--espresso);
  background: var(--ivory); border: 1px solid #CDBFB2; border-radius: var(--radius);
  padding: .75rem .9rem; min-height: 48px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(199, 154, 161, .45); }
.field [aria-invalid="true"] { border-color: #A3343F; box-shadow: 0 0 0 1px #A3343F; }
.field-hint { font-size: .9375rem; color: var(--text-soft); margin-top: .35rem; }
.field-error { display: none; font-size: .9375rem; color: #9B2C37; margin-top: .35rem; }
.field [aria-invalid="true"] ~ .field-error { display: block; }
.form-required-note { font-size: .9375rem; color: var(--text-soft); margin-bottom: 1.25rem; }
.form-submit { width: 100%; }
.form-submit[disabled] { opacity: .7; cursor: wait; }
.form-status { display: none; margin-top: 1.25rem; padding: .9rem 1rem; border-radius: var(--radius); }
.form-status.success { display: block; background: #EAF2EA; color: #24502A; }
.form-status.error { display: block; background: #FBECEC; color: #8A2530; }

/* Footer */
.site-footer { background: var(--espresso); color: #EFE7E0; padding: 4rem 0 2rem; }
.site-footer a { color: #EFE7E0; }
.site-footer a:hover { color: var(--blush); }
.footer-top { display: flex; justify-content: space-between; gap: 3rem; flex-wrap: wrap; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(233, 212, 214, .2); }
.footer-brand img { width: 280px; margin-bottom: 1.75rem; }
.footer-brand address { font-style: normal; line-height: 1.8; }
.footer-nav ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: .4rem 3rem; }
.footer-nav a { text-decoration: none; display: inline-block; padding: .3rem 0; }
.footer-nav a:hover { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem; font-size: .9375rem; }
.footer-legal { list-style: none; padding: 0; display: flex; gap: 1.5rem; }

/* Tablet */
@media (min-width: 961px) and (max-width: 1199px) {
  .hero { align-items: flex-start; padding: 3rem 0; }
  .hero h1 { margin-bottom: 1.1rem; }
  .hero .lead { font-size: 1.0625rem; line-height: 1.6; }
  .hero-actions { margin-top: 1.5rem; gap: 1rem 1.5rem; }
}

@media (max-width: 1080px) {
  .header-cta { display: none; }
  .nav-list-cta { display: list-item; margin-left: .5rem; }
}
@media (max-width: 960px) {
  .anchor-service, .digital-layout, .about-layout, .contact-layout { grid-template-columns: 1fr; }
  .hero { display: block; min-height: 0; padding: 0; }
  .hero-inner { padding-top: 3.5rem; padding-bottom: 2.5rem; }
  .hero-copy { max-width: 40rem; }
  .hero-media { position: static; z-index: auto; }
  .hero-media::after { display: none; }
  .hero-img { height: auto; aspect-ratio: 4 / 3; object-position: 88% 20%; }
  .anchor-detail { border-left: 0; padding-left: 0; border-top: 1px solid rgba(233, 212, 214, .3); padding-top: 2rem; }
  .branch-service { grid-template-columns: 1fr; gap: 1rem; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; }
  .about-layout { gap: 3rem; }
  .about-photo { max-width: 400px; }
  .contact-layout { gap: 3rem; }
}

/* Mobile */
@media (max-width: 820px) {
  .header-inner { min-height: 72px; gap: 1rem; }
  .brand img { width: 168px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: .5rem .9rem;
    font: inherit; font-weight: 500; color: var(--espresso); background: transparent;
    border: 1px solid var(--espresso); border-radius: var(--radius); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: var(--espresso); position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-list {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line); padding: .5rem 2rem 1.5rem;
  }
  .nav-list.is-open { display: flex; }
  .nav-list a:not(.btn) { min-height: 52px; padding: 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
  .nav-list-cta { margin: 1.25rem 0 0; }
  .nav-list-cta .btn { width: 100%; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 84px; }
  body { font-size: 1rem; }
  .wrap { padding: 0 1.25rem; }
  .nav-list { padding: .5rem 1.25rem 1.5rem; }
  .hero-inner { padding-top: 2.75rem; padding-bottom: 2rem; }
  .hero h1 { font-size: 2.125rem; }
  .lead { font-size: 1.0625rem; }
  .hero-actions .btn { width: 100%; }
  .hero-img { aspect-ratio: 4 / 5; object-position: 72% center; }
  .section { padding: 4rem 0; }
  .section-intro { margin-bottom: 2.25rem; }
  .section-intro h2, .about-copy h2, .contact-copy h2 { font-size: 1.75rem; }
  .approach-steps, .process-steps, .digital-items { grid-template-columns: 1fr; gap: 1.75rem; }
  .anchor-service { padding: 2rem 1.4rem; gap: 2rem; }
  .anchor-service .btn { width: 100%; }
  .branch { margin-left: .75rem; padding-left: 1.4rem; padding-top: 2.25rem; }
  .branch-label::before { left: -1.4rem; width: 1rem; }
  .product-feature { grid-template-columns: 1fr; padding: 1.5rem 1.25rem; gap: 1rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 1.5rem 1.25rem; }
  .footer-nav ul { grid-template-columns: 1fr 1fr; gap: .25rem 1.5rem; }
  .footer-brand img { width: 240px; }
}
