﻿/* =============================================================
   Dermatologist Cape Town | Dr Matete Mathobela
   Hand-written site stylesheet (replaces WoodMart bundle).
   Tokens sourced from the original WoodMart theme settings.
   ============================================================= */


/* ---------- 1. Reset ----------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; line-height: 1.5; scroll-behavior: smooth; }
body { margin: 0; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
ul, ol { padding: 0; margin: 0; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }


/* ---------- 2. Tokens ---------------------------------------- */

:root {
    /* Brand */
    --primary:        #48516f;
    --primary-hover:  #3a4259;
    --alt:            #5b678d;

    /* Text */
    --color-text:     #777777;
    --color-title:    #242424;
    --color-entity:   #333333;
    --color-link:     #333333;
    --color-link-hover: #242424;

    /* Surfaces */
    --bg:             #ffffff;
    --bg-page-title:  #f9f9f9;
    --bg-footer:      #000000;
    --bg-muted:       #f5f5f5;
    --border:         #e5e5e5;

    /* State */
    --success: #459647;
    --warning: #E0B252;

    /* Typography */
    --font-body:    "Josefin Sans", Arial, Helvetica, sans-serif;
    --font-title:   "Josefin Sans", Arial, Helvetica, sans-serif;
    --font-alt:     "Lato", Arial, Helvetica, sans-serif;
    --font-header:  "Open Sans", Arial, Helvetica, sans-serif;

    --fs-xs:   13px;
    --fs-sm:   14px;
    --fs-base: 14px;
    --fs-md:   16px;
    --fs-lg:   18px;
    --fs-xl:   24px;
    --fs-h3:   28px;
    --fs-h2:   32px;
    --fs-h1:   38px;
    --fs-hero: 56px;

    /* Spacing (8px scale) */
    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 24px;
    --s-6: 32px;
    --s-7: 48px;
    --s-8: 64px;
    --s-9: 96px;

    /* Layout */
    --container-max: 1222px;
    --header-max: 1192px;

    /* Forms / radii */
    --radius: 0px;
    --form-brd-width: 2px;

    /* Effects */
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,.10);
    --transition: 200ms ease;
}


/* ---------- 3. Typography ------------------------------------ */

body {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: var(--fs-base);
    line-height: 1.65;
    color: var(--color-text);
    background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 400;
    color: var(--color-title);
    line-height: 1.25;
}
h1 { font-size: var(--fs-h1); margin-bottom: var(--s-5); }
h2 { font-size: var(--fs-h2); margin-bottom: var(--s-5); }
h3 { font-size: var(--fs-h3); margin-bottom: var(--s-4); }
h4 { font-size: var(--fs-xl); margin-bottom: var(--s-4); }
h5, h6 { font-size: var(--fs-lg); margin-bottom: var(--s-3); }

p { margin-bottom: var(--s-4); }
p:last-child { margin-bottom: 0; }

strong { color: var(--color-entity); font-weight: 600; }

a {
    color: var(--color-link);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition);
}
a:hover { color: var(--color-link-hover); }

ul, ol { padding-left: 1.25rem; margin-bottom: var(--s-4); }
li { margin-bottom: var(--s-2); }

blockquote {
    margin: var(--s-5) 0;
    padding: var(--s-4) var(--s-5);
    border-left: 3px solid var(--primary);
    font-family: var(--font-alt);
    font-style: italic;
    color: var(--color-entity);
    background: var(--bg-muted);
}


/* ---------- 4. Layout helpers -------------------------------- */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--s-4);
}
.container-narrow {
    max-width: 820px;
    margin-inline: auto;
}

.section { padding-block: var(--s-8); }
.section-tight { padding-block: var(--s-6); }
.section-muted { background: var(--bg-muted); }

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.text-center { text-align: center; }
.text-muted  { color: var(--color-text); }
.muted-section { background: var(--bg-muted); }

.flow > * + * { margin-top: var(--s-4); }
.flow-lg > * + * { margin-top: var(--s-6); }


/* ---------- 5. Buttons --------------------------------------- */

.btn,
a.btn,
a.btn:link,
a.btn:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    padding: 12px 28px;
    font-family: var(--font-header);
    font-weight: 600;
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition);
    white-space: nowrap;
    color: var(--color-title);          /* explicit fallback */
    background-color: transparent;
}

/* PRIMARY — navy bg, white text. */
.btn.btn-primary,
a.btn.btn-primary,
a.btn.btn-primary:link,
a.btn.btn-primary:visited {
    background-color: #48516f;
    color: #ffffff;
    border-color: #48516f;
}
.btn.btn-primary:hover,
a.btn.btn-primary:hover {
    background-color: #3a4259;
    border-color: #3a4259;
    color: #ffffff;
}

/* OUTLINE — transparent bg, navy text and border. */
.btn.btn-outline,
a.btn.btn-outline,
a.btn.btn-outline:link,
a.btn.btn-outline:visited {
    background-color: transparent;
    color: #48516f;
    border-color: #48516f;
}
.btn.btn-outline:hover,
a.btn.btn-outline:hover {
    background-color: #48516f;
    color: #ffffff;
}

/* OUTLINE-LIGHT — for use on dark backgrounds. */
.btn.btn-outline-light,
a.btn.btn-outline-light,
a.btn.btn-outline-light:link,
a.btn.btn-outline-light:visited {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}
.btn.btn-outline-light:hover,
a.btn.btn-outline-light:hover {
    background-color: #ffffff;
    color: #242424;
}

.btn.btn-sm { padding: 8px 18px; font-size: 12px; }
.btn.btn-lg { padding: 16px 36px; font-size: var(--fs-sm); }


/* ---------- 6. Header ---------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.topbar {
    display: none;
    background: #fff;
    border-bottom: 1px solid var(--border);
    color: #000;
    font-size: var(--fs-xs);
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 6px;
}
.topbar a { color: #000; text-decoration: none; }
.topbar .phone { font-weight: 700; }

@media (min-width: 1025px) {
    .topbar { display: block; }
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    padding-block: 14px;
}

.site-logo { flex: 0 0 auto; }
.site-logo img {
    max-height: 64px;
    width: auto;
}
@media (min-width: 1025px) {
    .site-logo img { max-height: 72px; }
}

.header-cta {
    display: none;
    flex: 0 0 auto;
}
@media (min-width: 1025px) {
    .header-cta { display: flex; align-items: center; gap: var(--s-4); }
}

.burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: 0;
}
.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-title);
    transition: transform var(--transition), opacity var(--transition);
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1025px) {
    .burger { display: none; }
}


/* ---------- 7. Navigation ------------------------------------ */

.main-nav { display: none; flex: 1; }

@media (min-width: 1025px) {
    .main-nav { display: block; }
}

.nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-6);
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-list > li { position: relative; margin: 0; }

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: 24px 0;
    font-family: var(--font-header);
    font-weight: 600;
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-title);
    text-decoration: none;
    transition: color var(--transition);
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 16px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}
.nav-link:hover,
.nav-list .is-current > .nav-link {
    color: var(--primary);
}
.nav-link:hover::after,
.nav-list .is-current > .nav-link::after {
    width: 100%;
}

.nav-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
}

/* Mega-menu (desktop) */
.mega {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    min-width: 720px;
    padding: var(--s-6);
    background: #fff;
    box-shadow: var(--shadow-md);
    border-top: 3px solid var(--primary);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
    z-index: 110;
}
.has-mega:hover .mega,
.has-mega:focus-within .mega,
.has-mega.is-open .mega {
    opacity: 1;
    visibility: visible;
}
.mega-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-6);
}
.mega-col h4 {
    margin-bottom: var(--s-3);
    padding-bottom: var(--s-2);
    border-bottom: 1px solid var(--border);
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.mega-col h4 a {
    color: inherit;
    text-decoration: none;
}
.mega-col ul { list-style: none; padding: 0; margin: 0; }
.mega-col li { margin: 0; }
.mega-col a {
    display: block;
    padding: 6px 0;
    font-size: var(--fs-sm);
    color: var(--color-link);
    text-decoration: none;
    transition: color var(--transition), padding var(--transition);
}
.mega-col a:hover {
    color: var(--primary);
    padding-left: 4px;
}

/* Mobile drawer */
.mobile-nav {
    position: fixed;
    inset: 0 30% 0 0;
    max-width: 360px;
    background: #fff;
    box-shadow: var(--shadow-md);
    transform: translateX(-100%);
    transition: transform 280ms ease;
    z-index: 200;
    overflow-y: auto;
    padding: var(--s-6) var(--s-5);
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
    z-index: 190;
}
.mobile-nav-overlay.is-open { opacity: 1; visibility: visible; }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav li { margin: 0; }
.mobile-nav a {
    display: block;
    padding: 10px 0;
    font-family: var(--font-header);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-title);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}
.mobile-nav .submenu a {
    padding-left: var(--s-4);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    color: var(--color-link);
    border-bottom: 1px dotted var(--border);
}
.mobile-nav .subsubmenu a {
    padding-left: var(--s-5);
    font-size: var(--fs-xs);
    color: var(--color-text);
}

@media (min-width: 1025px) {
    .mobile-nav, .mobile-nav-overlay { display: none; }
}


/* ---------- 8. Social icons ---------------------------------- */

.socials {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    list-style: none;
    margin: 0;
    padding: 0;
}
.socials li { margin: 0; }
.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: var(--color-title);
    text-decoration: none;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.socials a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.socials svg { width: 14px; height: 14px; fill: currentColor; }


/* ---------- 9. Hero ------------------------------------------ */

.hero {
    position: relative;
    min-height: 500px;
    display: grid;
    place-items: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
    background: #95aebc;
}
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1200ms ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
}
.hero-content {
    position: relative;
    z-index: 1;
    padding: var(--s-7) var(--s-4);
    max-width: 880px;
}
.hero-subtitle {
    font-family: var(--font-alt);
    font-size: var(--fs-md);
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: var(--s-3);
    color: #fff;
}
.hero-title {
    font-family: var(--font-title);
    font-weight: 300;
    font-size: 32px;
    line-height: 1.2;
    color: #fff;
    margin-bottom: var(--s-6);
}
.hero-title strong { color: #fff; font-weight: 600; }
.hero-actions {
    display: flex;
    gap: var(--s-4);
    justify-content: center;
    flex-wrap: wrap;
}

@media (min-width: 768px)  { .hero-title { font-size: 44px; } }
@media (min-width: 1025px) { .hero-title { font-size: var(--fs-hero); line-height: 1.1; } .hero { min-height: 560px; } }

.hero-dots {
    position: absolute;
    bottom: var(--s-5);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--s-2);
    z-index: 2;
}
.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #fff;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background var(--transition);
}
.hero-dot.is-active { background: #fff; }


/* ---------- 10. Page title (banner) -------------------------- */

.page-title {
    background: var(--bg-page-title);
    padding-block: var(--s-7);
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.page-title h1 {
    margin-bottom: var(--s-2);
    color: var(--color-title);
}
.breadcrumb {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--s-2);
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: var(--font-header);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
}
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: '/'; margin-right: var(--s-2); color: var(--color-text); }
.breadcrumb a { color: var(--color-text); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb [aria-current] { color: var(--color-title); }


/* ---------- 11. Section title -------------------------------- */

.section-title {
    text-align: center;
    margin-bottom: var(--s-7);
}
.section-title small {
    display: block;
    font-family: var(--font-header);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--alt);
    margin-bottom: var(--s-3);
}
.section-title h2 {
    color: var(--color-title);
}
.section-title .accent {
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
    padding-bottom: 4px;
}


/* ---------- 12. Cards / feature blocks ----------------------- */

.feature-card {
    text-align: center;
    padding: var(--s-5);
    background: #fff;
    border: 1px solid var(--border);
    transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-card h3 {
    font-size: var(--fs-md);
    color: var(--color-title);
    margin-bottom: var(--s-3);
    font-weight: 600;
}
.feature-card p { color: var(--color-text); margin: 0; }

.service-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: box-shadow var(--transition), transform var(--transition);
    overflow: hidden;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: inherit; }
.service-card .service-card-img {
    aspect-ratio: 4/3;
    background: var(--bg-muted) center/cover no-repeat;
}
.service-card .service-card-body {
    padding: var(--s-4);
    flex: 1;
    display: flex;
    flex-direction: column;
}
.service-card h3 {
    font-size: var(--fs-md);
    margin-bottom: var(--s-2);
    color: var(--color-title);
    font-weight: 600;
}
.service-card p {
    color: var(--color-text);
    font-size: var(--fs-sm);
    margin: 0;
    flex: 1;
}
.service-card .service-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--s-4);
    font-family: var(--font-header);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary);
}


/* ---------- 13. Article (service detail / blog post) -------- */

.article-body { padding-block: var(--s-7); }
.article-body.container-narrow { max-width: 820px; }
.article-body img {
    margin: var(--s-5) 0;
    border-radius: var(--radius);
}

/* 2-column layout for service pages (text left, images right). */
.article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-6);
    align-items: start;
}
@media (min-width: 900px) {
    .article-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
        gap: var(--s-7);
    }
}
.article-grid > .article-text > :first-child { margin-top: 0; }
.article-grid > .article-text > :last-child  { margin-bottom: 0; }

.article-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-3);
    position: sticky;
    top: 100px;        /* sit below sticky header on desktop */
}
@media (max-width: 899px) {
    .article-images { position: static; }
}
.article-images figure { margin: 0; }
.article-images img {
    margin: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border: 1px solid var(--border);
    background: var(--bg-muted);
}
.article-images.has-many {
    grid-template-columns: 1fr 1fr;
}
.article-body h2 { margin-top: var(--s-7); }
.article-body h3 { margin-top: var(--s-6); }
.article-body ul, .article-body ol { padding-left: 1.4rem; }
.article-body figure { margin: var(--s-5) 0; }
.article-body figcaption {
    font-size: var(--fs-xs);
    text-align: center;
    color: var(--color-text);
    margin-top: var(--s-2);
}
.post-meta {
    margin-bottom: var(--s-5);
    font-family: var(--font-header);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
}
.post-meta a { color: var(--primary); text-decoration: none; }


/* ---------- 14. Testimonials --------------------------------- */

.testimonials {
    display: grid;
    gap: var(--s-5);
    grid-template-columns: 1fr;
}
@media (min-width: 768px)  { .testimonials { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1025px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }

.testimonial {
    padding: var(--s-5);
    background: #fff;
    border: 1px solid var(--border);
    text-align: center;
}
.testimonial-stars {
    color: #f6b40c;
    margin-bottom: var(--s-3);
    font-size: var(--fs-md);
    letter-spacing: 2px;
}
.testimonial blockquote {
    margin: 0 0 var(--s-4);
    padding: 0;
    border: 0;
    background: transparent;
    font-family: var(--font-alt);
    font-style: italic;
    color: var(--color-entity);
    font-size: var(--fs-sm);
}
.testimonial cite {
    display: block;
    font-style: normal;
    font-family: var(--font-header);
    font-weight: 600;
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
}


/* ---------- 15. Forms ---------------------------------------- */

.form { display: grid; gap: var(--s-4); max-width: 720px; margin-inline: auto; }
.form-row { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
    font-family: var(--font-header);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-title);
}
.form-field .req { color: #c0392b; margin-left: 4px; }
.form-field input,
.form-field select,
.form-field textarea {
    padding: 12px 14px;
    background: #fff;
    border: var(--form-brd-width) solid var(--border);
    border-radius: var(--radius);
    font-size: var(--fs-sm);
    color: var(--color-title);
    transition: border-color var(--transition);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: 0;
    border-color: var(--primary);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-note {
    padding: var(--s-3) var(--s-4);
    background: #fff8e6;
    border-left: 3px solid var(--warning);
    color: var(--color-entity);
    font-size: var(--fs-sm);
}
.form-note.is-success {
    background: #eef7ee;
    border-left-color: var(--success);
}
.form-note.is-error {
    background: #fdecec;
    border-left-color: #c0392b;
}

/* Honeypot field — invisible to humans, visible to dumb bots. */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


/* ---------- 16. Branches ------------------------------------- */

.branch {
    background: #fff;
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.branch h3 {
    color: var(--primary);
    margin: 0;
    padding: var(--s-4) var(--s-5);
    font-size: var(--fs-lg);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}
.branch .branch-map {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--bg-muted);
}
.branch .branch-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.branch-body {
    padding: var(--s-4) var(--s-5);
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    flex: 1;
}
.branch dl {
    margin: 0;
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px var(--s-3);
    font-size: var(--fs-sm);
}
.branch dt { font-weight: 600; color: var(--color-title); white-space: nowrap; }
.branch dd { margin: 0; color: var(--color-text); }
.branch dd small { display: block; color: var(--color-text); font-size: 11px; }
.branch a:not(.btn) { color: var(--primary); text-decoration: none; }
.branch a:not(.btn):hover { text-decoration: underline; }
.branch-actions {
    display: flex;
    gap: var(--s-2);
    flex-wrap: wrap;
    margin-top: auto;
}
.branch-actions .btn { flex: 1 1 auto; min-width: 0; }


/* ---------- 17. Gallery / lightbox --------------------------- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-3);
}
@media (min-width: 768px)  { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1025px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-item {
    display: block;
    aspect-ratio: 1;
    background: var(--bg-muted) center/cover no-repeat;
    overflow: hidden;
    position: relative;
    border: 0;
    cursor: pointer;
    padding: 0;
    transition: opacity var(--transition);
}
.gallery-item:hover { opacity: 0.85; }
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 400ms ease;
}
.gallery-item:hover img { transform: scale(1.04); }

.lightbox[open] {
    position: fixed;
    inset: 0;
    width: 100vw; height: 100vh;
    max-width: none; max-height: none;
    margin: 0; padding: 0;
    background: rgba(0,0,0,.92);
    border: 0;
    color: #fff;
}
.lightbox::backdrop { background: rgba(0,0,0,.92); }
.lightbox-figure {
    position: absolute;
    inset: 5%;
    display: grid;
    place-items: center;
    margin: 0;
}
.lightbox-figure img {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
}
.lightbox-btn {
    position: absolute;
    background: rgba(255,255,255,.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,.4);
    width: 44px; height: 44px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: grid; place-items: center;
}
.lightbox-btn:hover { background: rgba(255,255,255,.25); }
.lightbox-prev  { left: var(--s-4); top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: var(--s-4); top: 50%; transform: translateY(-50%); }
.lightbox-close { right: var(--s-4); top: var(--s-4); }


/* ---------- 18. Blog list ------------------------------------ */

.post-list {
    display: grid;
    gap: var(--s-6);
    grid-template-columns: 1fr;
}
@media (min-width: 768px)  { .post-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1025px) { .post-list { grid-template-columns: repeat(3, 1fr); } }

.post-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: box-shadow var(--transition), transform var(--transition);
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: inherit; }
.post-card-img {
    aspect-ratio: 16/9;
    background: var(--bg-muted) center/cover no-repeat;
}
.post-card-body { padding: var(--s-4); flex: 1; display: flex; flex-direction: column; }
.post-card-body h3 {
    font-size: var(--fs-md);
    color: var(--color-title);
    margin-bottom: var(--s-2);
    font-weight: 600;
}
.post-card-body p {
    flex: 1;
    color: var(--color-text);
    font-size: var(--fs-sm);
    margin: 0 0 var(--s-3);
}
.post-card-cta {
    font-family: var(--font-header);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary);
}


/* ---------- 19. Booking CTA strip ---------------------------- */

.cta-strip {
    background: var(--primary);
    color: #fff;
    padding-block: var(--s-7);
    text-align: center;
}
.cta-strip h2 { color: #fff; margin-bottom: var(--s-3); }
.cta-strip p { color: rgba(255,255,255,.9); margin-bottom: var(--s-5); }


/* ---------- 20. Quote / pull-quote --------------------------- */

.pull-quote {
    text-align: center;
    font-family: var(--font-alt);
    font-style: italic;
    font-size: var(--fs-xl);
    color: var(--color-entity);
    line-height: 1.4;
    max-width: 720px;
    margin: var(--s-7) auto 0;
}
.pull-quote::before { content: '“'; color: var(--primary); margin-right: 4px; }
.pull-quote::after  { content: '”'; color: var(--primary); margin-left: 4px; }


/* ---------- 21. Footer --------------------------------------- */

.site-footer {
    background: var(--bg-footer);
    color: rgba(255,255,255,.75);
    padding-block: var(--s-5);
    font-size: var(--fs-xs);
    text-align: center;
}
.site-footer a {
    color: rgba(255,255,255,.85);
    text-decoration: none;
    font-weight: 600;
}
.site-footer a:hover { color: #fff; }
.site-footer .footer-meta { display: inline-block; }
.site-footer hr {
    border-top-color: rgba(255,255,255,.1);
    margin: var(--s-3) auto;
    max-width: 200px;
}


/* ---------- 21b. WhatsApp floating action button ------------- */

.whatsapp-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;                /* above content, below mobile-nav drawer (200) */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18), 0 2px 4px rgba(37, 211, 102, .35);
    transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}
.whatsapp-fab:hover,
.whatsapp-fab:focus-visible {
    transform: scale(1.06);
    background-color: #1ebe57;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .22), 0 2px 6px rgba(37, 211, 102, .5);
    outline: none;
}
.whatsapp-fab svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
    pointer-events: none;
}
.whatsapp-fab::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, .55);
    pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
    .whatsapp-fab::after {
        animation: whatsapp-pulse 2s ease-out infinite;
    }
}
@keyframes whatsapp-pulse {
    0%   { box-shadow: 0 0 0 0    rgba(37, 211, 102, .55); }
    70%  { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);   }
    100% { box-shadow: 0 0 0 0    rgba(37, 211, 102, 0);   }
}

@media (max-width: 600px) {
    .whatsapp-fab { width: 56px; height: 56px; right: 16px; bottom: 16px; }
    .whatsapp-fab svg { width: 28px; height: 28px; }
}


/* ---------- 22. Utilities ------------------------------------ */

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: var(--s-4);
    background: var(--primary);
    color: #fff;
    padding: var(--s-3) var(--s-4);
    text-decoration: none;
    z-index: 1000;
    transform: translateY(0);
    transition: top var(--transition);
}
.skip-link:focus { top: var(--s-4); }

body.no-scroll { overflow: hidden; }
