/*
 * Mai Beauty — Luxury-Refined × Organic
 * Nagelstudio · Rote Str. 7, Lüneburg
 */

/* === Theme Overrides === */
:root {
  --paper: #F5F0EB;
  --paper-d: #EDE7E0;
  --ink: #1A1A1A;
  --ink-s: #4A4540;
  --accent: #8B9A6B;
  --accent-d: #6B7A4B;
  --secondary: #C5A572;
  --muted: #8A8580;
  --line: #DDD5CC;

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
  --radius: 0;
  --container: 1200px;
}

/* === Selection === */
::selection {
  background: var(--accent);
  color: var(--paper);
}

/* === Noise Overlay === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* === Masthead Overrides === */
.masthead {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.masthead .brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.masthead nav a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

/* === Section Wrapper === */
.section {
  position: relative;
  padding: 6rem var(--pad-x);
  max-width: var(--container);
  margin: 0 auto;
  overflow: hidden;
}

/* === Section Number (Marginalia) === */
.section-num {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
  display: block;
}

/* === Background Ghost Text === */
.ghost-text {
  position: absolute;
  font-family: var(--font-display);
  font-size: 28rem;
  font-weight: 300;
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  white-space: nowrap;
  z-index: 0;
}

/* === Hero === */
.hero {
  padding: 10rem var(--pad-x) 6rem;
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}

.hero .ghost-text {
  top: -2rem;
  right: -8rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 14ch;
  margin-bottom: 2rem;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--ink-s);
  max-width: 42ch;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-meta {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-meta .rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-meta .rating .stars {
  color: var(--secondary);
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.hero-divider {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin: 3rem 0 0;
}

/* === Bento Services Grid === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.service-card {
  background: var(--paper-d);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--ink-s);
  line-height: 1.65;
}

.service-card .service-tag {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  display: block;
}

/* Bento layout — asymmetric */
.service-card:nth-child(1) { grid-column: 1 / 8; grid-row: 1; }
.service-card:nth-child(2) { grid-column: 8 / 13; grid-row: 1; }
.service-card:nth-child(3) { grid-column: 1 / 5; grid-row: 2; }
.service-card:nth-child(4) { grid-column: 5 / 9; grid-row: 2; }
.service-card:nth-child(5) { grid-column: 9 / 13; grid-row: 2; }
.service-card:nth-child(6) { grid-column: 1 / 6; grid-row: 3; }
.service-card:nth-child(7) { grid-column: 6 / 13; grid-row: 3; }

/* Accent card */
.service-card--accent {
  background: var(--accent);
  color: var(--paper);
}
.service-card--accent p { color: rgba(245,240,235,0.8); }
.service-card--accent .service-tag { color: rgba(245,240,235,0.6); }

/* Gold card */
.service-card--gold {
  background: var(--secondary);
  color: var(--paper);
}
.service-card--gold p { color: rgba(245,240,235,0.85); }
.service-card--gold .service-tag { color: rgba(245,240,235,0.6); }

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card:nth-child(n) {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

/* === Inverted Section (About/Philosophy) === */
.section--inverted {
  background: var(--ink);
  color: var(--paper);
  max-width: none;
  padding: 8rem var(--pad-x);
}

.section--inverted .section-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.section--inverted .section-num {
  color: rgba(245,240,235,0.4);
}

.section--inverted .ghost-text {
  color: var(--paper);
}

.about-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.about-headline em {
  font-style: italic;
  color: var(--secondary);
}

.about-text {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(245,240,235,0.75);
}

.about-text p + p {
  margin-top: 1.25rem;
}

.about-detail {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245,240,235,0.15);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,240,235,0.4);
}

@media (max-width: 768px) {
  .section--inverted .section-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* === Öffnungszeiten === */
.hours-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: start;
}

.hours-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hours-table {
  width: 100%;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.hours-row:last-child {
  border-bottom: none;
}

.hours-day {
  font-family: var(--font-body);
  font-weight: 500;
}

.hours-time {
  color: var(--ink-s);
}

.hours-closed {
  color: var(--muted);
  font-style: italic;
}

.hours-note {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hours-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* === Kontakt + Map === */
.kontakt-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.kontakt-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 2rem;
}

.kontakt-info {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--ink-s);
}

.kontakt-info strong {
  color: var(--ink);
  font-weight: 600;
}

.kontakt-info a {
  color: var(--accent);
  transition: color 0.2s;
}
.kontakt-info a:hover {
  color: var(--accent-d);
}

.kontakt-social {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.kontakt-social a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.15rem;
  transition: color 0.2s, border-color 0.2s;
}
.kontakt-social a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.map-wrap {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 65%;
  overflow: hidden;
}

.map-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.6) contrast(1.05);
}

@media (max-width: 768px) {
  .kontakt-layout {
    grid-template-columns: 1fr;
  }
  .map-wrap {
    padding-bottom: 80%;
  }
}

/* === CTA Section === */
.cta-section {
  text-align: center;
  padding: 7rem var(--pad-x);
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.cta-headline em {
  font-style: italic;
  color: var(--accent);
}

.cta-sub {
  font-size: 1rem;
  color: var(--ink-s);
  max-width: 50ch;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* === Footer Overrides === */
.footer {
  background: var(--paper);
  color: var(--ink-s);
}

/* === Scroll Reveal Animations === */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }
.reveal-d6 { transition-delay: 0.6s; }
.reveal-d7 { transition-delay: 0.7s; }

/* === Separator Line === */
.sep {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  height: 1px;
  background: var(--line);
}

/* === Button Overrides === */
.btn-primary {
  background: var(--accent);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 2rem;
}
.btn-primary:hover {
  background: var(--accent-d);
  transform: translateY(-1px);
}

.btn-ghost {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-color: var(--line);
}

/* === Legal page font overrides === */
.legal h1 {
  font-family: var(--font-display);
}
.legal h2 {
  font-family: var(--font-display);
}
