/* Quinta da Salgueirinha — Public Frontend */

:root {
    --forest: #2d4a2b;
    --forest-dark: #1e3320;
    --forest-light: #3d5c3a;
    --leaf: #4a7c43;
    --gold: #c9a227;
    --gold-light: #e0bc4a;
    --cream: #f8f5ef;
    --cream-dark: #ede8df;
    --ink: #1f2d1e;
    --muted: #6b7c6a;
    --white: #ffffff;
    --border: rgba(45, 74, 43, 0.12);
    --shadow: 0 12px 40px rgba(45, 74, 43, 0.1);
    --shadow-lg: 0 24px 60px rgba(45, 74, 43, 0.15);
    --radius: 4px;
    --radius-lg: 8px;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'DM Sans', system-ui, sans-serif;
    --header-h: 72px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

address {
    font-style: normal;
}

.container {
    width: min(1140px, 92vw);
    margin-inline: auto;
}

/* ── Header ── */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(248, 245, 239, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
    background: rgba(248, 245, 239, 0.98);
    box-shadow: 0 2px 20px rgba(45, 74, 43, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: min(1140px, 92vw);
    margin-inline: auto;
    gap: 2rem;
}

.brand {
    flex-shrink: 0;
}

.brand-logo {
    height: 44px;
    width: auto;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    gap: 0.25rem;
    list-style: none;
}

.nav-link {
    display: block;
    padding: 0.5rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--muted);
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--forest);
    background: rgba(45, 74, 43, 0.06);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.lang-switch {
    display: flex;
    gap: 0.15rem;
    background: rgba(45, 74, 43, 0.06);
    border-radius: var(--radius);
    padding: 3px;
}

.lang-link {
    display: block;
    padding: 0.3rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--muted);
    border-radius: 3px;
    transition: all var(--transition);
}

.lang-link:hover {
    color: var(--forest);
}

.lang-link.is-active {
    background: var(--white);
    color: var(--forest);
    box-shadow: 0 1px 4px rgba(45, 74, 43, 0.1);
}

.cart-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--forest);
    border-radius: var(--radius);
    transition: background var(--transition);
}

.cart-toggle:hover {
    background: rgba(45, 74, 43, 0.06);
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    color: var(--white);
    background: var(--gold);
    border-radius: 9px;
    opacity: 0;
    transform: scale(0.5);
    transition: all var(--transition);
}

.cart-count.has-items {
    opacity: 1;
    transform: scale(1);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--forest);
    border-radius: 1px;
    transition: all var(--transition);
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.admin-link {
    position: absolute;
    top: 4px;
    right: 12px;
    font-size: 0.6rem;
    color: var(--muted);
    opacity: 0.5;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: opacity var(--transition);
}

.admin-link:hover {
    opacity: 1;
    color: var(--forest);
}

/* ── Buttons ── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: var(--radius);
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    color: var(--white);
    background: var(--forest);
    box-shadow: 0 4px 16px rgba(45, 74, 43, 0.25);
}

.btn-primary:hover {
    background: var(--forest-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(45, 74, 43, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    color: var(--forest);
    background: transparent;
    border: 1.5px solid var(--forest);
}

.btn-secondary:hover {
    background: var(--forest);
    color: var(--white);
}

.btn-block {
    width: 100%;
}

/* ── Hero ── */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--forest-dark) var(--hero-image, none) center / cover no-repeat;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(30, 51, 32, 0.75) 0%,
        rgba(45, 74, 43, 0.55) 40%,
        rgba(30, 51, 32, 0.8) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 780px;
    padding: 2rem;
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-weight: 400;
}

.hero .btn-primary {
    background: var(--gold);
    color: var(--forest-dark);
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.35);
}

.hero .btn-primary:hover {
    background: var(--gold-light);
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.6;
    animation: scrollPulse 2.5s ease-in-out infinite;
}

.hero-scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--gold), transparent);
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.8; transform: translateX(-50%) translateY(6px); }
}

/* ── Sections ── */

.section {
    padding: clamp(5rem, 10vw, 8rem) 0;
}

.section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.section-label-light {
    color: var(--gold-light);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--forest);
    margin-bottom: 1.25rem;
}

.section-title-light {
    color: var(--white);
}

.section-body {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.8;
}

.section-body-light {
    color: rgba(255, 255, 255, 0.85);
}

.section-intro {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

/* ── Story ── */

.section-story {
    background: var(--white);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 4rem;
    align-items: start;
}

.story-paragraph {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--ink);
    margin-bottom: 1.5rem;
}

.story-paragraph:first-of-type {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--forest);
    line-height: 1.5;
}

.story-quote {
    margin: 3rem 0;
    padding: 2rem 0 2rem 2rem;
    border-left: 3px solid var(--gold);
}

.story-quote p {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-style: italic;
    line-height: 1.55;
    color: var(--forest);
}

.story-closing {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--muted);
}

.story-aside {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
}

.story-accent {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--cream);
}

.story-year {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.story-label {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ── Split Sections ── */

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.split-reverse .split-image {
    order: 2;
}

.split-reverse .split-text {
    order: 1;
}

.split-image {
    position: relative;
}

.split-image img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.image-frame {
    position: absolute;
    inset: 12px -12px -12px 12px;
    border: 1px solid var(--gold);
    border-radius: var(--radius-lg);
    pointer-events: none;
    opacity: 0.4;
}

.stats-row {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.stat-card {
    flex: 1;
    padding: 1.5rem;
    background: var(--cream);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border);
}

.stat-value {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--forest);
    line-height: 1;
}

.stat-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.02em;
}

/* ── Harvest & Quality backgrounds ── */

.section-harvest {
    background: var(--cream);
}

.section-quality {
    background: var(--white);
}

/* ── Limited ── */

.section-limited {
    position: relative;
    padding: clamp(6rem, 12vw, 10rem) 0;
    overflow: hidden;
}

.limited-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.5);
}

.limited-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 51, 32, 0.85), rgba(45, 74, 43, 0.7));
}

.limited-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 680px;
}

/* ── Shop ── */

.section-shop {
    background: var(--cream);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--cream-dark);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.04);
}

.product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--muted);
    opacity: 0.4;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--forest);
    margin-bottom: 0.5rem;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.product-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.product-meta span::before {
    content: '·';
    margin-right: 1rem;
    color: var(--gold);
}

.product-meta span:first-child::before {
    content: none;
    margin: 0;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.product-price {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--forest);
}

.product-footer .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
}

.shop-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--muted);
    padding: 3rem;
}

.cash-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 3rem;
    padding: 1.25rem 1.5rem;
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.25);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    color: var(--forest);
    text-align: center;
}

.cash-note svg {
    flex-shrink: 0;
    color: var(--gold);
}

/* ── Blog ── */

.section-blog {
    background: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--cream);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.blog-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.03);
}

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold);
}

.blog-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--forest);
    margin: 0.5rem 0 0.75rem;
    line-height: 1.35;
}

.blog-excerpt {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--forest);
    transition: gap var(--transition), color var(--transition);
}

.blog-read-more:hover {
    color: var(--gold);
    gap: 0.65rem;
}

/* ── Footer ── */

.site-footer {
    background: var(--forest-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: clamp(4rem, 8vw, 6rem) 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 48px;
    width: auto;
    margin-bottom: 1.25rem;
    filter: brightness(1.1);
}

.footer-tagline {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.footer-contact h3,
.footer-nav h3 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.25rem;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition);
}

.footer-contact a:hover {
    color: var(--gold-light);
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-nav a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    transition: color var(--transition);
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-origin {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.75rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-copyright {
    margin-bottom: 0.75rem;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.25rem 0.5rem;
}

.footer-legal-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: color var(--transition);
}

.footer-legal-link:hover {
    color: var(--gold-light);
}

.footer-legal-link:not(:last-child)::after {
    content: '·';
    margin-left: 0.5rem;
    color: rgba(255, 255, 255, 0.25);
    pointer-events: none;
}

/* ── Cart Sidebar ── */

.cart-sidebar {
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;
}

.cart-sidebar.is-open {
    pointer-events: auto;
}

.cart-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 51, 32, 0.4);
    opacity: 0;
    transition: opacity var(--transition);
}

.cart-sidebar.is-open .cart-overlay {
    opacity: 1;
}

.cart-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(400px, 92vw);
    height: 100%;
    background: var(--white);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -8px 0 40px rgba(45, 74, 43, 0.15);
}

.cart-sidebar.is-open .cart-panel {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.cart-header h2 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--forest);
}

.cart-close {
    font-size: 1.5rem;
    color: var(--muted);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: background var(--transition);
}

.cart-close:hover {
    background: var(--cream);
    color: var(--forest);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--forest);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: 0.85rem;
    color: var(--muted);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-qty button {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    color: var(--forest);
    transition: all var(--transition);
}

.cart-item-qty button:hover {
    background: var(--cream);
    border-color: var(--forest);
}

.cart-item-qty span {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.cart-item-remove {
    font-size: 0.75rem;
    color: var(--muted);
    text-decoration: underline;
    transition: color var(--transition);
}

.cart-item-remove:hover {
    color: #c0392b;
}

.cart-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.cart-empty.is-hidden {
    display: none;
}

.cart-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--cream);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--forest);
}

.cart-total span:last-child {
    font-family: var(--font-serif);
    font-size: 1.35rem;
}

/* ── Modals ── */

.modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition);
}

.modal.is-open {
    pointer-events: auto;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 51, 32, 0.5);
}

.modal-panel {
    position: relative;
    width: min(480px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform var(--transition);
}

.modal.is-open .modal-panel {
    transform: translateY(0);
}

.modal-panel-wide {
    width: min(720px, 100%);
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.5rem 0;
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1;
}

.modal-header h2 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--forest);
    line-height: 1.3;
}

.modal-close {
    flex-shrink: 0;
    font-size: 1.5rem;
    color: var(--muted);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: background var(--transition);
}

.modal-close:hover {
    background: var(--cream);
    color: var(--forest);
}

.modal-body {
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--muted);
}

.modal-body p {
    margin-bottom: 1rem;
}

/* ── Checkout Form ── */

.checkout-form {
    padding: 1.5rem;
}

.form-row {
    margin-bottom: 1.25rem;
}

.form-row label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--forest);
    margin-bottom: 0.4rem;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--forest);
    box-shadow: 0 0 0 3px rgba(45, 74, 43, 0.1);
}

.form-note {
    font-size: 0.85rem;
    color: var(--muted);
    padding: 0.75rem 1rem;
    background: rgba(201, 162, 39, 0.08);
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
}

.form-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    display: none;
}

.form-message.is-success {
    display: block;
    background: rgba(74, 124, 67, 0.12);
    color: var(--leaf);
}

.form-message.is-error {
    display: block;
    background: rgba(192, 57, 43, 0.1);
    color: #c0392b;
}

/* ── Reveal Animations ── */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */

@media (max-width: 960px) {
    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--cream);
        border-bottom: 1px solid var(--border);
        padding: 1rem;
        transform: translateY(-120%);
        opacity: 0;
        transition: transform var(--transition), opacity var(--transition);
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        padding: 0.85rem 1rem;
        font-size: 1rem;
    }

    .menu-toggle {
        display: flex;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .story-aside {
        position: static;
        order: -1;
    }

    .story-accent {
        flex-direction: row;
        gap: 1.5rem;
        justify-content: center;
        padding: 1.25rem;
    }

    .split-section,
    .split-reverse {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .split-reverse .split-image,
    .split-reverse .split-text {
        order: unset;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats-row {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    :root {
        --header-h: 64px;
    }

    .brand-logo {
        height: 36px;
    }

    .lang-link {
        padding: 0.25rem 0.4rem;
        font-size: 0.65rem;
    }

    .product-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .product-footer .btn {
        width: 100%;
    }

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-scroll {
        animation: none;
    }

    *, *::before, *::after {
        transition-duration: 0.01ms !important;
    }
}
