:root {
    /* Palette drawn from the Memori homepage design */
    --cream: #E9E8E1;
    --cream-soft: #F2F1EB;
    --sage: #A6B388;
    --sage-deep: #93A172;
    --forest: #3D4A1E;
    --forest-2: #46531F;
    --charcoal: #2C2B28;
    --text: #34342E;
    --muted: #6B6C60;
    --line: #D7D5CB;
    --maxw: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Jost", system-ui, sans-serif;
    font-weight: 300;
    background: var(--cream);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1.12;
    margin: 0 0 0.5em;
}

h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1rem; }
a { color: var(--charcoal); }

.display {
    font-family: "Poppins", system-ui, sans-serif;
    font-weight: 600;
    font-size: clamp(2.8rem, 6vw, 4.6rem);
    line-height: 1.04;
    letter-spacing: -0.02em;
    color: var(--charcoal);
    margin-bottom: 2rem;
}

.accent { color: var(--forest-2); }

/* Hero rotating word */
.rotator {
    display: inline-block;
    min-height: 2.08em;            /* reserve two lines so the button doesn't jump */
    transition: opacity 0.38s ease, transform 0.38s ease;
    will-change: opacity, transform;
}
.rotator::after { content: "."; } /* period stays glued to the word, never orphans */
.rotator.is-out {
    opacity: 0;
    transform: translateY(0.3em);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--sage-deep);
    margin-bottom: 1rem;
}

.centered { text-align: center; }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(233, 232, 225, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.nav {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }

.brand-logo {
    width: 40px; height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.brand-name {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--forest);
    letter-spacing: 0.02em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0; padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--sage-deep); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    background: var(--charcoal);
    color: var(--cream);
    text-decoration: none;
    padding: 0.85rem 2rem;
    border: 1px solid var(--charcoal);
    border-radius: 999px;
    font-family: "Jost", sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}
.btn:hover { background: #1c1c1a; }

.btn-outline {
    background: transparent;
    color: var(--charcoal);
}
.btn-outline:hover { background: var(--charcoal); color: var(--cream); }

.btn-light {
    background: transparent;
    color: var(--cream);
    border-color: var(--cream);
}
.btn-light:hover { background: var(--cream); color: var(--forest); }

.btn-block { width: 100%; }

/* ============================================================
   HOME PAGE
   ============================================================ */

/* ---------- Hero ---------- */
.hero-split {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 4.5rem 1.5rem 5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-copy { padding-right: 1rem; }

.hero-art img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    border-radius: 18px;
}

/* ---------- What We Do ---------- */
.whatwedo {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

.whatwedo-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.whatwedo-head h2 { margin: 0; }

.head-note {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.25rem;
    color: var(--charcoal);
    text-align: right;
    margin: 0;
    line-height: 1.3;
}

.service-bars { display: flex; flex-direction: column; gap: 1.1rem; }

.service-bar {
    background: var(--sage);
    border-radius: 14px;
    padding: 1.4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    align-items: center;
    gap: 1.5rem;
}

.service-bar h3 {
    margin: 0;
    color: var(--forest);
    font-weight: 600;
    font-size: 1.35rem;
}

.service-bar p {
    margin: 0;
    color: var(--forest);
    font-size: 0.98rem;
    opacity: 0.92;
}

/* ---------- Intentional ---------- */
.intentional {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 4rem 1.5rem 5rem;
    display: grid;
    grid-template-columns: 0.85fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.intentional-art img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 16px;
}

.intentional-title {
    font-size: clamp(1.7rem, 2.8vw, 2.4rem);
    margin-bottom: 1.5rem;
}

.intentional-copy p {
    color: var(--muted);
    font-size: 1.02rem;
}

/* ---------- How It Works ---------- */
.howitworks {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

.howitworks > h2 { margin-bottom: 2.5rem; }

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

.step-card {
    background: var(--forest);
    color: var(--cream);
    border-radius: 14px;
    padding: 1.75rem 1.5rem 2rem;
    min-height: 230px;
    display: flex;
    flex-direction: column;
}

.step-num {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1;
    color: var(--sage);
    margin-bottom: 1.5rem;
}

.step-card h3 { color: var(--cream); margin-bottom: 0.6rem; }

.step-card p {
    margin: 0;
    color: rgba(233, 232, 225, 0.82);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* ---------- Gallery ---------- */
.gallery {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

.gallery > h2 { margin-bottom: 2.5rem; }

.gallery-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* ---------- Testimonials ---------- */
.testimonials {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 2rem 1.5rem 6rem;
}

.testimonials > h2 { margin-bottom: 3rem; }

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--sage);
    border-radius: 14px;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
}

.testimonial-card .quote {
    color: var(--forest);
    font-size: 1rem;
    margin: 0 0 2rem;
}

.testimonial-card .t-name {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
    color: var(--forest);
    opacity: 0.85;
}

/* ---------- CTA Form ---------- */
.cta-form {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 2rem 1.5rem 6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.cta-visual {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    min-height: 420px;
}

.cta-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.cta-overlay {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(180deg, rgba(44,43,40,0.15), rgba(44,43,40,0.55));
}

.cta-overlay h2 {
    color: #fff;
    font-size: clamp(2rem, 3vw, 2.8rem);
    max-width: 9ch;
    margin-bottom: 1rem;
}

.cta-overlay p {
    color: rgba(255,255,255,0.9);
    margin: 0;
    max-width: 28ch;
}

.cta-fields { align-self: center; width: 100%; }

/* ---------- Flash messages ---------- */
.flash {
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    text-align: left;
    border: 1px solid transparent;
}
.flash-success {
    background: #E7EDD9;
    color: var(--forest);
    border-color: var(--sage);
}
.flash-error {
    background: #F3E3DD;
    color: #7A3B2E;
    border-color: #D9B5AB;
}

/* Honeypot anti-spam field — visually hidden but reachable by bots */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Shared form fields ---------- */
.field { margin-bottom: 1.3rem; }

.field label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--charcoal);
}

.field input,
.field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--cream-soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--sage-deep);
    box-shadow: 0 0 0 3px rgba(166, 179, 136, 0.3);
}

/* ============================================================
   ABOUT / CONTACT (shared with other pages)
   ============================================================ */
.hero, .about-hero { text-align: center; }

.hero-inner, .about-hero-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 6rem 1.5rem 4rem;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 2rem;
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }

.founders { max-width: var(--maxw); margin: 0 auto; padding: 4rem 1.5rem 6rem; }

.founder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 880px;
    margin: 0 auto;
}

.founder-card {
    background: var(--cream-soft);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
}

.founder-photo {
    width: 170px; height: 170px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--cream);
    box-shadow: 0 12px 30px -16px rgba(61, 74, 30, 0.55);
    margin-bottom: 1.5rem;
}

.founder-card h3 { margin-bottom: 0.15em; }

.founder-role {
    color: var(--sage-deep);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.74rem;
    margin-bottom: 1rem;
}

.founder-bio { color: var(--muted); margin: 0; }

.cta { background: var(--forest); color: var(--cream); text-align: center; }
.cta-inner { max-width: 640px; margin: 0 auto; padding: 5rem 1.5rem; }
.cta h2 { color: var(--cream); }
.cta p { color: rgba(233, 232, 225, 0.8); margin-bottom: 2rem; }

.contact-inner { max-width: 600px; margin: 0 auto; padding: 6rem 1.5rem; }
.contact-form { text-align: left; margin-top: 2.5rem; }
.contact-alt { margin-top: 2rem; color: var(--muted); font-size: 0.92rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--cream-soft); border-top: 1px solid var(--line); }

.footer-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 3rem 1.5rem;
    text-align: center;
}

.footer-brand {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--forest);
}

.footer-inner p { color: var(--muted); margin: 0.5rem 0 0; }
.footer-fine { font-size: 0.8rem; opacity: 0.8; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
    .hero-split,
    .intentional,
    .cta-form { grid-template-columns: 1fr; }

    .hero-copy { padding-right: 0; }
    .hero-art { order: -1; }
    .hero-art img { height: 320px; }

    .whatwedo-head { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .head-note { text-align: left; }

    .service-bar { grid-template-columns: 1fr; gap: 0.4rem; }

    .steps { grid-template-columns: repeat(2, 1fr); }
    .gallery-row { grid-template-columns: 1fr; }
    .testimonial-grid { grid-template-columns: 1fr; }

    .cta-visual { min-height: 300px; }
}

@media (max-width: 560px) {
    .nav-links { gap: 1.1rem; }
    .steps { grid-template-columns: 1fr; }
}
