/* CSS Custom Properties */
:root {
    /* Phase-1 redesign palette */
    --bg-cream: #FBF4EA;
    --burgundy: #4A0F1E;
    --burgundy-dark: #2D0911;
    --gold: #C19A6B;
    --gold-soft: #D4B68A;
    --text-dark: #1F1F1F;
    --text-muted: #5A5A5A;

    /* Legacy tokens (kept for non-homepage rules) */
    --color-primary: #8B2635;
    --color-primary-dark: #6B1929;
    --color-primary-light: #A53D4D;
    --color-secondary: #D4A574;
    --color-secondary-light: #E8C9A0;
    --color-accent: #C7956D;
    --color-text: #2C1810;
    --color-text-light: #6B5A52;
    --color-text-lighter: #9B8B83;
    --color-background: #FFFCF9;
    --color-background-alt: #F8F3EE;
    --color-background-subtle: #FFF9F5;
    --color-border: #E8DFD8;
    --color-border-light: #F2EBE5;
    --color-shadow: rgba(114, 47, 55, 0.08);
    --color-shadow-hover: rgba(114, 47, 55, 0.16);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    --container-width: 1200px;
    --spacing-unit: 1rem;
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px var(--color-shadow);
    --shadow-md: 0 4px 16px var(--color-shadow);
    --shadow-lg: 0 12px 32px var(--color-shadow-hover);
    --border-radius: 12px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--color-text);
    background-color: var(--color-background);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-primary-dark);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: calc(var(--spacing-unit) * 0.875);
    color: var(--color-text);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.875rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.375rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: calc(var(--spacing-unit) * 1.25);
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 1.5);
}

/* Header */
.site-header {
    background: var(--color-background);
    border-bottom: 1px solid var(--color-border-light);
    padding: calc(var(--spacing-unit) * 1.5) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(var(--spacing-unit) * 2);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 56px;
    width: auto;
}

.main-nav {
    display: flex;
    gap: calc(var(--spacing-unit) * 2.5);
}

.nav-link {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-text);
    padding: calc(var(--spacing-unit) * 0.5) 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.social-links {
    display: flex;
    gap: calc(var(--spacing-unit) * 0.875);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--color-text-light);
    background: var(--color-background-alt);
    transition: var(--transition-smooth);
}

.social-links a:hover {
    color: var(--color-primary);
    background: var(--color-background-subtle);
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    background: linear-gradient(to right,
        rgba(15, 8, 12, 0.78) 0%,
        rgba(15, 8, 12, 0.55) 40%,
        rgba(15, 8, 12, 0.20) 70%,
        rgba(15, 8, 12, 0.05) 100%);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.hero-overlay .container {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: left;
    padding: calc(var(--spacing-unit) * 5) calc(var(--spacing-unit) * 1.5);
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
}
.hero-overlay .container > * { max-width: 720px; }
@media (max-width: 900px) {
    .hero-overlay {
        background: linear-gradient(to bottom,
            rgba(15, 8, 12, 0.55) 0%,
            rgba(15, 8, 12, 0.78) 100%);
    }
}

.hero h1,
.hero .hero-headline {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: calc(var(--spacing-unit) * 1.25);
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.05;
}
.hero .hero-headline > span { display: block; }
.hero .hero-eyebrow {
    color: var(--gold-soft);
    margin-bottom: 0.6rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero .hero-subtitle {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    color: rgba(255,255,255,0.9);
    line-height: 1.4;
    max-width: 50ch;
    margin: -0.25rem 0 1rem;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.hero-simple .hero-headline {
    color: var(--text-dark);
    text-shadow: none;
}
.hero-simple .hero-eyebrow {
    color: var(--gold);
    text-shadow: none;
}
.hero-simple .hero-subtitle {
    color: var(--text-muted);
    text-shadow: none;
}

.hero-ingress {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.65;
}

.hero-simple {
    background: var(--color-background-alt);
    min-height: auto;
    padding: calc(var(--spacing-unit) * 5) 0;
    text-align: left;
}

.hero-simple .container > * { max-width: 720px; }

.hero-simple h1 {
    color: var(--color-text);
    text-align: left;
}

/* Hero Post Meta */
.hero .post-meta,
.hero-overlay .post-meta {
    justify-content: flex-start;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    color: rgba(255, 255, 255, 0.9);
}

.hero-simple .post-meta {
    justify-content: flex-start;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    color: var(--color-text-lighter);
}

/* Content Section */
.content-section {
    padding: calc(var(--spacing-unit) * 1) 0;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Articles Grid */
.featured-articles {
    background: var(--color-background-alt);
    padding: calc(var(--spacing-unit) * 5) 0;
}

.featured-articles h2 {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
}

.article-card {
    background: var(--color-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid var(--color-border-light);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.article-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.article-content {
    padding: calc(var(--spacing-unit) * 1.5);
}

.article-content h3 {
    font-size: 1.25rem;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.article-subtitle {
    color: var(--color-text-lighter);
    font-size: 0.9rem;
    margin-bottom: calc(var(--spacing-unit) * 0.75);
}

.article-excerpt {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-unit);
}

.read-more {
    display: inline-block;
    font-weight: 600;
    color: var(--color-primary);
}

.read-more::after {
    content: ' \2192';
}

/* Teasers */
.teasers-section {
}

.teasers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
}

.teaser-card {
    text-align: center;
}

.teaser-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-unit);
}

.teaser-content h3 {
    font-size: 1.1rem;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

/* Archive / Posts Grid */
.archive-section,
.tastings-section {
    padding: calc(var(--spacing-unit) * 5) 0;
}

.posts-grid,
.tastings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
}

.post-card,
.tasting-card {
    background: var(--color-background);
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.post-card:hover,
.tasting-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.post-image img,
.tasting-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.post-content,
.tasting-content {
    padding: calc(var(--spacing-unit) * 1.5);
}

.post-meta,
.tasting-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-unit);
    font-size: 0.85rem;
    color: var(--color-text-lighter);
    margin-bottom: calc(var(--spacing-unit) * 0.75);
}

.post-category {
    background: var(--color-secondary);
    color: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-content h2,
.tasting-content h2 {
    font-size: 1.25rem;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.post-content h2 a,
.tasting-content h2 a {
    color: var(--color-text);
}

.post-content h2 a:hover,
.tasting-content h2 a:hover {
    color: var(--color-primary);
}

.post-excerpt,
.tasting-excerpt {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-unit);
}

.wine-quick-info {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--spacing-unit) * 0.5);
    margin-bottom: calc(var(--spacing-unit) * 0.75);
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.wine-quick-info span:not(:last-child)::after {
    content: '\00b7';
    margin-left: calc(var(--spacing-unit) * 0.5);
}

.wine-quick-info .rating {
    color: var(--color-primary);
    font-weight: 600;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-unit);
    margin-top: calc(var(--spacing-unit) * 3);
}

.pagination-link {
    padding: calc(var(--spacing-unit) * 0.5) var(--spacing-unit);
    border: 1px solid var(--color-primary);
    border-radius: 4px;
    font-weight: 600;
}

.pagination-link:hover {
    background: var(--color-primary);
    color: #fff;
}

.pagination-info {
    color: var(--color-text-light);
}

/* Single Post */
.post-article {
}

.post-body {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 960px) {
    .post-body:has(.wine-details) {
        display: grid;
        grid-template-columns: 260px 1fr;
        max-width: 960px;
    }
}

.post-body > .post-content:only-child {
    max-width: 800px;
}

.wine-details {
    background: #fff;
    padding: calc(var(--spacing-unit) * 1.75);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 8, 12, 0.04), 0 8px 24px rgba(15, 8, 12, 0.08);
    height: fit-content;
}

.wine-details h3 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-unit);
    padding-bottom: calc(var(--spacing-unit) * 0.5);
    border-bottom: 2px solid var(--color-primary);
}

.wine-details dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: calc(var(--spacing-unit) * 0.5);
}

.wine-details dt {
    font-weight: 600;
    color: var(--color-text-light);
    font-size: 0.85rem;
}

.wine-details dd {
    font-size: 0.95rem;
}

.wine-details .rating {
    background: var(--color-primary);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.post-content {
    font-size: 1.1rem;
}

.post-tags {
    margin-top: calc(var(--spacing-unit) * 2);
    padding-top: calc(var(--spacing-unit) * 2);
    border-top: 1px solid var(--color-border);
}

.tag {
    display: inline-block;
    background: var(--color-background-alt);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 4px;
}

.tag:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Contact Page */
.contact-section {
    padding: calc(var(--spacing-unit) * 5) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-unit) * 3);
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 300px;
    }
}

.contact-info {
    background: var(--color-background-alt);
    padding: calc(var(--spacing-unit) * 2);
    border-radius: var(--border-radius);
    height: fit-content;
}

.contact-info h2 {
    font-size: 1.25rem;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-unit);
    margin-bottom: var(--spacing-unit);
}

.contact-icon {
    font-size: 1.25rem;
}

.contact-item address {
    font-style: normal;
    white-space: pre-line;
}

/* Contact form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    max-width: 640px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}

.contact-form .form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-form label {
    font-weight: 600;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
    font: inherit;
    padding: 0.6rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
}

.contact-form textarea {
    resize: vertical;
    min-height: 8rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid #000;
    outline-offset: 1px;
}

.contact-form .form-error {
    color: #b00020;
    font-size: 0.85rem;
}

.contact-error-banner {
    background: #fdecea;
    border: 1px solid #b00020;
    color: #b00020;
    padding: 0.75rem 1rem;
    border-radius: 4px;
}

.contact-success {
    background: #eef8ee;
    border: 1px solid #2e7d32;
    color: #1b5e20;
    padding: 1rem 1.25rem;
    border-radius: 4px;
    margin-top: 1.5rem;
}

.contact-success strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-form .btn {
    align-self: flex-start;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    padding: 0.7rem 1.4rem;
    border: none;
    border-radius: 4px;
    background: #000;
    color: #fff;
}

.contact-form .btn:hover {
    background: #333;
}

/* Utility Classes */
.no-posts {
    text-align: center;
    color: var(--color-text-light);
    padding: calc(var(--spacing-unit) * 3);
}

/* Legacy responsive rules consolidated into the Mobile optimization
   block at the bottom of this file (breakpoints: 480 / 720 / 960 / 1200). */

.articleImgRIght {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 5px;
    float: right;
    padding-left: 10px;
    padding-top: 8px;
}

.articleImg:hover {
    opacity: 0.7;
}

.articleImg {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 5px;
    float: left;
    padding-right: 10px;
    padding-top: 8px;
}

.articleImg:hover {
    opacity: 0.7;
}
/* ==========================================================================
   Phase 1 — Homepage redesign
   ========================================================================== */

body {
    background-color: var(--bg-cream);
    color: var(--text-dark);
}

/* Eyebrow label */
.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

/* Header */
.site-header {
    background: var(--bg-cream);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 1.1rem 0;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.site-header .logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--burgundy);
}
.site-header .brand-mark {
    width: 36px;
    height: 36px;
    color: var(--gold);
    flex-shrink: 0;
}
.site-header .logo-image {
    height: 38px;
    width: auto;
}
.site-header .main-nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.site-header .nav-link {
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 400;
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.site-header .nav-link:hover { color: var(--burgundy); }
.site-header .nav-link.active {
    border-bottom-color: var(--gold);
    color: var(--burgundy);
}
.site-header .social-links {
    display: flex;
    gap: 0.85rem;
}
.site-header .social-links a {
    color: var(--burgundy);
    display: inline-flex;
}

/* Home hero — full-bleed background image with text overlay on the left.
   Gradient overlay keeps white text legible on the brighter areas of the photo. */
.home-hero {
    position: relative;
    min-height: 640px;
    background-color: var(--burgundy-dark);
    background-image: url('/images/hero-mosel.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
        rgba(15, 8, 12, 0.78) 0%,
        rgba(15, 8, 12, 0.55) 40%,
        rgba(15, 8, 12, 0.20) 65%,
        rgba(15, 8, 12, 0.05) 100%);
    pointer-events: none;
}
.home-hero .home-hero-copy {
    position: relative;
    z-index: 1;
    padding: 4rem max(1.5rem, calc((100vw - var(--container-width)) / 2));
    width: 100%;
}
.home-hero .home-hero-copy-inner {
    max-width: 560px;
}
.home-hero .eyebrow { color: var(--gold-soft); }
.home-hero .home-hero-headline { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,0.35); }
.home-hero .home-hero-subhead { color: rgba(255,255,255,0.85); }
.home-hero .home-hero-cta {
    background: var(--burgundy);
}
.home-hero .home-hero-cta:hover {
    background: #fff;
    color: var(--burgundy);
}
@media (max-width: 900px) {
    .home-hero { min-height: 460px; }
    .home-hero::before {
        background: linear-gradient(to bottom,
            rgba(15, 8, 12, 0.55) 0%,
            rgba(15, 8, 12, 0.75) 100%);
    }
    .home-hero .home-hero-copy { padding: 3rem 1.5rem; }
}
.home-hero .home-hero-headline {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    line-height: 1.04;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0,0,0,0.35);
    margin: 0.4rem 0 1.5rem;
}
.home-hero .home-hero-headline > span { display: block; }
.home-hero .home-hero-headline a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.home-hero .home-hero-headline a:hover { color: var(--gold-soft); }
.home-hero .home-hero-subhead a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.home-hero .home-hero-subhead a:hover { color: #fff; }
.home-hero .home-hero-subhead {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    max-width: 40ch;
    line-height: 1.6;
}
.home-hero .home-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--burgundy);
    color: #fff;
    padding: 0.95rem 1.7rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: background 0.2s ease, transform 0.2s ease;
}
.home-hero .home-hero-cta:hover {
    background: var(--burgundy-dark);
    transform: translateX(2px);
    color: #fff;
}
.home-hero .home-hero-cta .arrow { font-size: 1.1rem; line-height: 1; }
.home-hero .home-hero-image {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.home-hero .home-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

/* Home section header */
.home-section { padding: 3rem 0 1rem; }
.home-section.home-section--tastings { padding: 0 0 0.5rem; }
.home-section .home-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.2rem;
    gap: 2rem;
}
.home-section .home-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
}
.home-section .home-section-eyebrow::after {
    content: '';
    width: 60px;
    height: 1px;
    background: var(--gold);
    display: inline-block;
}
.home-section .home-section-link {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--burgundy);
}
.home-section .home-section-link:hover { color: var(--burgundy-dark); }

/* Featured stories */
.featured-stories {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}
@media (max-width: 1100px) { .featured-stories { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .featured-stories { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .featured-stories { grid-template-columns: 1fr; } }

.featured-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    border: 0;
    transition: transform 0.2s ease;
}
.featured-card:hover {
    transform: translateY(-2px);
}
.featured-card .featured-image {
    aspect-ratio: 4 / 3;
    background: var(--bg-cream);
    overflow: hidden;
    margin-bottom: 1.1rem;
    border-radius: var(--border-radius);
}
.featured-card .featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: transform 0.4s ease;
}
.featured-card:hover .featured-image img {
    transform: scale(1.03);
}
.featured-card .featured-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}
.featured-card .featured-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-dark);
    margin: 0;
}
.featured-card .featured-title a { color: inherit; }
.featured-card .featured-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}
.featured-card .featured-read-more {
    margin-top: auto;
    padding-top: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--burgundy);
}
.featured-card .featured-read-more:hover { color: var(--burgundy-dark); }

/* Latest tastings — 3 items in a horizontal row, proportionally larger */
.latest-tastings {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}
@media (max-width: 900px) { .latest-tastings { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
@media (max-width: 560px) { .latest-tastings { grid-template-columns: 1fr; gap: 1.5rem; } }

.tasting-row {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: 0;
    border: 0;
    align-items: stretch;
}
.tasting-row .tasting-thumb,
.tasting-row .tasting-thumb-empty {
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    overflow: hidden;
    background: var(--bg-cream);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--border-radius);
    display: block;
}
.tasting-row .tasting-thumb-empty { border-style: dashed; }
.tasting-row .tasting-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: transform 0.4s ease;
}
.tasting-row:hover .tasting-thumb img { transform: scale(1.03); }
.tasting-row .tasting-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}
.tasting-row .tasting-title {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
}
.tasting-row .tasting-title a { color: inherit; }
.tasting-row .tasting-title a:hover { color: var(--burgundy); }
.tasting-row .tasting-meta {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}
.tasting-row .tasting-link {
    margin-top: 0.4rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--burgundy);
    white-space: nowrap;
}
.tasting-row .tasting-link:hover { color: var(--burgundy-dark); }

/* Footer */
.site-footer {
    background: var(--burgundy);
    color: #fff;
    padding: 4rem 0 1.5rem;
    margin-top: 1.5rem;
}
.site-footer .container { display: block; }
.site-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}
@media (max-width: 800px) {
    .site-footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.site-footer .footer-brand-mark {
    width: 36px;
    height: 36px;
    color: var(--gold);
    flex-shrink: 0;
}
.site-footer .footer-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
}
.site-footer .footer-tagline {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: 32ch;
    margin-bottom: 1.5rem;
}
.site-footer .footer-social { display: flex; gap: 0.6rem; }
.site-footer .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: #fff;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.site-footer .footer-social a:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
}
.site-footer .footer-social svg { width: 16px; height: 16px; }
.site-footer .footer-col-title {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.2rem;
}
.site-footer ul.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.site-footer ul.footer-links a {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    transition: color 0.2s ease;
}
.site-footer ul.footer-links a:hover { color: #fff; }
.site-footer .footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
}

/* ==========================================================================
   Mobile optimization
   --------------------------------------------------------------------------
   Consolidated responsive layer. Standard breakpoints:
     - 480px   : small phones / single-column everywhere
     - 720px   : large phones / hamburger menu kicks in
     - 960px   : tablets / side-by-side post layouts kick in
     - 1200px  : desktop container width

   Mobile-first additions follow; min-width queries layer desktop styles on
   top, max-width queries adjust collapsed layouts.
   ========================================================================== */

/* Container side padding scales down on small phones so text doesn't hug
   the viewport edge. */
@media (max-width: 480px) {
    .container { padding: 0 1rem; }
}

/* --- Mobile nav (CSS-only hamburger) --------------------------------------
   The hidden checkbox sits between the logo and the toggle button. On wide
   screens the toggle is hidden and the .nav-panel is laid out inline. On
   small screens the panel collapses; checking the box reveals it. */
.nav-toggle { display: none; }
.nav-toggle-button {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    color: var(--burgundy);
    background: transparent;
    border: 0;
    padding: 0;
}
.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-panel {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

@media (max-width: 720px) {
    .site-header .container {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .nav-toggle-button { display: inline-flex; }
    .site-header .logo-image { height: 32px; }
    .site-header .brand-mark { width: 30px; height: 30px; }

    .nav-panel {
        order: 3;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }
    .nav-toggle:checked ~ .nav-panel {
        max-height: 480px;
        padding-top: 0.75rem;
    }
    .nav-toggle:checked ~ .nav-toggle-button .nav-toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .nav-toggle:checked ~ .nav-toggle-button .nav-toggle-bar:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle:checked ~ .nav-toggle-button .nav-toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .site-header .main-nav {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    .site-header .nav-link {
        display: block;
        padding: 0.85rem 0.25rem;
        min-height: 44px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        font-size: 1.1rem;
    }
    .site-header .nav-link.active { border-bottom-color: var(--gold); }
    .site-header .social-links {
        padding: 1rem 0.25rem;
        justify-content: flex-start;
    }
    .site-header .social-links a {
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
    }
}

/* --- Tap targets ---------------------------------------------------------- */
.site-footer ul.footer-links a {
    display: inline-block;
    padding: 0.25rem 0;
    min-height: 32px;
}
@media (max-width: 720px) {
    .site-footer ul.footer-links a {
        padding: 0.5rem 0;
        min-height: 44px;
    }
}

/* --- Hero on phones ------------------------------------------------------- */
@media (max-width: 720px) {
    .home-hero { min-height: 380px; }
    .home-hero .home-hero-copy { padding: 2.25rem 1rem; }
    .home-hero .home-hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
        margin: 0.25rem 0 1rem;
    }
    .home-hero .home-hero-subhead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    .home-hero .home-hero-cta {
        padding: 0.85rem 1.4rem;
        font-size: 0.8rem;
    }

    .hero { min-height: 360px; }
    .hero-overlay .container,
    .hero-simple .container {
        padding: 2.5rem 1rem;
    }
    .hero h1,
    .hero .hero-headline {
        font-size: clamp(1.8rem, 7vw, 2.6rem);
    }
    .hero .hero-subtitle {
        font-size: clamp(1rem, 3.5vw, 1.2rem);
    }
}

/* --- Wine reviews grid ---------------------------------------------------- */
.wines-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}
@media (max-width: 960px) {
    .wines-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .wines-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* --- Cards: enforce single column on small phones, 2-up on tablets ------- */
@media (max-width: 720px) {
    .articles-grid,
    .posts-grid,
    .tastings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    .post-image img,
    .tasting-image img,
    .article-image img {
        height: 180px;
    }
}
@media (max-width: 480px) {
    .articles-grid,
    .posts-grid,
    .tastings-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Legacy floated article images: unfloat on phones --------------------- */
@media (max-width: 640px) {
    .articleImg,
    .articleImgRIght {
        float: none;
        display: block;
        margin: 1rem auto;
        padding: 0;
        max-width: 100%;
        height: auto;
    }
}

/* --- Content overflow guards (CMS-authored HTML) -------------------------- */
.post-content img,
.post-content iframe,
.post-content video {
    max-width: 100%;
    height: auto;
}
.post-content iframe { width: 100%; }
.post-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* --- Forms: stop iOS zoom-on-focus, bigger touch targets ------------------ */
.contact-form input,
.contact-form textarea {
    font-size: 16px;
    padding: 0.75rem 0.85rem;
    min-height: 44px;
}
.contact-form textarea { min-height: 9rem; }
.contact-form .btn {
    min-height: 44px;
    padding: 0.85rem 1.5rem;
}

/* --- Footer polish on small viewports ------------------------------------- */
@media (max-width: 720px) {
    .site-footer {
        padding: 2.5rem 0 1.25rem;
    }
    .site-footer-grid {
        text-align: left;
        gap: 2rem;
    }
    .site-footer .footer-tagline { max-width: none; }
}

/* --- Sticky header height trim on phones ---------------------------------- */
@media (max-width: 720px) {
    .site-header { padding: 0.65rem 0; }
}

/* --- Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   Wine Guides — home page section
   --------------------------------------------------------------------------
   Two-pane layout matching the mockup: large featured card on the left with
   an image background + gradient overlay and white copy, and a vertical list
   of additional guides on the right with small thumbnails.
   ========================================================================== */

.home-section--guides { padding: 1rem 0 4rem; }

.guides-layout {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
}

/* --- Featured card -------------------------------------------------------- */
.guide-featured {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    min-height: 360px;
    background-color: var(--burgundy-dark);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #fff;
    display: flex;
    align-items: flex-end;
}
.guide-featured .guide-featured-copy {
    position: relative;
    z-index: 1;
    padding: 2.5rem;
    max-width: 460px;
}
.guide-featured .eyebrow {
    color: var(--gold-soft);
    margin-bottom: 0.5rem;
}
.guide-featured-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 1rem;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.guide-featured-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.guide-featured-title a:hover { color: var(--gold-soft); }
.guide-featured-excerpt {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.55;
    margin: 0 0 1.5rem;
    max-width: 40ch;
}
.guide-featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #fff;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    transition: color 0.2s ease, border-color 0.2s ease;
}
.guide-featured-cta:hover {
    color: var(--gold-soft);
    border-bottom-color: var(--gold-soft);
}
.guide-featured-cta .arrow { font-size: 1.1rem; line-height: 1; }

/* --- Right list ----------------------------------------------------------- */
/* The list is a flex column that fills the featured card's height (the parent
   grid stretches both columns). `justify-content: space-between` then spaces
   the rows so the last one lines up with the bottom of the featured card. */
.guide-list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    min-height: 360px;
}
.guide-row {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 1.25rem;
    align-items: center;
}
.guide-row .guide-thumb {
    display: block;
    width: 170px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 6px;
    background: var(--bg-cream);
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.guide-row .guide-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.guide-row:hover .guide-thumb img { transform: scale(1.04); }
.guide-thumb-empty { border-style: dashed; }
.guide-row-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}
.guide-row-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    color: var(--text-dark);
}
.guide-row-title a {
    color: inherit;
    text-decoration: none;
}
.guide-row-title a:hover { color: var(--burgundy); }
.guide-row-eyebrow {
    margin: 0;
    font-size: 0.7rem;
}
.guide-row-date {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--text-muted);
}

/* --- Responsive (matches site-wide 720/480 scale) ------------------------ */
@media (max-width: 960px) {
    .guides-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .guide-featured { min-height: 300px; }
}
@media (max-width: 720px) {
    .home-section--guides { padding: 2rem 0 2.5rem; }
    .guide-featured .guide-featured-copy { padding: 1.75rem 1.25rem; }
    .guide-featured-title { font-size: clamp(1.5rem, 6vw, 2rem); }
    .guide-list { min-height: 0; gap: 1.25rem; justify-content: flex-start; }
    .guide-row { grid-template-columns: 110px 1fr; gap: 1rem; }
    .guide-row .guide-thumb { width: 110px; }
    .guide-row-title { font-size: 1rem; }
}
