/* MAISON AURÈLE — layout & site-specific styles, built on theme.css tokens */

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 2rem; }

.skip-link {
  position: absolute; left: 1rem; top: 0; transform: translateY(-150%);
  background: var(--brand); color: var(--brand-contrast);
  padding: .8rem 1.2rem; z-index: 999; border-radius: var(--radius);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translateY(1rem); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-header.scrolled { background: color-mix(in srgb, var(--bg) 92%, transparent); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }

.brand-mark {
  font-family: var(--font-heading); font-size: 1.4rem; letter-spacing: .18em; font-weight: 600;
  color: var(--fg); white-space: nowrap;
}
.brand-mark span { color: var(--brand); }

.main-nav { display: flex; align-items: center; gap: 2.4rem; }
.main-nav a:not(.btn) {
  color: var(--fg); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
  position: relative; padding-bottom: 4px;
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--brand);
  transition: right var(--dur) var(--ease);
}
.main-nav a:not(.btn):hover::after { right: 0; }
.main-nav a:not(.btn):hover { opacity: 1; }
.nav-cta { padding: .6rem 1.3rem; }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px;
  background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 100%; height: 1.5px; background: var(--fg); transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.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(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; filter: saturate(.9) brightness(.62); }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,7,16,.55) 0%, rgba(6,9,20,.45) 40%, rgba(6,9,20,.85) 100%),
    linear-gradient(90deg, rgba(6,9,22,.75) 0%, rgba(6,9,22,.25) 55%, rgba(6,9,22,.55) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 0 2rem; text-align: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .28em; font-size: .78rem; font-weight: 600; color: var(--accent);
  margin: 0 0 1.1rem;
}
.hero h1 { color: #fbf7ee; margin-bottom: .6rem; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.hero-sub { color: #e7e2d5; font-size: 1.1rem; max-width: 540px; margin: 0 auto 2.2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero .btn-ghost { border-color: rgba(244,240,230,.55); color: #fbf7ee; }
.hero .btn-ghost:hover { background: rgba(244,240,230,.12); border-color: #fbf7ee; }

.scroll-cue {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%); z-index: 1;
  width: 26px; height: 42px; border: 1px solid rgba(244,240,230,.5); border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
}
.scroll-cue::before {
  content: ""; position: absolute; inset: -10px; /* enlarge the tap target without changing the visual pill */
}
.scroll-cue span {
  position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 2px; background: var(--accent);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue { 0% { opacity: 1; top: 7px; } 70% { opacity: 0; top: 22px; } 100% { opacity: 0; top: 22px; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue span { animation: none; } }

/* ---------- Sections (generic) ---------- */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-head { max-width: 640px; margin: 0 0 3.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-lede { color: var(--muted); font-size: 1.05rem; }

/* ---------- Collection ---------- */
.collection { background: var(--bg); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.product-card { overflow: hidden; display: flex; flex-direction: column; }
.product-media { aspect-ratio: 1 / 1; overflow: hidden; background: #0a0e1a; position: relative; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); filter: saturate(1.03) brightness(.97); }
.product-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 42%, transparent 38%, rgba(5,8,18,.5) 100%);
  mix-blend-mode: multiply;
}
.product-media::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(205,164,94,.12);
}
.product-card:hover .product-media img { transform: scale(1.06); }
.product-body { padding: 1.5rem 1.6rem 1.8rem; border-top: 1px solid var(--line); }
.product-body h3 { font-size: 1.3rem; margin-bottom: .35rem; color: var(--fg); }
.product-material { color: var(--muted); font-size: .88rem; margin: 0 0 .9rem; letter-spacing: .01em; }
.product-price { color: var(--brand); font-family: var(--font-heading); font-size: 1.3rem; font-weight: 600; margin: 0; }

/* ---------- Savoir-Faire ---------- */
.savoir-faire { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.savoir-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 4.5rem; align-items: center; }
.savoir-media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-3); }
.savoir-media img { width: 100%; height: 100%; object-fit: cover; }
.savoir-content p { color: var(--muted); }
.savoir-list { list-style: none; margin: 2.2rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1.4rem; }
.savoir-list li { display: flex; gap: 1.1rem; align-items: flex-start; }
.savoir-num { font-family: var(--font-heading); color: var(--brand); font-size: 1.1rem; font-weight: 600; flex-shrink: 0; width: 2.2rem; }
.savoir-list strong { display: block; color: var(--fg); font-size: 1.02rem; margin-bottom: .2rem; }
.savoir-list p { margin: 0; font-size: .92rem; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--bg); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.testimonial-card { padding: 2.2rem 2rem; display: flex; flex-direction: column; gap: 1.2rem; }
.testimonial-card::before {
  content: "“"; font-family: var(--font-heading); font-size: 3rem; line-height: 1; color: var(--brand); opacity: .8;
}
.testimonial-card blockquote { margin: 0; font-size: 1.02rem; font-style: italic; color: var(--fg); line-height: 1.7; }
.testimonial-card figcaption { color: var(--muted); font-size: .85rem; letter-spacing: .02em; }

/* ---------- Appointment ---------- */
.appointment { background: var(--surface); border-top: 1px solid var(--line); }
.appointment-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; }
.appointment-copy p { color: var(--muted); font-size: 1.02rem; }
.appointment-form { padding: 2.2rem; display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: flex; flex-direction: column; gap: .45rem; }
.form-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-row label { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.form-row input, .form-row textarea {
  background: var(--bg); border: 1px solid var(--line); color: var(--fg); border-radius: var(--radius);
  padding: .8rem .9rem; font: 500 .96rem/1.4 var(--font-body); transition: border-color var(--dur) var(--ease);
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--brand); outline: none; }
.form-row textarea { resize: vertical; min-height: 90px; }
.form-submit { margin-top: .4rem; justify-content: center; }
.form-submit[disabled] { opacity: .65; cursor: progress; }
.form-status { min-height: 1.2em; font-size: .9rem; margin: 0; }
.form-status.success { color: #8fd19e; }
.form-status.error { color: #e78b8b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 3.5rem 0 2rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2rem; padding-bottom: 2rem; }
.footer-nav { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); font-size: .88rem; letter-spacing: .04em; }
.footer-nav a:hover { color: var(--fg); }
.footer-bottom { display: flex; flex-direction: column; gap: .9rem; padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: .78rem; }
.credits-label { display: block; margin-bottom: .5rem; }
.credits-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.credits-list a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; line-height: 1.6; }
.credits-list a:hover { color: var(--fg); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .savoir-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .savoir-media { aspect-ratio: 16 / 10; }
  .appointment-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 1.3rem; }
  .main-nav {
    position: fixed; top: 84px; left: 0; right: 0; bottom: 0; z-index: 90;
    background: var(--bg); flex-direction: column; justify-content: flex-start; align-items: stretch;
    padding: 2rem 1.5rem; gap: 0; transform: translateX(100%); visibility: hidden;
    transition: transform var(--dur) var(--ease), visibility 0s linear var(--dur);
  }
  .main-nav.open { transform: translateX(0); visibility: visible; transition: transform var(--dur) var(--ease), visibility 0s linear 0s; }
  .main-nav a:not(.btn) { padding: 1.1rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .main-nav .nav-cta { margin-top: 1.5rem; text-align: center; justify-content: center; }
  .nav-toggle { display: flex; }
  .product-grid { grid-template-columns: 1fr; }
  .form-row.two-col { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 420px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
