/* ============================================================
   Chestnut Rise Nursing Home — Chestnut Rise Nursing Home
   Main Stylesheet
   ============================================================ */

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
    --navy: #1B3571;
    --navy-dark: #112350;
    --navy-light: #2A4A8F;
    --red: #B91C1C;
    --red-dark: #991B1B;
    --red-light: #DC2626;
    --cream: #FDF8F4;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.3s ease;
}

/* ── Reset / Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, video, embed, object { max-width: 100%; height: auto; }
iframe { max-width: 100%; }
img { display: block; }
* { word-wrap: break-word; overflow-wrap: break-word; }
/* Touch optimisation */
a, button, input[type="submit"], .btn { touch-action: manipulation; }
/* Responsive tables */
table { overflow-x: auto; display: block; max-width: 100%; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--navy);
    line-height: 1.3;
    margin: 0 0 1rem;
    font-weight: 600;
}
h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

/* ── Layout ────────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.text-center { text-align: center; }
.text-red { color: var(--red); }
.text-navy { color: var(--navy); }

/* ── Skip to Content ───────────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--navy);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    z-index: 10000;
    font-weight: 700;
}
.skip-link:focus {
    top: 1rem;
    color: var(--white);
}

/* ── Top Bar ───────────────────────────────────────────────── */
.top-bar {
    background: var(--navy-dark);
    color: var(--white);
    font-size: 0.85rem;
    padding: 0.5rem 0;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.top-bar-left {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.top-bar-link {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.top-bar-link:hover { color: var(--red-light); }
.top-bar svg { flex-shrink: 0; }

/* ── Header / Nav ──────────────────────────────────────────── */
.site-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition);
    border-bottom: 1px solid var(--gray-200);
}
.site-header.scrolled {
    box-shadow: var(--shadow-md);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    gap: 1.5rem;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}
.logo:hover { color: var(--navy); }
.logo-icon { flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; }
.logo-brand {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}
.logo-tagline {
    font-size: 0.75rem;
    color: var(--red);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.main-nav { flex-grow: 1; }
.nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}
.nav-list > li > a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--gray-700);
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
}
.nav-list > li > a:hover,
.nav-list > li > a.active {
    color: var(--red);
    background: var(--gray-50);
}

/* Dropdowns */
.has-dropdown { position: relative; }
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
    z-index: 100;
    padding: 0.5rem 0;
}
.has-dropdown:hover .dropdown,
.has-dropdown.dropdown-open .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown li a {
    display: block;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    color: var(--gray-700);
}
.dropdown li a:hover {
    background: var(--cream);
    color: var(--red);
}

/* Header CTA */
.header-cta {
    flex-shrink: 0;
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}
.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--navy);
    transition: var(--transition);
}

/* ── Mobile Nav ────────────────────────────────────────────── */
.mobile-nav-open { overflow: hidden; }
.mobile-nav-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}
.mobile-nav-open .mobile-nav-overlay {
    opacity: 1;
    visibility: visible;
}
.mobile-nav-content {
    position: absolute;
    top: 0; right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: var(--white);
    padding: 2rem 1.5rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--transition);
}
.mobile-nav-open .mobile-nav-content {
    transform: translateX(0);
}
.mobile-nav-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--navy);
    cursor: pointer;
    line-height: 1;
}
.mobile-nav-list {
    margin-top: 2rem;
}
.mobile-nav-list li a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.05rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}
.mobile-nav-list li a:hover { color: var(--red); }
.mobile-cta {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.3;
}
.btn-primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}
.btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: var(--white);
}
.btn-secondary {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}
.btn-secondary:hover {
    background: var(--navy-dark);
    border-color: var(--navy-dark);
    color: var(--white);
}
.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-outline-white:hover {
    background: var(--white);
    color: var(--navy);
}
.btn-outline-navy {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}
.btn-outline-navy:hover {
    background: var(--navy);
    color: var(--white);
}
.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

/* ── Hero Section ──────────────────────────────────────────── */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: var(--white);
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image:
        radial-gradient(circle, var(--white) 1px, transparent 1px),
        radial-gradient(circle, var(--white) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4rem 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    padding: 0.4rem 1.25rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}
.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}
.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.8;
}
.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Section Titles ────────────────────────────────────────── */
.section-title {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}
.section-subtitle {
    text-align: center;
    color: var(--gray-500);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* ── Section Backgrounds ───────────────────────────────────── */
section { padding: 5rem 0; }
.section-cream { background: var(--cream); }
.section-gray { background: var(--gray-50); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }

/* ── Cards ─────────────────────────────────────────────────── */
.intro-cards { padding: 5rem 0; }
.intro-card, .service-card, .news-card, .facility-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}
.intro-card:hover, .service-card:hover, .news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.card-image {
    height: 220px;
    overflow: hidden;
}
.card-body {
    padding: 1.5rem;
}
.card-body h3 {
    margin-bottom: 0.75rem;
}
.card-body h3 a { color: var(--navy); }
.card-body h3 a:hover { color: var(--red); }
.card-link {
    display: inline-block;
    color: var(--red);
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}
.card-link:hover { color: var(--red-dark); }

/* ── Placeholder Images ────────────────────────────────────── */
.placeholder-image {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: var(--gray-400);
    font-size: 0.9rem;
}
.placeholder-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.placeholder-text::before {
    content: '';
    display: block;
    width: 48px;
    height: 48px;
    background: var(--gray-300);
    border-radius: 50%;
    opacity: 0.5;
}

/* ── Why Choose Section ────────────────────────────────────── */
.why-choose {
    background: var(--cream);
    padding: 5rem 0;
}
.why-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    border-top: 4px solid transparent;
}
.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--red);
}
.why-icon {
    margin-bottom: 1.25rem;
}
.why-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
}
.why-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* ── Services Grid ─────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.service-card {
    padding: 2.5rem 2rem;
    text-align: center;
    border-top: 4px solid var(--navy);
}
.service-card:hover { border-top-color: var(--red); }
.service-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    background: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-icon svg { color: var(--red); }
.service-card h3 { margin-bottom: 0.75rem; }
.service-card p { color: var(--gray-600); font-size: 0.95rem; margin-bottom: 1rem; }

/* ── News Cards ────────────────────────────────────────────── */
.news-date {
    display: block;
    font-size: 0.85rem;
    color: var(--red);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* ── Testimonials ──────────────────────────────────────────── */
.testimonials {
    background: var(--navy);
    color: var(--white);
    padding: 5rem 0;
}
.testimonials .section-title { color: var(--white); }
.testimonials .section-subtitle { color: rgba(255,255,255,0.7); }
.testimonials-carousel {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    min-height: 200px;
}
.testimonial-card {
    display: none;
    text-align: center;
    padding: 2rem;
    animation: fadeIn 0.5s ease;
}
.testimonial-card.active { display: block; }
.testimonial-stars { margin-bottom: 1rem; }
.testimonial-card blockquote {
    margin: 0;
    padding: 0;
}
.testimonial-card blockquote p {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.8;
    color: rgba(255,255,255,0.95);
    margin-bottom: 1.5rem;
}
.testimonial-card cite {
    font-style: normal;
    display: block;
}
.testimonial-card cite strong {
    display: block;
    font-size: 1.05rem;
    color: var(--white);
}
.testimonial-card cite span {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
.carousel-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-btn:hover { background: rgba(255,255,255,0.3); }
.carousel-dots { display: flex; gap: 0.5rem; }
.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: background var(--transition);
    padding: 0;
}
.carousel-dot.active { background: var(--red); }

/* ── Page Header ───────────────────────────────────────────── */
.page-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: var(--white);
    padding: 4rem 0 3rem;
    text-align: center;
}
.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.page-header p {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 700px;
    margin: 0 auto;
}

/* Breadcrumbs */
.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.5); }

/* ── About Page ────────────────────────────────────────────── */
.about-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.about-story .placeholder-image {
    min-height: 350px;
    border-radius: var(--radius-lg);
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}
.value-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.value-card .value-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}
.team-card {
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.team-card .placeholder-image { min-height: 200px; }
.team-card .card-body { padding: 1.25rem; }
.team-card h4 { margin-bottom: 0.25rem; }
.team-card p { color: var(--gray-500); font-size: 0.9rem; margin: 0; }

/* ── Facilities Grid ───────────────────────────────────────── */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.facility-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-top: 3px solid var(--navy);
}
.facility-card:hover { border-top-color: var(--red); }
.facility-card h4 { margin-bottom: 0.5rem; }
.facility-card p { color: var(--gray-600); font-size: 0.9rem; }

/* ── Gallery ───────────────────────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.gallery-placeholder {
    background: var(--gray-100);
    border-radius: var(--radius);
    aspect-ratio: 4 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 0.85rem;
    gap: 0.5rem;
    border: 2px dashed var(--gray-300);
}
.gallery-placeholder svg { opacity: 0.4; }

/* ── Forms ─────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--gray-700);
    font-size: 0.95rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition);
    background: var(--white);
    color: var(--gray-800);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(27, 53, 113, 0.1);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--red);
}
.form-group textarea { min-height: 150px; resize: vertical; }
.field-error {
    display: block;
    color: var(--red);
    font-size: 0.85rem;
    margin-top: 0.3rem;
}
.honeypot { display: none !important; }
.char-count {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-400);
    text-align: right;
    margin-top: 0.25rem;
}

/* ── Flash Messages ────────────────────────────────────────── */
.flash-success {
    background: #DEF7EC;
    border: 1px solid #31C48D;
    color: #03543F;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    font-weight: 600;
}
.flash-error {
    background: #FDE8E8;
    border: 1px solid #F98080;
    color: #9B1C1C;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    font-weight: 600;
}
.flash-info {
    background: #E1EFFE;
    border: 1px solid #76A9FA;
    color: #1E429F;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

/* ── Contact Page ──────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.contact-info h3 { margin-top: 2rem; }
.contact-info h3:first-child { margin-top: 0; }
.contact-details-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}
.contact-details-list svg { flex-shrink: 0; margin-top: 0.25rem; }
.map-embed {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 2rem;
    position: relative;
}
.map-embed iframe {
    width: 100%;
    height: 350px;
    border: 0;
    display: block;
}

/* ── Service Detail Pages ──────────────────────────────────── */
.service-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 0;
}
.service-content h2 {
    margin-top: 2.5rem;
    font-size: 1.75rem;
}
.service-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}
.service-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--cream);
    border-radius: var(--radius);
}
.service-feature svg {
    flex-shrink: 0;
    color: var(--red);
    margin-top: 0.15rem;
}
.service-cta {
    text-align: center;
    background: var(--cream);
    padding: 3rem;
    border-radius: var(--radius-lg);
    margin-top: 3rem;
}
.service-cta h3 { margin-bottom: 1rem; }
.related-services {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}
.related-services h3 { margin-bottom: 1rem; }
.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.related-links a {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--gray-50);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--navy);
    border: 1px solid var(--gray-200);
}
.related-links a:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* ── Pagination ────────────────────────────────────────────── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    transition: all var(--transition);
}
.pagination a:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}
.pagination .current {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

/* ── News Single ───────────────────────────────────────────── */
.news-single {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 0;
}
.news-single h1 { font-size: 2.25rem; }
.news-single .news-meta {
    color: var(--gray-500);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}
.news-single .news-content { line-height: 1.9; }
.news-single .news-content p { margin-bottom: 1.25rem; }
.share-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}
.share-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--gray-700);
}
.share-links a:hover { background: var(--gray-200); }

/* ── Privacy Policy ────────────────────────────────────────── */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 0;
}
.privacy-content h2 {
    margin-top: 2.5rem;
    font-size: 1.5rem;
}
.privacy-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.privacy-content li { margin-bottom: 0.5rem; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.85);
    padding: 4rem 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
    gap: 2.5rem;
}
.footer-col h4 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--red);
    border-radius: 2px;
}
.footer-col p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
}
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--red-light); }
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
}
.footer-contact svg { flex-shrink: 0; opacity: 0.7; margin-top: 0.2rem; }
.footer-contact a { color: rgba(255,255,255,0.7); }
.footer-contact a:hover { color: var(--red-light); }
.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    transition: background var(--transition);
}
.social-icon:hover {
    background: var(--red);
    color: var(--white);
}
.copyright-bar {
    background: var(--navy-dark);
    padding: 1.25rem 0;
    margin-top: 3rem;
    text-align: center;
}
.copyright-bar p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}
.copyright-bar a { color: rgba(255,255,255,0.5); }
.copyright-bar a:hover { color: var(--red-light); }

/* ── Admin Styles ──────────────────────────────────────────── */
.admin-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.admin-header {
    background: var(--navy);
    color: var(--white);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.admin-header h1 {
    color: var(--white);
    font-size: 1.25rem;
    margin: 0;
}
.admin-nav {
    display: flex;
    gap: 1.5rem;
}
.admin-nav a {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}
.admin-nav a:hover, .admin-nav a.active { color: var(--white); }
.admin-body {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
.admin-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.admin-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    border-top: 4px solid var(--navy);
}
.admin-card .count {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy);
    display: block;
}
.admin-card .label {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* Admin Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.admin-table th {
    background: var(--navy);
    color: var(--white);
    padding: 0.85rem 1rem;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.admin-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9rem;
    vertical-align: top;
}
.admin-table tr:nth-child(even) td { background: var(--gray-50); }
.admin-table tr:hover td { background: var(--cream); }

/* Status Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}
.badge-unread { background: #FDE8E8; color: #9B1C1C; }
.badge-read { background: #DEF7EC; color: #03543F; }
.badge-published { background: #DEF7EC; color: #03543F; }
.badge-draft { background: #FEF3C7; color: #92400E; }

/* Admin Login */
.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
}
.login-card {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    text-align: center;
}
.login-card h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}
.login-card .login-subtitle {
    color: var(--gray-500);
    margin-bottom: 2rem;
}
.login-error {
    background: #FDE8E8;
    color: #9B1C1C;
    padding: 0.75rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Admin Actions */
.admin-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.admin-actions .btn { padding: 0.35rem 0.85rem; font-size: 0.8rem; }
.btn-danger {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}
.btn-danger:hover {
    background: var(--red-dark);
    color: var(--white);
}
.btn-success {
    background: #059669;
    color: var(--white);
    border-color: #059669;
}

/* Message Detail */
.message-detail {
    background: var(--cream);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-top: 0.75rem;
}

/* ── Utilities ─────────────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.container-narrow { max-width: 800px; margin-left: auto; margin-right: auto; }
.container-xs { max-width: 700px; margin-left: auto; margin-right: auto; }

/* ── Animations ────────────────────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   RESPONSIVE DESIGN — COMPREHENSIVE MOBILE OPTIMISATION
   Breakpoints: 480 / 576 / 768 / 1024 / 1200
   ================================================================ */

/* ── Max 1024px — Tablet & below ───────────────────────────── */
@media (max-width: 1024px) {
    /* Navigation: show hamburger, hide desktop nav */
    .main-nav { display: none; }
    .header-cta { display: none; }
    .hamburger { display: flex; }

    .container { padding: 0 1.25rem; }

    /* 2-column grids on tablet */
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .facilities-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Max 768px — Mobile ────────────────────────────────────── */
@media (max-width: 768px) {

    /* ── Typography ── */
    h1 { font-size: clamp(1.5rem, 5vw, 2rem); }
    h2 { font-size: clamp(1.3rem, 4vw, 1.75rem); }
    h3 { font-size: clamp(1.1rem, 3.5vw, 1.35rem); }
    h4 { font-size: 1.1rem; }
    body { font-size: 16px; line-height: 1.65; }
    p { margin-bottom: 0.85rem; }

    /* ── Container ── */
    .container { padding: 0 16px; }

    /* ── Top Bar ── */
    .top-bar { font-size: 0.78rem; padding: 6px 0; }
    .top-bar-inner { justify-content: center; text-align: center; }
    .top-bar-left { gap: 12px; flex-wrap: wrap; justify-content: center; }
    .top-bar-right { display: none; }
    .top-bar-link { font-size: 0.78rem; }

    /* ── Header ── */
    .site-header { position: sticky; top: 0; }
    .header-inner {
        padding: 8px 12px;
        gap: 8px;
    }
    .logo { gap: 8px; }
    .logo-icon { width: 36px; height: 36px; }
    .logo-brand { font-size: 1rem; }
    .logo-tagline { font-size: 0.6rem; letter-spacing: 0; }
    .hamburger {
        padding: 8px;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }
    .hamburger-line { width: 22px; }

    /* ── Mobile Nav Overlay ── */
    .mobile-nav-content {
        width: 85vw;
        max-width: 320px;
        padding: 60px 20px 20px;
    }
    .mobile-nav-close {
        top: 12px;
        right: 12px;
        font-size: 2rem;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .mobile-nav-list { margin-top: 0; }
    .mobile-nav-list li a {
        display: block;
        padding: 12px 0;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--gray-100);
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    .mobile-cta {
        display: block;
        text-align: center;
        margin-top: 20px;
        width: 100%;
        padding: 14px;
        min-height: 48px;
    }

    /* ── Hero Section ── */
    .hero {
        min-height: auto;
        padding: 0;
    }
    .hero-content {
        padding: 40px 16px;
        max-width: 100%;
    }
    .hero h1 {
        font-size: clamp(1.5rem, 6vw, 2.25rem);
        line-height: 1.2;
        margin-bottom: 16px;
    }
    .hero p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 24px;
    }
    .hero-badge {
        font-size: 0.7rem;
        padding: 6px 16px;
        margin-bottom: 16px;
    }
    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .hero-ctas .btn {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        min-height: 48px;
        font-size: 1rem;
    }

    /* ── Sections ── */
    section { padding: 32px 0; }
    .intro-cards { padding: 32px 0; }
    .section-title {
        font-size: clamp(1.3rem, 4.5vw, 1.75rem);
        margin-bottom: 8px;
    }
    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 24px;
        padding: 0 8px;
    }

    /* ── All Grids → Single Column ── */
    .grid-2,
    .grid-3,
    .grid-4 { grid-template-columns: 1fr; gap: 16px; }
    .services-grid { grid-template-columns: 1fr; gap: 16px; }
    .about-story { grid-template-columns: 1fr; gap: 20px; }
    .contact-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .values-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .team-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .facilities-grid { grid-template-columns: 1fr; gap: 16px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .service-features { grid-template-columns: 1fr; gap: 10px; }

    /* ── Cards ── */
    .intro-card,
    .service-card,
    .news-card,
    .facility-card {
        border-radius: var(--radius);
    }
    .card-image { height: 180px; }
    .card-body { padding: 16px; }
    .card-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
    .card-body p { font-size: 0.9rem; }
    .card-link { font-size: 0.9rem; }

    /* Why Choose cards */
    .why-choose { padding: 32px 0; }
    .why-card {
        padding: 24px 16px;
        text-align: center;
    }
    .why-card h3 { font-size: 1.15rem; }
    .why-card p { font-size: 0.9rem; }

    /* Service cards */
    .service-card {
        padding: 24px 16px;
        text-align: center;
    }
    .service-icon { width: 56px; height: 56px; }
    .service-card h3 { font-size: 1.1rem; }
    .service-card p { font-size: 0.88rem; }

    /* Value cards */
    .value-card {
        padding: 16px 12px;
        text-align: center;
    }
    .value-card .value-icon { width: 48px; height: 48px; margin-bottom: 8px; }
    .value-card h3 { font-size: 1.05rem; }
    .value-card p { font-size: 0.85rem; }

    /* ── Page Header ── */
    .page-header {
        padding: 28px 0 24px;
        text-align: center;
    }
    .page-header h1 {
        font-size: clamp(1.35rem, 5vw, 1.75rem);
        margin-bottom: 12px;
    }
    .page-header p { font-size: 0.9rem; padding: 0 8px; }
    .breadcrumb {
        font-size: 0.78rem;
        margin-bottom: 12px;
        gap: 4px;
    }

    /* ── About Page ── */
    .about-story .placeholder-image { min-height: 200px; }

    /* ── Service Detail Pages ── */
    .service-content { padding: 24px 0; }
    .service-content h2 {
        font-size: 1.3rem;
        margin-top: 28px;
    }
    .service-feature {
        padding: 12px;
        gap: 10px;
        font-size: 0.9rem;
    }
    .service-feature svg { width: 18px; height: 18px; flex-shrink: 0; }
    .service-cta {
        padding: 24px 16px;
        margin-top: 28px;
        border-radius: var(--radius);
    }
    .service-cta h3 { font-size: 1.15rem; margin-bottom: 8px; }
    .service-cta p { font-size: 0.9rem; }
    .related-services { margin-top: 24px; padding-top: 20px; }
    .related-services h3 { font-size: 1.1rem; }
    .related-links { gap: 8px; }
    .related-links a {
        padding: 8px 16px;
        font-size: 0.85rem;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
    }

    /* ── Facilities ── */
    .facility-card {
        padding: 16px 12px;
        text-align: center;
    }
    .facility-card h4 { font-size: 1.05rem; }
    .facility-card p { font-size: 0.88rem; }

    /* ── Gallery ── */
    .gallery-placeholder {
        aspect-ratio: 4 / 3;
        font-size: 0.75rem;
    }
    .gallery-placeholder svg { width: 28px; height: 28px; }

    /* ── Forms ── */
    .form-group { margin-bottom: 16px; }
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 12px 14px;
        font-size: 16px; /* Prevents iOS zoom */
        min-height: 48px;
        border-radius: var(--radius);
    }
    .form-group select {
        -webkit-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 14px center;
        padding-right: 36px;
    }
    .form-group textarea { min-height: 120px; }
    .field-error { font-size: 0.8rem; margin-top: 4px; }

    /* ── Buttons ── */
    .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
        min-height: 48px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .btn-sm { width: auto; min-height: 36px; padding: 8px 16px; font-size: 0.85rem; }
    .admin-actions .btn { width: auto; display: inline-flex; }

    /* ── Testimonials ── */
    .testimonials { padding: 32px 0; }
    .testimonials-carousel { max-width: 100%; min-height: auto; }
    .testimonial-card { padding: 16px 8px; }
    .testimonial-card blockquote p {
        font-size: 1rem;
        line-height: 1.6;
    }
    .testimonial-card cite strong { font-size: 0.95rem; }
    .testimonial-card cite span { font-size: 0.85rem; }
    .testimonial-stars svg { width: 16px; height: 16px; }
    .carousel-controls { margin-top: 16px; gap: 8px; }
    .carousel-btn {
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
    }
    .carousel-dot {
        width: 12px;
        height: 12px;
    }
    .carousel-dots { gap: 8px; }

    /* ── News ── */
    .news-date { font-size: 0.8rem; }
    .news-single { padding: 24px 0; }
    .news-single h1 { font-size: clamp(1.3rem, 5vw, 1.75rem); }
    .news-single .news-meta { font-size: 0.88rem; margin-bottom: 16px; }
    .news-single .news-content { line-height: 1.75; }
    .share-links { flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 20px; }
    .share-links a {
        padding: 10px 16px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* ── Contact Page ── */
    .contact-info h3 { margin-top: 20px; font-size: 1.15rem; }
    .contact-details-list li {
        font-size: 0.95rem;
        gap: 10px;
        margin-bottom: 16px;
    }
    .contact-details-list svg { width: 18px; height: 18px; }
    .map-embed { margin-top: 16px; border-radius: var(--radius); }
    .map-embed iframe { height: 250px; }

    /* ── Placeholder Images ── */
    .placeholder-image {
        min-height: 150px;
        font-size: 0.8rem;
    }
    .placeholder-text::before { width: 36px; height: 36px; }

    /* ── Privacy / Content Pages ── */
    .privacy-content { padding: 24px 0; }
    .privacy-content h2 { margin-top: 28px; font-size: 1.2rem; }
    .privacy-content ul { padding-left: 20px; }
    .privacy-content li { font-size: 0.9rem; margin-bottom: 6px; }

    /* ── Flash Messages ── */
    .flash-success,
    .flash-error,
    .flash-info {
        padding: 12px 16px;
        font-size: 0.9rem;
        border-radius: var(--radius);
        margin-bottom: 16px;
    }

    /* ── Pagination ── */
    .pagination { gap: 4px; margin-top: 24px; }
    .pagination a,
    .pagination span {
        width: 40px;
        height: 40px;
        font-size: 0.88rem;
        min-width: 44px;
        min-height: 44px;
    }

    /* ── Footer ── */
    .site-footer { padding: 32px 0 0; }
    .footer-col { text-align: center; }
    .footer-col h4 {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-col p { font-size: 0.88rem; }
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
    .footer-links li { margin-bottom: 0; }
    .footer-links a {
        display: inline-block;
        padding: 6px 0;
        min-height: 36px;
        line-height: 36px;
    }
    .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-contact li {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
    .footer-contact svg { margin-top: 0; }
    .social-links { justify-content: center; margin-top: 16px; }
    .social-icon {
        width: 44px;
        height: 44px;
    }
    .copyright-bar {
        margin-top: 24px;
        padding: 14px 0;
    }
    .copyright-bar p { font-size: 0.78rem; line-height: 1.5; }

    /* ── Admin Pages ── */
    .admin-header {
        flex-direction: column;
        gap: 8px;
        padding: 12px 16px;
    }
    .admin-header h1 { font-size: 1rem; }
    .admin-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 16px;
        font-size: 0.82rem;
    }
    .admin-nav a { min-height: 36px; display: inline-flex; align-items: center; }
    .admin-body { padding: 16px; }
    .admin-cards { grid-template-columns: 1fr; gap: 12px; }
    .admin-card { padding: 16px; }
    .admin-card .count { font-size: 2rem; }
    .admin-table {
        font-size: 0.78rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .admin-table th,
    .admin-table td {
        padding: 8px 10px;
        white-space: nowrap;
    }
    .login-card {
        padding: 28px 20px;
        margin: 16px;
        max-width: calc(100vw - 32px);
    }
    .login-card h1 { font-size: 1.5rem; }
    .message-detail { padding: 12px; font-size: 0.88rem; }
}

/* ── Max 576px — Small Mobile ──────────────────────────────── */
@media (max-width: 576px) {
    .container { padding: 0 14px; }

    .values-grid { grid-template-columns: 1fr; gap: 12px; }
    .team-grid { grid-template-columns: 1fr; gap: 12px; }

    .hero-content { padding: 32px 14px; }
    .hero h1 { font-size: clamp(1.35rem, 6vw, 1.75rem); }

    .card-image { height: 160px; }

    /* Stack contact details differently */
    .contact-details-list li {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

/* ── Max 480px — Extra Small Mobile (iPhone SE etc) ────────── */
@media (max-width: 480px) {
    .container { padding: 0 12px; }

    h1 { font-size: 1.35rem; }
    h2 { font-size: 1.2rem; }

    .hero h1 { font-size: 1.35rem; }
    .hero-content { padding: 28px 12px; }
    .hero p { font-size: 0.9rem; }

    section { padding: 24px 0; }
    .section-title { font-size: 1.2rem; }
    .section-subtitle { font-size: 0.85rem; }

    .page-header { padding: 20px 0 18px; }
    .page-header h1 { font-size: 1.25rem; }
    .page-header p { font-size: 0.85rem; }
    .breadcrumb { font-size: 0.72rem; }

    /* Top bar stacks */
    .top-bar-left { flex-direction: column; gap: 2px; }
    .top-bar-link { font-size: 0.72rem; }

    /* Carousel controls larger for small screens */
    .carousel-btn { width: 44px; height: 44px; }

    /* Mobile nav */
    .mobile-nav-content { width: 90vw; max-width: 300px; }

    /* Gallery stays 2-col */
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .gallery-placeholder { font-size: 0.7rem; }

    /* Flash messages */
    .flash-success,
    .flash-error,
    .flash-info { padding: 10px 12px; font-size: 0.85rem; }

    /* Share links stack */
    .share-links { flex-direction: column; }
    .share-links a { justify-content: center; width: 100%; }

    /* Footer tighter */
    .footer-grid { gap: 24px; }
    .footer-col h4 { font-size: 1rem; }
}

/* ── Max 360px — Very Small Screens ────────────────────────── */
@media (max-width: 360px) {
    .container { padding: 0 10px; }
    .hero h1 { font-size: 1.25rem; }
    .hero-content { padding: 24px 10px; }
    .logo-brand { font-size: 0.9rem; }
    .logo-tagline { display: none; }
    .gallery-grid { grid-template-columns: 1fr; }
}

/* ── Landscape Phones ──────────────────────────────────────── */
@media (max-width: 768px) and (orientation: landscape) {
    .hero { min-height: auto; }
    .hero-content { padding: 24px 16px; }
    .hero h1 { font-size: 1.5rem; }
    .hero-ctas { flex-direction: row; flex-wrap: wrap; }
    .hero-ctas .btn { width: auto; flex: 1; min-width: 160px; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Reduced Motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .fade-in { opacity: 1; transform: none; }
}

/* ── Focus Styles ──────────────────────────────────────────── */
:focus-visible {
    outline: 3px solid var(--navy-light);
    outline-offset: 2px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}
