/* Senulya Salon – Home page (professional layout) */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --home-accent: #e91e63;
  --home-accent-dark: #c2185b;
  --home-text: #1a1a1a;
  --home-muted: #5c5c5c;
  --home-surface: rgba(255, 255, 255, 0.92);
  --home-radius: 16px;
  --home-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  --home-section-y: clamp(5rem, 9vw, 7.5rem);
  --home-section-x: clamp(1.5rem, 6vw, 5rem);
  --home-gap: clamp(2rem, 4vw, 3.5rem);
  --home-max: 1200px;
}

body.home-page {
  font-family: 'Outfit', 'Gill Sans', sans-serif;
  color: var(--home-text);
}

body.home-page::before {
  opacity: 0.35;
}

/* Nav */
body.home-page nav {
  position: sticky;
  top: 0;
  padding: 0.75rem var(--home-section-x);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.home-page nav .logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

body.home-page nav .logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

body.home-page nav .logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--home-accent);
  letter-spacing: 0.04em;
}

body.home-page nav ul li a {
  padding: 0.5rem 0.85rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

body.home-page nav ul li a:hover {
  background: rgba(233, 30, 99, 0.12);
  color: var(--home-accent);
}

/* Section shell */
.home-section {
  padding: var(--home-section-y) var(--home-section-x);
}

.home-section .container {
  max-width: var(--home-max);
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.section-head .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--home-accent);
  margin-bottom: 0.65rem;
}

.section-head h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.section-head p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--home-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Hero */
#home.home-section {
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(5rem, 10vw, 8rem);
  min-height: auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--home-gap);
  align-items: center;
  max-width: var(--home-max);
  margin: 0 auto;
  padding: 0 clamp(0.5rem, 2vw, 1.5rem);
}

.hero-copy {
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(0.5rem, 2vw, 1rem);
}

.hero-copy .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  margin-bottom: 1.25rem;
  background: rgba(233, 30, 99, 0.1);
  color: var(--home-accent);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-copy h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.35rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin: 0 0 1.25rem;
  color: var(--home-text);
}

body.dark .hero-copy h1,
body.dark-mode .hero-copy h1 {
  color: #fff;
}

.hero-copy .lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--home-muted);
  line-height: 1.7;
  margin: 0 0 2rem;
  max-width: 480px;
}

body.dark .hero-copy .lead,
body.dark-mode .hero-copy .lead {
  color: rgba(255, 255, 255, 0.75);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  background: var(--home-accent);
  color: #fff !important;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(233, 30, 99, 0.35);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  background: var(--home-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(233, 30, 99, 0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 2px solid var(--home-accent);
  color: var(--home-accent) !important;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  background: transparent;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: var(--home-accent);
  color: #fff !important;
}

.hero-visual {
  position: relative;
  margin: 0;
  padding: clamp(0.5rem, 2vw, 1.25rem);
  width: 100%;
}

/* Image box + stats — same width */
.hero-card-stack {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-card-box {
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  background: #e0e0e0;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.hero-card-topbar {
  width: 100%;
  height: 44px;
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
  flex-shrink: 0;
}

.hero-card-media {
  width: 100%;
  line-height: 0;
  margin: 0;
  padding: 0;
}

.hero-card-media img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
  object-fit: cover;
  object-position: center top;
}

.hero-stats {
  display: flex;
  gap: 0.75rem;
  flex-wrap: nowrap;
  justify-content: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.stat-pill {
  flex: 1 1 0;
  min-width: 0;
  padding: 1rem 0.75rem;
  background: var(--home-surface);
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-pill strong {
  display: block;
  font-size: 1.35rem;
  color: var(--home-accent);
  line-height: 1.2;
}

.stat-pill span {
  font-size: 0.75rem;
  color: var(--home-muted);
  font-weight: 500;
}

/* About */
#about.home-section {
  margin-top: 0;
  padding-top: clamp(4rem, 8vw, 6rem);
  padding-bottom: clamp(5rem, 9vw, 7.5rem);
}

.about-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.about-content p {
  color: var(--home-muted);
  font-size: 1.08rem;
  line-height: 1.8;
  margin: 0 0 1.5rem;
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.about-content p:last-of-type {
  margin-bottom: 2.25rem;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.about-feature {
  display: flex;
  gap: 0.85rem;
  padding: 1.25rem 1.35rem;
  background: var(--home-surface);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

body.dark .about-feature {
  background: rgba(40, 40, 40, 0.9);
}

.about-feature i {
  color: var(--home-accent);
  font-size: 1.25rem;
  margin-top: 0.15rem;
}

.about-feature h4 {
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
  font-weight: 600;
}

.about-feature p {
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.5;
}

/* Services */
#services.home-section {
  padding-top: clamp(4.5rem, 9vw, 7rem);
  padding-bottom: clamp(5rem, 9vw, 7.5rem);
}

#services .service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: var(--home-max);
  margin: 0 auto;
  padding: 0 clamp(0.5rem, 2vw, 1rem);
}

#services .service-item {
  background: var(--home-surface);
  padding: 0;
  border-radius: var(--home-radius);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

body.dark #services .service-item {
  background: rgba(35, 35, 35, 0.95);
  border-color: rgba(255, 255, 255, 0.08);
}

#services .service-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(233, 30, 99, 0.15);
}

.service-item .img-wrap {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  margin: 0;
}

.service-item .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
  transition: transform 0.4s ease;
}

.service-item:hover .img-wrap img {
  transform: scale(1.06);
}

.service-item .service-body {
  padding: 1.5rem 1.65rem 1.75rem;
}

.service-item h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--home-text);
}

body.dark .service-item h3 {
  color: #fff;
}

.service-item .service-body > p {
  font-size: 0.92rem;
  color: var(--home-muted);
  margin: 0 0 1rem;
  line-height: 1.55;
}

.service-price {
  font-weight: 700;
  color: var(--home-accent);
  font-size: 0.95rem;
}

/* Gallery */
#gallery.home-section {
  background: rgba(255, 255, 255, 0.55);
  padding: clamp(5rem, 9vw, 7.5rem) var(--home-section-x);
}

body.dark #gallery.home-section {
  background: rgba(0, 0, 0, 0.35);
}

/* Our Work – auto slider */
.work-slider {
  position: relative;
  max-width: var(--home-max);
  margin: 0 auto;
  padding: 0 3rem 2.5rem;
}

.work-slider-viewport {
  overflow: hidden;
  width: 100%;
}

.work-slider-track {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 1rem 0 1.5rem;
  will-change: transform;
}

.work-slide {
  flex: 0 0 calc((100% - 3rem) / 3);
  min-width: 0;
}

.work-slide-card {
  background: var(--home-surface);
  border-radius: var(--home-radius);
  padding: 1.25rem;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-slide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(233, 30, 99, 0.12);
}

.work-slide-img {
  width: 100%;
  max-width: 240px;
  height: 240px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.work-slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #333;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  z-index: 5;
  transition: background 0.2s, transform 0.2s;
}

.work-slider-btn:hover {
  background: #ccf08d;
  transform: translateY(-50%) scale(1.05);
}

.work-prev { left: 0.25rem; }
.work-next { right: 0.25rem; }

.work-slider-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.work-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}

.work-dot.active {
  background: var(--home-accent);
  transform: scale(1.2);
}

body.dark .work-dot {
  background: rgba(255, 255, 255, 0.35);
}

@media (max-width: 900px) {
  .work-slide {
    flex: 0 0 calc((100% - 1.5rem) / 2);
  }
}

@media (max-width: 600px) {
  .work-slider {
    padding: 0 2.5rem 2rem;
  }
  .work-slide {
    flex: 0 0 100%;
  }
  .work-slide-img {
    max-width: 220px;
    height: 220px;
  }
}

/* Testimonials */
#testimonials .testimonial-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: var(--home-max);
  margin: 0 auto;
}

#testimonials .testimonial-item {
  max-width: none;
  text-align: left;
  padding: 1.75rem;
  background: var(--home-surface);
  color: var(--home-text);
  font-style: normal;
  border-radius: var(--home-radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark #testimonials .testimonial-item {
  background: rgba(40, 40, 40, 0.9);
  color: #f0f0f0;
}

.testimonial-item .stars {
  color: #f5b301;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
}

.testimonial-item blockquote {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--home-muted);
  font-style: italic;
}

body.dark .testimonial-item blockquote {
  color: rgba(255, 255, 255, 0.75);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--home-accent);
}

.testimonial-author strong {
  display: block;
  font-style: normal;
  font-size: 0.95rem;
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--home-muted);
  font-weight: 400;
}

/* Contact */
#contact .contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  max-width: var(--home-max);
  margin: 0 auto;
}

.contact-card {
  padding: 1.75rem 1.5rem;
  background: var(--home-surface);
  border-radius: var(--home-radius);
  text-align: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}

.contact-card:hover {
  transform: translateY(-4px);
}

body.dark .contact-card {
  background: rgba(40, 40, 40, 0.9);
}

.contact-card i {
  font-size: 1.75rem;
  color: var(--home-accent);
  margin-bottom: 0.85rem;
}

.contact-card h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.contact-card p,
.contact-card a {
  margin: 0;
  font-size: 0.95rem;
  color: var(--home-muted);
  text-decoration: none;
}

.contact-card a:hover {
  color: var(--home-accent);
}

/* Footer */
body.home-page footer {
  padding: 2.5rem var(--home-section-x);
  margin-top: 0;
  background: linear-gradient(135deg, #2d2a2a, #1a1818);
}

body.home-page .footer-line {
  max-width: var(--home-max);
  margin: 0 auto;
  gap: 2rem;
}

/* Override legacy negative margins on home */
body.home-page .hero-content {
  margin-top: 0;
  min-height: auto;
}

body.home-page .about {
  margin-top: 0;
  text-align: inherit;
}

body.home-page section {
  padding: 0;
  min-height: auto;
}

body.home-page section h2 {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-visual {
    order: -1;
  }

  .hero-card-stack {
    max-width: 100%;
  }

  .hero-stats {
    flex-wrap: wrap;
  }

  .stat-pill {
    min-width: calc(33% - 0.5rem);
  }

  .about-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions a {
    justify-content: center;
  }

  .work-slider {
    padding: 0 2.25rem 1.75rem;
  }
}
