:root{
    --blue: #08256b;
    --blue-soft: #e9eef8;
    --orange: #e67d2f;
    --orange-dark: #c96521;
    --green: #496b5a;
    --paper: #fffaf5;
    --sand: #f3e7dc;
    --line: #e5d6ca;
    --text: #252525;
    --muted: #66615c;
    --shadow: 0 18px 45px rgba(8, 37, 107, 0.12);
}

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

html{
    scroll-behavior: smooth;
}

body{
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #fffdf9 0%, var(--sand) 100%);
    overflow-x: hidden;
}

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

a{
    color: inherit;
}

.site-header{
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
    min-height: 88px;
    padding: 14px clamp(18px, 5vw, 64px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: rgba(255, 250, 245, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.logo{
    flex: 0 0 auto;
}

.logo img{
    width: 132px;
}

nav{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 4vw, 42px);
}

nav a{
    position: relative;
    text-decoration: none;
    color: var(--blue);
    font-size: 16px;
    font-weight: 700;
}

nav a::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

nav a:hover::after,
nav a[aria-current="page"]::after{
    transform: scaleX(1);
}

.button{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button:hover{
    transform: translateY(-2px);
}

.button-primary{
    color: #ffffff;
    background: var(--orange);
    box-shadow: 0 10px 24px rgba(230, 125, 47, 0.25);
}

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

.button-secondary{
    color: var(--blue);
    background: #ffffff;
    border: 1px solid rgba(8, 37, 107, 0.18);
}

main{
    width: 100%;
}

.home-hero{
    width: min(1320px, calc(100% - 48px));
    height: calc(100vh - 118px);
    max-height: 640px;
    min-height: 280px;
    margin: 30px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.home-hero img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.eyebrow{
    margin-bottom: 14px;
    color: var(--orange);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

h1,
h2,
h3{
    color: var(--blue);
}

.intro-section,
.mission-section,
.formula-list,
.closing-section,
.page-hero{
    width: min(1120px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

.intro-section{
    padding: 32px 0 64px;
}

.intro-text h2,
.closing-section h2{
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
}

.intro-grid{
    display: grid;
    grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
    gap: 34px;
    align-items: center;
    padding: clamp(24px, 4vw, 40px);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.intro-image{
    min-height: 380px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(8, 37, 107, 0.08), rgba(230, 125, 47, 0.1)),
        var(--paper);
}

.intro-text{
    padding: 0;
}

.intro-text h1{
    margin-bottom: 10px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1;
}

.intro-text h2{
    margin-bottom: 18px;
}

.intro-text p,
.page-hero p,
.mission-card p,
.formula-copy p,
.closing-section p{
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}

.intro-text p + p{
    margin-top: 12px;
}

.mission-card ul,
.formula-copy ul{
    padding-left: 20px;
}

.mission-card li,
.formula-copy li{
    margin-bottom: 12px;
    line-height: 1.6;
}

.page-hero{
    padding: 78px 0 36px;
    text-align: center;
}

.page-hero h1{
    margin: 0 auto 20px;
    max-width: 850px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.04;
}

.page-hero p{
    max-width: 760px;
    margin: 0 auto;
}

.mission-section{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding: 36px 0 50px;
}

.mission-card,
.formula-item{
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(8, 37, 107, 0.08);
}

.mission-card{
    padding: 32px;
}

.mission-card h2,
.formula-copy h2{
    margin-bottom: 16px;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.15;
}

.mission-card ul,
.formula-copy ul{
    margin-top: 20px;
}

.formula-list{
    display: grid;
    gap: 26px;
    padding: 34px 0 50px;
}

.formula-item{
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    align-items: center;
    gap: 28px;
    padding: clamp(28px, 5vw, 46px);
}

.formula-item-reverse{
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
}

.formula-item-reverse .formula-copy{
    order: 2;
}

.formula-item-wide{
    grid-template-columns: 1fr;
}

.formula-item img{
    width: min(360px, 100%);
    justify-self: center;
}

.formula-item img.formula-image-large{
    width: min(1050px, 100%);
}

.closing-section{
    margin-top: 16px;
    margin-bottom: 72px;
    padding: clamp(34px, 5vw, 58px);
    text-align: center;
    background: var(--blue-soft);
    border: 1px solid rgba(8, 37, 107, 0.12);
    border-radius: 8px;
}

.closing-section p{
    max-width: 790px;
    margin: 18px auto 0;
}

footer{
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 26px clamp(20px, 6vw, 80px);
    color: #ffffff;
    background: var(--blue);
}

footer p{
    font-weight: 800;
}

footer a{
    color: #ffffff;
    text-decoration-color: rgba(255, 255, 255, 0.45);
    text-underline-offset: 4px;
}

@media screen and (max-width: 980px){
    .site-header{
        align-items: flex-start;
        flex-wrap: wrap;
    }

    nav{
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }

    .intro-grid,
    .mission-section,
    .formula-item,
    .formula-item-reverse{
        grid-template-columns: 1fr;
    }

    .formula-item-reverse .formula-copy{
        order: 0;
    }

    .intro-image{
        min-height: 340px;
    }
}

@media screen and (max-width: 640px){
    .site-header{
        position: static;
        padding: 14px 18px 18px;
    }

    .logo img{
        width: 112px;
    }

    nav{
        gap: 18px;
    }

    nav a{
        font-size: 15px;
    }

    .site-header > .button{
        width: 100%;
    }

    .home-hero{
        width: min(100% - 28px, 1320px);
        height: auto;
        min-height: 0;
        margin-top: 18px;
    }

    .home-hero img{
        height: auto;
    }

    .intro-section,
    .mission-section,
    .formula-list,
    .closing-section,
    .page-hero{
        width: min(100% - 28px, 1120px);
    }

    .mission-card,
    .formula-item,
    .closing-section{
        padding: 24px;
    }

    .intro-grid{
        padding: 24px;
    }

    .intro-image{
        min-height: 260px;
    }

    footer{
        flex-direction: column;
    }
}
