/* ========================================
   SAIN INK — Beauty & Hair Salon
   Classic & Elegant Design System
   ======================================== */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Lato', system-ui, sans-serif;
  color: #2c2c2c;
  background: #faf9f7;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; line-height: 1.15; }
.section-eyebrow {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ff7a5a;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: #1a1a1a;
  margin-bottom: 20px;
}
.section-line {
  width: 60px;
  height: 2px;
  background: #ff7a5a;
  margin-bottom: 32px;
}
.section-header--center { text-align: center; }
.section-header--center .section-line { margin-left: auto; margin-right: auto; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.btn-coral {
  background: #ff7a5a;
  color: #fff;
  border: 2px solid #ff7a5a;
}
.btn-coral:hover { background: #e8411e; border-color: #e8411e; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,122,90,0.35); }
.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn-full { width: 100%; }

/* ---- HEADER ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250,249,247,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26,26,26,0.06);
  transition: all 0.4s ease;
}
.header.scrolled {
  background: rgba(250,249,247,0.98);
  box-shadow: 0 2px 24px rgba(26,26,26,0.08);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo--light .logo-text { color: #fff; }
.logo-mark {
  width: 36px;
  height: 36px;
  background: #ff7a5a;
  color: #fff;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.logo-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 0.02em;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #555;
  transition: color 0.3s ease;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #ff7a5a;
  transition: width 0.3s ease;
}
.nav-link:hover { color: #1a1a1a; }
.nav-link:hover::after { width: 100%; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 110;
}
.nav-toggle .bar {
  width: 24px;
  height: 2px;
  background: #1a1a1a;
  transition: all 0.3s ease;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: #1a1a1a;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,15,15,0.85) 0%, rgba(26,26,26,0.6) 50%, rgba(15,15,15,0.75) 100%);
}
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(255,255,255,0.5) 50px, rgba(255,255,255,0.5) 51px),
                    repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(255,255,255,0.5) 50px, rgba(255,255,255,0.5) 51px);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #ff7a5a;
  margin-bottom: 20px;
}
.hero-headline {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  color: #fff;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 24px;
  max-width: 560px;
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 460px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hero-image {
  position: relative;
}
.hero-portrait {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 32px 64px rgba(0,0,0,0.4);
}
.hero-accent {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border: 2px solid #ff7a5a;
  border-radius: 8px;
  z-index: -1;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.5; transform: scaleY(0.7); }
}

/* ---- SERVICES ---- */
.services {
  padding: 100px 0;
  background: #faf9f7;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.service-card {
  background: #fff;
  border-radius: 8px;
  padding: 36px 28px;
  border: 1px solid rgba(26,26,26,0.06);
  transition: all 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(26,26,26,0.08);
  border-color: transparent;
}
.service-icon {
  width: 48px;
  height: 48px;
  color: #ff7a5a;
  margin-bottom: 20px;
}
.service-icon svg { width: 100%; height: 100%; }
.service-name {
  font-size: 1.35rem;
  color: #1a1a1a;
  margin-bottom: 12px;
}
.service-desc {
  font-size: 0.92rem;
  color: #6b6b6b;
  line-height: 1.7;
}
.services-cta {
  text-align: center;
  padding-top: 8px;
}
.services-cta p {
  font-size: 0.9rem;
  color: #6b6b6b;
  margin-bottom: 16px;
}

/* ---- ABOUT ---- */
.about {
  padding: 100px 0;
  background: #fff;
}
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-images {
  position: relative;
}
.about-img-main {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(26,26,26,0.1);
}
.about-img-main img { width: 100%; height: 500px; object-fit: cover; }
.about-img-secondary {
  position: absolute;
  bottom: -40px;
  right: -40px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(26,26,26,0.15);
  border: 4px solid #fff;
}
.about-img-secondary img { width: 240px; height: 300px; object-fit: cover; }
.about-accent-box {
  position: absolute;
  top: -24px;
  left: -24px;
  background: #ff7a5a;
  color: #fff;
  padding: 20px 24px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(255,122,90,0.3);
}
.accent-number {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}
.accent-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.9;
}
.about-content .section-title { margin-bottom: 24px; }
.about-text {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.85;
  margin-bottom: 16px;
}
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.value-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #2c2c2c;
}
.value-icon {
  width: 20px;
  height: 20px;
  color: #ff7a5a;
  flex-shrink: 0;
}
.value-icon svg { width: 100%; height: 100%; }

/* ---- GALLERY ---- */
.gallery {
  padding: 100px 0;
  background: #faf9f7;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,26,0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  color: #fff;
  font-weight: 600;
}
.gallery-item--tall { grid-column: span 4; grid-row: span 2; }
.gallery-item--wide { grid-column: span 6; }
.gallery-item:nth-child(2) { grid-column: span 4; }
.gallery-item:nth-child(3) { grid-column: span 4; }
.gallery-item:nth-child(4) { grid-column: span 4; }
.gallery-item:nth-child(5) { grid-column: span 4; }
.gallery-item:nth-child(6) { grid-column: span 4; }

/* ---- TESTIMONIALS ---- */
.testimonials {
  padding: 100px 0;
  background: #1a1a1a;
}
.testimonials .section-title { color: #fff; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 36px 28px;
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  background: rgba(255,255,255,0.07);
  transform: translateY(-4px);
}
.testimonial-quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: #ff7a5a;
  margin-bottom: 8px;
}
.testimonial-text {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-divider {
  width: 40px;
  height: 1px;
  background: #ff7a5a;
  margin-bottom: 16px;
}
.testimonial-author {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 600;
}

/* ---- CTA BANNER ---- */
.cta-banner {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,26,0.9) 0%, rgba(44,44,44,0.85) 100%);
}
.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-eyebrow { color: #ff7a5a; }
.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 20px;
}
.cta-text {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 32px;
}
.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---- CONTACT ---- */
.contact {
  padding: 100px 0 0;
  background: #fff;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-icon {
  width: 24px;
  height: 24px;
  color: #ff7a5a;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-icon svg { width: 100%; height: 100%; }
.contact-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ff7a5a;
  margin-bottom: 4px;
}
.contact-item p {
  font-size: 0.95rem;
  color: #2c2c2c;
  line-height: 1.7;
}
.contact-item a {
  color: #2c2c2c;
  transition: color 0.3s ease;
}
.contact-item a:hover { color: #ff7a5a; }

/* Form */
.contact-form-wrap {
  background: #faf9f7;
  border-radius: 8px;
  padding: 40px;
  border: 1px solid rgba(26,26,26,0.06);
}
.form-title {
  font-size: 1.75rem;
  color: #1a1a1a;
  margin-bottom: 8px;
}
.form-note {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 28px;
}
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Lato', sans-serif;
  font-size: 0.92rem;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid rgba(26,26,26,0.15);
  border-radius: 4px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}
.form-input:focus {
  border-color: #ff7a5a;
  box-shadow: 0 0 0 3px rgba(255,122,90,0.15);
}
.form-input::placeholder { color: #b0b0b0; }
.form-select { appearance: none; cursor: pointer; 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' stroke='%236b6b6b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form-textarea { resize: vertical; min-height: 100px; }
.form-success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 4px;
  margin-top: 16px;
}
.form-success svg { width: 20px; height: 20px; color: #22c55e; flex-shrink: 0; }
.form-success p { font-size: 0.9rem; color: #166534; }

.map-wrap { margin-top: 0; }
.map-wrap iframe { border-radius: 0; }

/* ---- FOOTER ---- */
.footer {
  background: #0f0f0f;
  color: rgba(255,255,255,0.6);
  padding: 64px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-text { color: #fff; }
.footer-tagline {
  font-size: 0.88rem;
  margin-top: 12px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}
.footer-heading {
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.3s ease;
}
.footer-links a:hover { color: #ff7a5a; }
.footer-contact p {
  font-size: 0.88rem;
  margin-bottom: 8px;
  line-height: 1.6;
}
.footer-contact a {
  color: rgba(255,255,255,0.5);
  transition: color 0.3s ease;
}
.footer-contact a:hover { color: #ff7a5a; }
.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ---- BACK TO TOP ---- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: #ff7a5a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.3s ease;
  z-index: 90;
  box-shadow: 0 4px 16px rgba(255,122,90,0.3);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: #e8411e; transform: translateY(-2px); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---- SCROLL REVEAL (progressive enhancement) ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
}

/* ---- MOBILE NAV OVERLAY ---- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-list {
    position: fixed;
    inset: 0;
    background: rgba(250,249,247,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  .nav-list.open { opacity: 1; visibility: visible; }
  .nav-link { font-size: 1.1rem; color: #1a1a1a; }
  .nav-list .btn-coral { margin-top: 8px; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-image { max-width: 400px; }
  .hero-portrait { height: 420px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-layout { grid-template-columns: 1fr; gap: 80px; }
  .about-img-secondary { right: 0; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-inner { padding: 100px 24px 60px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-image { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .about-img-main img { height: 360px; }
  .about-img-secondary { position: relative; bottom: auto; right: auto; margin-top: 16px; }
  .about-img-secondary img { width: 100%; height: 260px; }
  .about-accent-box { top: -16px; left: -16px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .gallery-item--tall { grid-column: span 2; grid-row: span 1; }
  .gallery-item--wide { grid-column: span 2; }
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5),
  .gallery-item:nth-child(6) { grid-column: span 1; }
  .contact-form-wrap { padding: 28px 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 280px; justify-content: center; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 1.85rem; }
  .about-values { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-item--tall,
  .gallery-item--wide,
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5),
  .gallery-item:nth-child(6) { grid-column: span 1; grid-row: span 1; }
}
