/* =========================================================
   Alfa Salon — premium dark theme
   Palette: charcoal/black + warm wood/olive + red accent
   ========================================================= */

:root {
  /* Surfaces */
  --bg:           #0c0b0a;     /* near-black, warm */
  --bg-elev:      #141210;
  --bg-elev-2:    #1c1916;
  --surface:      #211d18;
  --line:         rgba(255,255,255,0.08);
  --line-strong:  rgba(255,255,255,0.18);

  /* Text */
  --text:         #f3ece0;     /* warm white */
  --text-dim:     #b9ad99;     /* warm muted */
  --text-mute:    #80776a;

  /* Brand */
  --accent:       #c8201f;     /* red from logo */
  --accent-2:     #e23a36;
  --olive:        #6e6a3f;     /* wall olive from interior */
  --wood:         #9a6a3b;     /* warm wood */
  --cream:        #d9c9a7;     /* warm cream */

  /* Type */
  --font-display: "Oswald", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif:   "Cormorant Garamond", Georgia, serif;
  --font-body:    "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Sizing */
  --container: 1200px;
  --radius: 14px;
  --radius-lg: 22px;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s var(--ease), opacity .2s var(--ease);
}
a:hover { color: var(--accent-2); }
a:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--accent); color: #fff; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   Typography
   ========================================================= */

.display, .display-sm {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: var(--text);
  text-transform: uppercase;
  margin: 0 0 18px;
}
.display { font-size: clamp(2.6rem, 6.5vw, 5.4rem); }
.display em {
  font: inherit;
  color: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
}
.display-sm { font-size: clamp(1.9rem, 3.6vw, 3rem); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.eyebrow .dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.lede, .section-lede {
  color: var(--text-dim);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  max-width: 60ch;
  line-height: 1.65;
}

h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1.15rem;
  margin: 0 0 10px;
  color: var(--text);
}

p { margin: 0 0 14px; }

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  min-height: 44px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: 16px 28px; min-height: 52px; font-size: 0.98rem; }
.btn-block { width: 100%; }
.btn-icon { width: 52px; min-height: 52px; padding: 0; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-2); color: #fff; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--cream); color: var(--cream); }

/* =========================================================
   Header / Nav
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12,11,10,0.78);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.brand img {
  width: 44px; height: 44px;
  border-radius: 8px;
  object-fit: cover;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.18em;
}
.brand-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 4px;
}

.nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav a {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  padding: 6px 0;
  position: relative;
}
.nav a:hover { color: var(--text); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }

.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--text);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 14px 24px 22px;
}
.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-nav a {
  display: block;
  padding: 12px 4px;
  font-size: 1rem;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a.btn { border-bottom: none; padding: 14px 16px; margin-top: 10px; }

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(80px, 12vh, 140px) 0 clamp(60px, 9vh, 110px);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12,11,10,0.55) 0%, rgba(12,11,10,0.65) 40%, rgba(12,11,10,0.95) 100%),
    radial-gradient(60% 80% at 20% 30%, rgba(0,0,0,0.55), rgba(0,0,0,0));
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 920px;
}
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 32px; max-width: 56ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}

.hero-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  border-top: 1px solid var(--line-strong);
  padding-top: 24px;
  max-width: 720px;
}
.hero-meta li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-meta strong {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.hero-meta span {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* =========================================================
   Sections
   ========================================================= */

.section {
  padding: clamp(70px, 9vw, 140px) 0;
  position: relative;
}
.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head .section-lede { margin-top: 14px; }

/* Services */
.section-services { background: var(--bg); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.service-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}
.service-media {
  aspect-ratio: 4/5;
  overflow: hidden;
}
.service-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.service-card:hover .service-media img { transform: scale(1.04); }
.service-body { padding: 26px 26px 30px; }
.service-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-dim);
  font-size: 0.97rem;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px; height: 1px;
  background: var(--accent);
}

.services-note {
  margin-top: 36px;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.services-note a {
  color: var(--cream);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}
.services-note a:hover { color: var(--accent-2); border-color: var(--accent-2); }

/* Space / Gallery */
.section-space {
  background: linear-gradient(180deg, var(--bg) 0%, #0a0908 100%);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 240px;
  gap: 16px;
}
.gallery-item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
  grid-column: span 2;
  grid-row: span 1;
}
.gallery-item--wide {
  grid-column: span 4;
  grid-row: span 2;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), filter .6s var(--ease);
}
.gallery-item:hover img { transform: scale(1.03); filter: brightness(1.05); }

/* Why */
.section-why { background: var(--bg); }
.why-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.why-grid li {
  background: var(--bg);
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background .3s var(--ease);
}
.why-grid li:hover { background: var(--bg-elev); }
.why-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}
.why-grid h3 { margin-bottom: 6px; }
.why-grid p { color: var(--text-dim); margin: 0; font-size: 0.97rem; }

/* Contacts */
.section-contacts {
  background: linear-gradient(180deg, #0a0908 0%, var(--bg) 100%);
  border-top: 1px solid var(--line);
}
.contacts-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.contacts-info h2 { margin-bottom: 24px; }

.contacts-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 32px;
  margin: 0 0 32px;
}
.contacts-list > div {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.contacts-list dt {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 6px;
}
.contacts-list dd {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}
.contacts-list dd a { color: var(--text); border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; }
.contacts-list dd a:hover { color: var(--accent-2); border-color: var(--accent-2); }

.contacts-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.contacts-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--line);
}
.contacts-card picture, .contacts-card img {
  aspect-ratio: 4/3;
  width: 100%;
  object-fit: cover;
}
.contacts-card-body { padding: 22px 24px 26px; }
.contacts-card-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.95rem;
  margin: 0 0 6px;
  color: var(--text);
}
.contacts-card-text { color: var(--text-dim); margin: 0 0 14px; font-size: 0.95rem; }
.contacts-card-link {
  color: var(--cream);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}
.contacts-card-link:hover { color: var(--accent-2); border-color: var(--accent-2); }

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background: #08070605;
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
  margin-bottom: 80px; /* room for mobile sticky CTA */
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.footer-name {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0;
  font-weight: 700;
}
.footer-tag { color: var(--text-dim); font-size: 0.88rem; margin: 4px 0 0; }

.footer-links, .footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.footer-links a, .footer-social a { letter-spacing: 0.04em; }
.footer-links a:hover, .footer-social a:hover { color: var(--text); }

.footer-fineprint {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin: 22px 0 0;
  font-size: 0.82rem;
  color: var(--text-mute);
  letter-spacing: 0.04em;
}

/* =========================================================
   Mobile sticky CTA
   ========================================================= */

.mobile-cta {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  display: none;
  gap: 10px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(12,11,10,0) 0%, rgba(12,11,10,0.96) 30%, rgba(12,11,10,1) 100%);
  z-index: 40;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 960px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav.is-open { display: block; }

  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  .gallery-item { grid-column: span 1; }
  .gallery-item--wide { grid-column: span 2; grid-row: span 2; }

  .contacts-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .header-inner { padding: 12px 18px; gap: 12px; }
  .brand img { width: 40px; height: 40px; }
  .brand-sub { font-size: 0.66rem; }

  .hero { min-height: 88vh; padding-top: 64px; }
  .hero-meta {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .why-grid { grid-template-columns: 1fr; }
  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }
  .gallery-item, .gallery-item--wide { grid-column: span 1; grid-row: span 1; }

  .contacts-list { grid-template-columns: 1fr; gap: 16px; }
  .site-footer { padding: 36px 0 32px; margin-bottom: 96px; }

  .mobile-cta { display: flex; }
  body { padding-bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
