/* =========================================================================
   Empzen LLC — corporate site styles
   "Crafted" earthy palette: warm cream, forest green, sage, mustard & coral.
   System fonts only (serif display + sans body). No external dependencies.
   ========================================================================= */

:root {
    /* Surfaces — warm cream family */
    --cream:       #f4f1de;
    --cream-2:     #ece7cf;   /* alternating sections */
    --cream-card:  #faf7ea;   /* cards / inputs */

    /* Greens */
    --forest:      #2f4a2c;   /* primary: headings, dark UI */
    --forest-2:    #233619;   /* darkest */
    --moss:        #6b7d3a;   /* olive accent */
    --moss-2:      #586a2e;
    --sage:        #9db09a;   /* muted illustration green */
    --sage-soft:   #c6d2bf;

    /* Warm accents */
    --mustard:     #e3b04b;   /* primary buttons / highlights */
    --mustard-2:   #d09c34;
    --coral:       #e3743c;   /* small badges / eyebrow ticks */

    /* Text */
    --text:        #2c3526;
    --text-muted:  #5e6b53;
    --border:      #ddd6bd;

    /* Feedback */
    --success-bg:  #e6efdd;
    --success-fg:  #355e2a;
    --error-bg:    #f8e6dc;
    --error-fg:    #a8452a;

    /* Layout */
    --maxw:        1140px;
    --maxw-narrow: 760px;
    --radius:      22px;
    --radius-sm:   12px;
    --pill:        999px;
    --shadow:      0 1px 2px rgba(35, 54, 25, .05), 0 14px 34px rgba(35, 54, 25, .09);

    /* Type */
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
            Arial, "Helvetica Neue", sans-serif;
    --font-display: "Iowan Old Style", "Palatino Linotype", Palatino,
            "Book Antiqua", Georgia, "Times New Roman", serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a { color: var(--moss-2); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--forest); }

h1, h2, h3 {
    font-family: var(--font-display);
    line-height: 1.1;
    letter-spacing: -.01em;
    color: var(--forest);
    font-weight: 700;
}

/* ---- Accessibility helpers ----------------------------------------------*/
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--forest);
    color: #fff;
    padding: .6rem 1rem;
    border-radius: 0 0 var(--radius-sm) 0;
    z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible {
    outline: 2px solid var(--moss);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---- Layout --------------------------------------------------------------*/
.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: 28px;
}

.section { padding: 92px 0; }
.section--alt { background: var(--cream-2); }
.section--narrow { max-width: var(--maxw-narrow); }

.section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .74rem;
    font-weight: 700;
    color: var(--moss-2);
    margin: 0 0 .9rem;
}
.section__eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--coral);
}

.section__title {
    font-size: clamp(1.9rem, 4.4vw, 2.6rem);
    margin: 0 0 1rem;
}

.section__head { max-width: 660px; margin-bottom: 52px; }
.section__intro { color: var(--text-muted); font-size: 1.1rem; margin: 0; }

/* Outlined "boxed" keyword — the signature accent from the reference. */
.boxed {
    display: inline-block;
    border: 2px solid var(--forest);
    border-radius: 14px;
    padding: 0 .35em .08em;
    line-height: 1;
}
.boxed--mustard { border-color: var(--mustard-2); color: var(--moss-2); }

.prose p { color: var(--text); margin: 0 0 1.15rem; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 {
    font-size: 1.45rem;
    margin: 2.4rem 0 .7rem;
}

/* ---- Header / nav --------------------------------------------------------*/
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(244, 241, 222, .85);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--border);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 40px; width: auto; }

.site-nav { display: flex; align-items: center; }
.nav-menu {
    display: flex;
    align-items: center;
    gap: 34px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-menu a {
    color: var(--forest);
    font-size: .95rem;
    font-weight: 600;
}
.nav-menu a:hover { color: var(--moss-2); }

.nav-cta {
    background: var(--mustard);
    color: var(--forest) !important;
    padding: .6rem 1.3rem;
    border-radius: var(--pill);
    font-weight: 700 !important;
    transition: background .15s ease, transform .05s ease;
}
.nav-cta:hover { background: var(--mustard-2); color: var(--forest-2) !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin-inline: auto;
    background: var(--forest);
}

/* ---- Hero ----------------------------------------------------------------*/
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 540px at 92% 8%, rgba(157, 176, 154, .35), transparent 62%),
        radial-gradient(620px 420px at 6% 96%, rgba(227, 176, 75, .14), transparent 60%),
        var(--cream);
    border-bottom: 1px solid var(--border);
}
.hero__inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
    padding: 92px 28px 100px;
}
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .78rem;
    font-weight: 700;
    color: var(--moss-2);
    background: rgba(107, 125, 58, .1);
    border-radius: var(--pill);
    padding: .45rem .9rem;
    margin: 0 0 1.4rem;
}
.hero__title {
    font-size: clamp(2.2rem, 6.2vw, 4rem);
    line-height: 1.05;
    margin: 0 0 1.4rem;
    color: var(--forest);
}
.hero__lede {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 0 2.2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__meta {
    display: flex;
    gap: 36px;
    margin-top: 2.6rem;
    flex-wrap: wrap;
}
.hero__meta div { line-height: 1.2; }
.hero__meta strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: var(--forest);
}
.hero__meta span {
    font-size: .82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* Hero visual — organic blob + circular badge (no photography needed) */
.hero__visual {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 460px;
    margin-inline: auto;
    width: 100%;
}
.blob {
    position: absolute;
    inset: 6%;
    background: linear-gradient(150deg, var(--forest) 0%, var(--moss-2) 100%);
    border-radius: 46% 54% 56% 44% / 54% 44% 56% 46%;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow);
}
.blob__ring {
    position: absolute;
    inset: 12%;
    border: 1px dashed rgba(246, 243, 224, .35);
    border-radius: 50%;
}
.blob__glyph { width: 58%; height: 58%; }

/* Badge wrapper keeps the spinning ring + static seal locked together so they
   scale and reposition as one unit across breakpoints. */
.hero__badge {
    position: absolute;
    top: 2%;
    right: -2%;
    width: 116px;
    height: 116px;
}
.badge-circle {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: spin 26s linear infinite;
}
.badge-circle__seal {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .badge-circle { animation: none; } }

.dot {
    position: absolute;
    border-radius: 50%;
}
.dot--coral { width: 18px; height: 18px; background: var(--coral); left: -2%; top: 38%; }
.dot--sage  { width: 34px; height: 34px; background: var(--sage); right: 8%; bottom: 2%; }

/* ---- Buttons -------------------------------------------------------------*/
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    padding: .85rem 1.8rem;
    border-radius: var(--pill);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--mustard); color: var(--forest); }
.btn--primary:hover { background: var(--mustard-2); color: var(--forest-2); }
.btn--ghost {
    background: transparent;
    color: var(--forest);
    border-color: var(--forest);
}
.btn--ghost:hover { background: var(--forest); color: var(--cream); }

/* ---- Cards / grid --------------------------------------------------------*/
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
    background: var(--cream-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px 30px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--sage);
}
.card__icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    background: var(--sage-soft);
    color: var(--forest);
}
.card:nth-child(2) .card__icon { background: rgba(227, 176, 75, .25); color: var(--mustard-2); }
.card:nth-child(3) .card__icon { background: rgba(227, 116, 60, .18); color: var(--coral); }
.card__icon svg { width: 24px; height: 24px; }
.card__title {
    font-size: 1.3rem;
    margin: 0 0 .6rem;
}
.card p { margin: 0; color: var(--text-muted); }

/* ---- Contact -------------------------------------------------------------*/
.contact {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 52px;
    align-items: start;
}
.contact__details {
    background: var(--forest);
    color: var(--cream);
    border-radius: var(--radius);
    padding: 34px 32px;
}
.contact__subtitle {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--mustard);
    margin: 0 0 1.4rem;
}
.contact__line { margin: 0 0 1.4rem; }
.contact__line:last-child { margin-bottom: 0; }
.contact__line strong {
    display: block;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--sage);
    font-weight: 700;
    margin-bottom: .3rem;
}
.contact__line span,
.contact__line a { color: var(--cream); }
.contact__line a:hover { color: var(--mustard); }

/* ---- Forms ---------------------------------------------------------------*/
.form__row { margin-bottom: 1.1rem; }
.form__label {
    display: block;
    font-size: .9rem;
    font-weight: 700;
    color: var(--forest);
    margin-bottom: .4rem;
}
.form__input {
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    padding: .75rem .9rem;
    background: var(--cream-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form__input:focus {
    outline: none;
    border-color: var(--moss);
    box-shadow: 0 0 0 3px rgba(107, 125, 58, .18);
}
.form__textarea { resize: vertical; min-height: 140px; }
.form__input.is-invalid { border-color: var(--error-fg); }
.form__error {
    display: block;
    color: var(--error-fg);
    font-size: .85rem;
    margin-top: .35rem;
}
.form__hp {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.alert {
    padding: .95rem 1.15rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: .95rem;
}
.alert--success { background: var(--success-bg); color: var(--success-fg); }
.alert--error   { background: var(--error-bg);   color: var(--error-fg); }

/* ---- Legal pages ---------------------------------------------------------*/
.legal { padding-top: 64px; }
.legal__meta { color: var(--text-muted); font-size: .9rem; margin: 0 0 2.5rem; }
.legal__address { color: var(--text-muted); }

/* ---- Footer --------------------------------------------------------------*/
.site-footer {
    background: var(--forest);
    color: #cdd6c2;
    padding: 60px 0 34px;
}
.site-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(246, 243, 224, .14);
}
.site-footer__brand img {
    height: 48px;
    width: auto;
    margin-bottom: 1.1rem;
    /* The header logo is black line-art; force it to white for the dark footer. */
    filter: brightness(0) invert(1);
    opacity: .95;
}
.site-footer__addr { margin: 0; font-size: .92rem; line-height: 1.7; color: #aab69e; }
.site-footer__addr a { color: #cdd6c2; }
.site-footer__addr a:hover { color: var(--mustard); }
.site-footer__nav { display: flex; flex-direction: column; gap: .75rem; }
.site-footer__nav a { color: #cdd6c2; font-size: .95rem; font-weight: 500; }
.site-footer__nav a:hover { color: var(--mustard); }
.site-footer__legal { padding-top: 24px; }
.site-footer__legal p { margin: 0; font-size: .85rem; color: #8b9880; }

/* ---- Responsive ----------------------------------------------------------*/
@media (max-width: 860px) {
    /* Text-only hero on mobile: the decorative visual is hidden, headline leads. */
    .hero__inner {
        grid-template-columns: 1fr;
        padding: 64px 28px 72px;
        text-align: center;
    }
    .hero__eyebrow { margin-bottom: 1.2rem; }
    .hero__lede { max-width: 40ch; margin-inline: auto; }
    .hero__actions { justify-content: center; }
    .hero__meta { justify-content: center; margin-top: 2rem; }
    .hero__visual { display: none; }
}

@media (max-width: 768px) {
    body { font-size: 16px; }
    .section { padding: 66px 0; }

    .nav-toggle { display: flex; }
    .nav-menu {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--cream);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        padding: 8px 0;
        display: none;
    }
    .nav-menu.is-open { display: flex; }
    .nav-menu a { display: block; padding: .9rem 28px; }
    .nav-cta { background: none; color: var(--moss-2) !important; border-radius: 0; }
    .nav-cta:hover { background: var(--cream-2); }

    .grid--3 { grid-template-columns: 1fr; }
    .contact { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
    .container { padding-inline: 20px; }
    .section { padding: 52px 0; }
    .hero__inner { padding: 48px 20px 60px; }
    .hero__actions { flex-direction: column; align-items: stretch; width: 100%; }
    .btn { width: 100%; }
    .hero__meta { gap: 14px 28px; }
    .hero__meta strong { font-size: 1.45rem; }
    .site-footer__inner { flex-direction: column; gap: 28px; }
}

/* ---- Motion preference ---------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
