/* =============================================
   SALON IHSAN HAIR DESIGNER — Global Stylesheet
   Tech: CSS3 · Flexbox · Grid · Custom Props
   ============================================= */

/* ---------- CSS Custom Properties ---------- */
:root {
  --clr-primary:   #c9a96e;   /* Gold */
  --clr-primary-d: #a6834d;   /* Dark Gold */
  --clr-accent:    #f2e0e8;   /* Soft Rose */
  --clr-dark:      #2b2b2b;
  --clr-mid:       #6c6c6c;
  --clr-light:     #faf7f5;
  --clr-white:     #ffffff;

  --ff-head: 'Playfair Display', serif;
  --ff-body: 'Poppins', sans-serif;

  --radius:  10px;
  --shadow:  0 6px 24px rgba(0,0,0,.09);
  --trans:   .3s ease;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  color: var(--clr-dark);
  background-color: var(--clr-white);
  line-height: 1.7;
  font-size: 1rem;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--ff-head);
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.section-title {
  text-align: center;
  margin-bottom: .5rem;
  color: var(--clr-dark);
}
.section-subtitle {
  text-align: center;
  color: var(--clr-mid);
  margin-bottom: 3rem;
  font-size: .95rem;
  letter-spacing: .04em;
}
.divider {
  width: 60px;
  height: 3px;
  background: var(--clr-primary);
  margin: .75rem auto 1rem;
  border-radius: 2px;
}

/* ---------- Utility ---------- */
.section-pad  { padding: 80px 0; }
.bg-light-rose { background-color: var(--clr-accent); }
.bg-light      { background-color: var(--clr-light); }
.text-gold     { color: var(--clr-primary); }
.text-center   { text-align: center; }

/* ---------- Buttons ---------- */
.btn-gold {
  display: inline-block;
  padding: .75rem 2rem;
  background: var(--clr-primary);
  color: var(--clr-white);
  border-radius: 50px;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .06em;
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
  border: 2px solid var(--clr-primary);
}
.btn-gold:hover {
  background: var(--clr-primary-d);
  border-color: var(--clr-primary-d);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201,169,110,.35);
  color: var(--clr-white);
}
.btn-outline-gold {
  display: inline-block;
  padding: .75rem 2rem;
  background: transparent;
  color: var(--clr-primary);
  border-radius: 50px;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .06em;
  border: 2px solid var(--clr-primary);
  transition: all var(--trans);
}
.btn-outline-gold:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
  transform: translateY(-2px);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar-brand-logo {
  font-family: var(--ff-head);
  font-size: 1.5rem;
  color: var(--clr-dark) !important;
  letter-spacing: .03em;
}
.navbar-brand-logo span { color: var(--clr-primary); }

.navbar {
  background-color: var(--clr-white) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  padding: .9rem 0;
  transition: box-shadow var(--trans);
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.12); }

.navbar-nav .nav-link {
  color: var(--clr-dark) !important;
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .04em;
  padding: .4rem .85rem !important;
  transition: color var(--trans);
  position: relative;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: .85rem;
  right: .85rem;
  height: 2px;
  background: var(--clr-primary);
  transform: scaleX(0);
  transition: transform var(--trans);
  border-radius: 2px;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--clr-primary) !important;
}
.navbar-toggler { border: none; outline: none; box-shadow: none !important; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23c9a96e' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: var(--clr-dark);
  color: #ccc;
  padding: 60px 0 0;
  font-size: .9rem;
}
.footer-brand {
  font-family: var(--ff-head);
  font-size: 1.8rem;
  color: var(--clr-white);
}
.footer-brand span { color: var(--clr-primary); }
.footer-tagline { color: #aaa; margin-top: .3rem; font-size: .85rem; }

.footer-heading {
  color: var(--clr-white);
  font-family: var(--ff-body);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: 1.2rem;
}
.footer-links li { margin-bottom: .5rem; }
.footer-links a {
  color: #aaa;
  transition: color var(--trans);
}
.footer-links a:hover { color: var(--clr-primary); }

.social-icons { display: flex; gap: .8rem; margin-top: .5rem; }
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #ccc;
  font-size: 1rem;
  transition: background var(--trans), color var(--trans), transform var(--trans);
}
.social-icons a:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 40px;
  padding: 18px 0;
  font-size: .8rem;
  color: #777;
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  padding: 100px 0 0;
  background: linear-gradient(135deg, var(--clr-accent) 0%, var(--clr-white) 100%);
  text-align: center;
  border-bottom: 1px solid rgba(201,169,110,.2);
}
.page-hero h1 { color: var(--clr-dark); }
.page-hero .breadcrumb {
  justify-content: center;
  font-size: .85rem;
  color: var(--clr-mid);
  background: none;
  margin-top: .5rem;
}
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: var(--clr-primary); }
.page-hero .breadcrumb-item a { color: var(--clr-primary); }

/* ============================================
   INDEX — HERO SECTION
   ============================================ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #fdf6f0 0%, var(--clr-accent) 50%, #f7eff4 100%);
  position: relative;
  overflow: hidden;
  padding-top: 76px; /* navbar height */
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  padding: .35rem 1.1rem;
  background: rgba(201,169,110,.15);
  color: var(--clr-primary);
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(201,169,110,.3);
}
.hero-section h1 { color: var(--clr-dark); margin-bottom: 1rem; }
.hero-lead {
  font-size: 1.05rem;
  color: var(--clr-mid);
  max-width: 500px;
  margin-bottom: 2rem;
}
.hero-cta-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-img-wrap {
  position: relative;
  border-radius: 30px 30px 80px 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-img-wrap img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}
.hero-stat-card {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background: var(--clr-white);
  padding: .9rem 1.3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: .8rem;
}
.hero-stat-card .stat-num {
  font-family: var(--ff-head);
  font-size: 1.6rem;
  color: var(--clr-primary);
  line-height: 1;
}
.hero-stat-card .stat-lbl {
  font-size: .75rem;
  color: var(--clr-mid);
  line-height: 1.3;
}

/* ============================================
   INDEX — FEATURES BAR
   ============================================ */
.features-bar {
  background: var(--clr-dark);
  padding: 24px 0;
}
.features-bar .feature-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: #ccc;
  font-size: .88rem;
}
.features-bar .feature-item i { color: var(--clr-primary); font-size: 1.2rem; }

/* ============================================
   INDEX — SERVICES PREVIEW
   ============================================ */
.service-card {
  background: var(--clr-white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--trans), box-shadow var(--trans);
  height: 100%;
  border-bottom: 3px solid transparent;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
  border-bottom-color: var(--clr-primary);
}
.service-card .svc-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--clr-accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.6rem;
  color: var(--clr-primary);
  transition: background var(--trans);
}
.service-card:hover .svc-icon { background: var(--clr-primary); color: var(--clr-white); }
.service-card h3 { margin-bottom: .5rem; font-size: 1.1rem; }
.service-card p  { color: var(--clr-mid); font-size: .88rem; }

/* ============================================
   INDEX — TESTIMONIALS
   ============================================ */
.testimonial-card {
  background: var(--clr-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
  height: 100%;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 1rem; left: 1.5rem;
  font-size: 4rem;
  font-family: var(--ff-head);
  color: var(--clr-accent);
  line-height: 1;
}
.testimonial-card .stars { color: var(--clr-primary); font-size: .9rem; margin-bottom: .8rem; }
.testimonial-card .reviewer { font-weight: 600; font-size: .9rem; }
.testimonial-card .reviewer-role { color: var(--clr-mid); font-size: .8rem; }

/* ============================================
   SERVICES PAGE
   ============================================ */
.svc-detail-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--clr-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--trans);
}
.svc-detail-card:hover { transform: translateY(-4px); }
.svc-detail-card .svc-d-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 12px;
  background: var(--clr-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--clr-primary);
}
.svc-detail-card h4 { font-size: 1rem; margin-bottom: .3rem; }
.svc-detail-card p  { font-size: .85rem; color: var(--clr-mid); margin: 0; }
.svc-detail-card .svc-price {
  margin-left: auto;
  font-family: var(--ff-head);
  font-size: 1.1rem;
  color: var(--clr-primary);
  white-space: nowrap;
}

/* ============================================
   GALLERY PAGE — Lightbox
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(43,43,43,.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity var(--trans);
}
.gallery-overlay i { color: var(--clr-white); font-size: 2rem; }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Lightbox Modal */
#lightbox-modal .modal-dialog { max-width: 860px; }
#lightbox-modal .modal-content {
  background: #111;
  border: none;
  border-radius: 12px;
  overflow: hidden;
}
#lightbox-modal .modal-body { padding: 0; position: relative; }
#lightbox-modal .lb-img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
}
#lightbox-modal .modal-header {
  background: #111;
  border: none;
  position: absolute;
  top: 0; right: 0; z-index: 10;
}
#lightbox-modal .btn-close { filter: invert(1); }
#lightbox-modal .lb-caption {
  background: #111;
  color: #ccc;
  text-align: center;
  padding: .8rem 1rem;
  font-size: .85rem;
}
#lightbox-modal .lb-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  padding: .5rem .8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--trans);
  z-index: 10;
}
#lightbox-modal .lb-nav:hover { background: var(--clr-primary); }
#lightbox-modal .lb-prev { left: 10px; }
#lightbox-modal .lb-next { right: 10px; }

/* Gallery Filter Tabs */
.gallery-filter { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2rem; }
.gallery-filter .btn-filter {
  padding: .45rem 1.2rem;
  border-radius: 50px;
  border: 1px solid var(--clr-primary);
  background: transparent;
  color: var(--clr-primary);
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--trans);
}
.gallery-filter .btn-filter:hover,
.gallery-filter .btn-filter.active {
  background: var(--clr-primary);
  color: var(--clr-white);
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.team-card {
  text-align: center;
  background: var(--clr-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--trans);
}
.team-card:hover { transform: translateY(-6px); }
.team-card .team-img-wrap {
  position: relative;
  overflow: hidden;
  height: 280px;
}
.team-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.team-card:hover img { transform: scale(1.04); }
.team-card .team-social {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(43,43,43,.7));
  display: flex; justify-content: center; gap: .6rem;
  padding: 1.5rem .5rem .8rem;
  transform: translateY(100%);
  transition: transform var(--trans);
}
.team-card:hover .team-social { transform: translateY(0); }
.team-card .team-social a {
  color: #fff;
  font-size: .95rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--trans);
}
.team-card .team-social a:hover { background: var(--clr-primary); }
.team-card .team-info { padding: 1.2rem; }
.team-card .team-info h4 { margin-bottom: .2rem; font-size: 1.05rem; }
.team-card .team-info span { color: var(--clr-primary); font-size: .82rem; font-weight: 500; }

.value-item {
  display: flex; gap: 1rem; align-items: flex-start;
  margin-bottom: 1.5rem;
}
.value-item .val-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 12px;
  background: var(--clr-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--clr-primary);
}
.value-item h5 { margin-bottom: .2rem; font-size: .95rem; }
.value-item p  { font-size: .85rem; color: var(--clr-mid); margin: 0; }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-info-card {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.2rem;
  background: var(--clr-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.contact-info-card .ci-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--clr-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--clr-primary);
}
.contact-info-card h5 { margin-bottom: .1rem; font-size: .9rem; }
.contact-info-card p  { font-size: .85rem; color: var(--clr-mid); margin: 0; }

.contact-form .form-control,
.contact-form .form-select {
  border: 1.5px solid #e0d8d0;
  border-radius: 8px;
  padding: .75rem 1rem;
  font-size: .9rem;
  transition: border-color var(--trans), box-shadow var(--trans);
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(201,169,110,.18);
}
.contact-form label { font-size: .85rem; font-weight: 500; margin-bottom: .4rem; }
.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 320px;
}
.map-wrapper iframe { width: 100%; height: 100%; border: 0; }

/* ============================================
   SCROLL-TO-TOP BUTTON
   ============================================ */
#scrollTopBtn {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: var(--clr-white);
  border: none;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(201,169,110,.5);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans), transform var(--trans);
  z-index: 999;
}
#scrollTopBtn.visible { opacity: 1; pointer-events: all; }
#scrollTopBtn:hover { transform: translateY(-3px); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
  .hero-section { padding-top: 80px; text-align: center; }
  .hero-lead { margin: 0 auto 2rem; }
  .hero-cta-group { justify-content: center; }
  .hero-img-wrap { margin-top: 2.5rem; }
  .hero-stat-card { left: 10px; }
}

@media (max-width: 767.98px) {
  .section-pad { padding: 56px 0; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .svc-detail-card { flex-wrap: wrap; }
  .svc-detail-card .svc-price { margin-left: 0; margin-top: .5rem; }
  .features-bar .feature-item { justify-content: center; }
}

@media (max-width: 575.98px) {
  .hero-section { min-height: auto; padding-bottom: 60px; }
  .hero-cta-group { flex-direction: column; align-items: center; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
