*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Global image quality enhancement */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    transform: translateZ(0);
    max-width: 100%;
    height: auto;
}

/* Prevent image distortion when constrained */
img:not(.strategy-image) {
    object-fit: contain;
}

/* Layout */
.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    background: #ffffff;
}

/* Fonts */
@font-face {
    font-family: "Tex Gyre Schola";
    src: url("../fonts/font century school book for titles/texgyreschola-regular.otf")
        format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Tex Gyre Schola";
    src: url("../fonts/font century school book for titles/texgyreschola-italic.otf")
        format("opentype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Tex Gyre Schola";
    src: url("../fonts/font century school book for titles/texgyreschola-bold.otf")
        format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Tex Gyre Schola";
    src: url("../fonts/font century school book for titles/texgyreschola-bolditalic.otf")
        format("opentype");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Constantia";
    src: url("../fonts/font constantia/Constantia Regular.ttf")
        format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Constantia";
    src: url("../fonts/font constantia/Constantia Italic.ttf")
        format("truetype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Constantia";
    src: url("../fonts/font constantia/Constantia Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Constantia";
    src: url("../fonts/font constantia/Constantia Bold Italic.ttf")
        format("truetype");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

body,
h1,
h2,
h3,
h4,
p {
    margin: 0;
}

body {
    font-family: "Constantia", serif;
    color: rgb(31, 56, 120);
}

h1,
h2,
h3,
h4 {
    font-family: "Tex Gyre Schola", serif;
}

/* Navigation */
.site-header {
    background: #ffffff;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    flex-wrap: wrap;
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav a {
    color: #000000;
    text-decoration: none;
    font-family: "Constantia", serif;
    font-size: 18px;
}

.nav a[href="/get-involved.html"] {
    background: rgb(22, 79, 184);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 12px;
}

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

.nav .logo img {
    height: 80px;
    width: auto;
    display: block;
}

/* Mobile hamburger */
.hamburger {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 40px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    z-index: 1000;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #000000;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 80%;
    max-width: 320px;
    background: #ffffff;
    box-shadow: -12px 0 24px rgba(0, 0, 0, 0.15);
    padding: 80px 20px 20px;
    z-index: 999;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav a {
    color: #000000;
    text-decoration: none;
    font-family: "Constantia", serif;
    font-size: 18px;
}

.mobile-nav a[href="/contact.html"] {
    background: rgb(22, 79, 184);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 12px;
    display: inline-block;
    width: fit-content;
}

.no-scroll {
    overflow: hidden;
}

/* Show hamburger and hide links on small screens */
@media (max-width: 1024px) {
    .hamburger {
        display: flex;
    }
    .nav .nav-group {
        display: none;
    }
    .nav {
        justify-content: flex-start;
        padding-left: 16px;
    }
    .nav .logo {
        margin-top: -20px;
    }
    .page {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (min-width: 1025px) {
    .page {
        border: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }
}

/* Hero */
#hero {
    width: 100%;
    min-height: 60vh;
    background-image: url("../images/page 1/page 1 pic 1.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

#hero .hero-inner {
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 32px 20px; /* reduced from 48px */
    gap: 12px;
    text-align: center;
}

.hero-title {
    font-family: "Tex Gyre Schola", serif;
    font-size: 64px;
    line-height: 1.1;
    font-style: italic;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
    font-family: "Constantia", serif;
    line-height: 1.5;
    color: #ffffff;
    max-width: 60ch;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav {
        gap: 18px;
        padding: 16px 16px;
    }

    .nav a {
        font-size: 15px;
    }

    .nav .logo img {
        height: 72px;
    }

    .nav .logo {
        margin-top: -16px;
    }

    #hero {
        min-height: 50vh;
    }

    #hero .hero-inner {
        padding: 24px 16px; /* reduced from 32px */
    }

    .hero-title {
        font-size: 44px;
    }
}

@media (max-width: 480px) {
    .nav {
        gap: 14px;
        padding: 14px 12px;
    }

    .nav a {
        font-size: 14px;
    }

    .nav .logo img {
        height: 60px;
    }

    .nav .logo {
        margin-top: -8px;
    }

    #hero {
        min-height: 40vh;
    }

    #hero .hero-inner {
        padding: 16px 12px; /* reduced from 24px */
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-subtitle {
        max-width: 32ch;
    }
}

/* Typography utilities */
.small-font {
    font-size: 20px;
}

@media (max-width: 768px) {
    .small-font {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .small-font {
        font-size: 16px;
    }
}

.section-gap {
    margin-top: 32px;
}
@media (max-width: 768px) {
    .section-gap {
        margin-top: 24px;
    }
}
@media (max-width: 480px) {
    .section-gap {
        margin-top: 20px;
    }
}
