/* ===== Aida Hairstylist — built from client Figma export ===== */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f5;
  --color-panel: #eae7dd;
  --color-ink: #000000;
  --color-text: #2b2b28;
  --color-text-muted: #63665f;
  --color-line: rgba(0, 0, 0, 0.14);
  --color-line-soft: rgba(0, 0, 0, 0.08);
  --color-brand: #1c352d;
  --color-paper: #ffffff;
  --color-on-dark: #ffffff;

  /* dark green band — hero recap / portfolio / courses */
  --band-bg: #1c352d;
  --band-bg-alt: #23402f;
  --band-panel: #2a4c3a;
  --band-ink: #ffffff;
  --band-text: #eef1ec;
  --band-text-muted: #b7c2ba;
  --band-line: rgba(255, 255, 255, 0.24);
  --band-line-soft: rgba(255, 255, 255, 0.1);

  /* warm ivory — contact / footer */
  --ivory-bg: #f3f0e9;

  --font-display: 'Crimson Text', 'Cormorant Garamond', serif;
  --font-script: 'Pinyon Script', cursive;
  --font-body: 'Jost', 'Poppins', sans-serif;
  --font-sans: 'Jost', 'Poppins', sans-serif;

  --container: 1180px;
  --radius-btn: 10px;
  --transition: 0.4s cubic-bezier(.25,.8,.25,1);
}

.band-dark {
  --color-bg: var(--band-bg);
  --color-bg-alt: var(--band-bg-alt);
  --color-panel: var(--band-panel);
  --color-ink: var(--band-ink);
  --color-text: var(--band-text);
  --color-text-muted: var(--band-text-muted);
  --color-line: var(--band-line);
  --color-line-soft: var(--band-line-soft);
  --color-paper: var(--band-bg);
}

.band-ivory {
  --color-bg: var(--ivory-bg);
  --color-ink: var(--color-brand);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-ink);
}

.section-head {
  max-width: 620px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.section-head p {
  color: var(--color-text-muted);
  font-size: 16px;
  font-style: italic;
}

section { position: relative; padding: 130px 0; background: var(--color-bg); }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.01em;
  border: 1px solid var(--color-brand);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-brand);
  color: #ffffff;
}
.btn-primary:hover { background: transparent; color: var(--color-brand); }

.btn-outline {
  background: transparent;
  color: var(--color-brand);
}
.btn-outline:hover { background: var(--color-brand); color: #ffffff; }

/* buttons sitting on a dark band need light borders/text by default */
.band-dark .btn { border-color: #ffffff; }
.band-dark .btn-outline { color: #ffffff; }
.band-dark .btn-outline:hover { background: #ffffff; color: var(--color-brand); }
.band-dark .btn-primary { background: #ffffff; color: var(--color-brand); }
.band-dark .btn-primary:hover { background: transparent; color: #ffffff; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 22px 0;
  transition: var(--transition);
  background: #f5f5f5;
  border-bottom: 1px solid var(--color-line);
}
.site-header.is-scrolled { padding: 14px 0; }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-script);
  font-size: 30px;
  font-weight: 400;
  color: var(--color-brand);
}
.logo span { color: var(--color-brand); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  font-family: var(--font-sans);
  font-size: 14px;
  color: #000000;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--color-brand);
  transition: width 0.35s ease;
}
.nav-links a:hover::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--color-line);
  border-radius: 20px;
  overflow: hidden;
}
.lang-switch button {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 7px 14px;
  cursor: pointer;
  transition: var(--transition);
}
.lang-switch button.active {
  background: var(--color-brand);
  color: #ffffff;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  width: 24px; height: 1px;
  background: #000000;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-top: 150px;
  padding-bottom: 0;
  overflow: hidden;
}

.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
  padding-bottom: 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: max(32px, calc((100vw - var(--container)) / 2 + 32px));
  padding-bottom: 80px;
}

.hero-content h1 {
  font-size: clamp(42px, 5.6vw, 68px);
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
  margin-bottom: 30px;
}
.hero-content h1 em {
  font-style: normal;
  text-transform: none;
  color: var(--color-brand);
}

.hero-content .lead {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 460px;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 763/822;
  overflow: hidden;
  background: #f5f5f5;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 27%;
  transform: scaleX(-1);
  filter: grayscale(1) contrast(1.05);
}

/* ---------- hero recap band ---------- */
.hero-recap { padding: 70px 0; }
.hero-recap-inner {
  max-width: 680px;
  margin: 0 auto 44px;
  text-align: center;
}
.hero-recap-inner h2 {
  font-size: clamp(20px, 2.6vw, 26px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.hero-recap-inner p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.hero-stats {
  display: flex;
  border-top: 1px solid var(--color-line);
}
.hero-stats > div {
  flex: 1;
  padding: 30px 0;
  text-align: center;
  border-left: 1px solid var(--color-line);
}
.hero-stats > div:first-child { border-left: none; }
.hero-stats .num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  color: var(--color-ink);
  display: block;
  margin-bottom: 6px;
}
.hero-stats .label {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ---------- about ---------- */
#about { background: #f5f5f5; }
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: center;
}

.about-photo {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--color-panel);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: grayscale(1); }

.about-text h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin-bottom: 24px;
  text-transform: uppercase;
}
.about-text p { color: var(--color-text); margin-bottom: 18px; }
.about-text p:last-of-type { margin-bottom: 0; }

.about-panorama {
  margin-top: 60px;
  aspect-ratio: 1440/304;
  overflow: hidden;
}
.about-panorama img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; filter: grayscale(1) contrast(1.05); }

/* ---------- services ---------- */
.services {
  position: relative;
  background: #0e1a13;
}
.services-bg {
  position: absolute;
  inset: 0;
  background: url('../images/services-bg.jpg') 48% 58% / cover no-repeat;
  filter: grayscale(1);
}
.services-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,26,19,0.32), rgba(14,26,19,0.42));
}
.services .container { position: relative; z-index: 1; }
.services .section-head h2,
.services .section-head p { color: #ffffff; }
.services .section-head p { opacity: 0.85; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-brand);
  border-radius: 12px;
  padding: 36px 30px;
  color: #ffffff;
}

.service-num {
  font-family: var(--font-sans);
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
  display: block;
}

.service-card h3 {
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.service-card p {
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  font-style: italic;
}

/* ---------- portfolio (light panel, matches the client's Портфолио N.svg files) ----------
   Real masonry: each tile carries --col/--row (set in JS from the size baked
   into each Портфолио N.svg — most tiles are 1x1, some are 2x2 "featured"
   squares, a few are 3x1 or full-width 6x1 banners). grid-auto-rows is set
   in JS to the measured column width so spans stay proportioned at any
   viewport width, matching the source instead of a uniform grid. */
#portfolio { background: #f5f5f5; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-flow: dense;
  gap: 14px;
}
.portfolio-item {
  grid-column: span min(var(--col, 1), 6);
  grid-row: span var(--row, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-panel);
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}
.portfolio-item:hover img { transform: scale(1.05); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 55%);
  opacity: 0;
  transition: var(--transition);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay span {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.portfolio-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 48px;
}
.portfolio-count {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

/* ---------- courses (coming soon — placeholder until client file arrives) ---------- */
.courses {
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}
.courses-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.courses h2 {
  font-size: clamp(30px, 4.6vw, 48px);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.courses p { color: var(--color-text-muted); margin-bottom: 36px; font-size: 16px; }

/* ---------- contact ---------- */
.contact { text-align: center; }
.contact h2 {
  font-size: clamp(30px, 4.8vw, 46px);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-brand);
}
.contact p { color: var(--color-text); max-width: 540px; margin: 0 auto 16px; }

p.contact-phone {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--color-text);
  margin-bottom: 32px;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.contact-buttons .btn { min-width: 170px; }

/* ---------- footer ---------- */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--color-line);
  background: var(--ivory-bg);
}
.site-footer .container {
  display: flex;
  justify-content: flex-start;
}
.footer-logo {
  font-family: var(--font-script);
  font-size: 22px;
  color: var(--color-brand);
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 40px;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 640px;
  width: 100%;
  border: 1px solid #ffffff;
}
.lightbox-caption {
  position: absolute;
  bottom: 60px;
  text-align: center;
  color: #ffffff;
  font-size: 13px;
  font-family: var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lightbox-close {
  position: absolute;
  top: 32px; right: 40px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-top { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-content { padding-right: 32px; padding-bottom: 40px; }
  .hero-photo { max-width: 440px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { max-width: 380px; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 88px 0; }
  .nav-links { display: none; }
  .burger { display: flex; }
  .header-actions { gap: 14px; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; }
  .hero-stats > div { flex: 1 1 50%; border-left: none; border-top: 1px solid var(--color-line); }
  .contact-buttons .btn { width: 100%; }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .hero-content { padding-left: 20px; padding-right: 20px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}

/* mobile nav drawer */
.nav-drawer {
  position: fixed;
  top: 0; right: -100%;
  width: 82%; max-width: 340px;
  height: 100vh;
  background: #ffffff;
  border-left: 1px solid var(--color-line);
  z-index: 600;
  padding: 100px 36px 40px;
  transition: right 0.45s cubic-bezier(.25,.8,.25,1);
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.nav-drawer.is-open { right: 0; }
.nav-drawer a {
  font-family: var(--font-sans);
  font-size: 18px;
  color: #000000;
}
.nav-drawer-close {
  position: absolute;
  top: 32px; right: 32px;
  background: none; border: none;
  color: #000000;
  font-size: 26px;
  cursor: pointer;
}
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 550;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.drawer-overlay.is-open { opacity: 1; pointer-events: auto; }
