/* ==========================================================================
   KACE BEAUTY – SHARED MASTER STYLESHEET (DESIGN SYSTEM)
   Luxury Aesthetic Clinic & Cosmetic Surgery
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=Montserrat:wght@300;400;500;600;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Dark Luxury Emerald Palette */
  --bg-darkest: #07130a;
  --bg-dark: #0c1c11;
  --bg-section-dark: #0a180f;
  --bg-card-dark: rgba(12, 28, 17, 0.7);

  /* Light Luxury Marble / Ivory Cream Palette (Subpages) */
  --bg-subpage: #faf8f4;
  --bg-card-light: #ffffff;
  --bg-pill-inactive: #f0ece3;
  --border-light: rgba(201, 164, 76, 0.22);
  --border-subtle: #e9e4d8;

  /* Gold Luxury Accents */
  --gold-primary: #c9a44c;
  --gold-light: #e6cb85;
  --gold-bright: #f0db9e;
  --gold-dark: #9e7d32;
  --gold-border: rgba(201, 164, 76, 0.35);
  --gold-border-subtle: rgba(201, 164, 76, 0.18);

  /* Typography Colors */
  --text-white: #ffffff;
  --text-light: #c8d6cc;
  --text-muted: #85998b;
  --text-dark: #0c2014;
  --text-dark-secondary: #2c4234;
  --text-dark-muted: #62776a;

  /* Fonts */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  --container-width: 1220px;
  --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 10px 30px rgba(12, 32, 20, 0.06);
  --shadow-hover: 0 16px 36px rgba(201, 164, 76, 0.16);
}

html {
  scroll-behavior: smooth;
  font-size: 14px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-subpage);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   BUTTONS (LUXURY GOLD PILL & OUTLINE)
   ========================================================================== */
.btn-gold-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gold-primary);
  background: rgba(201, 164, 76, 0.12);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-gold-pill:hover {
  background: var(--gold-primary);
  color: var(--bg-darkest);
  box-shadow: 0 4px 18px rgba(201, 164, 76, 0.35);
  transform: translateY(-1px);
}

.btn-dark-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  background: var(--bg-darkest);
  color: #ffffff;
  border: 1px solid var(--gold-border);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-dark-pill:hover {
  background: var(--gold-primary);
  color: var(--bg-darkest);
  box-shadow: 0 6px 20px rgba(7, 19, 10, 0.4);
  transform: translateY(-2px);
}

.btn-outline-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-dark);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-outline-pill:hover {
  border-color: var(--gold-primary);
  color: var(--gold-dark);
  background: rgba(201, 164, 76, 0.08);
  transform: translateY(-1px);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(7, 19, 10, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 164, 76, 0.22);
  transition: var(--transition);
}

header.site-header.scrolled {
  background: rgba(7, 19, 10, 0.98);
  box-shadow: 0 4px 25px rgba(0,0,0,0.6);
  border-bottom-color: rgba(201, 164, 76, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Brand Logo */
.brand-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo .logo-img {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
  transition: var(--transition);
}
.brand-logo:hover .logo-img {
  transform: scale(1.02);
}
.brand-logo .logo-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 2.2px;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-top: 4px;
  font-family: var(--font-sans);
  text-align: center;
  white-space: nowrap;
  width: 100%;
}
.brand-logo .logo-tag::before,
.brand-logo .logo-tag::after {
  content: '';
  width: 8px;
  height: 1px;
  background: var(--gold-primary);
  opacity: 0.7;
}
.footer-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 16px;
}
.footer-logo .logo-img {
  height: 52px;
  max-width: 160px;
}
.footer-logo .logo-tag {
  font-size: 7.5px;
  letter-spacing: 2.5px;
  margin-top: 5px;
  justify-content: center;
  width: 100%;
  max-width: 160px;
}

/* Nav Menu */
nav .nav-menu,
ul.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
ul.nav-menu li {
  list-style: none;
  display: inline-block;
  margin: 0;
  padding: 0;
}
ul.nav-menu li a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #e5ece6;
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
  display: inline-block;
}
ul.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold-primary);
  transition: width 0.3s ease;
}
ul.nav-menu li a:hover,
ul.nav-menu li a.active {
  color: var(--gold-primary);
}
ul.nav-menu li a:hover::after,
ul.nav-menu li a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Hamburger Icon */
.hamburger-icon {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 17px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger-icon span {
  width: 100%;
  height: 2px;
  background: var(--gold-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(7, 19, 10, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gold-border);
  padding: 20px 24px 28px;
  flex-direction: column;
  gap: 14px;
  z-index: 999;
  box-shadow: 0 16px 40px rgba(0,0,0,0.8);
}
.mobile-drawer.open {
  display: flex;
}
.mobile-drawer a {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #c9d8ce;
  padding: 8px 0;
  border-bottom: 1px solid rgba(201, 164, 76, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-drawer a.active,
.mobile-drawer a:hover {
  color: var(--gold-primary);
  padding-left: 6px;
}

/* ==========================================================================
   SUBPAGE LAYOUT WRAPPERS
   ========================================================================== */
.subpage-wrapper {
  padding-top: 106px;
  padding-bottom: 80px;
  min-height: calc(100vh - 350px);
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--text-dark-muted);
  margin-bottom: 22px;
}
.breadcrumb-nav a {
  color: var(--text-dark-muted);
}
.breadcrumb-nav a:hover {
  color: var(--gold-primary);
}
.breadcrumb-nav span.sep {
  color: var(--gold-primary);
  font-size: 10px;
}
.breadcrumb-nav span.current {
  color: var(--text-dark);
  font-weight: 600;
}

.subpage-header {
  margin-bottom: 28px;
}
.subpage-title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.5px;
  line-height: 1.15;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.subpage-tagline {
  font-size: 13px;
  color: var(--text-dark-muted);
  letter-spacing: 0.8px;
  font-weight: 400;
}

/* Category Filter Tabs */
.filter-tabs-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filter-tabs-row::-webkit-scrollbar {
  display: none;
}
.filter-pill {
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  background: var(--bg-pill-inactive);
  color: var(--text-dark-secondary);
  transition: var(--transition);
}
.filter-pill:hover {
  border-color: var(--gold-primary);
  color: var(--gold-dark);
  background: #ffffff;
}
.filter-pill.active {
  background: var(--bg-darkest);
  color: #ffffff;
  border-color: var(--gold-primary);
  box-shadow: 0 4px 12px rgba(7, 19, 10, 0.25);
}

/* ==========================================================================
   FOOTER (MATCHING HOME PAGE)
   ========================================================================== */
footer.site-footer {
  background: var(--bg-darkest);
  color: #ffffff;
  padding: 68px 0 32px;
  border-top: 1px solid var(--gold-border);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.2fr 1.6fr;
  gap: 36px;
  margin-bottom: 50px;
}
.footer-col-brand .logo-main {
  font-size: 26px;
}
.footer-tagline {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 14px 0 20px;
}
.footer-social-row {
  display: flex;
  gap: 10px;
}
.social-round-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  transition: var(--transition);
}
.social-round-btn:hover {
  background: var(--gold-primary);
  color: var(--bg-darkest);
  transform: translateY(-2px);
}
.social-round-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.footer-col-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 1px;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-links-list a {
  font-size: 12px;
  color: #a3b8aa;
  transition: var(--transition);
}
.footer-links-list a:hover {
  color: var(--gold-primary);
  padding-left: 4px;
}
.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12px;
  color: #a3b8aa;
}
.contact-item-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.5;
}
.contact-item-row svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold-primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-bottom-row {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #6e8074;
}

/* ==========================================================================
   MOBILE STICKY BOTTOM NAVIGATION BAR
   ========================================================================== */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(7, 19, 10, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--gold-border);
  z-index: 9999;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
}
.bottom-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.bottom-bar-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #8fa597;
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 0;
  transition: var(--transition);
}
.bottom-bar-tab.active,
.bottom-bar-tab:hover {
  color: var(--gold-primary);
}
.bottom-bar-tab svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (DESKTOP TO MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 900px) {
  nav .nav-menu,
  ul.nav-menu {
    display: none;
  }
  .hamburger-icon {
    display: flex;
  }
  .mobile-bottom-bar {
    display: block;
  }
  .brand-logo .logo-img {
    height: 32px;
  }
  .brand-logo .logo-tag {
    font-size: 5.5px;
    letter-spacing: 1.6px;
  }
  .subpage-wrapper {
    padding-top: 86px;
    padding-bottom: 90px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-row {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
