/* ===== v12 — Appetite-First Photo-Magazine ===== */
/* Fonts: Lora (display) + Plus Jakarta Sans (body) */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    background: #fafafa;
    -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.shell {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #c8872e;
    color: #fff;
    padding: 8px 16px;
    z-index: 9999;
    font-size: 14px;
}
.skip-link:focus {
    left: 8px;
    top: 8px;
    border-radius: 4px;
}

/* --- Version Rail --- */
.version-rail {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
}

.version-rail a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    min-height: 26px;
    padding: 4px 5px;
    font-size: 8px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    background: rgba(26, 26, 26, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.2s, color 0.2s;
}

.version-rail a:first-child {
    border-top: 0;
}

.version-rail a:hover,
.version-rail a:focus-visible {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.version-rail a[aria-current="page"] {
    background: #c8872e;
    color: #fff;
}

/* --- Hero --- */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: url('../img/v12/hero.png?v=2') center/cover no-repeat;
    background-color: #3a2b1a;
    padding: 0 24px 80px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.15) 50%, transparent 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 680px;
    color: #fff;
}

.hero-content h1 {
    font-family: 'Lora', serif;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.hero-sub {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    font-weight: 400;
    opacity: 0.92;
    margin-bottom: 32px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.25s, transform 0.15s, box-shadow 0.25s;
    text-decoration: none;
}

.btn-primary {
    background: #c8872e;
    color: #fff;
    padding: 14px 36px;
    box-shadow: 0 4px 16px rgba(200, 135, 46, 0.35);
}
.btn-primary:hover,
.btn-primary:focus-visible {
    background: #b3761f;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(200, 135, 46, 0.45);
}

.btn-secondary {
    background: transparent;
    color: #c8872e;
    border: 1.5px solid #c8872e;
    padding: 12px 28px;
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: rgba(200, 135, 46, 0.08);
}

/* --- Showcase --- */
.showcase {
    padding: 72px 0 56px;
}

.showcase-title {
    font-family: 'Lora', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    color: #1a1a1a;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.showcase-card {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #e8e4df;
}

.showcase-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.showcase-card:hover img,
.showcase-card:focus-visible img {
    transform: scale(1.05);
}

.card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 16px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
    color: #fff;
    font-family: 'Lora', serif;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    font-weight: 600;
    pointer-events: none;
}

/* --- Trust Strip --- */
.trust-strip {
    padding: 32px 0;
    border-top: 1px solid #e8e4df;
    border-bottom: 1px solid #e8e4df;
}

.trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

.trust-item svg {
    flex-shrink: 0;
    color: #c8872e;
}

/* --- Contact --- */
.contact {
    padding: 72px 0 80px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 56px;
    align-items: start;
}

.contact-intro h2 {
    font-family: 'Lora', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 16px;
}

.contact-intro > p {
    color: #555;
    margin-bottom: 28px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-link {
    display: block;
    padding: 14px 18px;
    border: 1px solid #e8e4df;
    border-radius: 10px;
    transition: border-color 0.2s, background 0.2s;
}
.contact-link:hover,
.contact-link:focus-visible {
    border-color: #c8872e;
    background: rgba(200, 135, 46, 0.04);
}

.contact-link strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.contact-link span {
    font-size: 13px;
    color: #777;
}

/* --- Form --- */
.contact-form-wrap {
    background: #fff;
    border: 1px solid #e8e4df;
    border-radius: 14px;
    padding: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.form-row .form-group { margin-bottom: 0; }

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.required { color: #c8872e; }

.form-group input,
.form-group select,
.form-group textarea {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    color: #1a1a1a;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #c8872e;
    box-shadow: 0 0 0 3px rgba(200, 135, 46, 0.12);
}

.form-group textarea { resize: vertical; }

.input--hidden {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.btn-submit { width: auto; }

.form-status {
    display: none;
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.form-success {
    background: #eaf7ec;
    color: #1a6d2e;
    border: 1px solid #c3e6c8;
}

.form-error {
    background: #fdecea;
    color: #a1281e;
    border: 1px solid #f5c6c2;
}

.form-legal {
    margin-top: 16px;
    font-size: 11px;
    color: #999;
    line-height: 1.5;
}
.form-legal a { color: #777; text-decoration: underline; }

/* --- Footer --- */
.site-footer {
    border-top: 1px solid #e8e4df;
    padding: 32px 0;
    font-size: 13px;
    color: #777;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-row strong {
    color: #1a1a1a;
    font-size: 14px;
}

.footer-row p { margin-top: 4px; }

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #777;
    transition: color 0.2s;
}
.footer-links a:hover { color: #c8872e; }

/* --- Demo Banner --- */
.demo-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(26, 26, 26, 0.92);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 6px 16px;
    font-size: 8px;
    line-height: 1.4;
    border-radius: 0;
}

.demo-banner a {
    color: #c8872e;
    text-decoration: underline;
}

/* --- Legal pages (shared shell) --- */
.legal-section {
    padding: 80px 0 60px;
}

.legal-card {
    max-width: 720px;
}

.legal-card .eyebrow {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #c8872e;
    margin-bottom: 8px;
}

.legal-card h1 {
    font-family: 'Lora', serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 32px;
}

#legal-content h2 {
    font-family: 'Lora', serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 28px 0 12px;
}

#legal-content p {
    margin-bottom: 12px;
    color: #444;
    font-size: 15px;
}

#legal-content ul,
#legal-content ol {
    margin: 0 0 16px 20px;
    color: #444;
    font-size: 15px;
}

.legal-card > p:last-child { margin-top: 32px; }

/* --- Site Header (legal pages) --- */
.site-header {
    padding: 16px 0;
    border-bottom: 1px solid #e8e4df;
}

.header-row {
    display: flex;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #c8872e;
    color: #fff;
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 14px;
    border-radius: 8px;
}

.brand-copy strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.brand-copy span {
    font-size: 12px;
    color: #777;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .hero {
        min-height: 85vh;
        padding-bottom: 60px;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .showcase-card {
        aspect-ratio: 4 / 3;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .trust-row {
        gap: 20px;
        justify-content: flex-start;
    }

    .footer-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-form-wrap {
        padding: 24px 18px;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .form-actions .btn { text-align: center; }

    .version-rail {
        padding: 4px 3px;
    }
    .version-rail a {
        width: 24px;
        height: 24px;
        font-size: 7px;
    }
}

/* --- sr-only utility --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
