/* ============================================================
   SMILE BABY v2 — Layout (Header, Footer, Grid, Sections)
   ============================================================ */

/* ── Header ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--white);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s, box-shadow 0.3s;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--line);
}

.site-header.scrolled .header-inner {
  height: var(--header-h); /* do not shrink to prevent shift */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  transition: box-shadow var(--duration-base) var(--ease-default);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  position: relative;
  width: 40px;
  height: 40px;
}

.logo-icon .heart {
  fill: var(--accent);
  transition: transform var(--duration-base) var(--ease-bounce);
}

.logo:hover .logo-icon .heart {
  transform: scale(1.15);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text .logo-name {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--primary);
  line-height: 1.1;
}

.logo-text .logo-tagline {
  font-size: 10px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  font-weight: var(--fw-medium);
  margin-top: 2px;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.nav-link {
  padding: 8px 16px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--ink);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--duration-base) var(--ease-default);
  border-radius: var(--radius-full);
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-bg);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--primary);
  font-weight: var(--fw-semibold);
}

/* Dropdown inside nav */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--line);
  padding: var(--sp-2) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition-fast);
  z-index: var(--z-dropdown);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: var(--fs-sm);
  color: var(--ink);
  transition: var(--transition-fast);
}

.nav-dropdown-menu a:hover {
  background: var(--cream);
  color: var(--primary);
  padding-left: 24px;
}

/* Header CTA */
.header-cta {
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  z-index: calc(var(--z-header) + 1);
  position: relative;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
  position: absolute;
}

.hamburger-line:nth-child(1) { transform: translateY(-7px); }
.hamburger-line:nth-child(2) { /* center */ }
.hamburger-line:nth-child(3) { transform: translateY(7px); }

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: var(--z-header);
  padding: calc(var(--header-h) + var(--sp-6)) var(--sp-6) var(--sp-6);
  flex-direction: column;
  gap: var(--sp-2);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav .nav-link {
  font-size: var(--fs-lg);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.mobile-nav .nav-link::after {
  display: none;
}

.mobile-nav .btn {
  margin-top: var(--sp-6);
  width: 100%;
  justify-content: center;
}

/* ── Page Hero (inner pages) ──────────────────────────── */
.page-hero {
  position: relative;
  padding: var(--sp-16) 0 var(--sp-12);
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-2) 100%);
  text-align: center;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--primary-bg);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(21, 160, 74, 0.04);
  pointer-events: none;
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: var(--fs-4xl);
  margin-bottom: var(--sp-4);
}

.page-hero p {
  font-size: var(--fs-lg);
  max-width: 600px;
  margin: 0 auto;
  color: var(--ink-soft);
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  margin-bottom: var(--sp-6);
}

.breadcrumb a {
  color: var(--primary);
  font-weight: var(--fw-medium);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb .separator {
  color: var(--line-2);
}

/* ── Sections ─────────────────────────────────────────── */
.section {
  padding: var(--sp-20) 0;
}

.section-sm {
  padding: var(--sp-12) 0;
}

.section-lg {
  padding: var(--sp-24) 0;
}

.section-cream {
  background-color: var(--cream);
}

.section-white {
  background-color: #FFFFFF;
}

.section-primary {
  background-color: var(--primary);
  color: #FFFFFF;
}

.section-primary h2,
.section-primary h3 {
  color: #FFFFFF;
}

.section-primary p {
  color: rgba(255, 255, 255, 0.85);
}

/* ── About Grid ───────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 120px;
  height: 120px;
  border: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-content h2 {
  text-align: left;
}

.about-content h2::after {
  display: none;
}

.about-content .about-subtitle {
  color: var(--primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  margin-bottom: var(--sp-3);
  display: block;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}

.about-feature {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--cream);
  border-radius: var(--radius-md);
}

.about-feature .feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-feature span {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--ink);
}

/* ── Contact Grid ─────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-12);
}

.contact-info-column {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.contact-form-column {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  box-shadow: var(--shadow-card);
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-top: var(--sp-6);
}

.contact-map iframe {
  width: 100%;
  height: 280px;
  border: none;
}

/* ── Footer ───────────────────────────────────────────── */
.site-footer {
  background: var(--ink-dark);
  color: rgba(255, 255, 255, 0.75);
  padding-top: var(--sp-16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--sp-10);
  padding-bottom: var(--sp-12);
}

.footer-brand .logo-name {
  color: #FFFFFF;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-sm);
  margin-top: var(--sp-4);
  line-height: var(--lh-relaxed);
}

.footer-heading {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: #FFFFFF;
  margin-bottom: var(--sp-5);
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-sm);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 6px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.footer-contact-item .fc-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
  color: var(--primary-light);
}

.footer-contact-item span,
.footer-contact-item a {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact-item a:hover {
  color: var(--primary-light);
}

/* Social Links */
.social-links {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-base);
  font-size: 1rem;
}

.social-link:hover {
  background: var(--primary);
  color: #FFFFFF;
  transform: translateY(-3px);
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--sp-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--primary-light);
}

.footer-bottom-links {
  display: flex;
  gap: var(--sp-4);
}

/* ── Grid Systems ─────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}

.grid-auto-fit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-6);
}

/* Hide mobile controls on desktop by default */
.mobile-controls { display: none; }


/* Swiper Custom Buttons */
.swiper {
    --swiper-navigation-color: var(--primary);
    --swiper-navigation-size: 20px;
}
.swiper-button-next, .swiper-button-prev { 
    background: var(--white); 
    color: var(--primary); 
    border: 1px solid rgba(0,0,0,0.05); 
    width: 45px !important; 
    height: 45px !important; 
    border-radius: 50% !important; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); 
    transition: all 0.3s ease; 
}
.swiper-button-next:after, .swiper-button-prev:after { 
    font-weight: 900 !important; 
}
.swiper-button-next:hover, .swiper-button-prev:hover { 
    background: var(--primary); 
    color: white; 
    border-color: var(--primary);
    transform: scale(1.1);
}
@media (max-width: 768px) { .swiper-button-next, .swiper-button-prev { display: none !important; } }


/* MEGA MENU STYLES */
.site-header .header-inner {
    position: relative;
}

.nav-item-mega {
    position: static; /* Let dropdown span the .header-inner */
}

.mega-menu-content {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-top: 3px solid var(--primary);
    border-radius: 0 0 24px 24px;
    padding: 35px 40px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px); /* From top to bottom */
    transition: all 0.3s ease;
}

.nav-item-mega:hover .mega-menu-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-item-mega:hover .nav-caret {
    transform: rotate(180deg);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px 30px;
}

.mega-menu-link {
    display: flex;
    align-items: center;
    color: #1e293b !important; /* Explicitly dark text, override any other styles */
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 12px;
    transition: all 0.25s ease;
}

.mega-menu-link:hover {
    background: rgba(21, 160, 74, 0.05); /* very soft primary */
    color: var(--primary);
    transform: translateX(5px);
}

