:root {
    --color-background: #E6E8E6;
    --color-text: #754F44;
    --color-primary: #EC7357;
    --color-gold: #FDCA40;
    --color-blue: #3772FF;
}

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

* {
    margin: 0;
    padding: 0;
}

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

body {
    background-color: var(--color-background);
    color: var(--color-text);
}

/* Header-----Navigation */
.nav-container {
    max-width: 1200px;
    margin-inline: auto;
    padding: 24px 32px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 24px;
}

.brand,
.nav-links a {
    text-decoration: none;
    color: var(--color-text);
}

/* Hero */

.hero {
    max-width: 1400px;
    margin-inline: auto;
    padding: 72px 32px 96px;

    display: grid;
    grid-template-columns: minmax(360px, 0.8fr) minmax(600px, 1.4fr);
    gap: 72px;
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.hero-content h1 {
    max-width: 520px;
    font-size: clamp(52px, 5vw, 76px);
    line-height: 0.98;
}

.hero-content p {
    max-width: 500px;
    margin-top: 24px;
    font-size: 20px;
    line-height: 1.55;
}

.hero-collage {
    width: 100%;
}

/* Hero Carousel */

.carousel {
    width: 100%;
}

.carousel-track {
    display: flex;
    overflow: hidden;
    border-radius: 4px;
}

.carousel-slide {
    display: none;
    flex: 0 0 100%;
}

.carousel-slide.is-active {
    display: block;
}

.carousel-slide img {
    display: block;
    width: 100%;
    height: auto;
}


/* Carousel Controls */

.carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.carousel-button {
    cursor: pointer;
}

/* ==================================================
   Shared Section Structure
================================================== */

.section-shell,
.footer-shell {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 32px;
}

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

.section-heading-row {
    max-width: none;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 48px;
}

.eyebrow {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.text-link {
    display: inline-block;
    margin-top: 24px;
    color: var(--color-text);
    font-weight: 700;
    text-decoration: none;
}


/* ==================================================
   Family Gateways
================================================== */

.family-gateways {
    padding: 100px 0;
}

.gateway-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.family-gateway {
    min-height: 360px;
    padding: 40px;

    display: flex;
    flex-direction: column;

    border-top: 4px solid var(--color-primary);
    background-color: #ffffff;
}

.gateway-number {
    margin-bottom: auto;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
}

.family-gateway h3 {
    margin-bottom: 16px;
    font-size: 48px;
}

.family-gateway p {
    max-width: 460px;
    line-height: 1.6;
}

.family-gateway a {
    margin-top: 32px;
    color: var(--color-text);
    font-weight: 700;
    text-decoration: none;
}


/* ==================================================
   Our History Preview
================================================== */

.history-preview {
    padding: 120px 0;
    background-color: var(--color-text);
    color: var(--color-background);
}

.history-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: start;
}

.history-marker {
    font-size: 14px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold);
}

.history-content {
    max-width: 720px;
}

.history-content h2 {
    margin-bottom: 32px;
    font-size: clamp(48px, 6vw, 80px);
    line-height: 0.98;
}

.history-content p {
    max-width: 620px;
    line-height: 1.7;
}

.history-content .text-link {
    color: var(--color-gold);
}


/* ==================================================
   Gallery Preview
================================================== */

.gallery-preview {
    padding: 110px 0;
}

.gallery-preview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

.gallery-preview-grid figure {
    overflow: hidden;
}

.gallery-preview-grid .gallery-feature {
    grid-row: 1 / 3;
}

.gallery-preview-grid img {
    display: block;
    width: 100%;
    height: auto;
}

.gallery-feature img {
    height: 100%;
    object-fit: cover;
}

.gallery-preview-grid figure:not(.gallery-feature) {
    align-self: start;
}


/* ==================================================
   What We Carry
================================================== */

.carry-preview {
    padding: 110px 0;
    background-color: #ffffff;
}

.carry-list {
    border-top: 1px solid rgba(117, 79, 68, 0.25);
}

.carry-item {
    padding: 28px 0;

    display: grid;
    grid-template-columns: 80px 1fr 1.5fr;
    gap: 32px;
    align-items: center;

    border-bottom: 1px solid rgba(117, 79, 68, 0.25);
}

.carry-item span {
    color: var(--color-primary);
    font-weight: 700;
}

.carry-item h3 {
    font-size: 26px;
}

.carry-item p {
    line-height: 1.6;
}


/* ==================================================
   Those Who Carried Us
================================================== */

.carried-us {
    padding: 130px 0;
    background-color: var(--color-primary);
    color: #ffffff;
}

.carried-us-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 100px;
    align-items: end;
}

.carried-us-heading h2 {
    font-size: clamp(64px, 8vw, 110px);
    line-height: 0.9;
}

.carried-us .eyebrow {
    color: var(--color-gold);
}

.carried-us-content {
    max-width: 500px;
}

.carried-us-lead {
    margin-bottom: 24px;
    font-size: 28px;
    line-height: 1.25;
}

.carried-us-content > p:not(.carried-us-lead) {
    line-height: 1.7;
}

.carried-us .text-link {
    color: #ffffff;
}


/* ==================================================
   Family Wall
================================================== */

.family-wall {
    padding: 110px 0;
}

.wall-intro {
    max-width: 400px;
    line-height: 1.6;
}

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

.wall-note {
    min-height: 320px;
    padding: 32px;

    display: flex;
    flex-direction: column;

    border: 1px solid rgba(117, 79, 68, 0.25);
}

.wall-note-featured {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
}

.wall-label {
    margin-bottom: auto;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.wall-note p {
    margin-bottom: 28px;
    font-size: 24px;
    line-height: 1.35;
}

.wall-author {
    font-size: 14px;
}


/* ==================================================
   Contact
================================================== */

.family-contact {
    padding: 110px 0;
    background-color: var(--color-blue);
    color: #ffffff;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: end;
}

.family-contact .eyebrow {
    color: var(--color-gold);
}

.family-contact h2 {
    max-width: 700px;
    font-size: clamp(48px, 6vw, 80px);
    line-height: 1;
}

.contact-copy {
    max-width: 440px;
}

.contact-copy p {
    line-height: 1.7;
}

.contact-link {
    display: inline-block;
    margin-top: 28px;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}


/* ==================================================
   Footer
================================================== */

.site-footer {
    padding: 64px 0 32px;
    background-color: var(--color-text);
    color: var(--color-background);
}

.footer-shell {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
}

.footer-brand {
    color: var(--color-background);
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
}

.footer-shell > div:first-child p {
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--color-background);
    text-decoration: none;
}

.copyright {
    grid-column: 1 / -1;
    padding-top: 32px;
    border-top: 1px solid rgba(230, 232, 230, 0.2);
    font-size: 13px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {

    .nav-container,
    .section-shell,
    .footer-shell {
        padding-inline: 24px;
    }

    .nav-links {
        gap: 16px;
        font-size: 14px;
    }

    /* Hero */
    .hero {
        padding: 56px 24px 80px;
        grid-template-columns: 0.9fr 1.1fr;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: clamp(46px, 6vw, 64px);
    }

    .hero-content p {
        font-size: 18px;
    }

    /* Family Gateways */
    .family-gateways {
        padding: 80px 0;
    }

    .family-gateway {
        min-height: 320px;
        padding: 32px;
    }

    .family-gateway h3 {
        font-size: 40px;
    }

    /* History */
    .history-preview {
        padding: 90px 0;
    }

    .history-layout {
        grid-template-columns: 1fr 2fr;
        gap: 48px;
    }

    /* What We Carry */
    .carry-preview {
        padding: 90px 0;
    }

    .carry-item {
        grid-template-columns: 60px 1fr 1.5fr;
        gap: 24px;
    }

    /* Those Who Carried Us */
    .carried-us {
        padding: 100px 0;
    }

    .carried-us-layout {
        gap: 56px;
    }

    /* Family Wall */
    .family-wall {
        padding: 90px 0;
    }

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

    .wall-note-featured {
        grid-column: span 1;
    }

    /* Contact */
    .family-contact {
        padding: 90px 0;
    }

    .contact-layout {
        gap: 48px;
    }
}


/* Mobile */
@media (max-width: 768px) {

    /* Navigation */
    .nav-container {
        padding: 20px;
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 12px 20px;
    }

    /* Shared Sections */
    .section-shell,
    .footer-shell {
        padding-inline: 20px;
    }

    .section-heading {
        margin-bottom: 36px;
    }

    .section-heading-row {
        display: block;
    }

    .section-heading-row .text-link {
        margin-top: 20px;
    }

    /* Hero */
    .hero {
        padding: 48px 20px 64px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        max-width: 620px;
        font-size: clamp(46px, 13vw, 68px);
        line-height: 0.95;
    }

    .hero-content p {
        max-width: 580px;
        margin-top: 20px;
        font-size: 18px;
    }

    .hero-collage {
        width: 100%;
    }

    /* Family Gateways */
    .family-gateways {
        padding: 72px 0;
    }

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

    .family-gateway {
        min-height: 300px;
    }

    /* History */
    .history-preview {
        padding: 80px 0;
    }

    .history-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .history-content h2 {
        font-size: clamp(44px, 12vw, 64px);
    }

    /* Gallery */
    .gallery-preview {
        padding: 72px 0;
    }

    .gallery-preview-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gallery-preview-grid .gallery-feature {
        grid-row: auto;
    }

    .gallery-preview-grid img,
    .gallery-feature img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* What We Carry */
    .carry-preview {
        padding: 80px 0;
    }

    .carry-item {
        padding: 28px 0;
        grid-template-columns: 44px 1fr;
        gap: 12px 16px;
        align-items: start;
    }

    .carry-item p {
        grid-column: 2;
    }

    /* Those Who Carried Us */
    .carried-us {
        padding: 88px 0;
    }

    .carried-us-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .carried-us-heading h2 {
        font-size: clamp(58px, 16vw, 88px);
    }

    /* Family Wall */
    .family-wall {
        padding: 80px 0;
    }

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

    .wall-note {
        min-height: 280px;
    }

    .wall-intro {
        margin-top: 20px;
    }

    /* Contact */
    .family-contact {
        padding: 80px 0;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .family-contact h2 {
        font-size: clamp(44px, 12vw, 64px);
    }

    /* Footer */
    .site-footer {
        padding: 56px 0 28px;
    }

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

    .footer-links {
        flex-direction: column;
        gap: 14px;
    }

    .copyright {
        grid-column: auto;
    }
}


/* Small Mobile */
@media (max-width: 480px) {

    .hero-content h1 {
        font-size: clamp(42px, 13vw, 58px);
    }

    .family-gateway {
        min-height: 280px;
        padding: 28px;
    }

    .family-gateway h3 {
        font-size: 38px;
    }

    .carried-us-heading h2 {
        font-size: clamp(52px, 15vw, 72px);
    }

    .wall-note {
        min-height: 250px;
        padding: 28px;
    }

    .wall-note p {
        font-size: 21px;
    }
}