/* ============================================================
   Hairstylist Alladin — hair atelier
   Palette: matte black ground, soft off-white, antique gold accent
   Type:    Playfair Display (editorial serif) + Jost (geometric sans)
   ============================================================ */

:root {
  --ground:    #0B0A08;   /* deep matte black */
  --ground-2:  #121009;   /* slightly raised black for the service rows */
  --offwhite:  #EFEDE6;   /* soft off-white (cool, not cream) */
  --ink:       #14110D;   /* crisp near-black text on off-white */
  --accent:    #C3A25A;   /* antique / old gold — used sparingly */
  --accent-dim:#8C7438;   /* muted gold for thin rules */

  --text-on-dark:        #EDEAE2;
  --text-on-dark-muted:  #9A968C;
  --text-on-light-muted: #5A554C;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1120px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --section-y: clamp(5rem, 12vw, 9.5rem);

  /* Drop a licensed photo in here to replace the generated hero backdrop:
     --hero-image: url("hero.jpg"); */
  --hero-image: none;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text-on-dark);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- shared atoms ---------- */
.eyebrow {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin: 0;
}
.eyebrow.gold { color: var(--accent); }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: 0.005em;
  margin: 0.6rem 0 0;
}

.rule {
  width: 64px;
  height: 1px;
  background: var(--accent);
  margin: 1.75rem 0;
}

/* Gold button — the single most deliberate use of the accent */
.btn-gold {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 1.05em 2.4em;
  border: 1px solid var(--accent-dim);
  background: transparent;
  cursor: pointer;
  transition: color 0.4s ease, background-color 0.4s ease, border-color 0.4s ease;
}
.btn-gold:hover,
.btn-gold:focus-visible {
  color: var(--ground);
  background: var(--accent);
  border-color: var(--accent);
}

/* visible keyboard focus everywhere */
a:focus-visible,
.btn-gold:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--ground);
  padding: 0.75rem 1.25rem;
  z-index: 100;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- header ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.4rem, 3vw, 2.4rem) var(--gutter);
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}
.brand-sub {
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-top: 0.45rem;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.5vw, 2.4rem);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.site-nav a { color: var(--text-on-dark-muted); transition: color 0.3s ease; }
.site-nav a:hover { color: var(--text-on-dark); }
.site-nav .nav-book { color: var(--accent); }
.site-nav .nav-book:hover { color: var(--accent); opacity: 0.75; }

/* language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  /* sit above the #book link so a tap can never bleed onto it (mobile) */
  position: relative;
  z-index: 1;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* larger hit area for touch/pointer without changing the flag size */
  min-width: 44px;
  min-height: 44px;
  padding: 0.4rem;
  border: 0;
  background: transparent;
  line-height: 0;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.3s ease;
  /* remove the 300ms tap delay / double-tap zoom on touch devices */
  touch-action: manipulation;
}
.lang-btn:hover { opacity: 0.8; }
.lang-btn.is-active { opacity: 1; }
.lang-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.lang-flag {
  width: 24px;
  height: 16px;
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(237, 234, 226, 0.18);
}
.lang-sep {
  width: 1px;
  height: 13px;
  background: rgba(140, 116, 56, 0.5);
}
/* Arabic toggle: no flag for a language, so the language's own name instead */
.lang-btn-text { padding-inline: 0.55rem; }
.lang-text {
  font-family: "Cairo", var(--sans);
  font-size: 0.92rem;
  line-height: 1;
  white-space: nowrap;
  color: var(--text-on-dark);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem var(--gutter) 6rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Moody, generated backdrop. Replace by setting --hero-image (see :root). */
  background-color: #060504;
  background-image:
    var(--hero-image),
    radial-gradient(120% 90% at 78% 18%, rgba(195,162,90,0.16), transparent 55%),
    radial-gradient(130% 120% at 12% 105%, rgba(120,98,52,0.10), transparent 50%),
    linear-gradient(180deg, #100D08 0%, #0A0806 45%, #060504 100%);
  background-size: cover;
  background-position: center;
}
/* subtle film grain so the flat black reads as photographed, not empty */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.eyebrow { /* hero eyebrow inherits, just spacing */ }
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 1.5rem + 9vw, 7rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin: 1.4rem 0 0;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}
.hero-lede {
  max-width: 38ch;
  color: var(--text-on-dark-muted);
  font-weight: 300;
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.2rem);
  line-height: 1.7;
  margin: 0 0 2.4rem;
}
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}

/* ---------- services ---------- */
.services {
  background: var(--ground-2);
  padding: var(--section-y) var(--gutter);
}
.section-head {
  max-width: var(--maxw);
  margin: 0 auto clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}
.service-group {
  max-width: var(--maxw);
  margin: 0 auto;
}
.service-group + .service-group { margin-top: clamp(2.6rem, 5vw, 4.2rem); }
.service-group-title {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.4rem;
}
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(140,116,56,0.28);
}
.service {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 3vw, 2.3rem) 0;
  border-bottom: 1px solid rgba(140,116,56,0.28);
  transition: padding-left 0.4s ease;
}
.service:hover { padding-left: 0.75rem; }
.service-main { max-width: 60ch; }
.service-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem);
  line-height: 1.15;
  margin: 0;
  transition: color 0.4s ease;
}
.service:hover .service-name { color: var(--accent); }
.service-desc {
  color: var(--text-on-dark-muted);
  font-size: 0.95rem;
  margin: 0.5rem 0 0;
}
.service-price {
  flex: none;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
  color: var(--accent);
  white-space: nowrap;
}

/* ---------- about / philosophy ---------- */
.about {
  background: var(--offwhite);
  color: var(--ink);
  padding: var(--section-y) var(--gutter);
}
.about-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.about .eyebrow { color: var(--text-on-light-muted); }
.about-title { color: var(--ink); }
.about .rule { margin-left: auto; margin-right: auto; }
.about-text {
  color: var(--text-on-light-muted);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.85;
  margin: 2rem 0 0;
}

/* ---------- booking ---------- */
.booking {
  background: var(--ground);
  padding: var(--section-y) var(--gutter);
}
.booking-inner { max-width: 820px; margin: 0 auto; }
.booking-head { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.booking-intro {
  max-width: 46ch;
  margin: 1.5rem auto 0;
  color: var(--text-on-dark-muted);
}
.booking-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 2.5rem;
}
.field { display: flex; flex-direction: column; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-bottom: 0.7rem;
}
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  color: var(--text-on-dark);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(140, 116, 56, 0.4);
  border-radius: 0;
  padding: 0.6rem 0;
  transition: border-color 0.3s ease;
}
.field textarea { resize: vertical; min-height: 3.2em; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--accent); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(170, 165, 154, 0.85); }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 1.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C3A25A' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
}
.field select option { color: var(--ink); } /* readable in the OS dropdown */

/* honeypot — visually hidden, off-screen, not focusable */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}

/* visually hidden but available to screen readers (labels, live announcements) */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.booking-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.booking-actions .btn-gold { border-style: solid; }
.booking-actions .btn-gold:disabled { opacity: 0.5; cursor: progress; }
.form-status {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-on-dark-muted);
}
.form-status.is-ok  { color: var(--accent); }
.form-status.is-err { color: #D9947F; }

@media (max-width: 620px) {
  .booking-form { grid-template-columns: 1fr; gap: 1.6rem; }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ground);
  padding: var(--section-y) var(--gutter) 2.5rem;
}
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr auto;
  gap: 2.5rem;
  align-items: start;
}
.footer-brand { display: flex; flex-direction: column; }
.footer-brand .brand-name { font-size: 1.7rem; }
.footer-label {
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9rem;
}
.footer-text {
  margin: 0;
  color: var(--text-on-dark-muted);
  font-size: 0.92rem;
  line-height: 1.9;
}
.footer-text a { transition: color 0.3s ease; }
.footer-text a:hover { color: var(--text-on-dark); }
.footer-book { justify-self: end; }
.footer-base {
  max-width: var(--maxw);
  margin: clamp(3rem, 7vw, 5rem) auto 0;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(140,116,56,0.22);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}

/* ---------- scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-book { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 620px) {
  .site-nav { gap: 1rem; }
  .site-nav a:not(.nav-book) { display: none; } /* keep header clean on phones */
  .service { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
  .service:hover { padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- footer legal links ---------- */
.footer-legal { display: flex; gap: 1.25rem; }
.footer-legal a { transition: color 0.3s ease; }
.footer-legal a:hover { color: var(--text-on-dark); }

/* ---------- legal pages (Impressum / Datenschutz) ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(7rem, 14vw, 10rem) var(--gutter) var(--section-y);
}
.legal-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 1.4rem + 3vw, 3rem);
  margin: 0 0 0.4rem;
}
.legal-updated {
  color: var(--text-on-dark-muted);
  font-size: 0.85rem;
  margin: 0 0 2.5rem;
}
.legal h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  margin: 2.6rem 0 0.6rem;
  color: var(--accent);
}
.legal p, .legal li { color: var(--text-on-dark); line-height: 1.85; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--text-on-dark); }
.legal ul { padding-left: 1.2rem; margin: 0.6rem 0; }
.legal dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.45rem 1.5rem;
  margin: 0.4rem 0 0;
}
.legal dt { color: var(--text-on-dark-muted); }
.legal dd { margin: 0; }
.legal-back { display: inline-block; margin-top: 3rem; font-size: 0.85rem; }
@media (max-width: 560px) {
  .legal dl { grid-template-columns: 1fr; gap: 0.1rem; }
  .legal dd { margin-bottom: 0.85rem; }
}

/* ---------- right-to-left (Arabic) ---------- */
html[dir="rtl"] body { font-family: "Cairo", var(--sans); }
html[dir="rtl"] .section-title,
html[dir="rtl"] .service-name,
html[dir="rtl"] .about-title,
html[dir="rtl"] .service-price,
html[dir="rtl"] .legal-title,
html[dir="rtl"] .legal h2 { font-family: "Cairo", var(--serif); }
/* Arabic letters must stay joined — remove tracking & uppercasing */
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .brand-sub,
html[dir="rtl"] .service-group-title,
html[dir="rtl"] .footer-label,
html[dir="rtl"] .footer-base,
html[dir="rtl"] .skip-link,
html[dir="rtl"] .scroll-hint,
html[dir="rtl"] .legal-back { letter-spacing: normal; text-transform: none; }
/* hover nudge & off-screen skip link follow reading direction */
html[dir="rtl"] .service:hover { padding-left: 0; padding-right: 0.75rem; }
html[dir="rtl"] .skip-link { left: auto; right: -999px; }
html[dir="rtl"] .skip-link:focus { left: auto; right: 1rem; }
html[dir="rtl"] .legal ul { padding-left: 0; padding-right: 1.2rem; }


/* ---------- Wella partner strip ---------- */
.partner {
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
}
.partner .eyebrow { margin-bottom: 1.4rem; }
.partner-logo {
  display: block;
  width: auto;
  height: auto;
  max-height: clamp(42px, 9vw, 62px);
  max-width: min(70vw, 220px);
  margin: 0 auto;
}


/* ---------- Contact form: bright white, high-contrast text ---------- */
.booking-intro { color: #FFFFFF; }
.booking .field label { color: #FFFFFF; }
.booking .field input,
.booking .field select,
.booking .field textarea { color: #FFFFFF; }
.booking .field input::placeholder,
.booking .field textarea::placeholder { color: rgba(255, 255, 255, 0.6); }


/* ---------- Contact form: white frame ---------- */
.booking-form {
  border: 1px solid #FFFFFF;
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
