@charset "UTF-8";

/*============================================================
# Font & Color Variables - Mtwapa Creek Dental Care
============================================================*/

:root {
  /* Fonts */
  --default-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --heading-font: "Raleway", sans-serif;
  --nav-font: "Inter", sans-serif;

  /* Core Colors (Clinic-specific) */
  --background-color: #f4faf9;       /* Soft mint - calm & clean */
  --default-color: #2b2f30;          /* Main readable text */
  --heading-color: #1f4f55;          /* Deep teal for headings */
  --accent-color: #1aa3a8;           /* Strong teal CTA color */

  --surface-color: #ffffff;          /* Cards, sections, navbar */
  --contrast-color: #ffffff;         /* Text on accent buttons */

  /* Subtle UI tones */
  --border-color: #d7e6e4;
  --muted-color: #6b7c7f;

  /* Navigation */
  --nav-color: #3e5f63;
  --nav-hover-color: #1aa3a8;

  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #3e5f63;
  --nav-dropdown-hover-color: #1aa3a8;
}

/* Optional: Slightly more clinical accent (uncomment if you prefer) */
/* --accent-color: #0ea5b7; */

.light-background {
  --background-color: #f4faf9;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #021418;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #11262a;
  --contrast-color: #ffffff;
}

/* Smooth scrolling */
:root {
  scroll-behavior: smooth;
}

/* Basic resets & global styles will come later */
/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    color: var(--default-color);
    background-color: var(--background-color);
    font-family: var(--default-font);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: color-mix(in srgb, var(--accent-color), transparent 20%);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.2;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons - Base Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--contrast-color);
}

.btn-primary:hover {
    background-color: color-mix(in srgb, var(--accent-color), #000 15%);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--heading-color);
    border: 2px solid var(--heading-color);
}

.btn-secondary:hover {
    background-color: var(--heading-color);
    color: var(--contrast-color);
}


 /* ============================================================
       HEADER BASE
    ============================================================ */
    .header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 997;
      padding: 16px 0;
      background-color: transparent;
      transition: padding 0.4s ease;
    }

    /* Scrolled state — header shrinks and gets solid bg */
    body.scrolled .header {
      padding: 8px 0;
    }

    body.scrolled .header .header-container {
      box-shadow: 0 4px 30px rgba(26, 163, 168, 0.12);
    }

    .header-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 10px 28px;
      background: var(--surface-color);
      border-radius: 60px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
      transition: box-shadow 0.4s ease, padding 0.4s ease;
      /* Fluid horizontal margins */
      margin-left: clamp(12px, 3vw, 40px);
      margin-right: clamp(12px, 3vw, 40px);
    }

    /* ============================================================
       LOGO
    ============================================================ */
    .logo {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
      text-decoration: none;
    }

    .logo-icon {
      width: 38px;
      height: 38px;
      flex-shrink: 0;
      color: var(--accent-color);
      transition: transform 0.35s ease;
    }

    .logo:hover .logo-icon {
      transform: rotate(-8deg) scale(1.08);
    }

    .logo-text {
      display: flex;
      flex-direction: column;
      line-height: 1.1;
    }

    .logo-name {
      font-family: var(--heading-font);
      font-weight: 800;
      font-size: 17px;
      color: var(--heading-color);
      letter-spacing: -0.3px;
      white-space: nowrap;
    }

    .logo-tagline {
      font-family: var(--default-font);
      font-size: 10.5px;
      font-weight: 500;
      color: var(--muted-color);
      letter-spacing: 0.6px;
      text-transform: uppercase;
      white-space: nowrap;
    }

    /* ============================================================
       DESKTOP NAV
    ============================================================ */
    .navmenu {
      display: flex;
      align-items: center;
    }

    .navmenu ul {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .navmenu ul li a {
      font-family: var(--nav-font);
      font-weight: 600;
      font-size: 14.5px;
      color: var(--nav-color);
      padding: 7px 14px;
      border-radius: 30px;
      display: inline-block;
      position: relative;
      transition: color 0.3s ease, background 0.3s ease;
      white-space: nowrap;
    }

    .navmenu ul li a::after {
      content: "";
      position: absolute;
      bottom: 4px;
      left: 14px;
      right: 14px;
      height: 2px;
      background: var(--accent-color);
      border-radius: 2px;
      transform: scaleX(0);
      transform-origin: center;
      transition: transform 0.3s ease;
    }

    .navmenu ul li a:hover,
    .navmenu ul li a.active {
      color: var(--nav-hover-color);
    }

    .navmenu ul li a:hover::after,
    .navmenu ul li a.active::after {
      transform: scaleX(1);
    }

    /* "Under construction" links — subtle visual cue */
    .navmenu ul li a.nav-future {
      opacity: 0.72;
    }

    .navmenu ul li a.nav-future:hover {
      opacity: 1;
    }

    /* ============================================================
       WHATSAPP CTA BUTTON
    ============================================================ */
    #btn-whatsapp {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--accent-color);
      color: var(--contrast-color);
      font-family: var(--default-font);
      font-weight: 700;
      font-size: 13.5px;
      padding: 10px 20px;
      border-radius: 50px;
      white-space: nowrap;
      flex-shrink: 0;
      transition: background 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
      box-shadow: 0 4px 14px rgba(26, 163, 168, 0.28);
      border: none;
      cursor: pointer;
      text-decoration: none;
    }

    #btn-whatsapp:hover {
      background: #138f94;
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(26, 163, 168, 0.38);
      color: #fff;
    }

    #btn-whatsapp svg {
      width: 17px;
      height: 17px;
      flex-shrink: 0;
    }

    /* ============================================================
       MOBILE NAV TOGGLE (custom — no Bootstrap)
    ============================================================ */
    .mobile-nav-toggle {
      display: none;
      background: none;
      border: none;
      cursor: pointer;
      padding: 6px;
      border-radius: 8px;
      color: var(--heading-color);
      transition: background 0.2s ease;
      flex-shrink: 0;
      margin-left: 10px;
    }

    .mobile-nav-toggle:hover {
      background: var(--background-color);
    }

    .mobile-nav-toggle .bar {
      display: block;
      width: 24px;
      height: 2.5px;
      background: var(--heading-color);
      border-radius: 3px;
      transition: transform 0.35s ease, opacity 0.25s ease, width 0.3s ease;
      transform-origin: center;
    }

    .mobile-nav-toggle .bar + .bar {
      margin-top: 5px;
    }

    /* Animate to X */
    body.mobile-nav-active .mobile-nav-toggle .bar:nth-child(1) {
      transform: translateY(7.5px) rotate(45deg);
    }

    body.mobile-nav-active .mobile-nav-toggle .bar:nth-child(2) {
      opacity: 0;
      width: 0;
    }

    body.mobile-nav-active .mobile-nav-toggle .bar:nth-child(3) {
      transform: translateY(-7.5px) rotate(-45deg);
    }

    /* ============================================================
       MOBILE NAV OVERLAY & MENU
    ============================================================ */
    .mobile-nav-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(20, 50, 55, 0.55);
      backdrop-filter: blur(3px);
      z-index: 996;
      opacity: 0;
      transition: opacity 0.35s ease;
    }

    body.mobile-nav-active .mobile-nav-overlay {
      opacity: 1;
    }

    .mobile-nav-panel {
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      width: min(320px, 88vw);
      background: var(--surface-color);
      z-index: 998;
      padding: 0;
      display: flex;
      flex-direction: column;
      transform: translateX(110%);
      transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
    }

    body.mobile-nav-active .mobile-nav-panel {
      transform: translateX(0);
    }

    .mobile-nav-header {
      padding: 22px 24px 18px;
      border-bottom: 1px solid var(--border-color);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .mobile-nav-header .logo-name {
      font-size: 16px;
    }

    .mobile-nav-header .logo-tagline {
      font-size: 10px;
    }

    .mobile-nav-close {
      background: var(--background-color);
      border: none;
      border-radius: 50%;
      width: 34px;
      height: 34px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--heading-color);
      transition: background 0.2s ease;
      flex-shrink: 0;
    }

    .mobile-nav-close:hover {
      background: var(--border-color);
    }

    .mobile-nav-links {
      list-style: none;
      margin: 0;
      padding: 16px 0;
      flex: 1;
      overflow-y: auto;
    }

    .mobile-nav-links li a {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 24px;
      font-family: var(--nav-font);
      font-weight: 600;
      font-size: 15.5px;
      color: var(--nav-color);
      border-bottom: 1px solid color-mix(in srgb, var(--border-color), transparent 40%);
      transition: color 0.25s ease, background 0.25s ease;
    }

    .mobile-nav-links li a:hover,
    .mobile-nav-links li a.active {
      color: var(--accent-color);
      background: color-mix(in srgb, var(--accent-color), transparent 93%);
    }

    .mobile-nav-links li a.nav-future .future-badge {
      font-size: 10px;
      font-weight: 600;
      background: color-mix(in srgb, var(--accent-color), transparent 85%);
      color: var(--accent-color);
      padding: 2px 8px;
      border-radius: 20px;
      text-transform: uppercase;
      letter-spacing: 0.4px;
    }

    .mobile-nav-footer {
      padding: 20px 24px 28px;
      border-top: 1px solid var(--border-color);
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .mobile-nav-footer .btn-whatsapp {
      justify-content: center;
      width: 100%;
      padding: 13px 20px;
      font-size: 14.5px;
    }

    .mobile-call-link {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      font-size: 13.5px;
      font-weight: 600;
      color: var(--heading-color);
      padding: 8px;
      border-radius: 8px;
      transition: color 0.2s ease;
    }

    .mobile-call-link:hover {
      color: var(--accent-color);
    }

    /* ============================================================
       RESPONSIVE BREAKPOINTS
    ============================================================ */
    @media (max-width: 1199px) {
      .navmenu { display: none; }
       #btn-whatsapp  { display: none; } 
      .mobile-nav-toggle { display: flex; flex-direction: column; }
      .mobile-nav-overlay { display: block; pointer-events: none; }
      body.mobile-nav-active .mobile-nav-overlay { pointer-events: auto; }
    }

    @media (max-width: 575px) {
      .logo-name { font-size: 15px; }
      .logo-tagline { font-size: 9.5px; }
      .logo-icon { width: 32px; height: 32px; }
      .header-container {
        padding: 9px 16px;
      }
    }

   /* ============================================================
       HEADER (copied from header.html, condensed)
    ============================================================ */
    .header {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 997;
      padding: 16px 0;
      background-color: transparent;
      transition: padding 0.4s ease;
    }

    body.scrolled .header { padding: 8px 0; }
    body.scrolled .header-container {
      box-shadow: 0 4px 30px rgba(26, 163, 168, 0.14);
    }

    .header-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 10px 28px;
      background: var(--surface-color);
      border-radius: 60px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
      transition: box-shadow 0.4s ease;
      margin-left: clamp(12px, 3vw, 40px);
      margin-right: clamp(12px, 3vw, 40px);
    }

    .logo {
      display: flex; align-items: center; gap: 10px;
      flex-shrink: 0; text-decoration: none;
    }
    .logo-icon {
      width: 38px; height: 38px; flex-shrink: 0;
      color: var(--accent-color); transition: transform 0.35s ease;
    }
    .logo:hover .logo-icon { transform: rotate(-8deg) scale(1.08); }
    .logo-text { display: flex; flex-direction: column; line-height: 1.1; }
    .logo-name {
      font-family: var(--heading-font); font-weight: 800;
      font-size: 17px; color: var(--heading-color);
      letter-spacing: -0.3px; white-space: nowrap;
    }
    .logo-tagline {
      font-size: 10.5px; font-weight: 500; color: var(--muted-color);
      letter-spacing: 0.6px; text-transform: uppercase; white-space: nowrap;
    }

    .navmenu { display: flex; align-items: center; }
    .navmenu ul {
      list-style: none; margin: 0; padding: 0;
      display: flex; align-items: center; gap: 4px;
    }
    .navmenu ul li a {
      font-family: var(--nav-font); font-weight: 600; font-size: 14.5px;
      color: var(--nav-color); padding: 7px 14px; border-radius: 30px;
      display: inline-block; position: relative; transition: color 0.3s ease;
      white-space: nowrap;
    }
    .navmenu ul li a::after {
      content: ""; position: absolute; bottom: 4px;
      left: 14px; right: 14px; height: 2px;
      background: var(--accent-color); border-radius: 2px;
      transform: scaleX(0); transform-origin: center; transition: transform 0.3s ease;
    }
    .navmenu ul li a:hover, .navmenu ul li a.active { color: var(--nav-hover-color); }
    .navmenu ul li a:hover::after, .navmenu ul li a.active::after { transform: scaleX(1); }
    .navmenu ul li a.nav-future { opacity: 0.72; }
    .navmenu ul li a.nav-future:hover { opacity: 1; }

    .btn-whatsapp {
      display: inline-flex; align-items: center; gap: 8px;
      background: var(--accent-color); color: var(--contrast-color);
      font-family: var(--default-font); font-weight: 700; font-size: 13.5px;
      padding: 10px 20px; border-radius: 50px; white-space: nowrap;
      flex-shrink: 0; transition: background 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
      box-shadow: 0 4px 14px rgba(26, 163, 168, 0.28);
      border: none; cursor: pointer; text-decoration: none;
    }
    .btn-whatsapp:hover {
      background: #138f94; transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(26, 163, 168, 0.38); color: #fff;
    }
    .btn-whatsapp svg { width: 17px; height: 17px; flex-shrink: 0; }

    .mobile-nav-toggle {
      display: none; background: none; border: none; cursor: pointer;
      padding: 6px; border-radius: 8px; color: var(--heading-color);
      transition: background 0.2s ease; flex-shrink: 0; margin-left: 10px;
    }
    .mobile-nav-toggle:hover { background: var(--background-color); }
    .mobile-nav-toggle .bar {
      display: block; width: 24px; height: 2.5px;
      background: var(--heading-color); border-radius: 3px;
      transition: transform 0.35s ease, opacity 0.25s ease, width 0.3s ease;
      transform-origin: center;
    }
    .mobile-nav-toggle .bar + .bar { margin-top: 5px; }
    body.mobile-nav-active .mobile-nav-toggle .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    body.mobile-nav-active .mobile-nav-toggle .bar:nth-child(2) { opacity: 0; width: 0; }
    body.mobile-nav-active .mobile-nav-toggle .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

    .mobile-nav-overlay {
      display: none; position: fixed; inset: 0;
      background: rgba(20, 50, 55, 0.55); backdrop-filter: blur(3px);
      z-index: 996; opacity: 0; transition: opacity 0.35s ease;
    }
    body.mobile-nav-active .mobile-nav-overlay { opacity: 1; }

    .mobile-nav-panel {
      position: fixed; top: 0; right: 0; bottom: 0;
      width: min(320px, 88vw); background: var(--surface-color);
      z-index: 998; display: flex; flex-direction: column;
      transform: translateX(110%);
      transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
    }
    body.mobile-nav-active .mobile-nav-panel { transform: translateX(0); }

    .mobile-nav-header {
      padding: 22px 24px 18px; border-bottom: 1px solid var(--border-color);
      display: flex; align-items: center; justify-content: space-between;
    }
    .mobile-nav-close {
      background: var(--background-color); border: none; border-radius: 50%;
      width: 34px; height: 34px; cursor: pointer; display: flex;
      align-items: center; justify-content: center; color: var(--heading-color);
      transition: background 0.2s ease; flex-shrink: 0;
    }
    .mobile-nav-close:hover { background: var(--border-color); }

    .mobile-nav-links { list-style: none; margin: 0; padding: 16px 0; flex: 1; overflow-y: auto; }
    .mobile-nav-links li a {
      display: flex; align-items: center; justify-content: space-between;
      padding: 14px 24px; font-family: var(--nav-font); font-weight: 600;
      font-size: 15.5px; color: var(--nav-color);
      border-bottom: 1px solid color-mix(in srgb, var(--border-color), transparent 40%);
      transition: color 0.25s ease, background 0.25s ease;
    }
    .mobile-nav-links li a:hover, .mobile-nav-links li a.active {
      color: var(--accent-color);
      background: color-mix(in srgb, var(--accent-color), transparent 93%);
    }
    .future-badge {
      font-size: 10px; font-weight: 600;
      background: color-mix(in srgb, var(--accent-color), transparent 85%);
      color: var(--accent-color); padding: 2px 8px; border-radius: 20px;
      text-transform: uppercase; letter-spacing: 0.4px;
    }

    .mobile-nav-footer {
      padding: 20px 24px 28px; border-top: 1px solid var(--border-color);
      display: flex; flex-direction: column; gap: 10px;
    }
    .mobile-nav-footer .btn-whatsapp { justify-content: center; width: 100%; padding: 13px 20px; font-size: 14.5px; }
    .mobile-call-link {
      display: flex; align-items: center; justify-content: center; gap: 7px;
      font-size: 13.5px; font-weight: 600; color: var(--heading-color);
      padding: 8px; border-radius: 8px; transition: color 0.2s ease;
    }
    .mobile-call-link:hover { color: var(--accent-color); }

    @media (max-width: 1199px) {
      .navmenu { display: none; }
      .header-btn-whatsapp { display: none; }
      .mobile-nav-toggle { display: flex; flex-direction: column; }
      .mobile-nav-overlay { display: block; pointer-events: none; }
      body.mobile-nav-active .mobile-nav-overlay { pointer-events: auto; }
    }
    @media (max-width: 575px) {
      .logo-name { font-size: 15px; }
      .logo-tagline { font-size: 9.5px; }
      .logo-icon { width: 32px; height: 32px; }
      .header-container { padding: 9px 16px; }
    }


      /*--------------------------------------------------------------
  # Global Sections
  --------------------------------------------------------------*/
  section,
  .section {
    color: var(--default-color);
    background-color: var(--background-color);
    padding: 80px 0;                    /* Slightly increased for normal sections */
    scroll-margin-top: 90px;
    overflow: clip;
  }

  

  @media (max-width: 1199px) {
    section,
    .section {
      scroll-margin-top: 66px;
    }
    
    .hero {
      scroll-margin-top: 0 !important;
    }
  }


    /* ============================================================
       HERO SECTION
    ============================================================ */
     /* Make sure Hero does NOT inherit unwanted padding & background */
    .hero {
      position: relative;
      min-height: 100vh;
      display: flex;
      align-items: center;
      overflow: hidden;
      padding: 0 !important;              /* Force zero padding for hero */
      background-color: transparent !important;  /* Prevent global background */
      scroll-margin-top: 0 !important;    /* Hero starts at very top */
    }
   

    /* ── Atmospheric background — no image needed ── */
    /* .hero-bg {
      position: absolute;
      inset: 0;
      z-index: 0;
      background:
      
        linear-gradient(145deg, #0d3337 0%, #1a4f54 40%, #0f3a3f 100%);
    } */


    /* Organic blobs for depth */
    .hero-bg::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 70% 60% at 80% 20%, rgba(26, 163, 168, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 50% 70% at 10% 80%, rgba(26, 163, 168, 0.15) 0%, transparent 55%),
        radial-gradient(ellipse 40% 40% at 60% 80%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
    }

        /* ── Hero Background with Dentist Chair Image ── */
    .hero-bg {
      position: absolute;
      inset: 0;
      z-index: 0;
      background-image: url('../img/hero/denstist-chair.webp');
      background-position: center;
      background-size: cover;
      background-repeat: no-repeat;
    }

  /* Dark overlay for better text readability on photo */
  .hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to right,
      rgba(15, 58, 63, 0.82) 0%,      /* Strong on left where text sits */
      rgba(15, 58, 63, 0.55) 45%,
      rgba(15, 58, 63, 0.35) 70%,
      rgba(15, 58, 63, 0.25) 100%
    );
    z-index: 1;
  }

    /* Optional: very light texture if you want */
    .hero-bg::after {
      content: "";
      position: absolute;
      inset: 0;
      background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
      background-size: 30px 30px;
      z-index: 2;
      opacity: 0.6;
    }



    /* Decorative large tooth outline — right side accent */
    .hero-tooth-deco {
      position: absolute;
      right: -40px;
      top: 50%;
      transform: translateY(-50%);
      width: clamp(280px, 35vw, 520px);
      opacity: 0.06;
      z-index: 1;
      pointer-events: none;
      animation: float-deco 7s ease-in-out infinite;
      opacity: 0.04;
    }

    @keyframes float-deco {
      0%, 100% { transform: translateY(-50%) translateX(0); }
      50% { transform: translateY(-52%) translateX(-12px); }
    }

    /* ── Hero content wrapper ── */
    .hero-content-wrap {
      position: relative;
      z-index: 2;
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      padding: 140px clamp(20px, 4vw, 40px) 80px;
    }

    .hero-inner {
      max-width: 660px;
    }

    /* ── Staggered entrance animations ── */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(28px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .anim { opacity: 0; animation: fadeUp 0.65s ease forwards; }
    .anim-1 { animation-delay: 0.1s; }
    .anim-2 { animation-delay: 0.25s; }
    .anim-3 { animation-delay: 0.4s; }
    .anim-4 { animation-delay: 0.55s; }
    .anim-5 { animation-delay: 0.7s; }
    .anim-6 { animation-delay: 0.85s; }

    /* ── Rating chip ── */
    .hero-rating {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      background: rgba(255, 255, 255, 0.10);
      border: 1px solid rgba(255, 255, 255, 0.16);
      backdrop-filter: blur(6px);
      border-radius: 50px;
      padding: 6px 14px 6px 10px;
      font-size: 13px;
      font-weight: 600;
      color: rgba(255, 255, 255, 0.92);
      margin-bottom: 22px;
      letter-spacing: 0.1px;
    }

    .hero-rating .stars {
      display: flex;
      gap: 2px;
    }

    .hero-rating .stars svg {
      width: 13px;
      height: 13px;
      color: #fbbf24;
      fill: currentColor;
    }

    .hero-rating .rating-dot {
      width: 4px; height: 4px;
      background: rgba(255,255,255,0.35);
      border-radius: 50%;
    }

    /* ── Main headline ── */
    .hero h1 {
      font-family: var(--heading-font);
      font-weight: 900;
      font-size: clamp(2.2rem, 5vw, 3.6rem);
      line-height: 1.12;
      color: #ffffff;
      margin: 0 0 18px;
      letter-spacing: -0.5px;
    }

    .hero h1 .accent-word {
      color: var(--accent-color);
      position: relative;
    }

    /* Underline swoosh on accent word */
    .hero h1 .accent-word::after {
      content: "";
      position: absolute;
      bottom: -4px; left: 0; right: 0;
      height: 3px;
      background: var(--accent-color);
      border-radius: 3px;
      opacity: 0.5;
      transform: scaleX(0);
      transform-origin: left;
      animation: swoosh 0.5s ease 1s forwards;
    }

    @keyframes swoosh {
      to { transform: scaleX(1); }
    }

    /* ── Subtext ── */
    .hero-subtext {
      font-size: clamp(0.95rem, 1.8vw, 1.1rem);
      line-height: 1.7;
      color: rgba(255, 255, 255, 0.72);
      margin: 0 0 28px;
      max-width: 540px;
    }

    /* ── Location line ── */
    .hero-location {
      display: inline-flex;
      align-items: flex-start;
      gap: 7px;
      font-size: 13px;
      color: rgba(255, 255, 255, 0.58);
      margin-bottom: 32px;
      line-height: 1.5;
    }

    .hero-location svg {
      width: 14px; height: 14px;
      flex-shrink: 0;
      margin-top: 2px;
      color: var(--accent-color);
      opacity: 0.85;
    }

    /* ── CTA Buttons ── */
    .hero-cta {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-bottom: 20px;
      align-items: center;
    }

    .btn-hero-primary {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      background: var(--accent-color);
      color: #fff;
      font-family: var(--default-font);
      font-weight: 700;
      font-size: 15px;
      padding: 14px 26px;
      border-radius: 50px;
      transition: background 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
      box-shadow: 0 6px 24px rgba(26, 163, 168, 0.4);
      white-space: nowrap;
      border: none;
      cursor: pointer;
    }

    .btn-hero-primary svg { width: 18px; height: 18px; flex-shrink: 0; }

    .btn-hero-primary:hover {
      background: #14888c;
      transform: translateY(-2px);
      box-shadow: 0 10px 30px rgba(26, 163, 168, 0.5);
      color: #fff;
    }

    .btn-hero-secondary {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      background: transparent;
      color: rgba(255, 255, 255, 0.88);
      font-family: var(--default-font);
      font-weight: 600;
      font-size: 15px;
      padding: 13px 24px;
      border-radius: 50px;
      border: 1.5px solid rgba(255, 255, 255, 0.28);
      transition: all 0.3s ease;
      white-space: nowrap;
      cursor: pointer;
    }

    .btn-hero-secondary svg { width: 16px; height: 16px; flex-shrink: 0; }

    .btn-hero-secondary:hover {
      background: rgba(255, 255, 255, 0.1);
      border-color: rgba(255, 255, 255, 0.5);
      color: #fff;
      transform: translateY(-2px);
    }

    /* ── "Coming soon" nudge note ── */
    .hero-nudge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 12.5px;
      color: rgba(255, 255, 255, 0.42);
      letter-spacing: 0.2px;
    }

    .hero-nudge svg {
      width: 13px; height: 13px; flex-shrink: 0;
      color: var(--accent-color); opacity: 0.7;
    }

    /* ── Trust bar (bottom strip) ── */
    .hero-trust-bar {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 3;
      background: rgba(255, 255, 255, 0.05);
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(8px);
    }

    .hero-trust-inner {
      max-width: 1200px;
      margin: 0 auto;
      padding: 14px clamp(20px, 4vw, 40px);
      display: flex;
      align-items: center;
      gap: clamp(16px, 4vw, 48px);
      flex-wrap: wrap;
    }

    .trust-item {
      display: flex;
      align-items: center;
      gap: 9px;
      font-size: 13px;
      color: rgba(255, 255, 255, 1.0) !important;
      font-weight: 500;
      white-space: nowrap;
    }

    .trust-item svg {
      width: 16px; height: 16px; flex-shrink: 0;
      color: var(--accent-color);
    }

    .trust-divider {
      width: 1px; height: 22px;
      background: rgba(255, 255, 255, 0.12);
      flex-shrink: 0;
    }

    /* ============================================================
       RESPONSIVE
    ============================================================ */
    @media (max-width: 1199px) {
      .header-btn-whatsapp { display: none !important; }
    }

    @media (max-width: 768px) {
      .hero-content-wrap {
        padding-top: 130px;
        padding-bottom: 100px;
      }

      .hero-cta {
        flex-direction: column;
        align-items: flex-start;
      }

      .btn-hero-primary,
      .btn-hero-secondary {
        width: 100%;
        justify-content: center;
        font-size: 14.5px;
      }

      .hero-trust-inner {
        gap: 12px;
        justify-content: center;
      }

      .trust-divider { display: none; }

      .trust-item { font-size: 12px; }

      .hero-tooth-deco { display: none; }
    }

    @media (max-width: 480px) {
      .hero h1 { font-size: 2rem; }
    }



    /* ============================================================
   SERVICES SECTION
============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.service-card {
  background: var(--surface-color);
  border-radius: 12px;
  padding: 40px 24px 32px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--default-color), transparent 82%);
  border-color: var(--accent-color);
}

.service-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  background: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent-color), transparent 35%);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.08);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--accent-color), transparent 25%);
}

.service-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--heading-color);
  margin: 0;
  line-height: 1.3;
}

/* Closing note */
.services-closing {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.services-closing p {
  color: var(--muted-color);
  font-size: 0.98rem;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
  }

  .service-card {
    padding: 32px 20px 26px;
  }

  .service-icon {
    width: 64px;
    height: 64px;
    font-size: 28px;
  }
}



/* ============================================================
   CONTACT / BOOKING SECTION
============================================================ */
/* LEFT COLUMN - Contact Info Improvements */
.contact-info {
  background: var(--surface-color);
  padding: 40px 30px;
  border-radius: 12px;
  height: 100%;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.info-item {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.info-item:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.info-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  transition: all 0.3s ease;
}

.info-item:hover .info-icon {
  transform: scale(1.1) rotate(8deg);
  background: color-mix(in srgb, var(--accent-color), #000 12%);
}

.contact-info h4 {
  margin: 0 0 6px 0;
  font-size: 1.18rem;
  color: var(--heading-color);
  font-weight: 600;
}

.contact-link {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 1.05rem;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 20%);
}

/* Follow Us Section */
.follow-us {
  margin-top: auto;           /* Pushes it to the bottom */
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.follow-us h4 {
  margin-bottom: 14px;
  font-size: 1.15rem;
  color: var(--heading-color);
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 42px;
  height: 42px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--muted-color);
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
  border-color: var(--accent-color);
  transform: translateY(-3px);
}

/* Small responsive adjustment */
@media (max-width: 991px) {
  .contact-info {
    padding: 35px 25px;
  }
  
  .info-item {
    margin-bottom: 24px;
    padding-bottom: 18px;
  }
}
.contact-map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px color-mix(in srgb, var(--default-color), transparent 85%);
}

.contact-form {
  background: var(--surface-color);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.contact-form h3 {
  margin-bottom: 28px;
  color: var(--heading-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: border 0.3s ease;
}

.form-control:focus {
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 85%);
}

.whatsapp-nudge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f4faf9;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  color: var(--muted-color);
}

.whatsapp-nudge i {
  color: #25D366;
  font-size: 1.4rem;
}

.whatsapp-nudge a {
  color: var(--accent-color);
  font-weight: 600;
}

.whatsapp-nudge a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 991px) {
  .contact-info {
    margin-bottom: 30px;
  }
  
  .contact-form {
    padding: 30px 25px;
  }
}

/* ============================================================
   FOOTER - Mtwapa Creek Dental Care
============================================================ */
/* Redesigned Footer Styles - Add/Replace in your global CSS */
.footer {
  color: var(--default-color);
  background-color: var(--surface-color);
  font-size: 14px;
  position: relative;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

.footer .footer-top {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border-color);
}

.footer .footer-about {
  padding-right: 40px;
}

.footer .footer-about .logo {
  line-height: 1;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
}

.footer .footer-about .logo span {
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
}

.footer .footer-about p {
  font-size: 14px;
  font-family: var(--heading-font);
  margin-bottom: 30px;
  opacity: 0.9;
}

.footer .footer-contact p {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer .footer-contact i {
  width: 20px;
  color: var(--accent-color);
  font-size: 16px;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  font-size: 18px;
  color: var(--muted-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.footer-social a:hover {
  color: var(--contrast-color);
  border-color: var(--accent-color);
  background-color: var(--accent-color);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 25px rgba(26, 163, 168, 0.3);
}

.footer h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--heading-color);
  position: relative;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), transparent);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li:last-child {
  margin-bottom: 0;
}

.footer-links ul a {
  color: var(--default-color);
  opacity: 0.7;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links ul a:hover {
  color: var(--accent-color);
  opacity: 1;
  transform: translateX(4px);
}

.footer .copyright {
  padding: 30px 0;
  background-color: var(--background-color);
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer .copyright p {
  margin-bottom: 0;
  opacity: 0.8;
}

/* .footer .credits {
  margin-top: 12px;
  font-size: 13px;
  opacity: 0.6;
} */
 /* .footer-credits {
  margin-top: 12px;
  font-size: 13px;
  opacity: 0.7;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
} */

.footer-credits {
  margin-top: 12px;
  font-size: 13px;
  opacity: 0.85; /* slightly stronger */
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px; /* tighter spacing */
  flex-wrap: wrap;
}

.footer-credits a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600; /* Subtle emphasis instead of <strong> */
  transition: all 0.3s ease;
  position: relative;
}

/* .footer-credits a:hover {
  color: color-mix(in srgb, var(--accent-color), black 20%);
  text-decoration: underline;
} */

.footer-credits a:hover {
  color: color-mix(in srgb, var(--accent-color), black 20%);
  text-decoration: none; /* remove underline */
}

.footer-credits a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.footer-credits a:hover::after {
  width: 100%;
}
.footer-credits span {
  opacity: 0.5;
}


/* Responsive Design */
@media (max-width: 991px) {
  .footer .footer-top .row {
    flex-direction: column;
    gap: 40px;
  }
  .footer .footer-about {
    padding-right: 0;
    text-align: center;
  }
  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 575px) {
  .footer .footer-top {
    padding: 40px 0 30px;
  }
  .footer h4 {
    font-size: 16px;
  }
  .footer-social a {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }
}


@media (max-width: 575px) {
  .footer-top {
    padding-left: 30px !important;
    padding-right: 30px !important;
  }
  
  .container.footer-top {
    padding-left: 40px;
    padding-right: 40px;
  }
}



/* Preloader Styles */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--background-color); /* Soft Mint */
  transition: opacity 0.6s ease-out, visibility 0.6s;
}

#preloader.preloader-hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
}

.preloader-icon {
  color: var(--accent-color);
  animation: pulse 1.5s ease-in-out infinite;
  margin-bottom: 20px;
}

.preloader-content p {
  font-family: var(--heading-font);
  color: var(--heading-color);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 15px;
}

/* The Loading Bar */
.preloader-bar {
  width: 120px;
  height: 3px;
  background: var(--border-color);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.preloader-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-color);
  animation: loading-slide 1.5s infinite;
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

@keyframes loading-slide {
  0% { left: -100%; }
  50% { left: 0%; }
  100% { left: 100%; }
}


/* ============================================================
   UNDER CONSTRUCTION PAGE
============================================================ */
.under-construction {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--background-color);
  padding: 40px 20px;
  text-align: center;
}

.uc-content {
  max-width: 680px;
  margin: 0 auto;
}

.uc-logo {
  display: inline-block;
  font-family: var(--heading-font);
  font-size: 28px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 50px;
  text-decoration: none;
}

.uc-logo:hover {
  color: var(--accent-color);
}

.under-construction h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.2rem);
  line-height: 1.2;
  color: var(--heading-color);
  margin-bottom: 20px;
}

.uc-subtext {
  font-size: 1.15rem;
  color: var(--muted-color);
  max-width: 520px;
  margin: 0 auto 40px;
}

.uc-main-message {
  background: var(--surface-color);
  padding: 32px 40px;
  border-radius: 16px;
  margin-bottom: 40px;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--default-color), transparent 88%);
}

.uc-main-message p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--default-color);
  margin: 0;
}

.uc-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 50px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
  color: var(--contrast-color);
}

.trust-item i {
  color: var(--accent-color);
  font-size: 1.3rem;
}

/* Action Area */
.action-label {
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 18px;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 360px;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-whatsapp {
  background: #25D366;
  color: white;
}

.btn-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-3px);
}

.btn-secondary {
  background: transparent;
  color: var(--heading-color);
  border: 2px solid var(--heading-color);
}

.btn-secondary:hover {
  background: var(--heading-color);
  color: white;
}

/* Services Section */
.uc-services h3 {
  font-size: 1.35rem;
  color: var(--heading-color);
  margin-bottom: 20px;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  text-align: left;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
  color: var(--default-color);
}

.service-item i {
  color: var(--accent-color);
}

/* Responsive */
@media (max-width: 576px) {
  .uc-main-message {
    padding: 28px 25px;
  }
  
  .button-group {
    max-width: 100%;
  }
}