/* ==========================================================================
   Beauty Hair — Luxury Salon Site
   Palette: Ink Navy / Champagne Gold / Warm Cream
   ========================================================================== */

:root {
  --navy-950: #060d18;
  --navy-900: #0b1a2c;
  --navy-800: #13273f;
  --navy-700: #1c3455;
  --gold-600: #b3893f;
  --gold-500: #c9a961;
  --gold-300: #e6d5a3;
  --gold-100: #f5ecd3;
  --cream: #faf6ee;
  --cream-dim: #f1ead9;
  --ink: #1c1712;
  --line: rgba(201, 169, 97, 0.25);

  --font-display: 'Vazirmatn', sans-serif;
  --font-accent: 'Cormorant Garamond', serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-display);
  direction: rtl;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--gold-600);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--gold-500);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  margin: 0 0 16px;
  line-height: 1.35;
}
.section-head p {
  color: #5c5347;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.9;
  margin: 0;
}

/* ============================= NAV ============================= */

.checkbtn, #check { display: none; }

nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 84px;
  background: linear-gradient(to bottom, rgba(6, 13, 24, 0.92), rgba(6, 13, 24, 0.55) 70%, transparent);
  backdrop-filter: blur(6px);
  transition: background 0.4s var(--ease), height 0.4s var(--ease);
}

nav.scrolled {
  height: 68px;
  background: rgba(6, 13, 24, 0.94);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.brand {
  display: flex;
  align-items: center;
}
.brand-logo {
  height: 56px;
  width: auto;
  display: block;
  transition: height 0.4s var(--ease);
}
nav.scrolled .brand-logo { height: 46px; }
.footer-logo { height: 72px; }

nav ul {
  display: flex;
  gap: 40px;
}

nav ul li a {
  position: relative;
  color: var(--gold-100);
  font-weight: 300;
  font-size: 15.5px;
  padding-bottom: 6px;
  transition: color 0.3s;
}
nav ul li a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold-500);
  transition: width 0.35s var(--ease);
}
nav ul li a:hover,
nav ul li a.active { color: var(--gold-300); }
nav ul li a:hover::after,
nav ul li a.active::after { width: 100%; }

.nav-cta {
  border: 1px solid var(--gold-500);
  color: var(--gold-300) !important;
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 14px !important;
  transition: all 0.35s var(--ease);
}
.nav-cta:hover {
  background: var(--gold-500);
  color: var(--navy-950) !important;
}
.nav-cta::after { display: none; }

.checkbtn {
  font-size: 24px;
  color: var(--gold-300);
  cursor: pointer;
}

/* ============================= HERO ============================= */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% 15%, rgba(201,169,97,0.16), transparent 60%),
    linear-gradient(160deg, rgba(6,13,24,0.94) 0%, rgba(11,26,44,0.92) 45%, rgba(19,39,63,0.90) 100%),
    url('pic/Photo.avif');
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
  overflow: hidden;
  padding: 140px 24px 100px;
}

.hero-strands {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}
.hero-strands svg { width: 100%; height: 100%; }
.strand-path {
  fill: none;
  stroke: url(#strandGrad);
  stroke-width: 1;
  stroke-dasharray: 8 6;
  animation: drift 26s linear infinite;
}
.strand-path:nth-child(2) { animation-duration: 34s; animation-direction: reverse; opacity: 0.6; }
.strand-path:nth-child(3) { animation-duration: 40s; opacity: 0.4; }

@keyframes drift {
  to { stroke-dashoffset: -400; }
}

.hero-content { position: relative; z-index: 2; max-width: 780px; }

.hero-tag {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--gold-300);
  font-size: 16px;
  letter-spacing: 0.18em;
  margin-bottom: 26px;
  display: inline-block;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 66px);
  font-weight: 800;
  line-height: 1.45;
  color: var(--cream);
  margin: 0 0 28px;
}
.hero h1 span {
  background: linear-gradient(95deg, var(--gold-300), var(--gold-500) 45%, var(--gold-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.sub {
  color: rgba(250, 246, 238, 0.65);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.9;
  max-width: 520px;
  margin: 0 auto 42px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s var(--ease);
}
.btn-gold {
  background: linear-gradient(100deg, var(--gold-500), var(--gold-300));
  color: var(--navy-950);
  border: 1px solid transparent;
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(201,169,97,0.3); }

.btn-outline {
  border: 1px solid rgba(250,246,238,0.3);
  color: var(--cream);
}
.btn-outline:hover { border-color: var(--gold-300); color: var(--gold-300); }

.hero-scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--gold-500) 40%, transparent);
}
.hero-scroll::after {
  content: '';
  position: absolute;
  top: 0; right: -3px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold-300);
  animation: scrollDot 2.4s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { top: 0; opacity: 0; }
  20% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 90%; opacity: 0; }
}

/* ============================= DIVIDER ============================= */

.ribbon-divider {
  display: block;
  width: 100%;
  height: 70px;
  margin-top: -1px;
}

/* ============================= SERVICES ============================= */

.services {
  background: var(--cream);
  padding: 110px 0 100px;
}

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

.service-card {
  position: relative;
  background: #fff;
  border: 1px solid #ece3d0;
  border-radius: 8px;
  padding: 0 0 34px;
  text-align: center;
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s;
  opacity: 0;
  transform: translateY(24px);
}
.service-card.in-view { opacity: 1; transform: translateY(0); }

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 50px rgba(19, 39, 63, 0.1);
  border-color: var(--gold-500);
}

.service-icon {
  width: 100%;
  height: 220px;
  margin: 0 0 26px;
  border-radius: 0;
  overflow: hidden;
  display: block;
  background: linear-gradient(150deg, var(--navy-900), var(--navy-700));
  transition: transform 0.6s var(--ease);
}
.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.service-card:hover .service-icon { transform: scale(1.06); }
.service-card .service-num {
  z-index: 2;
  background: rgba(6,13,24,0.55);
  color: var(--gold-300);
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(3px);
}
.service-card h3, .service-card p { padding: 0 26px; }

.service-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 12px;
}
.service-card p {
  font-size: 14.5px;
  color: #746a5c;
  font-weight: 300;
  line-height: 1.8;
  margin: 0;
}

.service-num {
  font-family: var(--font-accent);
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 13px;
  color: var(--gold-500);
  opacity: 0.7;
}

/* ============================= FEATURE STRIP ============================= */

.strip {
  background: linear-gradient(120deg, var(--navy-950), var(--navy-800));
  padding: 76px 0;
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
.strip-item {
  padding: 0 20px;
  border-left: 1px solid rgba(230,213,163,0.14);
}
.strip-item:last-child { border-left: none; }
.strip-item i {
  font-size: 26px;
  color: var(--gold-500);
  margin-bottom: 16px;
  display: block;
}
.strip-item h4 {
  color: var(--cream);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
}
.strip-item p {
  color: rgba(250,246,238,0.55);
  font-size: 13.5px;
  font-weight: 300;
  margin: 0;
  line-height: 1.7;
}

/* ============================= QUOTE ============================= */

.quote-section {
  background: var(--cream-dim);
  padding: 110px 24px;
  text-align: center;
}
.quote-mark {
  font-family: var(--font-accent);
  font-size: 90px;
  color: var(--gold-500);
  line-height: 1;
  opacity: 0.5;
}
.quote-section blockquote {
  max-width: 700px;
  margin: 0 auto;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.7;
  color: var(--navy-900);
  font-weight: 500;
}
.quote-cite {
  display: block;
  margin-top: 26px;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--gold-600);
}

/* ============================= CTA BANNER ============================= */

.cta-banner {
  position: relative;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-950));
  padding: 90px 24px;
  text-align: center;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(201,169,97,0.14), transparent 55%);
}
.cta-banner h2 {
  position: relative;
  color: var(--cream);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  margin: 0 0 18px;
}
.cta-banner p {
  position: relative;
  color: rgba(250,246,238,0.6);
  font-weight: 300;
  margin: 0 0 36px;
}
.cta-banner .btn-gold { position: relative; }

/* ============================= FOOTER ============================= */

footer {
  background: var(--navy-950);
}

.footer-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 90px 32px 50px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 50px;
}

.footer-brand .brand { margin-bottom: 18px; font-size: 24px; }
.footer-brand p {
  color: rgba(250,246,238,0.5);
  font-weight: 300;
  font-size: 14.5px;
  line-height: 1.9;
  max-width: 300px;
}

.footer-col h5 {
  color: var(--gold-300);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 22px;
  letter-spacing: 0.03em;
}
.footer-col ul li { margin-bottom: 13px; }
.footer-col ul li a {
  color: rgba(250,246,238,0.6);
  font-size: 14.5px;
  font-weight: 300;
  transition: color 0.3s, padding-right 0.3s;
}
.footer-col ul li a:hover { color: var(--gold-300); padding-right: 4px; }

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(250,246,238,0.6);
  font-size: 14px;
  font-weight: 300;
  margin-bottom: 16px;
}
.footer-contact li i {
  color: var(--gold-500);
  width: 16px;
  text-align: center;
}

.footer-divider {
  border-top: 1px solid rgba(230,213,163,0.1);
}

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p {
  color: rgba(250,246,238,0.4);
  font-size: 13px;
  font-weight: 300;
  margin: 0;
}
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 38px; height: 38px;
  border: 1px solid rgba(230,213,163,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-300);
  font-size: 14px;
  transition: all 0.35s var(--ease);
}
.social-row a:hover {
  background: var(--gold-500);
  color: var(--navy-950);
  border-color: var(--gold-500);
  transform: translateY(-3px);
}

/* ============================= REVEAL ANIM ============================= */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .service-card { opacity: 1 !important; transform: none !important; transition: none !important; }
  .strand-path, .hero-scroll::after { animation: none !important; }
}

/* ============================= RESPONSIVE ============================= */

@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .strip-item:nth-child(2n) { border-left: none; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  nav { padding: 0 20px; }
  nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 78%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, var(--navy-950), var(--navy-800));
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 30px;
    padding: 40px;
    transition: right 0.45s var(--ease);
    box-shadow: -20px 0 50px rgba(0,0,0,0.4);
  }
  #check:checked ~ ul { right: 0; }
  .checkbtn { display: block; z-index: 1001; }
  .nav-cta { display: none; }

  .hero { padding-top: 120px; }
  .service-grid { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: 1fr; row-gap: 36px; }
  .strip-item { border-left: none; }
  .footer-main { grid-template-columns: 1fr; padding-top: 70px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .hero h1 { font-size: 30px; }
  .btn { padding: 13px 26px; font-size: 14px; }
  .section-head { margin-bottom: 46px; }
}
