/* ============================================================
   T ATELIER — Herrencoiffeur Lyss
   ============================================================ */

:root {
  --bg: #ece6d8;
  --bg-soft: #e3dcca;
  --paper: #f2eee3;
  --olive: #7d7344;
  --olive-soft: #968b58;
  --khaki: #8e8568;
  --khaki-deep: #55503c;
  --ink: #46412f;
  --ink-soft: #6d6750;
  --line: rgba(70, 65, 47, 0.18);
  --line-light: rgba(236, 230, 216, 0.22);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--olive); color: var(--bg); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; }

h2 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  letter-spacing: -0.01em;
}

h2 em, h1 em { font-style: italic; color: var(--olive); }

a { color: inherit; text-decoration: none; }

img, svg { display: block; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 1.4rem;
}

.eyebrow-light { color: #cfc6a8; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--olive);
  border: 1px solid var(--olive);
  padding: 1.05rem 2.4rem;
  cursor: pointer;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.btn:hover { background: var(--ink); border-color: var(--ink); }

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

.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.btn-light { background: var(--bg); border-color: var(--bg); color: var(--khaki-deep); }
.btn-light:hover { background: transparent; border-color: var(--bg); color: var(--bg); }

.btn-small { padding: 0.7rem 1.5rem; font-size: 0.72rem; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem clamp(1.4rem, 5vw, 4rem);
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), padding 0.5s var(--ease);
}

.site-header.scrolled {
  background: rgba(236, 230, 216, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.header-brand { display: flex; align-items: center; gap: 0.7rem; }

.brand-mark { width: 30px; height: auto; }

.brand-word {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--ink);
  translate: 0 1px;
}

.header-nav { display: flex; gap: 2.4rem; margin-left: auto; }

.header-nav a {
  position: relative;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.3s;
}

.header-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: var(--olive);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}

.header-nav a:hover { color: var(--ink); }
.header-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 26px; height: 1.5px;
  margin-left: 9px;
  background: var(--ink);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99; /* below .site-header so brand + close toggle stay visible */
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}

.mobile-menu.open { opacity: 1; pointer-events: auto; }

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.mobile-menu nav a:not(.btn) {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--ink);
}

.mobile-menu .btn { margin-top: 1.5rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7.5rem 1.5rem 5rem;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(125, 115, 68, 0.12), transparent 60%),
    var(--bg);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 40% at 85% 90%, rgba(125, 115, 68, 0.08), transparent 65%);
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 880px; }

.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 2.6rem;
}

.hero-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 2.8rem;
}

.hero-logo img { width: clamp(72px, 11vw, 110px); height: auto; }

.hero-logo-line { width: 44px; height: 1px; background: var(--olive); opacity: 0.7; }

.hero-logo-word {
  font-size: 0.95rem;
  letter-spacing: 0.62em;
  text-indent: 0.62em;
  text-transform: uppercase;
  color: var(--olive);
}

.hero-title {
  font-size: clamp(2.9rem, 7.5vw, 5.6rem);
  margin-bottom: 1.6rem;
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 2.8rem;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-badge {
  position: absolute;
  top: 6.2rem;
  right: clamp(1.4rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.55rem 1.15rem;
  background: rgba(242, 238, 227, 0.6);
  backdrop-filter: blur(6px);
}

.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--olive);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(125, 115, 68, 0.45); }
  60% { box-shadow: 0 0 0 8px rgba(125, 115, 68, 0); }
}

.hero-scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  translate: -50% 0;
  width: 1px; height: 56px;
  overflow: hidden;
}

.hero-scroll span {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--olive);
  animation: scrollline 2.4s var(--ease) infinite;
}

@keyframes scrollline {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ---------- Marquee ---------- */

.marquee {
  background: var(--olive);
  color: var(--bg);
  overflow: hidden;
  padding: 1.05rem 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.8rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  white-space: nowrap;
}

.marquee-track i { font-style: normal; font-size: 0.7rem; opacity: 0.7; }

@keyframes marquee {
  to { transform: translateX(calc(-100% / 3)); }
}

/* ---------- Sections ---------- */

.section { padding: clamp(6rem, 11vw, 9.5rem) clamp(1.4rem, 6vw, 6rem); }

.section-head { max-width: 1100px; margin: 0 auto 4rem; }

/* ---------- Services ---------- */

.services { background: var(--bg); }

.price-list {
  list-style: none;
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.2rem 1rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.45s var(--ease), padding 0.45s var(--ease);
}

.price-row:hover { background: var(--paper); padding-left: 1.8rem; padding-right: 1.8rem; }

.price-info { display: flex; align-items: baseline; gap: 1.8rem; }

.price-index {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--olive);
  translate: 0 -4px;
}

.price-info h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 0.3rem; }

.price-info h3 small {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-left: 0.6rem;
}

.price-info p { font-size: 0.95rem; color: var(--ink-soft); max-width: 420px; }

.price-tag { display: flex; align-items: baseline; gap: 0.55rem; flex-shrink: 0; }

.price-tag .currency {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.price-tag .amount { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 2.9rem); color: var(--ink); }

.services-note {
  max-width: 1100px;
  margin: 2.2rem auto 0;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- About / Atelier ---------- */

.about {
  position: relative;
  overflow: hidden;
  background: var(--khaki-deep);
  color: #e9e3d2;
}

.about-watermark {
  position: absolute;
  left: -2%;
  bottom: -8%;
  height: 58%;
  width: auto;
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
}

.about-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(3rem, 7vw, 7rem);
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.about h2 { color: #f2eee3; }
.about h2 em { color: #cfc28d; }

.about-lead { font-size: 1.08rem; color: #cdc7b2; margin: 1.8rem 0 3.2rem; max-width: 520px; }

.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.value-num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: #cfc28d;
  margin-bottom: 0.8rem;
}

.value h3 { font-size: 1.35rem; margin-bottom: 0.45rem; color: #f2eee3; }
.value p { font-size: 0.88rem; color: #b4ad97; line-height: 1.55; }

.about-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.visual-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(233, 227, 210, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 70% 55% at 30% 20%, rgba(242, 238, 227, 0.07), transparent 60%),
    rgba(233, 227, 210, 0.03);
}

.visual-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 1;
  border: 1px solid rgba(242, 238, 227, 0.35);
  pointer-events: none;
}

.visual-frame picture { position: absolute; inset: 0; }

.visual-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.visual-caption {
  margin-top: 1.5rem;
  text-align: center;
}

.visual-caption strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  color: #f2eee3;
  margin-bottom: 0.25rem;
}

.visual-caption span {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #b4ad97;
}

/* ---------- Gallery ---------- */

.gallery { background: var(--paper); }

.gallery-grid {
  display: grid;
  /* column widths proportional to the photos' aspect ratios → equal row heights */
  grid-template-columns: 0.93fr 1.22fr;
  gap: clamp(0.8rem, 1.6vw, 1.4rem);
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: var(--bg-soft);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

.gallery-item:hover img { transform: scale(1.03); }

.gallery-wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery-wide img { object-position: 50% 62%; }
.gallery-tall { aspect-ratio: 0.93; }
.gallery-detail { aspect-ratio: 1.22; }

/* ---------- Hours ---------- */

.hours { background: var(--bg); text-align: left; }

.hours .section-head, .hours-grid, .hours-note { max-width: 760px; margin-left: auto; margin-right: auto; }

.hours .section-head { margin-bottom: 3.4rem; }

.hours-grid { border-top: 1px solid var(--line); }

.hours-row {
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  padding: 1.35rem 0.4rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.02rem;
}

.hours-row i { flex: 1; border-bottom: 1px dotted var(--line); translate: 0 -5px; }

.hours-row span:first-child { font-family: var(--serif); font-size: 1.3rem; }
.hours-row span:last-child { color: var(--ink-soft); letter-spacing: 0.06em; text-align: right; line-height: 1.7; }

.hours-note { margin-top: 2rem; font-size: 0.92rem; color: var(--ink-soft); font-style: italic; font-family: var(--serif); font-size: 1.05rem; }

/* ---------- Contact ---------- */

.contact {
  background: var(--khaki-deep);
  color: #e9e3d2;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

.contact h2 { color: #f2eee3; }
.contact h2 em { color: #cfc28d; }

.contact-lead { color: #cdc7b2; margin: 1.6rem 0 2.8rem; max-width: 440px; }

.contact-list { list-style: none; margin-bottom: 3rem; }

.contact-list li {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line-light);
}

.contact-label {
  width: 110px;
  flex-shrink: 0;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #b4ad97;
}

.contact-list a {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: #f2eee3;
  transition: color 0.3s;
}

.contact-list a:hover { color: #cfc28d; }

.contact-map {
  min-height: 420px;
  border: 1px solid rgba(233, 227, 210, 0.25);
  padding: 12px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) sepia(0.25) contrast(0.95);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg);
  text-align: center;
  padding: 4.5rem 1.5rem 3rem;
}

.footer-leaf { width: 64px; margin: 0 auto 2.2rem; color: var(--olive); }

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.footer-brand img { width: 26px; height: auto; }

.footer-brand span {
  font-size: 0.8rem;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  text-transform: uppercase;
}

.footer-tag {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.8rem;
}

.footer-copy { font-size: 0.78rem; color: var(--ink-soft); opacity: 0.75; }

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s);
}

.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .badge-dot, .hero-scroll span { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .header-nav, .site-header .btn-small { display: none; }
  .nav-toggle { display: flex; }

  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-watermark { display: none; }
  .about-values { grid-template-columns: 1fr; gap: 1.6rem; }
  .about-visual { order: -1; }
  .visual-frame { max-width: 300px; }

  .hero-badge { position: static; margin-top: 2.6rem; white-space: nowrap; }
  .hero-scroll { display: none; }
}

@media (max-width: 640px) {
  .price-row { flex-direction: row; align-items: flex-start; }
  .price-info { gap: 1rem; flex-direction: column; }
  .price-info .price-index { translate: 0; }
  .price-info p { font-size: 0.88rem; }
  .br-desktop { display: none; }
  .contact-map { min-height: 320px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-wide { aspect-ratio: 3 / 2; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-item img { transition: none; }
  .gallery-item:hover img { transform: none; }
}
