/* ============================================
   Little City Montessori CMS — Custom Styles
   W3.CSS overrides + custom design system
   ============================================ */

/* ─── CSS Custom Properties ────────────────── */
:root {
    --navy: #1a1a2e;
    --navy-light: #2a2a4e;
    --gold: #c9a84c;
    --gold-light: #e8d5a0;
    --gold-dark: #a88a3a;
    --sage: #8ba888;
    --sage-light: #b5d1b0;
    --offwhite: #faf9f6;
    --white: #ffffff;
    --gray: #6b7280;
    --gray-light: #f3f4f6;
    --gray-border: #e5e7eb;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #9ca3af;
    --shadow-sm: 0 1px 3px rgba(26,26,46,0.08);
    --shadow-md: 0 4px 14px rgba(26,26,46,0.1);
    --shadow-lg: 0 10px 30px rgba(26,26,46,0.12);
    --shadow-xl: 0 20px 50px rgba(26,26,46,0.15);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Nunito', 'Segoe UI', system-ui, sans-serif;
}

/* ─── Global Resets ────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--offwhite);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    margin: 0;
    padding: 0;
    overscroll-behavior: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
    margin-top: 0;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--navy);
    text-decoration: none;
    transition: var(--transition);
}

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

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

/* ─── Announcement Bar ─────────────────────── */
.announcement-bar {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--navy);
    text-align: center;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    z-index: 1001;
    letter-spacing: 0.02em;
}

.announcement-bar a {
    color: var(--navy);
    text-decoration: underline;
    font-weight: 700;
}

.announcement-bar .close-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--navy);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.7;
    transition: var(--transition);
    line-height: 1;
}

.announcement-bar .close-btn:hover {
    opacity: 1;
}

/* ─── Sticky Navigation ───────────────────── */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--gray-border);
    transition: var(--transition);
    box-shadow: none;
}

.top-nav.has-announcement {
    /* JS will set top offset dynamically */
}

.top-nav.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 24px;
    height: 76px;
    transition: var(--transition);
}

.top-nav.scrolled .nav-inner {
    height: 64px;
}

/* Logo */
.nav-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.top-nav.scrolled .nav-logo img {
    height: 40px;
}

.nav-logo .logo-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin-left: 10px;
    letter-spacing: -0.02em;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    display: block;
    padding: 8px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-links a:hover {
    color: var(--gold-dark);
    background: rgba(201, 168, 76, 0.06);
}

.nav-links a.active {
    color: var(--gold-dark);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.nav-dropdown .dropdown-toggle .chevron {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-toggle .chevron {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 240px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    padding: 8px 0;
    z-index: 100;
    border: 1px solid var(--gray-border);
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
    text-transform: none;
    letter-spacing: 0;
    border-radius: 0;
}

.dropdown-content a::after {
    display: none;
}

.dropdown-content a .program-age {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-left: auto;
    padding-left: 12px;
}

.dropdown-content a:hover {
    background: var(--gray-light);
    color: var(--gold-dark);
}

/* CTA Button in Nav */
.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: var(--navy);
    color: var(--white) !important;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--radius-xl);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-left: 8px;
    transition: var(--transition);
    border: 2px solid var(--navy);
    white-space: nowrap;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.4);
}

/* Hamburger */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    z-index: 1002;
}

.hamburger-btn span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--navy);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── Mobile Sidebar ──────────────────────── */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 310px;
    max-width: 85vw;
    height: 100vh;
    background: var(--navy);
    z-index: 1001;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 80px 0 40px;
}

.mobile-sidebar.open {
    right: 0;
}

.mobile-sidebar a {
    display: block;
    padding: 14px 30px;
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: var(--transition);
}

.mobile-sidebar a:hover,
.mobile-sidebar a.active {
    background: rgba(201, 168, 76, 0.15);
    color: var(--gold);
}

.mobile-sidebar .sub-link {
    padding-left: 48px;
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255,255,255,0.7);
}

.mobile-sidebar .sub-link:hover {
    color: var(--gold);
}

.mobile-sidebar .sidebar-cta {
    display: block;
    margin: 20px 30px;
    padding: 14px;
    background: var(--gold);
    color: var(--navy) !important;
    text-align: center;
    font-weight: 700;
    border-radius: var(--radius-xl);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.sidebar-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* ─── Page Body Spacing ────────────────────── */
.page-body {
    padding-top: 76px;
}

.page-body.has-announcement {
    padding-top: 116px;
}

/* ─── Section Styles ───────────────────────── */
.section {
    padding: 80px 0;
}

.section-sm {
    padding: 50px 0;
}

.section-lg {
    padding: 120px 0;
}

.section-navy {
    background: var(--navy);
    color: var(--white);
}

.section-navy h2,
.section-navy h3,
.section-navy h4 {
    color: var(--white);
}

.section-navy p {
    color: rgba(255,255,255,0.8);
}

.section-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--navy);
}

.section-sage {
    background: var(--sage-light);
}

.section-gray {
    background: var(--gray-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Hero Sections ────────────────────────── */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-home {
    background: linear-gradient(155deg, var(--offwhite) 0%, #f0ede4 100%);
    min-height: 90vh;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--navy);
    margin-bottom: 16px;
}

.hero-title .accent {
    display: inline-block;
    color: var(--gold);
    font-style: italic;
    position: relative;
}

.hero-rotating-text {
    display: block;
    color: var(--gold);
    font-style: italic;
    position: relative;
    height: 1.15em;   /* one line-height — prevents collapsed/extra gap */
    margin-top: 2px;  /* tight spacing below the preceding text line */
    overflow: visible;
}

.hero-rotating-text .rotate-word {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateY(14px);
    transition: all 0.5s ease;
    white-space: nowrap;
}

.hero-rotating-text .rotate-word.active {
    opacity: 1;
    transform: translateY(0);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 36px;
    font-weight: 400;
    line-height: 1.8;
}

.hero-subtitle strong {
    color: var(--navy);
    font-weight: 700;
}

/* Hero Image Side */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-wrapper img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hero-image-wrapper .hero-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--gold);
    color: var(--navy);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
}

/* ─── Buttons ──────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 0.92rem;
    font-weight: 700;
    font-family: var(--font-body);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: 2px solid transparent;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    gap: 8px;
}

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

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

.btn-gold {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

.btn-gold:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

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

.btn-sm {
    padding: 8px 20px;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1rem;
}

.btn-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ─── Cards ────────────────────────────────── */
.card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--gray-border);
}

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

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 24px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-border);
}

/* Program Cards */
.program-card {
    position: relative;
    border-left: 4px solid var(--gold);
}

.program-card .program-age {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gray-light);
    color: var(--text-secondary);
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    font-weight: 600;
}

.program-card .program-schedule {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Team Cards */
.team-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.team-card .team-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.team-card:hover .team-photo {
    transform: scale(1.05);
}

.team-card .team-info {
    padding: 20px;
}

.team-card .team-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.team-card .team-role {
    font-size: 0.88rem;
    color: var(--gold-dark);
    font-weight: 600;
}

.team-card .team-bio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(26, 26, 46, 0.95));
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.team-card:hover .team-bio-overlay {
    transform: translateY(0);
}

.team-card .team-bio-overlay p {
    color: rgba(255,255,255,0.9);
    font-size: 0.88rem;
    margin: 0;
}

/* Testimonial Cards */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid var(--gray-border);
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.testimonial-card .quote-mark {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--gold);
    line-height: 1;
    position: absolute;
    top: 16px;
    left: 24px;
    opacity: 0.3;
}

.testimonial-card .quote-text {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 16px;
    padding-top: 20px;
}

.testimonial-card .quote-author {
    font-weight: 700;
    color: var(--navy);
    font-size: 0.95rem;
}

.testimonial-card .quote-role {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ─── FAQ Accordion ────────────────────────── */
.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    border: 1px solid var(--gray-border);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--gold-light);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    color: var(--navy);
    font-size: 1rem;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-body);
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--gold-dark);
}

.faq-question .faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: var(--gold);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-question .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

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

.section-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(201, 168, 76, 0.12);
    color: var(--gold-dark);
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: var(--radius-xl);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ─── Video Hero ───────────────────────────── */
.video-hero {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.video-hero video {
    width: 100%;
    display: block;
    object-fit: cover;
}

.video-hero .video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.video-hero .play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.video-hero .play-btn:hover {
    transform: scale(1.1);
    background: var(--gold);
}

.video-hero .play-btn svg {
    width: 28px;
    height: 28px;
    fill: var(--navy);
    margin-left: 4px;
}

/* ─── Feature Cards / Icon Cards ───────────── */
.icon-card {
    text-align: center;
    padding: 36px 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-border);
    transition: var(--transition);
}

.icon-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-light);
}

.icon-card .icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.15), rgba(139, 168, 136, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.6rem;
}

.icon-card h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.icon-card p {
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ─── Waitlist Banner ──────────────────────── */
.waitlist-banner {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--navy);
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
    margin-bottom: 40px;
}

.waitlist-banner h3 {
    color: var(--navy);
    margin-bottom: 8px;
}

.waitlist-banner p {
    color: var(--navy);
    opacity: 0.85;
    margin: 0;
}

/* ─── Blog Styles ──────────────────────────── */
.blog-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.blog-tab {
    padding: 8px 20px;
    border-radius: var(--radius-xl);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--white);
    border: 1px solid var(--gray-border);
    text-decoration: none;
    transition: var(--transition);
}

.blog-tab:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
}

.blog-tab.active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

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

.blog-card .card-image {
    height: 200px;
}

.blog-card .card-category {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(201, 168, 76, 0.12);
    color: var(--gold-dark);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

/* Single Post */
.single-post-hero {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
}

.single-post-content {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
}

.single-post-content h2,
.single-post-content h3 {
    margin-top: 32px;
    margin-bottom: 16px;
}

.single-post-content ul,
.single-post-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.single-post-content li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.share-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-border);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    transition: var(--transition);
    gap: 6px;
    border: 1px solid var(--gray-border);
    background: var(--white);
    color: var(--text-primary);
    cursor: pointer;
    text-decoration: none;
}

.share-btn:hover {
    background: var(--gray-light);
    border-color: var(--gold);
}

/* ─── Pagination ───────────────────────────── */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid var(--gray-border);
    color: var(--text-secondary);
    text-decoration: none;
}

.pagination a:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
}

.pagination .active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* ─── Contact Form ─────────────────────────── */
.form-group {
    margin-bottom: 20px;
}

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

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

/* ─── Flash Messages ───────────────────────── */
.flash-message {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 0.92rem;
}

.flash-success {
    background: #def4f0;
    color: #008361;
    border: 1px solid #00b090;
}

.flash-error {
    background: #ffe8ef;
    color: #d63163;
    border: 1px solid #fc5185;
}

/* ─── Steps / Process ──────────────────────── */
.step-card {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-border);
    margin-bottom: 16px;
    transition: var(--transition);
}

.step-card:hover {
    border-color: var(--gold-light);
    box-shadow: var(--shadow-sm);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h4 {
    margin-bottom: 4px;
}

.step-content p {
    font-size: 0.92rem;
    margin: 0;
}

/* ─── Award Badges ─────────────────────────── */
.award-badges {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.award-badge {
    text-align: center;
}

.award-badge img {
    height: 70px;
    width: auto;
    opacity: 0.85;
    transition: var(--transition);
    filter: grayscale(0.3);
}

.award-badge:hover img {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.08);
}

.award-badge .award-name {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ─── Instagram Grid ───────────────────────── */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
}

.insta-item {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
    border-radius: 4px;
}

.insta-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.insta-item:hover img {
    transform: scale(1.08);
}

.insta-item .insta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: white;
    font-size: 1.3rem;
}

.insta-item:hover .insta-overlay {
    opacity: 1;
}

/* ─── Cookie Consent ───────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--navy);
    color: var(--white);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner p {
    color: rgba(255,255,255,0.85);
    margin: 0;
    font-size: 0.88rem;
}

.cookie-banner a {
    color: var(--gold);
    text-decoration: underline;
}

.cookie-accept {
    padding: 8px 24px;
    background: var(--gold);
    color: var(--navy);
    border: none;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.cookie-accept:hover {
    background: var(--gold-light);
}

/* ─── Footer ───────────────────────────────── */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 18px;
    font-family: var(--font-heading);
}

.footer-col p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    padding: 4px 0;
    transition: var(--transition);
}

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

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: var(--white);
    padding: 0;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--navy);
    padding-left: 0;
}

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

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

.footer-logo img {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

/* ─── Portal Gate ──────────────────────────── */
.portal-gate {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-box {
    max-width: 420px;
    width: 100%;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.portal-box h2 {
    margin-bottom: 8px;
}

.portal-box p {
    margin-bottom: 24px;
}

/* ─── Map ──────────────────────────────────── */
.map-wrapper {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-border);
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: none;
}

/* ─── Admin Styles ─────────────────────────── */
.admin-wrap {
    background: var(--gray-light);
    min-height: 100vh;
    font-family: var(--font-body);
}

.admin-header {
    background: var(--navy);
    color: var(--white);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header h1 {
    font-size: 1.1rem;
    color: var(--white);
    margin: 0;
    font-family: var(--font-heading);
}

.admin-header a {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}

.admin-header a:hover {
    color: var(--gold);
}

.admin-nav {
    background: var(--white);
    border-bottom: 1px solid var(--gray-border);
    padding: 0 24px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
}

.admin-nav a {
    padding: 14px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.admin-nav a:hover {
    color: var(--navy);
}

.admin-nav a.active {
    color: var(--navy);
    border-bottom-color: var(--gold);
}

.admin-content {
    max-width: 1100px;
    margin: 24px auto;
    padding: 0 24px;
}

.admin-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--gray-border);
}

.admin-card h3 {
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--gray-border);
}

.admin-table td {
    padding: 12px;
    border-bottom: 1px solid var(--gray-border);
    font-size: 0.92rem;
    vertical-align: middle;
}

.admin-table tr:hover {
    background: var(--gray-light);
}

.admin-table .actions a {
    margin-right: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.admin-table .actions .edit-link {
    color: var(--gold-dark);
}

.admin-table .actions .delete-link {
    color: #d63163;
}

.stat-card {
    text-align: center;
    padding: 24px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(155deg, var(--navy) 0%, var(--navy-light) 100%);
}

.admin-login-box {
    max-width: 400px;
    width: 100%;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
}

.admin-login-box h2 {
    text-align: center;
    margin-bottom: 24px;
}

.badge-unread {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #d63163;
    color: white;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-left: 6px;
}

/* ─── Animations ───────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Base: hidden below, slides up on enter */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

/* Slide in from the left */
.animate-on-scroll.anim-left {
    transform: translateX(-36px);
}

/* Slide in from the right */
.animate-on-scroll.anim-right {
    transform: translateX(36px);
}

/* Gentle zoom in */
.animate-on-scroll.anim-zoom {
    transform: scale(0.94);
}

/* Stagger delay utilities (apply to children or siblings) */
.anim-delay-1 { transition-delay: 0.10s; }
.anim-delay-2 { transition-delay: 0.20s; }
.anim-delay-3 { transition-delay: 0.30s; }
.anim-delay-4 { transition-delay: 0.40s; }
.anim-delay-5 { transition-delay: 0.50s; }

/* Visible state — shared across all variants */
.animate-on-scroll.visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* On mobile: softer/shorter animation so it feels native */
@media (max-width: 768px) {
    .animate-on-scroll {
        transform: translateY(18px);
        transition-duration: 0.50s;
    }
    .animate-on-scroll.anim-left,
    .animate-on-scroll.anim-right {
        /* Keep vertical-only on small screens — horizontal slides feel jarring */
        transform: translateY(18px);
    }
    .anim-delay-1 { transition-delay: 0.06s; }
    .anim-delay-2 { transition-delay: 0.12s; }
    .anim-delay-3 { transition-delay: 0.18s; }
    .anim-delay-4 { transition-delay: 0.24s; }
    .anim-delay-5 { transition-delay: 0.30s; }
}

/* Respect user preference: skip all animations */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ─── Responsive ───────────────────────────── */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }

    .hero-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .insta-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    h1 { font-size: 2.4rem; }
    h2 { font-size: 2rem; }

    .section { padding: 60px 0; }
}

@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    h3 { font-size: 1.4rem; }

    .section { padding: 48px 0; }

    .btn-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }

    .single-post-hero {
        height: 250px;
    }

    .step-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .admin-nav {
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .insta-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-inner {
        padding: 0 16px;
        height: 64px;
    }

    .page-body {
        padding-top: 64px;
    }

    .container, .container-narrow {
        padding: 0 16px;
    }
}

/* ─── Print Styles ─────────────────────────── */
@media print {
    .top-nav, .announcement-bar, .mobile-sidebar, .sidebar-overlay,
    .cookie-banner, .site-footer { display: none !important; }
    .page-body { padding-top: 0 !important; }
    body { background: white; }
}
