/* ============================================================
   DUMI SURF — Shared Nav & Footer CSS
   Used by: index.php, appointments.php, and all public pages
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300&family=Playfair+Display:wght@700;800&family=Oswald:wght@500;600;700&display=swap');

/* ---- TOKENS (shared) ---- */
:root {
    --primary: #0077b6;
    --primary-dark: #005f8e;
    --primary-mid: #0096c7;
    --primary-light: #90e0ef;
    --primary-pale: #caf0f8;
    --accent: #f77f00;
    --accent-dark: #d46b00;
    --ocean: #023e8a;
    --bg: #f0f9ff;
    --bg2: #e0f2fe;
    --bg3: #bae6fd;
    --surface: #ffffff;
    --border: #b9e3f8;
    --border-strong: #7dd3f5;
    --text: #0c2a4a;
    --text-2: #1e3a5f;
    --text-muted: #4a7fa0;
    --text-light: #7fb3cc;
    --success: #059669;
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-xs: 0 1px 4px rgba(0, 119, 182, 0.07);
    --shadow-sm: 0 2px 12px rgba(0, 119, 182, 0.09);
    --shadow: 0 8px 32px rgba(0, 119, 182, 0.13);
    --shadow-lg: 0 20px 60px rgba(0, 119, 182, 0.18);
    --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

/* ================================================================
   NAVIGATION
================================================================ */
.ds-nav {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.ds-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ds-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.ds-nav-logo img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.ds-nav-logo .logo-text {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    line-height: 1;
}

.ds-nav-logo .logo-text span {
    color: var(--accent);
}

.ds-nav-links {
    display: flex;
    gap: 6px;
    align-items: center;
}

.ds-nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 8px;
    transition: var(--transition);
}

.ds-nav-links a:hover {
    color: var(--primary);
    background: var(--bg2);
}

.ds-nav-links a.active {
    color: var(--primary);
    background: var(--bg2);
    font-weight: 600;
}

.ds-nav-cta {
    background: var(--primary) !important;
    color: #fff !important;
    border-radius: 9px !important;
    font-weight: 600 !important;
    padding: 8px 18px !important;
    font-size: 13px !important;
    margin-left: 4px;
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.28);
}

.ds-nav-cta:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 119, 182, 0.36) !important;
}

/* Burger */
.ds-burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    border-radius: 8px;
}

.ds-burger:hover {
    background: var(--bg2);
}

.ds-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.ds-burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.ds-burger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.ds-burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay */
.ds-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 40, 80, 0.45);
    z-index: 199;
    opacity: 0;
    transition: opacity 0.3s;
    backdrop-filter: blur(4px);
}

.ds-mobile-overlay.open {
    display: block;
    opacity: 1;
}

/* Mobile panel */
.ds-mobile-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 200;
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
}

.ds-mobile-panel.open {
    right: 0;
}

.ds-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    background: var(--bg2);
}

.ds-mobile-header .logo-text {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
}

.ds-mobile-header .logo-text span {
    color: var(--accent);
}

.ds-mobile-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
}

.ds-mobile-links {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ds-mobile-links a {
    display: block;
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 10px;
    transition: var(--transition);
}

.ds-mobile-links a:hover,
.ds-mobile-links a.active {
    color: var(--primary);
    background: var(--bg2);
}

/* ================================================================
   FOOTER
================================================================ */
.ds-footer {
    background: var(--ocean);
    padding: 70px 40px 32px;
    border-top: 4px solid var(--primary);
}

.ds-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.ds-footer-grid {
    display: grid;
    grid-template-columns: 240px repeat(3, 1fr);
    gap: 52px;
    margin-bottom: 44px;
}

.ds-footer-brand img {
    height: 76px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
    opacity: 0.9;
    margin-bottom: 14px;
}

.ds-footer-brand .brand-name {
    font-family: 'Oswald', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}

.ds-footer-brand .brand-name span {
    color: var(--primary-light);
}

.ds-footer-brand .brand-tagline {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 4px 0 14px;
    font-weight: 500;
}

.ds-footer-brand p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    line-height: 1.65;
    margin-bottom: 18px;
}

.ds-footer-socials {
    display: flex;
    gap: 10px;
}

.ds-footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.70);
    transition: var(--transition);
}

.ds-footer-socials a svg {
    width: 16px;
    height: 16px;
}

.ds-footer-socials a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.ds-footer-col h4 {
    color: var(--primary-light);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 18px;
}

.ds-footer-col a,
.ds-footer-col span {
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    font-size: 13.5px;
    display: block;
    margin-bottom: 10px;
    transition: color 0.2s;
    line-height: 1.5;
}

.ds-footer-col a:hover {
    color: #fff;
}

.ds-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

/* .ds-contact-icon styles defined below in icon utilities section */

.ds-contact-item a,
.ds-contact-item span:not(.ds-contact-icon) {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.62);
}

.ds-contact-item a:hover {
    color: #fff;
}

.ds-footer-map {
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-sm);
    margin-bottom: 28px;
    text-align: center;
}

.ds-footer-map a {
    color: var(--primary-light);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.ds-footer-map a:hover {
    color: #fff;
}

.ds-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.38);
}

/* ================================================================
   ICON UTILITIES
================================================================ */
.ds-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ds-icon svg {
    display: block;
}

.ds-icon-sm svg {
    width: 16px;
    height: 16px;
}

.ds-icon-md svg {
    width: 20px;
    height: 20px;
}

.ds-icon-lg svg {
    width: 24px;
    height: 24px;
}

.ds-icon-xl svg {
    width: 28px;
    height: 28px;
}

.ds-icon-2xl svg {
    width: 36px;
    height: 36px;
}

/* Coloured icon wrappers */
.icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.icon-wrap-sm {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.icon-wrap-md {
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

.icon-wrap-lg {
    width: 56px;
    height: 56px;
    border-radius: 14px;
}

.icon-wrap-xl {
    width: 70px;
    height: 70px;
    border-radius: 18px;
}

.icon-wrap-primary {
    background: var(--bg2);
    color: var(--primary);
}

.icon-wrap-ocean {
    background: var(--ocean);
    color: #fff;
}

.icon-wrap-white {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.icon-wrap-light {
    background: var(--primary-pale);
    color: var(--primary-dark);
}

/* Mobile nav icon row */
.ds-mobile-links a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ds-mobile-links a .nav-link-icon {
    width: 32px;
    height: 32px;
    background: var(--bg2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    transition: var(--transition);
}

.ds-mobile-links a:hover .nav-link-icon {
    background: var(--primary);
    color: #fff;
}

/* Contact icons in footer */
.ds-contact-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: var(--primary-light) !important;
    flex-shrink: 0;
}

/* Shared button utilities */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: var(--transition);
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 119, 182, 0.30);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 119, 182, 0.40);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: var(--primary);
    box-shadow: var(--shadow);
}

.btn-white:hover {
    background: var(--bg2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
    border-radius: 10px;
}

.btn-xl {
    padding: 18px 42px;
    font-size: 17px;
    border-radius: 12px;
}

/* Section shared utilities */
.section-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
    background: var(--bg2);
    padding: 5px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 5vw, 46px);
    font-weight: 800;
    color: var(--ocean);
    margin-bottom: 14px;
    line-height: 1.15;
}

.section-title em {
    font-style: italic;
    color: var(--primary);
}

.section-sub {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.70;
    max-width: 520px;
    margin: 0 auto;
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 768px) {
    .ds-nav-inner {
        padding: 0 20px;
        height: 64px;
    }

    .ds-nav-links {
        display: none;
    }

    .ds-burger {
        display: flex;
    }

    .ds-footer {
        padding: 48px 20px 24px;
    }

    .ds-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .ds-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .ds-footer-grid {
        grid-template-columns: 1fr;
    }

    .ds-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}