/* ==========================================================
   Esthétique Andréa Jalbert — Landing page
   Vanilla CSS, mobile-first, dark luxe × cosmic gold
   ========================================================== */

:root {
  --bg: #0A0A0A;
  --bg-soft: #141414;
  --bg-elev: #1a1a1a;
  --gold: #D4AF37;
  --gold-warm: #C9A961;
  --gold-soft: rgba(212, 175, 55, 0.15);
  --gold-line: rgba(212, 175, 55, 0.22);
  --cosmic: #1E3A8A;
  --azure: #3B82F6;
  --text: #F5F5F4;
  --text-muted: rgba(245, 245, 244, 0.7);
  --text-dim: rgba(245, 245, 244, 0.45);

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-script: "Great Vibes", "Brush Script MT", cursive;
  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;

  --maxw: 1200px;
  --radius: 8px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin: 0 0 1rem;
  font-weight: 400;
  text-transform: uppercase;
}

.h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.divider {
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0.5rem 0 1.5rem;
}

.muted { color: var(--text-muted); }
.small { font-size: 0.875rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-warm));
  color: #0A0A0A;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold-line);
}
.btn-ghost:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
}

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.75rem; }
.btn-lg { padding: 1.1rem 2.5rem; font-size: 0.9rem; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  transition: background 0.3s var(--ease), backdrop-filter 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--gold-line);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text);
}
.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--gold); }
.nav-links .btn { text-transform: uppercase; }

.nav-links a:not(.btn) {
  position: relative;
  padding-bottom: 6px;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.6);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease), opacity 0.3s var(--ease);
  opacity: 0;
}
.nav-links a:not(.btn).active {
  color: var(--gold);
}
.nav-links a:not(.btn).active::after {
  width: 22px;
  opacity: 1;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem 3rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  will-change: opacity;
  animation: pulse 10s ease-in-out infinite;
}
.halo-blue {
  width: 50vw;
  height: 50vw;
  max-width: 700px;
  max-height: 700px;
  top: -10%;
  right: -10%;
  background: radial-gradient(circle, var(--cosmic), transparent 70%);
  opacity: 0.35;
}
.halo-gold {
  width: 45vw;
  height: 45vw;
  max-width: 600px;
  max-height: 600px;
  bottom: -15%;
  left: -10%;
  background: radial-gradient(circle, var(--gold), transparent 70%);
  opacity: 0.12;
  filter: blur(150px);
  animation-delay: -5s;
}

.grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: overlay;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-logo {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 24px rgba(212, 175, 55, 0.25));
}

.hero-title {
  margin: 0 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-weight: 400;
}
.hero-title .eyebrow { margin: 0; }
.hero-title .signature,
.signature {
  font-family: var(--font-script);
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  font-weight: 400;
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.25);
  letter-spacing: 0.01em;
  display: inline-block;
}

.lede strong {
  color: var(--gold);
  font-weight: 500;
}

.lede {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-muted);
  font-weight: 300;
  margin: 0 0 2rem;
  max-width: 32rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.note {
  font-style: italic;
  color: rgba(212, 175, 55, 0.65);
  font-size: 0.85rem;
  margin: 0;
}

.hero-portrait {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 4px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 55%, transparent 92%);
  mask-image: radial-gradient(ellipse at center, black 55%, transparent 92%);
}
.portrait-halo {
  position: absolute;
  inset: -5%;
  background: radial-gradient(circle at 60% 40%, var(--cosmic) 0%, transparent 60%);
  filter: blur(80px);
  opacity: 0.55;
  z-index: 0;
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: 6rem 2rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.section-head {
  text-align: center;
  margin-bottom: 3rem;
}
.section-head .divider {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- About ---------- */
.about-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.about-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}
.about-content p:last-child { margin-bottom: 0; }
.about-content strong {
  color: var(--text);
  font-weight: 500;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.service-card {
  background: var(--bg-soft);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem;
  color: var(--text);
  text-align: left;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-soft), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.service-card > * { position: relative; z-index: 1; }
.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
  color: var(--gold);
  letter-spacing: 0.01em;
}
.service-card p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}
.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.1);
}
.service-card:hover::before { opacity: 1; }

.services-meta {
  text-align: center;
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: var(--bg-soft);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}
.faq-item[open] { border-color: var(--gold); }
.faq-item summary {
  cursor: pointer;
  padding: 1.1rem 1.5rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.5rem;
  font-family: var(--font-sans);
  font-weight: 300;
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--gold); }
.faq-item p {
  padding: 0 1.5rem 1.25rem;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}
.faq-item strong { color: var(--gold); font-weight: 500; }

/* ---------- Locations ---------- */
.locations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 4rem;
}
.location-card {
  background: var(--bg-soft);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  transition: border-color 0.3s var(--ease);
}
.location-card:hover { border-color: var(--gold); }
.location-card h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--gold);
  margin: 0 0 0.25rem;
}
.location-card p,
.location-card address {
  margin: 0;
  color: var(--text);
  font-style: normal;
}
.location-card .btn { margin-top: 0.75rem; }

/* ---------- Contact ---------- */
.contact {
  text-align: center;
}
.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-size: 1rem;
  transition: color 0.2s var(--ease);
}
.contact-link:hover { color: var(--gold); }
.contact-link svg { color: var(--gold); }

.socials {
  display: flex;
  gap: 0.75rem;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  color: var(--gold);
  transition: all 0.3s var(--ease);
}
.icon-btn:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--azure);
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  padding: 2rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  border-top: 1px solid var(--gold-line);
  text-align: center;
}
.footer img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  opacity: 0.7;
}
.footer-credit {
  flex-basis: 100%;
  font-size: 0.72rem;
  color: var(--text-dim);
  opacity: 0.65;
  letter-spacing: 0.04em;
}
.footer-credit a {
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer-credit a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold-line);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Keyframes ---------- */
@keyframes pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.5; }
}

/* ---------- Responsive ---------- */
/* ---------- Accessibility utility ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .locations-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .hero { padding: 8rem 3rem 4rem; }
  .hero-inner {
    grid-template-columns: 1.3fr 1fr;
    gap: 4rem;
  }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 7rem 3rem; }
}

@media (max-width: 680px) {
  .nav { padding: 0.75rem 1rem; }
  .nav-brand span { display: none; }
  .nav-links { gap: 0.75rem; }
  .nav-links a:not(.btn) { display: none; }
  .hero-portrait { order: -1; }
  .hero-portrait img { max-width: 320px; }
}

/* ---------- Motion reduction ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
