/**
 * Dr. Dinshah K. Mehta Spiritual Centre - Main styles
 * Mobile-first, readable, elegant. Soft neutrals.
 */

:root {
    --color-bg: #f8f7f4;
    --color-bg-alt: #eeede8;
    --color-text: #2c2c2c;
    --color-text-muted: #5a5a5a;
    --color-accent: #6b5b4b;
    --color-accent-soft: #9a8a7c;
    --color-border: #ddd9d2;
    --color-white: #fff;

    --font-base: 1rem;
    --font-body: 1rem;
    --line-height: 1.6;
    --line-height-tight: 1.4;
    --font-family: "Segoe UI", system-ui, -apple-system, sans-serif;

    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --content-max: 960px;
    --wide-max: 1200px;
    --header-max: 1600px;

    --header-height: 56px;
    --header-height-desktop: 76px;
    --nav-duration: 0.25s;
}

body.text-size-large { --font-body: 1.125rem; }
body.text-size-larger { --font-body: 1.25rem; }

*,
*::before,
*::after { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-family);
    font-size: var(--font-body);
    line-height: var(--line-height);
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url('../images/SSG%20Logo%20grey%20scale.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-sm);
    max-width: var(--header-max);
    margin: 0 auto;
    padding: var(--space-sm) var(--space-lg);
    min-height: var(--header-height);
}

.header-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-right: 3rem;
    min-width: 0;
}
.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-left: 3rem;
    min-width: 0;
}
@media (min-width: 600px) {
    .header-inner { min-height: 64px; padding: var(--space-md) var(--space-xl); }
}
@media (min-width: 1024px) {
    .header-inner { min-height: var(--header-height-desktop); padding: var(--space-lg) var(--space-xl); }
    .header-left { padding-right: 4.5rem; }
    .header-right { padding-left: 4.5rem; }
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
}
.logo-link:hover { text-decoration: none; color: var(--color-accent); }

.logo-link-center {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    top: 50%;
    bottom: auto;
    display: flex;
    align-items: center;
    padding: var(--space-xs) 0;
    z-index: 1;
}

.logo-text {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}
.logo-text-mobile { display: none; }

.logo-img {
    width: 56px;
    height: auto;
    display: block;
    max-height: 56px;
    object-fit: contain;
}

@media (max-width: 1023px) {
    .logo-img { display: none; }
    .logo-text-mobile {
        display: block;
        font-size: 0.8125rem;
        font-weight: 600;
        line-height: 1.25;
        text-align: center;
        max-width: 12em;
    }
}
@media (min-width: 1024px) {
    .logo-text-mobile { display: none; }
    .logo-img { width: 96px; max-height: 96px; }
}

/* Nav toggle (hamburger) */
.nav-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    cursor: pointer;
    border-radius: 6px;
    transition: background var(--nav-duration), border-color var(--nav-duration);
}
.nav-toggle:hover { background: var(--color-bg-alt); }
.nav-toggle::before {
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    margin-top: -6px;
    background: var(--color-text);
    border-radius: 1px;
    box-shadow: 0 7px 0 var(--color-text), 0 14px 0 var(--color-text);
    transition: transform var(--nav-duration), box-shadow var(--nav-duration);
}
.nav-toggle[aria-expanded="true"]::before {
    box-shadow: none;
    margin-top: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}
.nav-toggle[aria-expanded="true"]::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 1023px) {
    .header-inner { grid-template-columns: auto 1fr auto; }
    .header-left { order: 1; }
    .header-right { order: 2; }
    .nav-left,
    .nav-right { display: none; }
    .main-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #fff;
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 4px 8px rgba(0,0,0,0.06);
        z-index: 10;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--nav-duration) ease-out;
    }
    .main-nav.is-open { max-height: 75vh; overflow-y: auto; }
    .main-nav .nav-list-mobile {
        padding: var(--space-md) var(--space-lg);
        flex-direction: column;
        gap: 0;
        list-style: none;
    }
    .main-nav .nav-list-mobile li { border-bottom: 1px solid var(--color-border); }
    .main-nav .nav-list-mobile li:last-child { border-bottom: none; }
    .main-nav .nav-list-mobile a { padding: var(--space-md) 0; display: block; }
}

@media (min-width: 1024px) {
    .nav-toggle { display: none; }
    .main-nav { display: none; }
    .nav-left,
    .nav-right { display: block; min-width: 0; }
    .header-inner { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
    .header-left { justify-content: flex-end; }
    .header-right { justify-content: flex-start; }
}

.nav-left .nav-list,
.nav-right .nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
}
@media (min-width: 1024px) {
    .nav-left .nav-list,
    .nav-right .nav-list {
        gap: var(--space-md);
        flex-wrap: nowrap;
    }
}
.nav-list a {
    color: var(--color-text);
    font-size: 0.9375rem;
    padding: var(--space-xs) var(--space-sm);
    border-radius: 4px;
}
.nav-list a:hover { color: var(--color-accent); background: var(--color-bg-alt); text-decoration: none; }
.nav-list a.active { font-weight: 600; color: var(--color-accent); }

.nav-apply {
    font-weight: 600;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-accent);
    color: #fff !important;
    border: 1px solid var(--color-accent);
    border-radius: 6px;
    margin-left: var(--space-sm);
}
.nav-list a.nav-apply:hover,
.nav-apply:hover {
    background: var(--color-accent-soft) !important;
    border-color: var(--color-accent-soft) !important;
    color: #fff !important;
    text-decoration: none;
}
.nav-list a.nav-apply.active,
.nav-apply.active {
    background: var(--color-accent-soft);
    border-color: var(--color-accent-soft);
    color: #fff !important;
}

/* Text size controls – space from Apply for Retreat */
@media (max-width: 1023px) {
    .nav-apply {
        background: none;
        color: var(--color-accent) !important;
        border: none;
        padding: var(--space-xs) var(--space-sm);
        margin-left: 0;
    }
}
.header-right {
    gap: var(--space-lg);
}
.text-size-controls { display: flex; align-items: center; gap: var(--space-xs); }
.btn-text-size {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background var(--nav-duration);
}
.btn-text-size:hover { background: var(--color-bg-alt); }
.text-size-label { font-size: 0.875rem; color: var(--color-text-muted); }

/* Main content */
.main-content { position: relative; z-index: 1; min-height: 50vh; padding: var(--space-xl) var(--space-md) var(--space-2xl); }
.main-content:has(> .hero) { padding-top: 0; }
.main-content:has(.principles-above-footer) { padding-bottom: var(--space-sm); }
.container { max-width: var(--content-max); margin: 0 auto; }
.container-wide { max-width: var(--wide-max); margin: 0 auto; }

/* Sections */
.section { margin-bottom: var(--space-2xl); }
.hero + .section { margin-top: var(--space-xl); }
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 var(--space-lg);
    line-height: var(--line-height-tight);
}
@media (min-width: 600px) { .section-title { font-size: 1.75rem; } }

/* Hero */
.hero {
    text-align: center;
    padding: var(--space-2xl) 0;
    position: relative;
}
.hero-inner { position: relative; z-index: 1; }
.hero-title { font-size: 1.75rem; font-weight: 600; margin: 0 0 var(--space-md); line-height: var(--line-height-tight); }
.hero-tagline {
    font-size: var(--font-body);
    color: var(--color-text-muted);
    margin: 0 0 var(--space-xl);
    max-width: 36em;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 600px) { .hero-title { font-size: 2.25rem; } }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 0;
}

.hero-parallax {
    background-color: var(--color-bg-alt);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl) var(--space-md);
    margin-left: calc(-1 * var(--space-md));
    margin-right: calc(-1 * var(--space-md));
    width: calc(100% + 2 * var(--space-md));
    max-width: none;
    box-sizing: border-box;
    overflow: hidden;
}
.hero-parallax::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 56px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 56' preserveAspectRatio='none'%3E%3Cpath fill='%23f8f7f4' d='M0 56 L0 42 Q200 28 400 42 Q600 56 800 42 Q1000 28 1200 42 L1200 56 Z'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: bottom center;
    pointer-events: none;
    z-index: 0;
}
@media (max-width: 1023px) { .hero-parallax { background-attachment: scroll; } }
.hero-parallax .hero-inner { position: relative; z-index: 2; }
@media (min-width: 1024px) {
    .hero-parallax {
        min-height: 100vh;
        overflow: visible;
    }
}
.hero-parallax .hero-title,
.hero-parallax .hero-tagline { color: var(--color-white); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
.hero-parallax .hero-tagline { color: rgba(255, 255, 255, 0.95); }
.hero-parallax .btn { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); }
.hero-parallax .btn-secondary { border-color: rgba(255, 255, 255, 0.8); color: var(--color-white); }
.hero-parallax .btn-secondary:hover { background: rgba(255, 255, 255, 0.15); color: var(--color-white); border-color: var(--color-white); }
.hero-photo {
    background-image: url('../images/home-hero-statue-v5.png'), linear-gradient(180deg, #f2f2f2 0%, #d7d7d7 100%);
    background-size: contain, cover;
    background-position: center 48%, center;
    background-repeat: no-repeat, no-repeat;
    background-color: #e6e6e6;
    min-height: calc(100vh - var(--header-height));
}
.hero-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.12) 100%);
    pointer-events: none;
}
.hero-photo::after {
    display: block;
}
.hero-photo .hero-title {
    color: #1a1a1a;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.4);
}
.hero-photo .hero-tagline {
    color: #333;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85), 0 0 16px rgba(255, 255, 255, 0.35);
    max-width: 32em;
    line-height: 1.55;
}
.hero-photo .btn-secondary {
    color: var(--color-accent);
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.75);
}
.hero-photo .btn-secondary:hover {
    background: var(--color-bg-alt);
    color: var(--color-accent);
    border-color: var(--color-accent-soft);
}
@media (max-width: 1023px) {
    .hero-photo {
        background-size: 125% auto, cover;
        background-position: center 50%, center;
        min-height: 58vh;
    }
}
@media (min-width: 1024px) {
    .hero-photo {
        min-height: calc(100vh - var(--header-height-desktop));
    }
}

/* Buttons */
.cta-group { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-lg); }
.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    background: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition: background var(--nav-duration), border-color var(--nav-duration);
}
.btn:hover { background: var(--color-accent-soft); border-color: var(--color-accent-soft); text-decoration: none; color: #fff; }
.btn-secondary {
    color: var(--color-accent);
    background: transparent;
    border-color: var(--color-accent);
}
.btn-secondary:hover { background: var(--color-bg-alt); color: var(--color-accent); }

/* Principles section */
.principles-section { padding: var(--space-2xl) var(--space-md); }
.principles-box {
    max-width: var(--content-max);
    margin: 0 auto;
    background: var(--color-bg-alt);
    padding: var(--space-xl);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}
.principles-title { font-size: 1.25rem; font-weight: 600; margin: 0 0 var(--space-md); }
.principles-intro,
.principles-second { margin: 0 0 var(--space-sm); font-size: 0.9375rem; }
.principles-quote {
    margin: var(--space-md) 0;
    padding-left: var(--space-lg);
    border-left: 3px solid var(--color-accent);
    font-style: italic;
    color: var(--color-text-muted);
}
.principles-quote p { margin: 0; }

/* Forms */
.centre-form {
    max-width: 520px;
    margin: 0 auto;
    padding: var(--space-xl);
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.centre-form-wide { max-width: 720px; }

.section--apply-form {
    text-align: center;
}
.section--apply-form .centre-form {
    text-align: left;
    max-width: 860px;
}
.apply-form-contact {
    margin: var(--space-lg) auto 0;
    max-width: 720px;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 var(--space-md);
}
.form-section-title {
    margin: var(--space-sm) 0 var(--space-sm);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-accent);
}
.form-row { margin-bottom: var(--space-md); }
.form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.9375rem;
    color: var(--color-text);
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="number"],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    color: var(--color-text);
    transition: border-color var(--nav-duration), box-shadow var(--nav-duration), background var(--nav-duration);
}
.form-row textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.form-row select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.25rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%236b5b4b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5L7 7.5L13 1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 14px 9px;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: #8a8a8a; }
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
    outline: none;
    border-color: var(--color-accent-soft);
    box-shadow: 0 0 0 3px rgba(154, 138, 124, 0.18);
}
.form-row.form-check { display: flex; align-items: flex-start; gap: var(--space-sm); }
.form-row.form-check input { margin-top: 0.25rem; }
.form-row.form-hp { position: absolute; left: -9999px; }
.form-row.form-check label { margin-bottom: 0; font-weight: 500; }
.form-row.form-check input[type="checkbox"] {
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.2rem;
    accent-color: var(--color-accent);
}
.centre-form .btn {
    width: 100%;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-radius: 8px;
}
.form-row:last-child { margin-bottom: 0; }
.required { color: var(--color-accent); }
.form-message { padding: var(--space-md); border-radius: 6px; margin-bottom: var(--space-md); }
.form-message-error { background: #fde8e8; border: 1px solid #e0b4b4; color: #8b3a3a; }
.form-message-success { background: #e8f5e9; border: 1px solid #a5d6a7; color: #2e7d32; }
@media (min-width: 760px) {
    .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-row.form-row-full { grid-column: 1 / -1; }
}

/* Reveal */
.reveal { opacity: 0.98; transition: opacity 0.3s ease; }
.reveal.is-visible { opacity: 1; }

/* Centre retreats – gallery */
.container-wide .section:first-child { margin-top: 0; }
.centre-gallery-section {
    background: var(--color-bg-alt);
    padding: var(--space-2xl) var(--space-md);
}
.centre-gallery-intro {
    margin-bottom: var(--space-xl);
    text-align: center;
    max-width: 36em;
    margin-left: auto;
    margin-right: auto;
}
.centre-gallery-heading {
    font-size: 1.375rem;
    font-weight: 600;
    margin: 0 0 var(--space-sm);
    color: var(--color-text);
}
.centre-gallery-desc {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    margin: 0;
    line-height: 1.5;
}
.centre-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 100%;
}
@media (min-width: 640px) {
    .centre-gallery {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        gap: var(--space-xl);
    }
}
.centre-gallery-item {
    margin: 0;
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--color-border);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.centre-gallery-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.centre-gallery-frame {
    position: relative;
    overflow: hidden;
    background: var(--color-border);
    /* Keep all gallery images in a consistent landscape crop */
    height: 0;
    padding-bottom: 66.666%;
}
.centre-gallery-frame img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-width: 100%;
    vertical-align: middle;
}
.centre-gallery-caption {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0;
    padding: var(--space-md) var(--space-lg);
    text-align: center;
    line-height: 1.4;
}
.centre-gallery-empty {
    padding: var(--space-2xl);
    text-align: center;
    color: var(--color-text-muted);
    background: var(--color-white);
    border-radius: 12px;
    border: 1px dashed var(--color-border);
}
.highlight-box {
    background: var(--color-bg-alt);
    padding: var(--space-xl);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}
.highlight-text { margin: 0 0 var(--space-sm); }

/* About – biography YouTube embed (full container width) */
.embed-video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: var(--color-border);
}
.embed-video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
}

/* Contact */
.reach-distances { margin: var(--space-md) 0 0; padding-left: 1.25rem; }
.reach-distances li { margin-bottom: var(--space-sm); }
.contact-form-map-intro { margin-bottom: var(--space-lg); }
.contact-form-map-wrap { display: flex; flex-direction: column; gap: var(--space-xl); margin-top: var(--space-md); }
@media (min-width: 900px) {
    .contact-form-map-wrap { flex-direction: row; align-items: stretch; gap: var(--space-2xl); }
    .contact-form-col,
    .contact-map-col { flex: 1; min-width: 0; }
    .contact-map-col { display: flex; flex-direction: column; }
}
.map-wrap-small { position: relative; height: 0; padding-bottom: 75%; overflow: hidden; border-radius: 12px; background: #eee; }
@media (min-width: 900px) { .map-wrap-small { flex: 1; padding-bottom: 0; min-height: 0; } }
.map-wrap-small iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 12px; }
.contact-map-link { margin: var(--space-sm) 0 0; font-size: 0.9375rem; }

/* Teachings / videos */
.video-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
@media (min-width: 600px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
.video-item { margin: 0; }
.video-item iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 8px; }
.video-item .video-title { font-size: 0.9375rem; margin-top: var(--space-sm); font-weight: 500; }
.pagination { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; }
.pagination li { margin: 0; }
.btn-pagination { padding: var(--space-sm) var(--space-md); font-size: 0.9375rem; }
.btn-pagination.active { font-weight: 600; background: var(--color-accent); color: #fff; border-color: var(--color-accent); }

/* Footer */
.site-footer {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    padding: var(--space-lg) var(--space-md);
    margin-top: 0;
}
.footer-inner {
    max-width: var(--wide-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    align-items: start;
}
@media (min-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 0;
        align-items: stretch;
    }
}
.footer-developed {
    grid-column: 1 / -1;
    text-align: right;
    font-size: 0.875rem;
    color: var(--color-text);
}
.footer-developed a {
    color: var(--color-accent);
    text-decoration: none;
}
.footer-developed a:hover {
    text-decoration: underline;
}
.footer-content {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.footer-content .footer-name {
    margin-top: 0;
}
.footer-content:first-child .footer-name:first-child {
    margin-top: 0;
}
.principles-above-footer {
    background: var(--color-bg-alt);
    padding: var(--space-lg) 0 var(--space-xs);
}
.principles-above-footer .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.site-footer.footer-after-principles {
    border-top: none;
    padding-top: var(--space-xs);
}
.principles-above-footer .footer-principles-quote {
    max-width: 36em;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-text);
    font-style: italic;
    margin-top: 0;
    margin-bottom: var(--space-md);
    text-align: center;
}
.principles-above-footer .footer-principles-quote:last-child {
    margin-bottom: 0;
}
.footer-principles-quote {
    margin: 0 0 var(--space-sm);
    font-size: 0.9375rem;
    font-style: italic;
    color: var(--color-text-muted);
    max-width: 36em;
}
.footer-principles-quote:last-child { margin-bottom: 0; }
.footer-name { font-weight: 600; margin: 0 0 var(--space-sm); }
.footer-address {
    font-style: normal;
    color: var(--color-text);
    margin: 0 0 var(--space-md);
    font-size: 0.9375rem;
}
.footer-address a { color: inherit; text-decoration: none; }
.footer-address a:hover { text-decoration: underline; }
.footer-tagline { color: var(--color-text); margin: 0 0 var(--space-sm); font-size: 0.9375rem; }
.footer-google-link { margin: 0; font-size: 0.9375rem; }
.footer-google-link a { color: var(--color-accent); }
.footer-meta {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-top: var(--space-xs);
    justify-content: flex-end;
}
.footer-social-links {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
    font-size: 0.875rem;
}
.footer-icon-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-text);
    text-decoration: none;
}
.footer-icon-link:hover {
    color: var(--color-accent);
    text-decoration: underline;
}
.footer-icon-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.footer-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}
.footer-left {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}
.footer-links {
    margin: 0 0 var(--space-xs);
    font-size: 0.9375rem;
    text-align: right;
}
.footer-links a {
    color: var(--color-accent);
    text-decoration: none;
}
.footer-links a:hover {
    text-decoration: underline;
}
.footer-link-separator {
    margin: 0 0.4rem;
    color: var(--color-text-muted);
}
.footer-developed {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-text);
}
.footer-developed a {
    color: var(--color-accent);
    text-decoration: none;
}
.footer-developed a:hover {
    text-decoration: underline;
}
@media (max-width: 767px) {
    .footer-content {
        text-align: center;
    }
    .footer-meta-top {
        flex-direction: column;
        align-items: center;
    }
    .footer-social-links {
        justify-content: center;
    }
    .footer-links {
        text-align: center;
    }
    .footer-left {
        flex-direction: column;
        align-items: center;
        gap: var(--space-xs);
    }
    .cta-group {
        justify-content: center;
    }
    .footer-icon-link svg {
        width: 16px;
        height: 16px;
    }
}
.footer-copy { margin: 0; font-size: 0.875rem; color: var(--color-text); }
.footer-copy a { color: inherit; text-decoration: none; }
.footer-copy a:hover { text-decoration: underline; color: var(--color-accent); }
.footer-map-wrap {
    position: relative;
    text-align: left;
    margin-top: 0;
    padding-top: 0;
    min-height: 0;
}
@media (min-width: 768px) {
    .footer-map-wrap {
        height: 100%;
        min-height: 0;
    }
}
.footer-map-label {
    font-weight: 600;
    margin: 0 0 var(--space-sm);
    font-size: 0.9375rem;
    line-height: 1.3;
}
.footer-map {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    width: 100%;
    height: 140px;
}
@media (min-width: 768px) {
    .footer-map {
        height: 100%;
        min-height: 0;
    }
}
.footer-map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
@media (min-width: 768px) {
    .footer-map-wrap .footer-map-link {
        position: absolute;
        bottom: 0;
        left: 0;
        margin: 0;
    }
}
.footer-map-link { margin: 0; font-size: 0.9375rem; }
.footer-map-link a { color: var(--color-accent); }

/* Utility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
