/*
Theme Name: Gordon Health Clinic
Author: Abdul Fatha
Description: A clean, custom base theme with full HTML flexibility.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: #
*/

 :root {
    --cobalt: #0470C0;
    --cobalt-deep: #03548F;
    --cobalt-soft: #2E8AD0;
    --cobalt-pale: #EAF3FB;
    --cobalt-mist: #F4F9FD;
    --green: #B1D58A;
    --green-deep: #7FB055;
    --green-soft: #C9E2AC;
    --green-pale: #F0F7E8;
    --ink: #1B2733;
    --ink-soft: #5C6B7A;
    --ink-light: #97A4B1;
    --line: #E6EBF0;
    --line-soft: #F2F5F8;
    --bg: #FFFFFF;
    --bg-soft: #FAFBFC;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-weight: 400;
  }

  /* Fraunces editorial serif, matching Pause and Power */
  h1, h2, h3, h4, .display {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-variation-settings: "opsz" 96;
    letter-spacing: -0.015em;
  }
  .accent {
    color: var(--cobalt);
    font-weight: 400;
    font-style: italic;
  }

  /* Pill-style category label */
  .pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.95rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--cobalt);
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  /* ============ NAV ============ */
  nav.top {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .nav-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 1.05rem 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
  }
  .nav-links-left, .nav-links-right { display: flex; gap: 1.9rem; align-items: center; }
  .nav-links-right { justify-content: flex-end; }
  .nav-links-left a, .nav-links-right a {
    color: var(--ink);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s ease;
  }
  .nav-links-left a:hover, .nav-links-right a:hover { color: var(--cobalt); }
  .nav-dropdown { position: relative; }
  .nav-dropdown > button {
    background: none;
    border: none;
    padding: 0;
    color: var(--ink);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s ease;
  }
  .nav-dropdown > button:hover { color: var(--cobalt); }
  .nav-dropdown > button svg { width: 10px; height: 10px; transition: transform 0.25s ease; }
  .nav-dropdown:hover > button svg, .nav-dropdown.open > button svg { transform: rotate(180deg); }
  .dropdown-menu {
    position: absolute;
    top: calc(100% + 0.85rem);
    left: 50%;
    transform: translateX(-20%) translateY(-8px);
    min-width: 248px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 18px 40px -16px rgba(4, 112, 192, 0.16);
    padding: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 110;
  }
  .nav-dropdown:hover .dropdown-menu, .nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-20%) translateY(0);
  }
  .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--bg);
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
  }
  .dropdown-menu a {
    display: block;
    padding: 0.68rem 1rem;
    color: var(--ink) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    border-radius: 6px;
    transition: all 0.18s ease;
  }
  .dropdown-menu a:hover { background: var(--cobalt-mist); color: var(--cobalt) !important; }
  .dropdown-label {
    display: block;
    padding: 0.5rem 1rem 0.5rem;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase;
    color: var(--ink-light) !important;
  }

  .wordmark { text-align: center; text-decoration: none; display: inline-flex; align-items: center; gap: 0.6rem;max-width:200px;}
  .wordmark .mark {
    width: 34px; height: 34px; border-radius: 9px;
    background: linear-gradient(135deg, var(--cobalt), var(--cobalt-deep));
    display: grid; place-items: center; flex-shrink: 0;
  }
  .wordmark .mark span {
    font-family: 'Fraunces', serif; font-weight: 700; color: #fff; font-size: 1.05rem; line-height: 1;
  }
  .wordmark .mark span b { color: var(--green); font-weight: 700; }
  .wordmark .text { text-align: left; }
  .wordmark .row1 {
    font-family: 'Fraunces', serif;
    font-size: 1.12rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1;
    color: var(--ink);
  }
  .wordmark .row2 {
    font-family: 'Inter', sans-serif;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.34em;
    color: var(--ink-light);
    margin-top: 0.28rem;
    text-transform: uppercase;
  }
  .nav-cta {
    display: inline-block;
    padding: 0.65rem 1.4rem;
    background: var(--cobalt);
    color: var(--bg) !important;
    border-radius: 999px;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    transition: background 0.2s ease;
  }
  .nav-cta:hover { background: var(--cobalt-deep) !important; }
  .mobile-toggle { display: none; }


  /* ============ FOOTER ============ */
  footer { background: var(--ink); padding: 5rem 2rem 2.5rem; color: rgba(255,255,255,0.7); }
  .footer-inner { max-width: 1280px; margin: 0 auto; }
  .footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .footer-brand .wordmark { margin-bottom: 1.3rem; }
  .footer-brand .wordmark .row1 { color: #fff; }
  .footer-brand .wordmark .row2 { color: rgba(255,255,255,0.5); }
  .footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 340px; }
  .footer-col h5 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 0.95rem; color: #fff; margin-bottom: 1.1rem; }
  .footer-col ul { list-style: none; }
  .footer-col li { margin-bottom: 0.65rem; }
  .footer-col a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.88rem; transition: color 0.2s ease; }
  .footer-col a:hover { color: var(--green); }
  .footer-bottom { padding-top: 2.5rem; }
  .footer-bottom .disclaimer { font-size: 0.78rem; line-height: 1.6; color: rgba(255,255,255,0.5); margin-bottom: 1.5rem; max-width: 1000px; }
  .footer-legal { display: flex; align-items: center; gap: 1.5rem; font-size: 0.82rem; color: rgba(255,255,255,0.5); flex-wrap: wrap; }
  .footer-legal a { color: rgba(255,255,255,0.6); text-decoration: none; }
  .footer-legal a:hover { color: var(--green); }

  /* ============ RESPONSIVE ============ */
  @media (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  }
  @media (max-width: 768px) {
    .nav-links-left, .nav-links-right { display: none; }
    .nav-links-left.mobile-open {
      display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
      background: var(--bg); border-bottom: 1px solid var(--line); padding: 1.5rem 2rem; gap: 1.2rem; align-items: flex-start;
    }
    .nav-inner { grid-template-columns: auto 1fr; }
    .wordmark { justify-self: start; }
    .mobile-toggle {
      display: inline-flex; justify-self: end; background: none; border: none; cursor: pointer; padding: 0.4rem; color: var(--ink);
    }
    .mobile-toggle svg { width: 26px; height: 26px; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  }