/* 
 * Ordination Dr. Rathmayr - Main Stylesheet
 * Architecture: BEM (Block Element Modifier)
 */

:root {
    /* Colors */
    --color-primary: #265f3b;
    /* Dark Green */
    --color-primary-light: #a4c641;
    /* Bright Lime Green */
    --color-primary-hover: #193f27;
    /* Darkest Green */
    --color-secondary: #d5e5b9;
    /* Light Pastel Green */
    --color-bg: #FAFAF6;
    --color-bg-alt: #F2F0E8;
    --color-text: #3D3D3D;
    --color-white: #FFFFFF;

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Variables */
    --grid-max-width: 1440px;
    --grid-gutter: clamp(18px, 5vw, 64px);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 32px;
    --box-shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.03);
    --box-shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.06);
    --transition-spring: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Basics */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Grid & Layout */
.container {
    width: 100%;
    max-width: var(--grid-max-width);
    margin: 0 auto;
    padding: 0 var(--grid-gutter);
}

/* Typography */
h1,
h2,
h3,
h4,
.font-serif {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.1;
    font-weight: 400;
}

h1 {
    font-size: clamp(36px, 5vw, 64px);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(26px, 4vw, 42px);
}

h3 {
    font-size: clamp(20px, 2.5vw, 28px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 99px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.98);
}

.btn--primary {
    background-color: var(--color-primary-light);
    color: var(--color-white);
}

.btn--primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-soft);
}

.btn--outline {
    background-color: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.btn--outline:hover {
    background-color: rgba(74, 90, 36, 0.05);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: #E8E5D8;
    color: var(--color-primary);
    border: 1.5px solid rgba(38, 95, 59, 0.25);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    border-radius: 99px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 24px;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px;
    z-index: 1000;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 24px;
    left: 0;
    right: 0;
    padding: 0 var(--grid-gutter);
    z-index: 100;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header.is-hidden {
    transform: translateY(-120%);
    pointer-events: none;
}

.header.is-scrolled .header__inner {
    padding: 12px 32px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--box-shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-white);
    padding: 16px 32px;
    border-radius: 99px;
    box-shadow: var(--box-shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 1400px;
    margin: 0 auto;
    transition: var(--transition-fast);
}

@media (max-width: 768px) {
    .header {
        top: 12px;
    }

    .header__inner {
        padding: 8px 26px;
        border-radius: 99px;
    }

    .hidden-mobile {
        display: none !important;
    }
}

.header__logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--color-primary);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.header__logo-link:hover {
    opacity: 0.75;
}

.header__logo-img {
    height: 80px;
    width: auto;
}

@media (max-width: 600px) {
    .header__logo-img {
        height: 60px;
    }
}

.nav__list {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav__link {
    font-weight: 500;
    font-size: 15px;
    color: var(--color-text);
    transition: background-color 0.3s ease, color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 99px;
}

.nav__link:hover {
    color: var(--color-primary);
    background-color: var(--color-bg-alt);
}

/* Dropdown */
.nav__item--has-dropdown {
    position: relative;
    padding: 8px 0;
}

.nav__icon-dropdown {
    transition: transform 0.3s ease;
}

.nav__item--has-dropdown:hover .nav__icon-dropdown {
    transform: rotate(180deg);
}

.nav__dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform-origin: top center;
    transform: translateX(-50%) translateY(12px) scale(0.96);
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-medium);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 32px;
    opacity: 0;
    visibility: hidden;
    filter: blur(4px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.5s;
    min-width: 600px;
    pointer-events: none;
}

.nav__item--has-dropdown:hover .nav__dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    filter: blur(0);
    transform: translateX(-50%) translateY(16px) scale(1);
    transition-delay: 0s;
}

.nav__dropdown::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
}

.nav__dropdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.nav__dropdown-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav__dropdown-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary-light);
    font-weight: 600;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 8px;
}

.nav__dropdown-link {
    font-size: 14px;
    color: var(--color-text);
    transition: background-color 0.3s ease, color 0.3s ease;
    display: block;
    padding: 6px 14px;
    margin-left: -14px;
    border-radius: 99px;
}

.nav__dropdown-link:hover {
    background-color: var(--color-bg-alt);
    color: var(--color-primary);
}


.header__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-primary);
    background-color: var(--color-bg-alt);
    padding: 8px 16px;
    border-radius: 99px;
    transition: var(--transition-fast);
}

.header__phone:hover {
    background-color: var(--color-primary-light);
    color: white;
}

/* Hamburger (Mobile) */
.header__menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 24px;
    margin-right: 8px;
    position: relative;
    z-index: 101;
    padding: 0;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 28px;
    height: 24px;
    position: relative;
}

.hamburger__line {
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--color-primary);
    position: absolute;
    left: 0;
    transition: transform 0.3s cubic-bezier(0.77, 0, 0.175, 1),
                opacity 0.2s ease;
}

.hamburger__line:nth-child(1) { top: 2px; }
.hamburger__line:nth-child(2) { top: 11px; }
.hamburger__line:nth-child(3) { top: 20px; }

/* Hamburger → X animation */
[aria-expanded="true"] .hamburger__line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

[aria-expanded="true"] .hamburger__line:nth-child(2) {
    opacity: 0;
}

[aria-expanded="true"] .hamburger__line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 1024px) {
    .header__nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--color-bg);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 99;
        padding-top: calc(var(--header-height, 80px) + 24px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .header__nav.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .nav__list {
        flex-direction: column;
        font-size: 1.5rem;
        padding: 0 24px;
        gap: 4px;
        align-items: flex-start;
    }

    .nav__item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        width: 100%;
    }

    .nav__item:last-child {
        border-bottom: none;
    }

    .nav__link,
    .nav__link--dropdown {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        padding: 14px 16px;
        font-size: 1.35rem;
        border-radius: 0;
        text-align: left;
    }

    .nav__link:hover,
    .nav__link--dropdown:hover {
        background-color: transparent;
        color: var(--color-primary);
    }

    .nav__icon-dropdown {
        width: 18px;
        height: 18px;
        margin-left: 8px;
        flex-shrink: 0;
    }

    /* Mobile Dropdown */
    .nav__item--has-dropdown {
        position: relative;
    }

    /* Reset all desktop dropdown styles */
    .nav__dropdown {
        position: static;
        transform: none !important;
        background: none;
        box-shadow: none;
        border: none;
        padding: 0 0 12px 0;
        min-width: 0;
        opacity: 1;
        visibility: visible;
        filter: none !important;
        pointer-events: auto;
        display: none;
        left: auto;
        top: auto;
        transition: none;
        transition-delay: 0s;
    }

    /* Override desktop hover transform */
    .nav__item--has-dropdown:hover .nav__dropdown {
        transform: none !important;
        filter: none !important;
    }

    .nav__item--has-dropdown.is-dropdown-open .nav__dropdown {
        display: block;
    }

    .nav__item--has-dropdown.is-dropdown-open .nav__icon-dropdown {
        transform: rotate(180deg);
    }

    .nav__dropdown-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding-left: 18px;
    }

    .nav__dropdown-col {
        gap: 4px;
        padding-left: 0;
    }

    .nav__dropdown-title {
        font-size: 0.7rem;
        margin-bottom: 4px;
        padding-bottom: 6px;
        padding-left: 0;
    }

    .nav__dropdown-link {
        font-size: 1rem;
        padding: 8px 0;
        margin-left: 0;
        border-radius: 0;
    }

    .nav__dropdown-link:hover {
        background-color: transparent;
        color: var(--color-primary);
    }

    .header__menu-toggle {
        display: block;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: 165px;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    background-color: var(--color-bg);
    overflow: hidden;
}

.hero__bg-video {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(250, 250, 246, 0.82);
}

.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

@media (max-width: 1024px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero { min-height: 80vh; padding-top: 120px; }
}

.hero__title { margin-bottom: 24px; }
.hero__subtitle {
    font-size: 18px;
    color: #555;
    margin-bottom: 40px;
    max-width: 480px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

@media (max-width: 640px) {
    .hero__actions {
        flex-direction: column;
        width: 100%;
    }
    .hero__actions .btn { width: 100%; }
}

.hero__trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    font-size: 14px;
    color: #666;
}
.hero__trust-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hero__trust-list svg { color: var(--color-primary-light); }

.hero__image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background-color: rgba(0,0,0,0.05);
    aspect-ratio: 4/5;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero__image-wrapper:hover .hero__image { transform: scale(1); }

/* Utility Classes */
.js-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: var(--transition-spring);
}

.js-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Base Layout & Utilities */
.section {
    padding: 96px 0;
}

.bg-alt {
    background-color: var(--color-bg-alt);
}

.mt-4 {
    margin-top: 16px;
}

.mt-8 {
    margin-top: 32px;
}

.text-sm {
    font-size: 14px;
    line-height: 1.4;
}

.opacity-70 {
    opacity: 0.7;
}

.text-right {
    text-align: right;
}

.section__title {
    margin-bottom: 48px;
    font-size: clamp(28px, 4vw, 36px);
}

/* Double Bezel Card Concept (High-Agency) */
.card--double-bezel {
    border-radius: 2rem;
    overflow: hidden;
    transition: var(--transition-spring);
    height: 100%;
}

.card__shell {
    background-color: rgba(255, 255, 255, 0.4);
    padding: 8px;
    /* Inner bezel margin */
    border-radius: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    height: 100%;
}

.card__core {
    background-color: var(--color-white);
    padding: 32px 24px;
    border-radius: calc(2rem - 6px);
    height: 100%;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), 0 2px 12px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    transition: var(--transition-spring);
}

.card--double-bezel:hover {
    transform: translateY(-4px);
}

.card--double-bezel:hover .card__core {
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), var(--box-shadow-medium);
}

.card__icon-wrapper {
    color: var(--color-primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-bg-alt);
}

.card__title {
    margin-bottom: 12px;
    font-size: 22px;
}

.card__text {
    color: #555;
    margin-bottom: 24px;
    font-size: 15px;
    flex-grow: 1;
}

.card__link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 15px;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.card--double-bezel:hover .card__link {
    transform: translateX(4px);
    color: var(--color-primary-light);
}

/* Services Grid */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services__grid {
        grid-template-columns: 1fr;
    }
}

/* Quote Section */
.quote {
    padding: 120px 0;
    text-align: center;
    background-color: var(--color-primary-light);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.quote::before {
    content: '„';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 280px;
    color: rgba(255, 255, 255, 0.04);
    line-height: 1;
    z-index: 0;
    pointer-events: none;
}

.quote__inner {
    position: relative;
    z-index: 1;
}

.quote__blockquote {
    max-width: 800px;
    margin: 0 auto;
}

/* Layout & Utilities */
.quote__text {
    font-family: var(--font-heading);
    font-size: clamp(26px, 3.5vw, 40px);
    color: var(--color-white);
    line-height: 1.35;
    margin-bottom: 32px;
}

.quote__author {
    font-family: var(--font-body);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 13px;
}

.quote__author cite {
    font-style: normal;
}

/* About Section Background Overlay Layout */
.about--fullscreen {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-color: var(--color-bg);
}

.about__bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.about__bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    transform: scale(1.02);
}

.about__container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-start;
}

.about__content-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 48px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-medium);
    border: 1px solid rgba(255, 255, 255, 0.6);
    max-width: 600px;
}

@media (max-width: 768px) {
    .about__content-card { padding: 32px; }
}

.about__title {
    margin-bottom: 16px;
}

.about__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.about__text {
    margin-bottom: 32px;
    color: #555;
    line-height: 1.7;
}

.badge--small {
    padding: 6px 14px;
    font-size: 11px;
    margin-bottom: 0;
    background-color: var(--color-bg-alt);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Teaser / Jiaogulan Full-Screen Background */
.teaser--jiaogulan {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    background-color: var(--color-bg); /* fallback */
    color: var(--color-text);
    text-align: left;
}

.teaser__bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.teaser__bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.teaser__container {
    position: relative;
    z-index: 2;
}

.teaser__content-block {
    max-width: 500px;
    margin-left: 0;
}

.teaser__title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 48px);
    color: var(--color-primary);
    margin-bottom: 24px;
}

.teaser__text {
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 40px;
}

/* News Section */
.news__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

@media (max-width: 768px) {
    .news__grid {
        grid-template-columns: 1fr;
    }
}

.news__item {
    display: flex;
    background: var(--color-white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-soft);
    overflow: hidden;
    transition: var(--transition-spring);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.news__item:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-medium);
}

.news__accent-line {
    width: 6px;
    background-color: var(--color-primary-light);
    flex-shrink: 0;
}

.news__content {
    padding: 32px;
}

.news__date {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    color: #888;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.news__title {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--color-primary);
}

.news__text {
    color: #555;
    font-size: 15px;
}

/* Contact Section */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 64px;
}

@media (max-width: 900px) {
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

.hours-table {
    width: 100%;
    max-width: 400px;
    border-collapse: collapse;
    margin-top: 24px;
    margin-bottom: 16px;
}

.hours-table th {
    text-align: left;
    padding: 12px 0;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hours-table td {
    text-align: right;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.contact__note {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.contact__link {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-weight: 500;
    color: var(--color-primary);
    transition: color 0.2s;
    font-size: 18px;
}

.contact__link:hover {
    color: var(--color-primary-light);
}

.contact__cancel {
    font-size: 13px;
    color: #888;
    margin-top: 16px;
    line-height: 1.5;
}

.map-container {
    overflow: hidden;
    height: 100%;
    min-height: 400px;
}

.map-overlay-address {
    position: absolute;
    top: 24px;
    left: 24px;
    background-color: var(--color-white);
    padding: 16px 24px;
    z-index: 10;
    box-shadow: var(--box-shadow-medium);
    border-radius: var(--border-radius-md);
    font-size: 14px;
    line-height: 1.4;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
    transition: box-shadow var(--transition-fast);
}

.map-overlay-address:hover {
    box-shadow: var(--box-shadow-large);
}

.map-overlay-address strong {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 15px;
    display: block;
    margin-bottom: 4px;
}

.map-overlay-logo {
    position: absolute;
    top: 24px;
    right: 24px;
    background-color: var(--color-white);
    padding: 10px 24px;
    border-radius: 99px;
    z-index: 10;
    box-shadow: var(--box-shadow-medium);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 600px) {
    .map-overlay-address {
        top: auto;
        bottom: 24px;
        left: 24px;
        right: 24px;
        text-align: center;
    }
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 96px 0 32px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1.5fr 1fr;
    gap: 48px;
    margin-bottom: 80px;
}

@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--color-white);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.footer__logo:hover {
    opacity: 0.8;
}

.footer__logo-img {
    height: 75px;
    width: auto;
}

.footer__desc {
    text-wrap: balance;
}

.footer__title {
    color: var(--color-white);
    margin-bottom: 24px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer__links li {
    margin-bottom: 16px;
}

.footer__links a,
.footer__address a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

.footer__links a:hover,
.footer__address a:hover {
    color: var(--color-white);
}

.footer__address {
    font-style: normal;
    line-height: 2;
}

.footer__bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.footer__legal {
    display: flex;
    gap: 32px;
}

.footer__legal a {
    color: rgba(255, 255, 255, 0.7);
}

.footer__legal a:hover {
    color: var(--color-white);
}

@media (max-width: 600px) {
    .footer__bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer__legal {
        justify-content: center;
    }
}

/* Stagger Delay Utility */
.js-reveal[style*="--reveal-delay"] {
    transition-delay: var(--reveal-delay);
}

/* ========================================= */
/* SUBPAGE LAYOUT                            */
/* ========================================= */

.subpage-header {
    background-color: var(--color-bg-alt);
    padding: 160px 0 80px 0;
    position: relative;
    overflow: hidden;
}

.subpage-header::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--color-bg);
    transform: skewY(-2deg);
    z-index: 1;
}

.subpage-header__container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.page-title {
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.1;
    color: var(--color-primary-dark);
}

.page-subtitle {
    font-size: clamp(18px, 2.5vw, 22px);
    color: var(--color-text);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.subpage-body {
    padding-top: 40px;
    padding-bottom: 80px;
    background: var(--color-bg);
}

/* Base styling for Nibbly generated blocks in subpages */
.subpage-body p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.subpage-body ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.subpage-body li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.subpage-body h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.subpage-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.content-highlight {
    background: var(--color-bg-alt);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    margin: 32px 0;
}