/* Nduta Angels Foundation — modern responsive theme */
:root {
    --primary: #5b2a86;
    --primary-dark: #3f1d5f;
    --primary-soft: #f1e8f9;
    --accent: #d3a430;
    --accent-soft: #f6e7b8;
    --ink: #221c2b;
    --muted: #5f586b;
    --surface: #ffffff;
    --surface-soft: #f8f5fb;
    --border: #e7dfee;
    --shadow: 0 22px 55px rgba(35, 20, 55, 0.13);
    --radius: 20px;
    --container: 1180px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.hero-grid > *,
.grid-2 > *,
.grid-3 > *,
.grid-4 > *,
.page-layout > *,
.social-grid > *,
.footer-grid > * {
    min-width: 0;
}

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

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

button,
input,
textarea,
select {
    font: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

.container {
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 100;
    background: var(--primary);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 0 0 10px 10px;
    font-weight: 700;
}

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

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-height: 92px;
}

.brand {
    flex: 0 0 auto;
}

.brand img {
    width: 205px;
    height: auto;
}

.site-nav {
    margin-left: auto;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    display: block;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 650;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    background: var(--primary-soft);
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-left: 0.5rem;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.social-links a {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--primary);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

.social-links svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.nav-toggle svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.72rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 26px rgba(91, 42, 134, 0.22);
}

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

.btn-ghost {
    background: #fff;
    border-color: var(--border);
    color: var(--primary);
}

.btn-ghost:hover {
    background: var(--primary-soft);
}

.btn-light {
    background: #fff;
    color: var(--primary);
}

.btn-outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Typography helpers */
.eyebrow {
    margin: 0 0 0.7rem;
    color: var(--primary);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.lead {
    max-width: 60ch;
    color: var(--muted);
    font-size: 1.08rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--primary);
    font-weight: 750;
}

.text-link::after {
    content: "→";
    transition: transform 0.2s ease;
}

.text-link:hover::after {
    transform: translateX(2px);
}

/* Hero */
.hero {
    padding: clamp(2.5rem, 6vw, 5rem) 0;
    background:
        radial-gradient(circle at 8% 12%, #efe3fa 0, transparent 42%),
        linear-gradient(180deg, #fbf9fe 0%, #ffffff 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.03fr 0.97fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.hero h1 {
    max-width: 14ch;
    margin: 0 0 1.15rem;
    font-size: clamp(2.5rem, 5.5vw, 4.2rem);
    line-height: 1.03;
    letter-spacing: -0.04em;
}

.hero .lead {
    max-width: 55ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.6rem;
}

.hero-social {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.35rem;
}

.hero-social-label {
    margin-right: 0.15rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-social-label::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 0.45rem;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(211, 164, 48, 0.16);
    vertical-align: middle;
}

.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 38px;
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(35, 20, 55, 0.06);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.social-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(35, 20, 55, 0.14);
}

.social-pill svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.social-facebook:hover {
    border-color: #1877f2;
    background: #1877f2;
    color: #fff;
}

.social-instagram:hover {
    border-color: transparent;
    background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 52%, #6228d7 100%);
    color: #fff;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--border);
}

.hero-stats strong {
    display: block;
    color: var(--primary);
    font-size: 1.55rem;
    line-height: 1.1;
}

.hero-stats span {
    color: var(--muted);
    font-size: 0.8rem;
}

.hero-media {
    position: relative;
}

.hero-img {
    width: 100%;
    height: clamp(330px, 43vw, 520px);
    object-fit: cover;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.hero-secondary {
    position: absolute;
    right: -0.75rem;
    bottom: -1.3rem;
    width: 42%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 6px solid #fff;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.hero-badge {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    max-width: 240px;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    background: rgba(34, 28, 43, 0.8);
    color: #fff;
    font-size: 0.78rem;
    line-height: 1.45;
    backdrop-filter: blur(8px);
}

.hero-badge strong {
    display: block;
    color: var(--accent-soft);
    font-size: 0.8rem;
}

/* Sections */
.section {
    padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section-soft {
    background: var(--surface-soft);
}

.section-heading {
    max-width: 700px;
    margin-bottom: 2rem;
}

.section-heading h2,
.section h2 {
    margin: 0 0 0.8rem;
    font-size: clamp(1.8rem, 3.6vw, 2.7rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.card {
    padding: 1.45rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 8px 24px rgba(35, 20, 55, 0.045);
}

.card-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    place-items: center;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
}

.card-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.08rem;
    line-height: 1.3;
}

.card p {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.94rem;
}

.card p:last-child {
    margin-bottom: 0;
}

.feature-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.feature-caption {
    margin-top: 0.8rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.update-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 8px 24px rgba(35, 20, 55, 0.045);
}

.update-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.update-card-body {
    padding: 1.25rem;
}

.update-card-body h3 {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
}

.update-card-body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

/* Social / community */
.section-social {
    background:
        radial-gradient(circle at 90% 0%, rgba(211, 164, 48, 0.25), transparent 38%),
        linear-gradient(135deg, #2c133f 0%, #5b2a86 100%);
    color: #fff;
}

.section-social .eyebrow {
    color: var(--accent-soft);
}

.section-social h2 {
    color: #fff;
}

.section-social .section-heading p {
    color: rgba(255, 255, 255, 0.78);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    margin: 2rem 0 1.5rem;
}

.social-card {
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    color: var(--ink);
}

.social-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.social-card:hover img {
    transform: scale(1.04);
}

.social-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
}

.social-card-body span {
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.social-card-body strong {
    font-size: 0.98rem;
}

.social-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Call to action */
.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(2rem, 5vw, 3rem);
    border: 1px solid #f0dfae;
    border-radius: 28px;
    background: linear-gradient(135deg, #f8edc8 0%, #ffffff 72%);
}

.cta-card h2 {
    margin-bottom: 0.5rem;
}

.cta-card p {
    margin: 0;
    color: var(--muted);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    flex: 0 0 auto;
}

/* Interior pages */
.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: clamp(2rem, 4vw, 3rem);
    align-items: start;
    padding: 2.5rem 0 4rem;
}

.page-content {
    min-width: 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1.1rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.breadcrumb a {
    color: var(--primary);
    font-weight: 650;
}

.page-heading {
    margin-bottom: 1.6rem;
}

.page-heading h1 {
    margin: 0 0 0.7rem;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.page-heading .deck {
    max-width: 68ch;
    margin: 0;
    color: var(--muted);
    font-size: 1.04rem;
}

.sidebar {
    display: grid;
    gap: 1.2rem;
    position: sticky;
    top: 112px;
}

.sidebar-card {
    padding: 1.35rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.sidebar-card h2 {
    margin: 0 0 0.6rem;
    font-size: 1.05rem;
}

.sidebar-card p {
    margin: 0 0 0.85rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.sidebar-card .rich-text {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.sidebar-card .rich-text p {
    color: var(--muted);
    font-size: inherit;
}

.sidebar-card .avatar {
    width: 72px;
    height: 72px;
    margin-bottom: 0.7rem;
    border-radius: 50%;
    object-fit: cover;
}

.donate-card {
    background: var(--primary);
    color: #fff;
}

.donate-card h2 {
    color: #fff;
}

.donate-card p {
    color: rgba(255, 255, 255, 0.8);
}

.donate-card .btn {
    margin-top: 0.25rem;
    background: #fff;
    color: var(--primary);
}

.contact-panel {
    display: grid;
    gap: 1rem;
}

.contact-item {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.contact-item svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 0.1rem;
    fill: none;
    stroke: var(--primary);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.contact-item strong {
    display: block;
    font-size: 0.85rem;
}

.contact-item span,
.contact-item a {
    color: var(--muted);
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.contact-form-card {
    margin-top: 2rem;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 8px 24px rgba(35, 20, 55, 0.045);
}

.contact-form-card h2 {
    margin: 0 0 1rem;
    font-size: 1.3rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.contact-form-card label {
    display: block;
    margin-bottom: 1rem;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.contact-form-card input,
.contact-form-card textarea {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.72rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 400;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
    border-color: transparent;
}

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

.contact-form-card .btn {
    margin-top: 0.25rem;
}

.form-note {
    margin: 0.8rem 0 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.notice {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
}

.notice-success {
    border: 1px solid #bfe7cf;
    background: #e8f7ee;
    color: #17603a;
}

.notice-error {
    border: 1px solid #f5c2c2;
    background: #fdecec;
    color: #8a1f1f;
}

/* Rich CMS content */
.rich-text {
    color: #433c4f;
    font-size: 1rem;
}

.rich-text > *:first-child {
    margin-top: 0;
}

.rich-text h2 {
    margin: 2rem 0 0.7rem;
    font-size: 1.5rem;
    line-height: 1.2;
}

.rich-text h3 {
    margin: 1.6rem 0 0.5rem;
    font-size: 1.15rem;
}

.rich-text p {
    margin: 0 0 1rem;
}

.rich-text ul,
.rich-text ol {
    margin: 0 0 1rem 1.25rem;
    padding: 0;
}

.rich-text li {
    margin-bottom: 0.35rem;
}

.rich-text img {
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 14px;
}

.rich-text table {
    width: 100% !important;
    max-width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
}

.rich-text td,
.rich-text th {
    padding: 0.5rem;
    vertical-align: top;
}

.rich-text iframe {
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    aspect-ratio: 16 / 9;
    margin: 1rem 0;
    border: 0;
    border-radius: 14px;
}

.rich-text a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rich-text .bodytext,
.rich-text .text2 {
    color: inherit;
    font: inherit;
}

.rich-text .dlink,
.rich-text .alink,
.rich-text .clink,
.rich-text .blink {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.rich-text .dlink:hover,
.rich-text .alink:hover {
    text-decoration: underline;
}

/* Gallery */
.gallery-page {
    padding: 2.5rem 0 4rem;
}

.gallery-intro {
    max-width: 720px;
    margin-bottom: 2rem;
}

.gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0 2rem;
}

.gallery-tabs a {
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 650;
}

.gallery-tabs a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.gallery-tabs a.is-active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    background: var(--surface-soft);
}

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

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

.gallery-item span {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 1.4rem 0.9rem 0.8rem;
    background: linear-gradient(transparent, rgba(20, 10, 30, 0.72));
    color: #fff;
    font-size: 0.78rem;
    line-height: 1.35;
}

.gallery-empty {
    padding: 2rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: var(--surface-soft);
    color: var(--muted);
    text-align: center;
}

.gallery-section-title {
    margin: 2.5rem 0 1rem;
    font-size: 1.35rem;
}

/* Footer */
.site-footer {
    margin-top: 2rem;
    padding: 3.5rem 0 1.5rem;
    background: #1d1128;
    color: rgba(255, 255, 255, 0.74);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
    gap: 2rem;
}

.site-footer h3 {
    margin: 0 0 1rem;
    color: #fff;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}

.site-footer p {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    line-height: 1.7;
}

.site-footer ul {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li,
.site-footer a {
    font-size: 0.88rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.74);
}

.site-footer a:hover {
    color: #fff;
}

.footer-brand img {
    width: 190px;
    height: auto;
    margin-bottom: 1rem;
    padding: 0.45rem;
    border-radius: 12px;
    background: #fff;
}

.footer-social {
    display: flex;
    gap: 0.5rem;
}

.footer-social a {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: #fff;
}

.footer-social a:hover {
    border-color: var(--accent);
    background: rgba(211, 164, 48, 0.16);
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.78rem;
}

/* Responsive */
@media (max-width: 1020px) {
    .hero-grid,
    .page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

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

    .hero-secondary {
        right: 0.5rem;
    }
}

@media (max-width: 760px) {
    .header-inner {
        flex-wrap: wrap;
        min-height: auto;
        padding: 0.7rem 0;
    }

    .brand img {
        width: 168px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        order: 5;
        width: 100%;
        margin: 0;
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
        padding: 0.4rem 0 0.25rem;
    }

    .site-nav a {
        padding: 0.65rem 0.8rem;
    }

    .header-actions {
        display: none;
    }

    .hero {
        padding-top: 2rem;
    }

    .hero-media {
        order: -1;
    }

    .hero-img {
        height: 340px;
    }

    .hero-secondary {
        display: none;
    }

    .hero-stats {
        gap: 1rem;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .social-grid,
    .sidebar,
    .footer-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

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

    .cta-card {
        flex-direction: column;
        align-items: flex-start;
    }

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

@media (max-width: 480px) {
    .container {
        width: min(100% - 1.5rem, var(--container));
    }

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

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

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
