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

:root {
    --cream: #faf7f2;
    --warm-white: #fff9f4;
    --charcoal: #2c2c2c;
    --mid: #5a5a5a;
    --light: #8a8a8a;
    --border: #e0d8ce;
    --accent: #7a4f2e;
    --accent-hover: #5e3a20;
    --gold: #c49a3c;
    --section-alt: #f0ebe3;
}

html { scroll-behavior: smooth; }

body {
    font-family: Georgia, 'Times New Roman', serif;
    background: var(--cream);
    color: var(--charcoal);
    font-size: 17px;
    line-height: 1.7;
}

/* ── HEADER ─────────────────────────────────────────── */
header {
    background: var(--warm-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo-wrap img.logo {
    height: 48px;
    width: auto;
    display: block;
}

nav {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

nav a {
    font-family: 'Trebuchet MS', Helvetica, sans-serif;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mid);
    text-decoration: none;
    transition: color 0.2s;
}

nav a:hover { color: var(--accent); }

nav a.nav-cta {
    background: var(--accent);
    color: #fff;
    padding: 0.45rem 1.1rem;
    border-radius: 3px;
    transition: background 0.2s;
}

nav a.nav-cta:hover { background: var(--accent-hover); color: #fff; }

/* ── HERO ────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, #3d2010 0%, #6b3a1f 50%, #8c5230 100%);
    color: #fff;
    padding: 6rem 2rem;
    text-align: center;
}

.hero-inner {
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: normal;
    line-height: 1.25;
    margin-bottom: 1.2rem;
    letter-spacing: -0.01em;
}

.hero-sub {
    font-size: 1.15rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
}

/* ── BUTTONS ─────────────────────────────────────────── */
.btn-primary {
    display: inline-block;
    background: var(--gold);
    color: #fff;
    text-decoration: none;
    padding: 0.8rem 2.2rem;
    border-radius: 3px;
    font-family: 'Trebuchet MS', Helvetica, sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    transition: background 0.2s, transform 0.1s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #a87e2a;
    transform: translateY(-1px);
}

/* ── CONTAINERS ──────────────────────────────────────── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── PRODUCT SECTIONS ────────────────────────────────── */
.product-section {
    padding: 5rem 0;
    background: var(--warm-white);
}

.product-section.alt {
    background: var(--section-alt);
}

.how-section.alt {
    background: var(--section-alt);
    padding: 5rem 0;
}

.product-section h2, .how-section h2, .order-section h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: normal;
    color: var(--accent);
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.section-intro {
    font-size: 1.05rem;
    color: var(--mid);
    max-width: 680px;
    margin-bottom: 2.5rem;
}

.product-note {
    margin-top: 2rem;
    font-size: 0.97rem;
    color: var(--mid);
    font-style: italic;
    border-left: 3px solid var(--gold);
    padding-left: 1rem;
}

/* ── GALLERIES ───────────────────────────────────────── */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1rem;
}

.gallery-pair {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 280px;
}

.gallery-pair > div {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.gallery-pair img {
    width: calc(50% - 0.375rem);
    max-width: 260px;
    height: auto;
    border: 1px solid var(--border);
    border-radius: 2px;
    display: block;
    object-fit: cover;
}

/* Override for pairs that have two images directly */
.gallery-pair > img {
    width: calc(50% - 0.375rem);
    max-width: 260px;
    height: auto;
    border: 1px solid var(--border);
    border-radius: 2px;
}

.caption {
    font-size: 0.85rem;
    color: var(--light);
    font-style: italic;
    text-align: center;
    margin-top: 0.25rem;
}

/* Four-up gallery for cushions */
.gallery.four-up {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: 2px;
}

.bull-terrier {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.bull-terrier img {
    flex: 1;
    min-width: 150px;
    max-width: 280px;
    height: 200px;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: 2px;
}

/* ── HOW IT WORKS ────────────────────────────────────── */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.step {
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.75rem;
    position: relative;
}

.step-num {
    font-size: 3rem;
    font-weight: bold;
    color: var(--border);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'Trebuchet MS', Helvetica, sans-serif;
}

.step h3 {
    font-size: 1.05rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: normal;
}

.step p {
    font-size: 0.95rem;
    color: var(--mid);
}

.john-section {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.john-section img {
    height: 280px;
    width: auto;
    max-width: 100%;
    border: 1px solid var(--border);
    border-radius: 2px;
    object-fit: cover;
}

.john-section + .caption {
    margin-top: -1rem;
    margin-bottom: 1rem;
}

.farm-note {
    font-size: 0.95rem;
    color: var(--mid);
    font-style: italic;
}

.farm-note a {
    color: var(--accent);
    text-decoration: none;
}

.farm-note a:hover { text-decoration: underline; }

/* ── ORDER SECTION ───────────────────────────────────── */
.order-section {
    padding: 5rem 0;
    background: var(--warm-white);
}

.order-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

/* ── FORM ────────────────────────────────────────────── */
.contact-form-wrap form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.92rem;
    color: var(--mid);
    font-family: 'Trebuchet MS', Helvetica, sans-serif;
}

label input, label select, label textarea {
    font-family: Georgia, serif;
    font-size: 0.97rem;
    color: var(--charcoal);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 0.6rem 0.75rem;
    transition: border-color 0.2s;
    width: 100%;
}

label input:focus, label select:focus, label textarea:focus {
    outline: none;
    border-color: var(--gold);
}

label textarea { resize: vertical; }

label input[type="file"] {
    padding: 0.4rem;
    background: var(--cream);
    font-size: 0.88rem;
}

.req { color: var(--accent); }

/* ── PAYMENT ─────────────────────────────────────────── */
.payment-wrap h3 {
    font-size: 1.3rem;
    font-weight: normal;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.payment-wrap > p {
    font-size: 0.95rem;
    color: var(--mid);
    margin-bottom: 1.2rem;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.paypal-btn {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.payment-note {
    font-size: 0.85rem;
    color: var(--light);
    font-style: italic;
}

.cashapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #00d632;
    color: #fff;
    text-decoration: none;
    padding: 0.65rem 1.2rem;
    border-radius: 6px;
    font-family: 'Trebuchet MS', Helvetica, sans-serif;
    font-size: 0.92rem;
    font-weight: bold;
    width: fit-content;
    transition: background 0.2s;
}

.cashapp-btn:hover { background: #00b82b; }

.payment-note-small {
    margin-top: 1.5rem;
    font-size: 0.82rem;
    color: var(--light);
    font-style: italic;
}

/* ── FOOTER ──────────────────────────────────────────── */
footer {
    background: #2c2010;
    color: rgba(255,255,255,0.65);
    text-align: center;
    padding: 2.5rem 1rem;
    font-size: 0.9rem;
    line-height: 2;
}

footer a {
    color: var(--gold);
    text-decoration: none;
}

footer a:hover { text-decoration: underline; }

/* ── FORM SUCCESS/ERROR MESSAGES ─────────────────────── */
.form-msg {
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.form-msg.success {
    background: #eef7ee;
    border: 1px solid #7bc47b;
    color: #2d6a2d;
}

.form-msg.error {
    background: #fef0ee;
    border: 1px solid #e88;
    color: #8b2020;
}

/* ── GALLERY PAIR IMAGE LAYOUT FIX ───────────────────── */
/* Two images side-by-side in a gallery-pair */
.gallery-pair {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-pair > img + img,
.gallery-pair > img:first-child {
    /* images are siblings — lay them side by side */
}

/* Wrap sibling images in a row */
.gallery-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0.5rem;
    align-items: start;
}

.gallery-pair > img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: 2px;
}

.gallery-pair > .caption {
    grid-column: 1 / -1;
}

/* Dress images are taller — let them breathe */
.dress-pair > img {
    height: auto;
    max-height: 520px;
    object-fit: contain;
    background: #f8f5f0;
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
    .gallery.four-up {
        grid-template-columns: repeat(2, 1fr);
    }

    .order-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .john-section {
        justify-content: center;
    }
}

@media (max-width: 700px) {
    nav {
        gap: 1rem;
    }

    nav a:not(.nav-cta) {
        display: none;
    }

    .hero { padding: 4rem 1.5rem; }

    .gallery {
        flex-direction: column;
    }

    .gallery-pair {
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

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

    .bull-terrier {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .gallery.four-up {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-item img {
        height: 150px;
    }

    .header-inner {
        padding: 0 1rem;
    }
}
