/* ==========================================================================
   Visual identity: ROSO - Douro Wine Estate (client's official logo)
   Temporary "Coming soon" page - wine tourism / the estate as a whole.

   Official estate palette (sampled from the logo, 2026-07-08):
       gold     #D49834  - primary colour (ROSO wordmark); site accent
       bordo    #3A1027  - base/background, "DOURO WINE ESTATE" claim
       cream    #F2EAE3  - text on dark background
   Typography: Fraunces (display serif) + DM Sans for body/support.
   NOTE: the terracotta/terra/olive system belonged to the RESTAURANT
   manual (Grape & Steak). The estate is gold-forward - see README.
   ========================================================================== */

:root {
    --color-cream: #F2EAE3;
    --color-bordo: #3A1027;
    --color-gold: #D49834;      /* official estate gold (ROSO logo) */
    --color-terra: #574134;
    --color-olive: #8D8961;

    --font-serif: 'Fraunces', 'Playfair Display', 'Georgia', serif;
    --font-sans: 'DM Sans', 'Arial', sans-serif;

    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

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

html, body {
    min-height: 100%;
    width: 100%;
    overflow-x: hidden;
    background-color: var(--color-bordo);
    color: var(--color-cream);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Accessibility utilities
   .sr-only: visually hidden but announced by screen readers (labels, etc.). */
.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;
}

/* Visible keyboard focus (WCAG 2.4.7). Gold ring on dark surfaces; cream ring
   on the gold button, drawn over the dark background via outline-offset. */
:focus-visible {
    outline: 3px solid var(--color-gold);
    outline-offset: 3px;
    border-radius: 4px;
}
.btn:focus-visible {
    outline: 3px solid var(--color-cream);
    outline-offset: 3px;
}

/* Background - Douro landscape */
.bg-photo {
    position: fixed;
    inset: 0;
    z-index: 1;
    background-image: url('images/background-douro.jpg');
    background-size: cover;
    background-position: center 42%;
    background-repeat: no-repeat;
    transform: scale(1.03);
    animation: slow-zoom 30s ease-out forwards;
}

/* Brand layer - warm veil (bordo->gold) over the photo, for legibility
   and so the page breathes the brand palette (the photo has the terracotta building). */
.bg-overlay {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(58, 16, 39, 0.72) 0%, rgba(58, 16, 39, 0.30) 34%, rgba(58, 16, 39, 0.48) 66%, rgba(28, 8, 20, 0.82) 100%),
        radial-gradient(120% 95% at 50% 42%, rgba(212, 152, 52, 0.10) 0%, transparent 45%),
        radial-gradient(130% 100% at 50% 50%, transparent 30%, rgba(28, 8, 20, 0.55) 100%);
    mix-blend-mode: normal;
}

/* Main wrapper */
.page-wrapper {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 2.5rem 1.5rem 1.5rem;
    max-width: 1180px;
    margin: 0 auto;
    justify-content: space-between;
    align-items: center;
}

/* Header / Wordmark */
header {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    animation: fade-down 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    text-align: center;
    text-shadow: 0 2px 26px rgba(28, 8, 20, 0.55);
}

.brand-logo {
    display: block;
    width: 300px;
    max-width: 74vw;
    height: auto;
    filter: drop-shadow(0 2px 26px rgba(28, 8, 20, 0.55));
}

/* Main area */
main {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding: 1.5rem 0;
}

.content {
    width: 100%;
    max-width: 700px;
    text-align: center;
    animation: fade-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.badge {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.26em;
    color: var(--color-cream);
    margin-bottom: 1.75rem;
    padding: 0.42rem 1.15rem;
    border-radius: 50px;
    background: rgba(212, 152, 52, 0.24);
    border: 1px solid rgba(242, 234, 227, 0.28);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-optical-sizing: auto;
    font-size: 3.7rem;
    line-height: 1.08;
    margin-bottom: 1.5rem;
    color: var(--color-cream);
    letter-spacing: -0.005em;
    text-shadow: 0 2px 34px rgba(28, 8, 20, 0.6);
}

.description {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.8;
    color: rgba(242, 234, 227, 0.94);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    text-shadow: 0 1px 18px rgba(28, 8, 20, 0.6);
}

/* CTA / Form */
.cta-section {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(242, 234, 227, 0.2);
}

.cta-text {
    font-size: 1.05rem;
    color: rgba(242, 234, 227, 0.88);
    margin-bottom: 1.25rem;
    text-shadow: 0 1px 14px rgba(28, 8, 20, 0.6);
}

.subscribe-form { width: 100%; }

.input-group {
    display: flex;
    gap: 0.5rem;
    background: rgba(28, 8, 20, 0.42);
    border: 1px solid rgba(242, 234, 227, 0.3);
    padding: 0.4rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.input-group:focus-within {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 4px rgba(212, 152, 52, 0.28);
    background: rgba(28, 8, 20, 0.58);
}

.subscribe-form input[type="email"] {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-cream);
    font-family: var(--font-sans);
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
    width: 100%;
}

.subscribe-form input[type="email"]::placeholder {
    color: rgba(242, 234, 227, 0.5);
}

/* Button - brand gold (bordo text for contrast) */
.btn {
    background: var(--color-gold);
    color: var(--color-bordo);
    border: none;
    outline: none;
    padding: 0.8rem 1.85rem;
    font-family: var(--font-sans);
    font-size: 0.98rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(242, 234, 227, 0.28), transparent);
    transition: 0.5s;
}

.btn:hover::before { left: 100%; }

.btn:hover {
    background: #c0871f;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(212, 152, 52, 0.45);
}

.btn:active { transform: translateY(0); }

.btn:disabled {
    background: var(--color-terra);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-arrow { transition: var(--transition-fast); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Messages */
.form-message {
    font-size: 0.9rem;
    margin-top: 1rem;
    opacity: 0;
    height: 0;
    overflow: hidden;
    color: var(--color-cream);
    text-shadow: 0 1px 12px rgba(28, 8, 20, 0.7);
    transition: var(--transition-smooth);
}

.form-message.show {
    opacity: 1;
    height: auto;
    margin-top: 1rem;
}

.form-message.success { color: #e7c9a0; }
.form-message.error { color: #f0b7a6; }

/* Footer */
footer {
    width: 100%;
    margin-top: 1.5rem;
    animation: fade-in 1.5s ease-out forwards;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem 1.5rem;
    text-align: center;
}

.contact-link {
    color: rgba(242, 234, 227, 0.88);
    text-decoration: none;
    font-size: 0.98rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.contact-link:hover {
    color: var(--color-cream);
    background: rgba(242, 234, 227, 0.08);
}

.contact-icon { stroke: var(--color-gold); }

.location-info {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 1.05rem;
    font-style: italic;
    letter-spacing: 0.02em;
    color: var(--color-gold);
}

.copyright {
    width: 100%;
    font-size: 0.78rem;
    color: rgba(242, 234, 227, 0.62);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes slow-zoom {
    from { transform: scale(1.09); }
    to   { transform: scale(1.0); }
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-down {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .bg-photo { background-image: url('images/background-douro-mobile.jpg'); }

    /* Tallest column crosses the bright zone of the photo -> reinforce the warm veil */
    .bg-overlay {
        background:
            linear-gradient(180deg, rgba(58, 16, 39, 0.78) 0%, rgba(58, 16, 39, 0.55) 45%, rgba(58, 16, 39, 0.62) 75%, rgba(28, 8, 20, 0.86) 100%),
            radial-gradient(120% 90% at 50% 38%, rgba(212, 152, 52, 0.12) 0%, transparent 55%);
    }

    .page-wrapper { padding: 2rem 1.25rem 1.25rem; }

    .brand-logo { width: 240px; }

    .title { font-size: 2.6rem; }
    .description { font-size: 1rem; }

    .input-group {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 0.75rem;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .input-group:focus-within { box-shadow: none; background: transparent; }

    .subscribe-form input[type="email"] {
        background: rgba(28, 8, 20, 0.5);
        border: 1px solid rgba(242, 234, 227, 0.3);
        border-radius: 50px;
        padding: 1rem 1.5rem;
        text-align: center;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .subscribe-form input[type="email"]:focus { border-color: var(--color-gold); }

    .btn { width: 100%; padding: 1rem 2rem; }
}

@media (max-width: 480px) {
    .brand-logo { width: 200px; }
    .title { font-size: 2.15rem; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .bg-photo { animation: none; transform: none; }
    header, .content, footer { animation: none; }
}
