/* ==========================================================================
   Two-Column Landing Page Template v2
   --------------------------------------------------------------------------
   Rebrand a site by editing ONLY the :root block below.
   --panel-bg MUST match the edge/background colour of your hero artwork so
   the image blends into the left column with no visible seam at any size.
   ========================================================================== */
:root {
    --panel-bg: #F8C62F;
    --panel-padding: 0;
    --panel-padding-mobile: 0.75rem 1rem 0.25rem;
    --page-bg: #ffffff;
    --text: #3b342a;
    --text-strong: #302A1F;
    --muted: #6b6156;
    --link: #A8451B;
    --accent: #2B1810;
    --accent-hover: #1F140E;
    --accent-text: #F8C62F;
    --focus-ring: rgba(168, 69, 27, 0.45);
    --input-border: #cfc6b8;
    --radius: 8px;
    --logo-max-width: 340px;
    --confirm-bg: #FEF6DA;
    --confirm-text: #302A1F;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background: var(--page-bg);
    color: var(--text);
    line-height: 1.55;
    overflow-x: hidden;
}

a {
    color: var(--link);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.hidden {
    display: none !important;
}

/* ---------- Layout ---------- */
.container {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
}

/* Left column: a full-height panel in the artwork's own background colour.
   The image is scaled proportionally (contain) and centred, so 600x800,
   800x600 and square artwork all fit without stretching or cropping. */
.left-column {
    flex: 0 0 50%;
    width: 50%;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--panel-padding);
    background: var(--panel-bg);
    overflow: hidden;
}

.side-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Right column: content block centred vertically, footer pinned to bottom.
   No fixed height and no internal scrollbar: if the content is taller than
   the window, the page itself scrolls and the left panel stays put. */
.right-column {
    flex: 1 1 50%;
    width: 50%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(1.75rem, 6vh, 4rem) clamp(1.5rem, 5vw, 4.5rem) 1.25rem;
}

.form-wrapper {
    width: 100%;
    max-width: 420px;
    margin-top: auto;
    margin-bottom: auto;
    padding: 1rem 0;
}

.logo-heading {
    margin: 0 0 clamp(1.25rem, 3.5vh, 2rem);
    line-height: 0;
}

.logo {
    display: block;
    width: 100%;
    max-width: var(--logo-max-width);
    height: auto;
}

.form-wrapper p {
    margin: 0 0 1rem;
    line-height: 1.6;
}

.form-wrapper .lead strong {
    color: var(--text-strong);
}

/* ---------- Form ---------- */
form {
    display: flex;
    flex-direction: column;
    margin-top: 0.5rem;
}

input[type="email"] {
    width: 100%;
    padding: 0.8rem 0.9rem;
    margin: 0.5rem 0 0.75rem;
    font: inherit;
    font-size: 1rem; /* 16px+ stops iOS zooming into the field */
    color: var(--text-strong);
    background: #fff;
    border: 1px solid var(--input-border);
    border-radius: var(--radius);
}

input[type="email"]:focus {
    border-color: var(--accent);
    outline: 3px solid var(--focus-ring);
    outline-offset: 0;
}

/* Honeypot: off-screen rather than display:none so naive bots still fill it */
.honeypot {
    position: absolute !important;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.45;
    cursor: pointer;
}

.checkbox input {
    flex: 0 0 auto;
    width: 1.1rem;
    height: 1.1rem;
    margin: 0.12rem 0 0;
    accent-color: var(--accent);
}

button {
    padding: 0.85rem 1rem;
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.06em;
    background-color: var(--accent);
    color: var(--accent-text);
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.05s ease;
}

button:hover {
    background-color: var(--accent-hover);
}

button:active {
    transform: translateY(1px);
}

button[disabled] {
    opacity: 0.65;
    cursor: wait;
}

#form-message {
    margin-top: 0.75rem;
    padding: 0.65rem 0.8rem;
    font-size: 0.92rem;
    color: #8a1c1c;
    background: #fdecec;
    border-radius: var(--radius);
}

#confirmation {
    margin-top: 0.5rem;
    padding: 1rem 1.1rem;
    background: var(--confirm-bg);
    color: var(--confirm-text);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
}

#confirmation p {
    margin: 0;
}

/* ---------- Footer ---------- */
footer {
    width: 100%;
    font-size: 0.85rem;
    color: var(--muted);
}

.footer-wrapper {
    max-width: 420px;
    padding: 1rem 0 0;
}

.footer-wrapper p {
    margin: 0;
}

.footer-wrapper a {
    color: inherit;
}

/* ---------- Tablet (769-1024px): same two columns, tighter gutters ---------- */
@media (max-width: 1024px) {
    .right-column {
        padding: clamp(1.5rem, 5vh, 3rem) 2rem 1.25rem 2.25rem;
    }
}

/* ---------- Mobile (<=768px): stack, whole artwork shrinks to fit ---------- */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        min-height: 0;
    }

    .left-column {
        position: static;
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        padding: var(--panel-padding-mobile);
    }

    .side-image {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: min(38vh, 320px);
        max-height: min(38dvh, 320px);
    }

    .right-column {
        flex: 0 0 auto;
        width: 100%;
        align-items: center;
        padding: 1.75rem 1.25rem 1.25rem;
    }

    .form-wrapper {
        margin: 0 auto;
        padding: 0;
    }

    .footer-wrapper {
        margin: 0 auto;
        padding-top: 2rem;
    }
}

/* ---------- Small mobile (<=420px) ---------- */
@media (max-width: 420px) {
    .side-image {
        max-height: min(32vh, 260px);
        max-height: min(32dvh, 260px);
    }

    .right-column {
        padding: 1.5rem 1.1rem 1rem;
    }

    .logo-heading {
        margin-bottom: 1.25rem;
    }
}

/* ---------- Short desktop/laptop windows (e.g. 1280x800, 1366x768 with
   browser chrome = ~650-700px of viewport): tighten vertical rhythm so logo,
   copy, form and footer all fit above the fold. ---------- */
@media (min-width: 769px) and (max-height: 820px) {
    .right-column {
        padding-top: 1.25rem;
        padding-bottom: 0.75rem;
    }
    .form-wrapper {
        max-width: 440px;
        padding: 0;
    }
    .logo-heading {
        margin-bottom: 1.1rem;
    }
    .logo {
        max-width: calc(var(--logo-max-width) * 0.82);
    }
    .form-wrapper p {
        font-size: 0.97rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }
    input[type="email"] {
        margin: 0.35rem 0 0.6rem;
    }
    .checkbox {
        margin-bottom: 0.75rem;
    }
    .footer-wrapper {
        padding-top: 0.75rem;
    }
}

/* ---------- Short landscape phones (wide but very short) ---------- */
@media (min-width: 769px) and (max-height: 520px) {
    .right-column {
        padding-top: 1.25rem;
    }
    .logo-heading {
        margin-bottom: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    button {
        transition: none;
    }
}

/* ==========================================================================
   Privacy policy page (scoped)
   ========================================================================== */
body.privacy-page {
    background: #f2f2f2;
    font-family: var(--font-body);
    line-height: 1.6;
    color: #222;
}

body.privacy-page .top-header {
    background: #fff;
    border-bottom: 4px solid var(--accent);
}

body.privacy-page .top-header .wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

body.privacy-page .top-header a {
    display: inline-block;
    line-height: 0;
}

body.privacy-page .top-header img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(260px, 70vw);
    max-height: 64px;
}

body.privacy-page .title-bar {
    background: #e4e4e4;
    border-bottom: 1px solid #d9d9d9;
}

body.privacy-page .title-bar .wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 18px;
}

body.privacy-page .title-bar h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

body.privacy-page main {
    max-width: 980px;
    margin: 0 auto;
    padding: 26px 18px 30px;
}

body.privacy-page .card {
    background: #fff;
    border: 1px solid #e6e6e6;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
    padding: 28px 26px 26px;
}

body.privacy-page .lede {
    color: #555;
    font-size: 14px;
    margin: 0 0 18px;
}

body.privacy-page h2 {
    margin: 28px 0 8px;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

body.privacy-page h3 {
    margin: 14px 0 6px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    color: #333;
}

body.privacy-page p,
body.privacy-page li {
    margin: 0 0 12px;
    font-size: 15px;
    color: #333;
}

body.privacy-page ul {
    margin: 8px 0 12px 20px;
    padding: 0;
}

body.privacy-page li {
    margin: 6px 0;
}

body.privacy-page a {
    color: #1a1a1a;
}

body.privacy-page .meta {
    margin-top: 18px;
    font-size: 13px;
    color: #666;
}

body.privacy-page footer {
    margin-top: 22px;
    background: #e9e9e9;
    border-top: 1px solid #e0e0e0;
}

body.privacy-page footer .wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 16px 18px;
    font-size: 13px;
    color: #444;
}

@media (max-width: 640px) {
    body.privacy-page .title-bar h1 { font-size: 24px; }
    body.privacy-page .card { padding: 22px 18px; }
    body.privacy-page .top-header img { max-height: 48px; }
}
