/* Rae Studio — base styles */
:root {
  --cream: #f8f5f2;
  --sand: #e8ded6;
  --rose: #d6a5a4;
  --charcoal: #2b2b2b;
  --gold: #c8a96a;
  --white: #fffdfb;
  --muted: #6c645f;
  --border: rgba(43, 43, 43, 0.12);
  --shadow: 0 24px 60px -28px rgba(43, 43, 43, 0.35);
  --radius: 1.75rem;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1200px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--rose); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 0.6em; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.4rem; margin-bottom: 0.4em; }
p { margin: 0 0 1rem; }
em { color: var(--rose); font-style: normal; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 40rem; }
.meta { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.eyebrow {
  font-size: 0.68rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--charcoal); color: var(--white); padding: 0.75rem 1.25rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(248, 245, 242, 0.85);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 0.9rem 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.brand span { font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0.14em; text-transform: uppercase; }
.primary-nav ul { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  position: relative; padding-bottom: 4px;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--rose); transition: width 0.3s ease;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--charcoal); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: 999px;
  padding: 0.65rem; cursor: pointer; width: 42px; height: 42px;
}
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--charcoal); margin: 3px auto; transition: transform 0.3s ease, opacity 0.3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 999px; padding: 0.95rem 1.9rem; border: 1px solid transparent;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer;
  transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.btn:hover { transform: translateY(-2px); color: inherit; }
.btn-sm { padding: 0.7rem 1.3rem; font-size: 0.65rem; }
.btn-primary { background: var(--charcoal); color: var(--white); }
.btn-primary:hover { background: var(--rose); color: var(--white); box-shadow: var(--shadow); }
.btn-outline { border-color: rgba(43, 43, 43, 0.25); color: var(--charcoal); background: transparent; }
.btn-outline:hover { border-color: var(--rose); color: var(--rose); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--charcoal); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* Sections */
.section { padding: 5rem 0; }
.section-warm { background: var(--sand); }
.section-head { max-width: 620px; margin: 0 auto 3rem; text-align: center; }
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--sand), var(--cream)); padding: 9rem 0 5rem; }
.hero::before, .hero::after {
  content: ""; position: absolute; width: 26rem; height: 26rem; border-radius: 50%; filter: blur(90px); opacity: 0.5;
}
.hero::before { background: var(--rose); top: -8rem; right: -6rem; }
.hero::after { background: var(--gold); bottom: -10rem; left: -6rem; }
.hero-grid { position: relative; display: grid; gap: 3.5rem; align-items: center; grid-template-columns: 1.05fr 1fr; }
.hero-media { position: relative; }
.hero-img { border-radius: 2.5rem; box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.hero-img-sm {
  position: absolute; bottom: -2.5rem; left: -1.5rem; width: 11rem; aspect-ratio: 1;
  object-fit: cover; border-radius: 1.75rem; border: 5px solid var(--cream); box-shadow: var(--shadow);
}
.stats { display: flex; flex-wrap: wrap; gap: 2.5rem; margin: 2.75rem 0 0; }
.stats dt { font-family: var(--serif); font-size: 1.7rem; }
.stats dd { margin: 0.25rem 0 0; font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.page-hero { padding: 9rem 0 3rem; background: linear-gradient(180deg, var(--sand), var(--cream)); }

.grid { display: grid; gap: 1.75rem; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; gap: 3rem; grid-template-columns: 1fr 1fr; align-items: start; }

.card {
  display: flex; flex-direction: column; overflow: hidden; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card-media { overflow: hidden; }
.card-media img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; transition: transform 0.9s ease; }
.card:hover .card-media img { transform: scale(1.08); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.card-body .eyebrow { margin-bottom: 0.5rem; }
.card-body .btn { margin-top: 1.4rem; width: 100%; }
.card-body .muted { flex: 1; font-size: 0.92rem; }

.feature {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; display: flex; flex-direction: column; gap: 0.3rem;
}
.feature .btn { margin-top: 1.25rem; align-self: flex-start; }
.quote {
  margin: 0; padding: 2rem; background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); font-family: var(--serif); font-size: 1.15rem;
}
.quote footer { margin-top: 1rem; font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

.list { padding-left: 1.1rem; color: var(--muted); }
.list li { margin-bottom: 0.5rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { background: var(--white); border-radius: var(--radius); padding: 2rem; border: 1px solid var(--border); }
.steps span { font-family: var(--serif); font-size: 1.5rem; color: var(--gold); }
.rounded { border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }

.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 2.5rem; }
.chip {
  border: 1px solid var(--border); background: transparent; border-radius: 999px;
  padding: 0.55rem 1.3rem; font: inherit; font-size: 0.68rem; letter-spacing: 0.18em;
  text-transform: uppercase; cursor: pointer; transition: all 0.3s ease;
}
.chip:hover { border-color: var(--rose); color: var(--rose); }
.chip.is-active { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }
.filter-empty { text-align: center; color: var(--muted); margin-top: 2rem; }

.gallery-item { margin: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.gallery-item img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.gallery-item figcaption { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.25rem; font-size: 0.9rem; }
.gallery-item figcaption span { color: var(--muted); font-size: 0.8rem; }
.gallery-item .btn { margin-top: 0.6rem; }

.faq { border-bottom: 1px solid var(--border); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 1.25rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--gold); }
.faq[open] summary::after { content: "\2013"; }
.faq p { margin: 0.75rem 0 0; }

/* Form */
.form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.field { display: grid; gap: 0.4rem; margin-bottom: 1.1rem; }
.field label { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; color: inherit; background: var(--cream); border: 1px solid var(--border);
  border-radius: 0.9rem; padding: 0.8rem 1rem; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--rose); outline: none; }
.hidden-field { position: absolute; left: -9999px; }
.form-status { margin-top: 1rem; font-size: 0.9rem; color: var(--gold); min-height: 1.2em; }

/* CTA + footer */
.cta { background: var(--charcoal); color: var(--white); padding: 5rem 0; }
.cta-inner { text-align: center; }
.cta .lead { color: rgba(255, 253, 251, 0.72); margin: 0 auto; }
.cta .btn-primary { background: var(--white); color: var(--charcoal); margin-top: 2rem; }
.cta .btn-primary:hover { background: var(--rose); color: var(--white); }

.site-footer { background: var(--sand); border-top: 1px solid var(--border); }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.3fr 1fr 1fr; padding: 4rem 1.25rem; }
.footer-title { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.footer-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.7rem; font-size: 0.92rem; }
.footer-bar { border-top: 1px solid var(--border); }
.footer-bar p { margin: 0; padding: 1.35rem 1.25rem; text-align: center; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 45;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--charcoal); color: var(--white); box-shadow: var(--shadow);
  transition: transform 0.3s ease, background 0.3s ease;
}
.wa-float:hover { transform: translateY(-3px); background: var(--rose); color: var(--white); }
