/* GLOBAL RESET & BASE */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0a2a6e;
    --secondary-color: #e03030;
    --secondary-dark: #c02020;
    --text-main: #2d3748;
    --bg-light: #faf9f5;
    --bg-white: #ffffff;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --shadow-md: 0 12px 30px rgba(10, 42, 110, 0.08);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Approximate real navbar height, used to reserve space before it loads.
       Logo height + navbar padding. Update if you change either. */
    --nav-h: 86px;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
}

p, li {
    color: #000000;
}


/* GLOBAL UTILITIES */

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-pad {
    padding: 3rem 0;
}

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

.section-header {
    margin-bottom: 3rem;
}

.subtitle {
    display: block;
    margin-bottom: 0.5rem;
}


/* ACCESSIBILITY */

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--primary-color);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    z-index: 2000;
    text-decoration: none;
    border-radius: 0 0 8px 0;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}


/* ANIMATION */

@keyframes fadeIn {
    0%   { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}


/* NAVBAR */

site-navbar {
    display: block;
    min-height: var(--nav-h);
    background-color: rgba(10, 42, 110, 0.98);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    background-color: rgba(10, 42, 110, 0.98);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    height: 80px;
    width: auto;
    display: block;
}

/* 44x44 tap target; the three lines inside stay 24x18 */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 44px;
    height: 44px;
    padding: 13px 10px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--bg-white);
    transition: var(--transition-smooth);
}

.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-smooth);
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

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


/* BUTTONS */

.btn {
    display: inline-block;
    text-decoration: none;
    padding: 1rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    width: 100%;
    max-width: 17.5rem;
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--secondary-dark);
}

.btn-secondary,
.btn-secondary-dark {
    background-color: transparent;
    color: var(--bg-white);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover,
.btn-secondary-dark:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-secondary-dark:hover {
    transform: translateY(-2px);
}


/* FOOTER */

.footer-banner {
    width: 100%;
    min-height: 180px;
    background:
        linear-gradient(rgba(10, 42, 110, 0.7), rgba(10, 42, 110, 0.85)),
        url('../images/about.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-banner h3 {
    color: white;
    font-size: 2rem;
}

site-footer {
    display: block;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    padding: 1rem 1.5rem;
    position: relative;
    z-index: 10;
    width: 100%;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Keeps footer text small even when the tablet/desktop "p, li" rules apply */
.footer-content p {
    color: white;
    font-size: 0.75rem;
}

.footer-left,
.footer-right {
    display: flex;
    align-items: center;
}

.footer-left {
    gap: 8px;
}

.footer-right {
    gap: 0.6rem;
}

.footer-separator {
    margin: 0 4px;
}

.footer-right a {
    color: white;
    text-decoration: none;
}

.footer-right a:hover {
    color: var(--secondary-color);
}

.footer-subtext {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 700px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}


/* HOME PAGE HERO */

/* min-height instead of height so content can never spill out of the hero.
   svh = small viewport height, so mobile browser toolbars don't cut it off. */
.hero {
    min-height: 92vh;
    min-height: 92svh;
    background: linear-gradient(rgba(10, 42, 110, 0.5), rgba(10, 42, 110, 0.7)),
        url('../images/home.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--bg-white);
}

.hero-content {
    max-width: 53.125rem;
}

/* Shared fade-in; each element sets its own delay below */
.hero h1,
.hero h1 .highlight-text,
.hero-subtitle,
.hero p,
.hero-buttons {
    opacity: 0;
    animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero h1 {
    font-family: var(--font-body);
    font-size: 2.5rem;
    color: var(--bg-white);
    margin-bottom: 1.2rem;
    animation-delay: 0.2s;
}

.hero h1 .highlight-text {
    font-family: var(--font-body);
    font-size: 2.2rem;
    display: inline-block;
    color: var(--bg-white);
    margin-top: 0.5rem;
    animation-delay: 0.35s;
}

.hero-subtitle {
    color: var(--bg-white);
    font-family: var(--font-body);
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    animation-delay: 0.5s;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    animation-delay: 0.65s;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    animation-delay: 0.8s;
}


/* PAGE BANNER */

.page-banner {
    background: linear-gradient(rgba(10, 42, 110, 0.7), rgba(10, 42, 110, 0.85)),
        url('../images/about.png') center/cover no-repeat;
    padding: 6rem 1.5rem;
    text-align: center;
    color: var(--bg-white);
}

.page-banner h1,
.page-banner h2 {
    color: var(--bg-white);
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.page-banner p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
}

.page-banner .subtitle {
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 700;
}


/* ABOUT SECTIONS (OUR STORY / PETANQUE / FUNCTION ROOM) */

/* Overrides .section-pad for tighter spacing between sections */
.about-intro,
.petanque-section,
.hire-section {
    padding: 2.5rem 0;
}

/* Light grey background for Petanque section */
.petanque-section {
    background-color: #e8e8e8;
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 1.5rem 2rem;
}

.about-intro-grid > * {
    min-width: 0;
}

.about-intro-text h2 {
    margin-bottom: 1.2rem;
}

.about-intro-text p,
.contact-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.about-intro-text p {
    font-size: 1.05rem;
}

.about-img {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

/* Buttons sit in the grid so they can be reordered on mobile */
.about-intro-btn--text-left {
    grid-column: 1;
    justify-self: center;
}

.about-intro-btn--text-right {
    grid-column: 2;
    justify-self: center;
}


/* ACTIVITIES BANNER (sits between Our Story and Petanque) */

.activities-banner {
    background: linear-gradient(rgba(10, 42, 110, 0.7), rgba(10, 42, 110, 0.85)),
        url('../images/about.png') center/cover no-repeat;
    padding: 2.5rem 1.5rem 5rem;   /* reduced top gap, taller overall */
}

/* Same size as the "Who We Are" subtitle in the page banner */
.activities-banner .subtitle {
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.activities-banner h2 {
    color: var(--bg-white);
    margin-bottom: 2.5rem;
}

.activities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Card style matching membership-option / benefit cards */
.activity-item {
    background: #f2f1ed;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    padding: 2.5rem 1.75rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    text-align: center;
    transition: var(--transition-smooth);
}

@media (hover: hover) {
    .activity-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
    }
}

.activity-icon {
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.activity-item h3 {
    color: var(--primary-color);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.activity-item p {
    color: #000000;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (min-width: 1400px) {
    .activities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* FEATURES GRID */

.feature-icon svg {
    width: 1.2em;
    height: 1.2em;
    vertical-align: middle;
}

.section-pad.features-section {
    padding-top: 3rem;
}

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

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition-smooth);
}

/* Hover lift only on devices that really hover, so it can't stick on touch screens */
@media (hover: hover) {
    .feature-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
    }
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}


/* CTA BANNER */

.cta-banner {
    background: linear-gradient(rgba(10, 42, 110, 0.7), rgba(10, 42, 110, 0.85)),
        url('../images/about.png') center/cover no-repeat;
    padding: 5rem 1.5rem;
}

.cta-banner h2 {
    color: var(--bg-white);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}


/* CONTACT DETAILS CARDS */

.feature-card.text-center {
    background: linear-gradient(rgba(10, 42, 110, 0.7), rgba(10, 42, 110, 0.85)),
        url('../images/about.png') center/cover no-repeat;
}

.feature-card.text-center h3,
.feature-card.text-center p {
    color: #ffffff;
}


/* CONTACT FORM */

.contact-grid {
    display: grid;
    gap: 3rem;
}

.contact-content h2 {
    margin-bottom: 1rem;
}

.contact-content .subtitle {
    color: var(--secondary-color);
    font-weight: 700;
}

.contact-form-wrapper {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form button {
    align-self: center;
}

.contact-form button:active {
    transform: translateY(0);
    background-color: var(--secondary-dark);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #b8b8b8;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(224, 48, 48, 0.12);
}

.form-group textarea {
    resize: vertical;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 70px;
    height: 70px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    margin: 0 auto 20px;
}

.form-success h2 {
    margin-bottom: 15px;
}

.form-success p {
    margin-bottom: 10px;
}

.redirect-message {
    margin-top: 25px;
    font-size: 14px;
    opacity: 0.7;
}


/* CONTACT MAP */

.map-section {
    width: 100%;
    line-height: 0;
}

.map-section iframe {
    width: 100%;
    height: 500px;
    border: 0;
    display: block;
}


/* COMMITTEE PAGE */

.committee-section {
    background: #f8f9fa;
    padding-top: 20px;
}

.committee-list {
    display: flex;
    flex-direction: column;
    max-width: 50rem;
    margin: 0 auto;
    gap: 40px;
}

.committee-card {
    display: flex;
    align-items: center;
    gap: 30px;
    background: #fff;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) {
    .committee-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    }
}

.committee-icon {
    width: 90px;
    height: 90px;
    min-width: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    background: #eef5ee;
    border-radius: 50%;
}

.committee-content {
    flex: 1;
}

.committee-content h3 {
    margin: 0 0 5px;
    font-size: 1.5rem;
}

.committee-content h4 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #555;
}

.committee-content p {
    color: #666;
    line-height: 1.7;
}


/* MEMBERSHIP BANNER */

.membership-banner {
    background: linear-gradient(rgba(10, 42, 110, 0.75), rgba(10, 42, 110, 0.92)),
        url('../images/about.png') center/cover no-repeat;
    padding: 3rem 1.5rem 4rem;
    text-align: center;
    color: #ffffff;
}

.membership-banner h1,
.membership-banner h2,
.membership-banner h3,
.membership-banner p,
.membership-banner span {
    color: #ffffff;
}

.membership-intro {
    font-size: 1.4rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.membership-price-block {
    margin: 2rem 0;
}

.membership-price-block .price {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
}

.membership-price-block .price-sub {
    font-size: 1.2rem;
    opacity: 0.85;
    margin-top: 0.5rem;
}

.membership-text {
    font-size: 1.2rem;
    max-width: 40.625rem;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
}

/* Heading above the cards: white Playfair, with extra space below it */
.membership-banner .membership-heading {
    margin-bottom: 3rem;
}

/* Two membership options: same layout as before (centred, big price, shadow),
   but with the benefit cards' background colour, fonts and text colours. */
.membership-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 56rem;
    margin: 0 auto;
}

.membership-option {
    min-width: 0;
    padding: 2.5rem 1.5rem;
    background: #f2f1ed;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* Title: same font, size and colour as the benefit card titles */
.membership-option h3 {
    font-size: 1.15rem;
    color: var(--primary-color);
}

.membership-option .membership-price-block {
    margin: 1.5rem 0;
}

.membership-option .price {
    color: var(--primary-color);
}

/* Body text: same size and colour as the benefit card text */
.membership-option .price-sub {
    font-size: 0.95rem;
    color: #000000;
    opacity: 1;
}

.membership-option .membership-text {
    font-size: 0.95rem;
    line-height: 1.6;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(10, 42, 110, 0.15);
    color: #000000;
    opacity: 1;
}

@media (min-width: 768px) {
    .membership-options {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* Tablet sizes, same as the benefit cards */
@media (min-width: 768px) and (max-width: 1399px) {
    .membership-option h3 {
        font-size: 1.7rem;
    }

    .membership-option .price-sub,
    .membership-option .membership-text {
        font-size: 1.3rem;
    }
}

/* Desktop sizes, same as the benefit cards */
@media (min-width: 1400px) {
    .membership-option h3 {
        font-size: 1.3rem;
    }

    .membership-option .price-sub,
    .membership-option .membership-text {
        font-size: 1.05rem;
    }
}


/* Centre Contact Us button on Membership page */
.membership-intro-section .about-intro-text > .btn {
    display: block;
    margin: 1.5rem auto 0;
}


/* RESPONSIVE MEDIA QUERIES */

/* MOBILE (up to 767px) */

@media (max-width: 767px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }

    /* Left-aligned text: justified text in narrow columns leaves big word gaps */
    .about-intro-text p,
    .contact-content p {
        text-align: left;
    }

    /* Tighter vertical spacing on phones */
    .section-pad {
        padding: 3rem 0;
    }

    .page-banner {
        padding: 3.5rem 1.5rem;
    }

    .cta-banner {
        padding: 3rem 1.5rem;
    }

    .membership-banner {
        padding: 3rem 1.5rem 4rem;
    }
}


/* TABLET AND DESKTOP (768px+): horizontal navbar */

@media (min-width: 768px) {
    :root {
        --nav-h: 106px;
    }

    .navbar {
        padding: 0.8rem 2rem;
    }

    .menu-toggle {
        display: none;
    }

    .nav-links {
        position: static;
        flex-direction: row;
        padding: 0;
        background: transparent;
        opacity: 1;
        visibility: visible;
        transform: none;
        gap: 1.75rem;
    }

    .nav-links a:hover {
        color: var(--secondary-color);
    }
}


/* TABLET: images use full available width (no large side gaps) */

@media (min-width: 768px) and (max-width: 1399px) {
    .about-img {
        height: auto;
        aspect-ratio: 1 / 1;
        max-width: 100%;          /* was 37.5rem – this removes the big left/right empty space */
        display: block;
        margin-inline: auto;
    }

    /* Optional: slightly tighter page padding on iPad */
    .container {
        padding: 0 1rem;
    }
}


/* ALL TABLETS (768px to 1399px):
   Consistent typography for iPad Mini and iPad Pro */

@media (min-width: 768px) and (max-width: 1399px) {
    /* Keep long lines readable now the layout is stacked */
    .about-intro-text {
        max-width: 60rem;
        margin-inline: auto;
    }

    .hero h1 {
        font-size: 3.8rem;
    }

    .hero h1 .highlight-text {
        font-size: 3.5rem;
    }

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

    .hero p {
        font-size: 1.4rem;
    }

    h1 {
        font-size: 3.2rem;
    }

    h2 {
        font-size: 2.6rem;
    }

    h3 {
        font-size: 1.85rem;
    }

    .subtitle {
        font-size: 1.35rem;
    }

    p,
    li {
        font-size: 1.3rem;
        line-height: 1.8;
    }

    .about-intro-text p,
    .feature-card p {
        font-size: 1.3rem;
    }

    .btn {
        font-size: 1.2rem;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .page-banner h1,
    .page-banner h2 {
        font-size: 3.2rem;
    }

    .page-banner p {
        font-size: 1.35rem;
    }

    .page-banner .subtitle,
    .activities-banner .subtitle {
        font-size: 1.45rem;
    }

    .feature-card h3,
    .committee-content h3 {
        font-size: 1.7rem;
    }

    .committee-content h4 {
        font-size: 1.3rem;
    }

    .cta-banner h2 {
        font-size: 2.75rem;
    }

    .cta-banner p {
        font-size: 1.3rem;
    }

    /* Activity cards – match membership card tablet sizing */
    .activity-item h3 {
        font-size: 1.7rem;
    }

    .activity-item p {
        font-size: 1.3rem;
    }
}


/* LARGE TABLETS (1024px to 1399px): iPad Pro 13
   Same sizes as the iPad Mini, scaled up in proportion to the wider screen.
   1032 / 768 = about 1.34, so the root font size is 134% (about 21.5px).
   Everything set in rem scales with it; px values (logo, icons) do not.
   Must stay after the all-tablets block. */

@media (min-width: 1024px) and (max-width: 1399px) {
    :root {
        --nav-h: 115px;
    }

    html {
        font-size: 134%;
    }
}


/* DESKTOP LAYOUT (1400px+):
   Larger screens get desktop layouts */

@media (min-width: 1400px) {
    :root {
        --nav-h: 113px;
    }

    .logo-icon {
        height: 110px;
    }

    .navbar {
        padding: 0.1rem 3rem;
    }

    .nav-links {
        gap: 2.5rem;
    }

    .nav-links a {
        font-size: 1.125rem;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }

    .btn {
        width: 220px;
    }

    .about-intro-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .contact-grid {
        grid-template-columns: 1fr 1.2fr;
        align-items: start;
    }
}


/* DESKTOP TYPOGRAPHY (1400px+):
   Keep desktop text sizing separate from tablet sizing */

@media (min-width: 1400px) {
    .hero h1 {
        font-size: 4rem;
    }

    .hero h1 .highlight-text {
        font-size: 3.8rem;
    }

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

    .hero p {
        font-size: 1.25rem;
    }

    h1 {
        font-size: 3.25rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 1.65rem;
    }

    p,
    li {
        font-size: 1.05rem;
    }

    .feature-card p {
        font-size: 1.05rem;
    }

    .page-banner h1,
    .page-banner h2 {
        font-size: 3.25rem;
    }

    .page-banner p {
        font-size: 1.2rem;
    }

    .feature-card h3 {
        font-size: 1.3rem;
    }

    .committee-content h3 {
        font-size: 1.65rem;
    }

    .committee-content h4 {
        font-size: 1.15rem;
    }

    .cta-banner h2 {
        font-size: 2.5rem;
    }

    .cta-banner p {
        font-size: 1.1rem;
    }

    /* Activity cards – match membership card desktop sizing */
    .activity-item h3 {
        font-size: 1.3rem;
    }

    .activity-item p {
        font-size: 1.05rem;
    }
}


/* MOBILE AND TABLET (up to 1399px): stacked layout
   Now matches the tablet typography range, so there is no gap
   at 1367-1399px (iPad Pro 13 landscape is 1376px). */

@media (max-width: 1399px) {
    .map-section iframe {
        height: 400px;
    }

    .committee-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .committee-icon {
        margin-bottom: 10px;
    }

    .about-intro-text {
        order: 1;
    }

    .about-intro-image {
        order: 2;
    }

    .about-intro-btn {
        order: 3;
    }

    .about-intro-btn--text-left,
    .about-intro-btn--text-right {
        grid-column: 1;
    }
}


/* SHORT LANDSCAPE SCREENS (phones on their side):
   The tablet typography would otherwise fill the whole screen height. */

@media (max-height: 500px) and (orientation: landscape) {
    :root {
        --nav-h: 76px;
    }

    .logo-icon {
        height: 70px;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 0.6rem;
    }

    .hero h1 .highlight-text {
        font-size: 2rem;
    }

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

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 768px) and (max-height: 500px) and (orientation: landscape) {
    :root {
        --nav-h: 96px;
    }
}


/* REDUCED MOTION: keep last */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero h1,
    .hero h1 .highlight-text,
    .hero-subtitle,
    .hero p,
    .hero-buttons {
        opacity: 1;
        animation: none;
    }
}