/*
Theme Name: Modapol
Theme URI: https://modapol.com
Author: Modapol
Description: Modapol Diş Kliniği custom teması
Version: 1.0.0-beta
Text Domain: modapol
*/

/* ========== CSS Variables / Color Palette ========== */
:root {
    /* Brand Colors - derived from logo */
    --color-gold: #c8a951;
    --color-gold-dark: #a68a3e;
    --color-gold-light: #e8d48b;
    --color-gold-subtle: #f5eed5;

    /* Neutrals */
    --color-black: #1a1a1a;
    --color-dark: #2d2d2d;
    --color-gray: #6b6b6b;
    --color-gray-light: #e0e0e0;
    --color-off-white: #f8f8f8;
    --color-white: #ffffff;

    /* Functional */
    --font-primary: "Inter", sans-serif;
    --font-heading: "Playfair Display", serif;
    --header-height: 80px;
    --container-width: 1200px;
    --transition: 0.3s ease;
}

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

body {
    font-family: var(--font-primary);
    color: var(--color-black);
    background-color: var(--color-white);
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Header ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-gray-light);
    z-index: 1000;
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo img {
    height: 50px;
    width: auto;
}

.site-logo .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.site-logo .logo-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-black);
    letter-spacing: 1px;
}

.site-logo .logo-subtitle {
    font-size: 0.7rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* Navigation */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-dark);
    position: relative;
    padding: 4px 0;
    transition: color var(--transition);
}

.main-nav a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: width var(--transition);
}

.main-nav a:hover {
    color: var(--color-gold);
}

.main-nav a:hover::after {
    width: 100%;
}

/* Header CTA Button */
.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background-color: var(--color-gold);
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition:
        background-color var(--transition),
        transform var(--transition);
}

.header-cta:hover {
    background-color: var(--color-gold-dark);
    transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-dark);
    transition: var(--transition);
}

/* Content offset for fixed header */
.site-content {
    padding-top: var(--header-height);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        border-bottom: 1px solid var(--color-gray-light);
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 16px;
    }

    .header-cta {
        display: none;
    }
}

/* ========== Hero Slider ========== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 500px;
    overflow: hidden;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-dark);
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.8s ease,
        visibility 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.75) 0%,
        rgba(26, 26, 26, 0.4) 50%,
        rgba(200, 169, 81, 0.15) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    height: 100%;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: max(40px, calc((100vw - var(--container-width)) / 2 + 20px));
    padding-right: max(40px, calc((100vw - var(--container-width)) / 2 + 20px));
}

.hero-main-copy {
    width: min(100%, 650px);
}

.hero-badge {
    display: inline-block;
    width: fit-content;
    padding: 6px 16px;
    background-color: rgba(200, 169, 81, 0.2);
    border: 1px solid var(--color-gold);
    border-radius: 20px;
    color: var(--color-gold-light);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 14px 32px;
    background-color: var(--color-gold);
    color: var(--color-white);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition:
        background-color var(--transition),
        transform var(--transition);
}

.hero-btn:hover {
    background-color: var(--color-gold-dark);
    transform: translateY(-2px);
}

/* Hero Branches Tab (desktop) */
.hero-branches-tab {
    position: relative;
    flex: 0 0 min(34vw, 420px);
    width: min(34vw, 420px);
    min-width: 300px;
    height: clamp(220px, 32vh, 320px);
    border: 1px solid rgba(200, 169, 81, 0.45);
    border-radius: 20px;
    background: linear-gradient(
        150deg,
        rgba(255, 255, 255, 0.14) 0%,
        rgba(26, 26, 26, 0.24) 100%
    );
    backdrop-filter: blur(6px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.22);
    margin-left: auto;
}

.hero-branch {
    position: absolute;
    color: var(--color-white);
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.hero-branch--center {
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    width: 100%;
    padding: 0 12px;
    font-family: var(--font-heading);
    font-size: var(
        --hero-tab-center-font-size-desktop,
        clamp(1.35rem, 2.4vw, 2.1rem)
    );
    font-weight: 700;
    color: var(--color-gold-light);
    letter-spacing: 0.4px;
    text-align: center;
}

.hero-branch--top-left {
    top: 18px;
    left: 18px;
    max-width: 42%;
    font-size: var(
        --hero-tab-corner-font-size-desktop,
        clamp(0.82rem, 1.1vw, 1rem)
    );
}

.hero-branch--top-right {
    top: 18px;
    right: 18px;
    max-width: 42%;
    font-size: var(
        --hero-tab-corner-font-size-desktop,
        clamp(0.82rem, 1.1vw, 1rem)
    );
}

.hero-branch--bottom-left {
    bottom: 18px;
    left: 18px;
    max-width: 42%;
    font-size: var(
        --hero-tab-corner-font-size-desktop,
        clamp(0.82rem, 1.1vw, 1rem)
    );
}

.hero-branch--bottom-right {
    bottom: 18px;
    right: 18px;
    max-width: 42%;
    font-size: var(
        --hero-tab-corner-font-size-desktop,
        clamp(0.82rem, 1.1vw, 1rem)
    );
}

/* Slider Controls */
.hero-controls {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    padding-left: max(40px, calc((100vw - var(--container-width)) / 2 + 20px));
    padding-right: max(40px, calc((100vw - var(--container-width)) / 2 + 20px));
}

.hero-dots {
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 32px;
    height: 3px;
    border: none;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: var(--transition);
}

.hero-dot.active {
    width: 48px;
    background-color: var(--color-gold);
}

.hero-arrows {
    display: flex;
    gap: 8px;
}

.hero-arrow {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.hero-arrow:hover {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
}

/* Hero Responsive */
@media (max-width: 768px) {
    .hero-slider {
        height: 70vh;
        min-height: 400px;
    }

    .hero-content {
        flex-direction: column;
        padding-left: 20px;
        padding-right: 20px;
        align-items: flex-start;
        justify-content: flex-end;
        gap: 0;
    }

    .hero-main-copy {
        width: 100%;
        padding-bottom: 100px;
    }

    .hero-branches-tab {
        display: block;
        position: absolute;
        right: 20px;
        bottom: 48px;
        width: min(46vw, 175px);
        min-width: 138px;
        height: 112px;
        border-radius: 14px;
        backdrop-filter: blur(4px);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    }

    .hero-branch {
        line-height: 1.1;
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.28);
    }

    .hero-branch--center {
        width: 100%;
        padding: 0 8px;
        font-size: var(
            --hero-tab-center-font-size-mobile,
            clamp(0.98rem, 3.9vw, 1.2rem)
        );
        letter-spacing: 0.2px;
    }

    .hero-branch--top-left,
    .hero-branch--top-right,
    .hero-branch--bottom-left,
    .hero-branch--bottom-right {
        max-width: 46%;
        font-size: var(
            --hero-tab-corner-font-size-mobile,
            clamp(0.56rem, 2.2vw, 0.7rem)
        );
    }

    .hero-branch--top-left {
        top: 8px;
        left: 8px;
    }

    .hero-branch--top-right {
        top: 8px;
        right: 8px;
    }

    .hero-branch--bottom-left {
        bottom: 8px;
        left: 8px;
    }

    .hero-branch--bottom-right {
        bottom: 8px;
        right: 8px;
    }

    .hero-controls {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-arrows {
        display: none;
    }
}

/* ========== Section Common ========== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 12px;
}

.section-title::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--color-gold);
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--color-gray);
    max-width: 520px;
    margin: 0 auto;
}

/* ========== Branches Section ========== */
.branches-section {
    padding: 80px 0;
    background-color: var(--color-off-white);
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.branch-card {
    background-color: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.branch-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.branch-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.branch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.branch-image iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.branch-card:hover .branch-image img {
    transform: scale(1.05);
}

.branch-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        var(--color-gray-light) 0%,
        var(--color-off-white) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.branch-info {
    padding: 24px;
}

.branch-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 8px;
}

.branch-desc {
    font-size: 0.9rem;
    color: var(--color-gray);
    line-height: 1.6;
}

/* Branches Responsive */
@media (max-width: 768px) {
    .branches-section {
        padding: 60px 0;
    }

    .branches-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .branch-image {
        height: 200px;
    }
}

/* ========== Services Honeycomb Section ========== */
.services-section {
    position: relative;
    padding: 80px 0;
    background-color: var(--color-dark);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#tedaviler {
    scroll-margin-top: calc(var(--header-height) + 16px);
}

.services-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.88) 0%,
        rgba(45, 45, 45, 0.85) 50%,
        rgba(200, 169, 81, 0.12) 100%
    );
}

.services-container {
    position: relative;
    z-index: 2;
}

/* Light variant for section header on dark bg */
.section-header--light .section-title {
    color: var(--color-white);
}

.section-header--light .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* Honeycomb Grid */
.honeycomb {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.honeycomb-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: -38px;
}

.honeycomb-row:first-child {
    margin-top: 0;
}

.hex-item {
    width: 150px;
    height: 170px;
    flex-shrink: 0;
}

.hex-item-link {
    display: block;
    color: inherit;
}

.hex-item-link .hex-inner {
    cursor: pointer;
}

.hex-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(200, 169, 81, 0.2);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition:
        background var(--transition),
        border-color var(--transition),
        transform var(--transition);
    cursor: default;
    padding: 20px 10px;
}

.hex-item:hover .hex-inner {
    background: rgba(200, 169, 81, 0.15);
    border-color: var(--color-gold);
    transform: scale(1.08);
}

.hex-icon {
    width: 36px;
    height: 36px;
    color: var(--color-gold);
    transition: color var(--transition);
}

.hex-icon svg {
    width: 100%;
    height: 100%;
}

.hex-item:hover .hex-icon {
    color: var(--color-gold-light);
}

.hex-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-white);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* Services Responsive */
@media (max-width: 768px) {
    .services-section {
        padding: 60px 0;
        background-attachment: scroll;
    }

    .hex-item {
        width: 110px;
        height: 128px;
    }

    .honeycomb-row {
        gap: 8px;
        margin-top: -28px;
    }

    .honeycomb-row:first-child {
        margin-top: 0;
    }

    .hex-icon {
        width: 28px;
        height: 28px;
    }

    .hex-label {
        font-size: 0.65rem;
    }
}

/* ========== Footer ========== */
.site-footer {
    background-color: var(--color-dark);
    color: rgba(255, 255, 255, 0.75);
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
    gap: 40px;
}

/* Footer Logo */
.footer-logo {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    line-height: 1.2;
}

.footer-logo-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 1px;
}

.footer-logo-subtitle {
    font-size: 0.7rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.footer-about {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Footer Social */
.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-white);
}

.footer-social svg {
    width: 16px;
    height: 16px;
}

/* Footer Headings */
.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-gold);
    border-radius: 1px;
}

/* Footer Links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    transition:
        color var(--transition),
        padding-left var(--transition);
}

.footer-links li a:hover {
    color: var(--color-gold);
    padding-left: 4px;
}

/* Footer Contact */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--color-gold);
    margin-top: 2px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition);
}

.footer-contact a:hover {
    color: var(--color-gold);
}

/* Footer Hours */
.footer-hours {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-hours li {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-hours li:last-child {
    border-bottom: none;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-main {
        padding: 40px 0 30px;
    }

    .footer-hours li {
        gap: 16px;
    }
}

/* ========== About Intro Section ========== */
.about-intro-section {
    padding: 80px 0;
    background-color: var(--color-white);
}

.about-intro-header {
    text-align: center;
    margin-bottom: 48px;
}

.about-badge {
    display: inline-block;
    padding: 6px 18px;
    background-color: var(--color-gold-subtle);
    color: var(--color-gold-dark);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 16px;
}

.about-intro-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--color-black);
}

.about-intro-title::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--color-gold);
    margin: 14px auto 0;
    border-radius: 2px;
}

.about-intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-intro-subtitle {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 20px;
    line-height: 1.4;
}

.about-intro-text p {
    font-size: 0.95rem;
    color: var(--color-gray);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-intro-text p:last-child {
    margin-bottom: 0;
}

.about-intro-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.about-intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 360px;
}

.about-image-placeholder {
    width: 100%;
    min-height: 360px;
    background: linear-gradient(
        135deg,
        var(--color-gold-subtle) 0%,
        var(--color-gray-light) 100%
    );
}

/* About Responsive */
@media (max-width: 768px) {
    .about-intro-section {
        padding: 60px 0;
    }

    .about-intro-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-intro-image img,
    .about-image-placeholder {
        min-height: 260px;
    }
}

/* ========== Gallery Preview Section (Homepage) ========== */
.gallery-preview-section {
    padding: 80px 0;
    background-color: var(--color-off-white);
}

.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.gallery-preview-item {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.gallery-preview-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.gallery-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-preview-item:hover img {
    transform: scale(1.05);
}

.gallery-preview-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        var(--color-gray-light) 0%,
        var(--color-white) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-preview-placeholder svg {
    width: 40px;
    height: 40px;
    color: var(--color-gray);
    opacity: 0.35;
}

.gallery-preview-cta {
    text-align: center;
    margin-top: 36px;
}

.gallery-preview-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    border: 2px solid var(--color-gold);
    border-radius: 8px;
    color: var(--color-gold-dark);
    font-size: 0.95rem;
    font-weight: 600;
    transition:
        background-color var(--transition),
        color var(--transition),
        transform var(--transition);
}

.gallery-preview-btn:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* Gallery Preview Responsive */
@media (max-width: 768px) {
    .gallery-preview-section {
        padding: 60px 0;
    }

    .gallery-preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ========== Gallery Carousel Section ========== */
.gallery-section {
    padding: 80px 0;
    background-color: var(--color-white);
}

.gallery-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 0 48px;
}

.gallery-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-card {
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    background-color: var(--color-off-white);
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.gallery-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.gallery-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(
        135deg,
        var(--color-gray-light) 0%,
        var(--color-off-white) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--color-gray);
    opacity: 0.4;
}

.gallery-caption {
    padding: 14px 18px;
    font-size: 0.85rem;
    color: var(--color-gray);
    text-align: center;
    background-color: var(--color-white);
}

/* Gallery Arrows */
.gallery-arrow {
    position: absolute;
    top: calc(50% - 24px);
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-gray-light);
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-dark);
    cursor: pointer;
    transition: var(--transition);
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gallery-arrow:hover {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-white);
}

.gallery-arrow svg {
    width: 20px;
    height: 20px;
}

.gallery-arrow--prev {
    left: -8px;
}

.gallery-arrow--next {
    right: -8px;
}

/* Gallery Counter */
.gallery-counter {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-gray);
    background: var(--color-off-white);
    padding: 6px 16px;
    border-radius: 16px;
}

.gallery-current {
    font-weight: 700;
    color: var(--color-gold-dark);
}

/* Gallery Responsive */
@media (max-width: 768px) {
    .gallery-section {
        padding: 60px 0;
    }

    .gallery-card img,
    .gallery-placeholder {
        height: 240px;
    }

    .gallery-arrow--prev {
        left: 4px;
    }

    .gallery-arrow--next {
        right: 4px;
    }

    .gallery-arrow {
        width: 36px;
        height: 36px;
    }

    .gallery-arrow svg {
        width: 16px;
        height: 16px;
    }
}

/* ========== Contact Section ========== */
.contact-section {
    padding: 80px 0;
    background-color: var(--color-off-white);
}

/* Contact Form */
.contact-form-wrap {
    max-width: 640px;
    margin: 0 auto;
    background-color: var(--color-white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.form-message {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.form-message--success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.form-message--error {
    background-color: #fce4ec;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 6px;
}

.form-group .required {
    color: #c62828;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-gray-light);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--color-black);
    background-color: var(--color-off-white);
    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(200, 169, 81, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-gray);
    opacity: 0.6;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background-color: var(--color-gold);
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition:
        background-color var(--transition),
        transform var(--transition);
}

.form-submit:hover {
    background-color: var(--color-gold-dark);
    transform: translateY(-2px);
}

/* Contact Responsive */
@media (max-width: 768px) {
    .contact-section {
        padding: 60px 0;
    }

    .contact-form-wrap {
        padding: 28px;
    }
}

/* ========== Branches Contact Section ========== */
.branches-contact-section {
    padding: 80px 0;
    background-color: var(--color-white);
}

.branches-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.branch-contact-card {
    background-color: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.branch-contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.branch-map {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--color-gray-light);
}

.branch-map iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.branch-contact-info {
    padding: 24px;
}

.branch-contact-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 14px;
}

.branch-contact-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.branch-contact-details li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--color-gray);
}

.branch-contact-details svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--color-gold);
}

.branch-contact-details a {
    color: var(--color-gray);
    transition: color var(--transition);
}

.branch-contact-details a:hover {
    color: var(--color-gold);
}

/* Branches Contact Responsive */
@media (max-width: 768px) {
    .branches-contact-section {
        padding: 60px 0;
    }

    .branches-contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ========== Blog Archive ========== */
.blog-archive-section {
    padding: 120px 0 80px;
}

.blog-archive-section .section-header {
    text-align: center;
    margin-bottom: 48px;
}

.blog-archive-section .section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.blog-archive-section .section-subtitle {
    font-size: 1.05rem;
    color: var(--color-gray);
}

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

.blog-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.blog-card-link {
    display: block;
    color: inherit;
}

.blog-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-off-white);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-off-white);
}

.blog-card-placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--color-gray-light);
}

.blog-card-body {
    padding: 24px;
}

.blog-card-meta {
    margin-bottom: 10px;
}

.blog-card-meta time {
    font-size: 0.8rem;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-dark);
    line-height: 1.4;
    margin-bottom: 10px;
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-card-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gold);
    transition: color var(--transition);
}

.blog-card:hover .blog-card-more {
    color: var(--color-gold-dark);
}

/* Blog Pagination */
.blog-pagination {
    margin-top: 48px;
    text-align: center;
}

.blog-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-dark);
    background: var(--color-off-white);
    transition: all var(--transition);
}

.blog-pagination .page-numbers:hover {
    background: var(--color-gold-subtle);
    color: var(--color-gold-dark);
}

.blog-pagination .page-numbers.current {
    background: var(--color-gold);
    color: var(--color-white);
}

.blog-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-gray);
    font-size: 1.05rem;
}

/* Blog Archive Responsive */
@media (max-width: 768px) {
    .blog-archive-section {
        padding: 100px 0 60px;
    }

    .blog-archive-section .section-title {
        font-size: 2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ========== Error Page ========== */
.error-page-section {
    padding: 120px 0 80px;
    background: linear-gradient(
        135deg,
        var(--color-off-white) 0%,
        var(--color-white) 100%
    );
}

.error-page-card {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    background: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    padding: 48px 32px;
}

.error-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--color-gold-subtle);
    color: var(--color-gold-dark);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.error-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.2;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.error-text {
    max-width: 560px;
    margin: 0 auto;
    color: var(--color-gray);
    font-size: 1rem;
    line-height: 1.7;
}

.error-actions {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: var(--transition);
}

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

.error-btn-primary:hover {
    background: var(--color-gold-dark);
    transform: translateY(-1px);
}

.error-btn-secondary {
    border: 1px solid var(--color-gray-light);
    color: var(--color-dark);
    background: var(--color-white);
}

.error-btn-secondary:hover {
    border-color: var(--color-gold);
    color: var(--color-gold-dark);
}

@media (max-width: 768px) {
    .error-page-section {
        padding: 100px 0 60px;
    }

    .error-page-card {
        padding: 32px 20px;
    }
}

/* ========== Legal Pages ========== */
.legal-page-section {
    padding: 120px 0 80px;
    background-color: var(--color-white);
}

.legal-container {
    max-width: 900px;
}

.legal-header {
    margin-bottom: 24px;
}

.legal-title {
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    color: var(--color-black);
    line-height: 1.2;
    margin-bottom: 6px;
}

.legal-meta {
    font-size: 0.85rem;
    color: var(--color-gray);
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-dark);
    margin: 24px 0 10px;
}

.legal-content p,
.legal-content li {
    color: var(--color-gray);
    font-size: 0.95rem;
    line-height: 1.8;
}

.legal-content ul {
    padding-left: 20px;
    margin: 8px 0 4px;
}

.legal-content li {
    margin-bottom: 6px;
}

.legal-note {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--color-off-white);
    border: 1px solid var(--color-gray-light);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-legal a {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.78);
    transition: color var(--transition);
}

.footer-legal a:hover {
    color: var(--color-gold-light);
}

@media (max-width: 768px) {
    .legal-page-section {
        padding: 100px 0 60px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-legal {
        gap: 10px;
    }
}

/* ========== Single Post ========== */
.single-post-section {
    padding: 120px 0 80px;
}

.single-post-header {
    max-width: 760px;
    margin: 0 auto 32px;
}

.single-post-back {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-gold);
    margin-bottom: 24px;
    transition: color var(--transition);
}

.single-post-back:hover {
    color: var(--color-gold-dark);
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--color-gray);
}

.single-post-meta .meta-sep {
    color: var(--color-gray-light);
}

.single-post-meta a {
    color: var(--color-gold);
    transition: color var(--transition);
}

.single-post-meta a:hover {
    color: var(--color-gold-dark);
}

.single-post-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.3;
}

.single-post-thumbnail {
    max-width: 900px;
    margin: 0 auto 40px;
    border-radius: 12px;
    overflow: hidden;
}

.single-post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Content (Gutenberg output) */
.single-post-content {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-dark);
}

.single-post-content h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    margin: 40px 0 16px;
    color: var(--color-dark);
}

.single-post-content h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 32px 0 12px;
    color: var(--color-dark);
}

.single-post-content p {
    margin-bottom: 20px;
}

.single-post-content img {
    border-radius: 8px;
    margin: 24px 0;
}

.single-post-content ul,
.single-post-content ol {
    margin: 16px 0 20px 24px;
    list-style: initial;
}

.single-post-content ol {
    list-style: decimal;
}

.single-post-content li {
    margin-bottom: 8px;
}

.single-post-content blockquote {
    border-left: 4px solid var(--color-gold);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--color-off-white);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--color-gray);
}

.single-post-content a {
    color: var(--color-gold);
    text-decoration: underline;
    transition: color var(--transition);
}

.single-post-content a:hover {
    color: var(--color-gold-dark);
}

/* Post Tags */
.single-post-tags {
    max-width: 760px;
    margin: 40px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--color-off-white);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-gray);
}

/* Post Navigation */
.single-post-nav {
    max-width: 760px;
    margin: 48px auto 0;
    padding-top: 32px;
    border-top: 1px solid var(--color-gray-light);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    border-radius: 8px;
    transition: background var(--transition);
}

.post-nav-link:hover {
    background: var(--color-off-white);
}

.post-nav-next {
    text-align: right;
}

.post-nav-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-gold);
}

.post-nav-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-dark);
    line-height: 1.4;
}

/* Single Post Responsive */
@media (max-width: 768px) {
    .single-post-section {
        padding: 100px 0 60px;
    }

    .single-post-title {
        font-size: 1.8rem;
    }

    .single-post-content {
        font-size: 1rem;
    }

    .single-post-nav {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .post-nav-next {
        text-align: left;
    }
}
