/* ==========================================================================
   Matcha.ro – Premium Matcha Authority Site
   Design: Clean, calm, Japanese-inspired, modern editorial
   ========================================================================== */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
    /* Matcha palette */
    --matcha-50:  #f0f7f0;
    --matcha-100: #dceedd;
    --matcha-200: #b8ddb9;
    --matcha-300: #86c488;
    --matcha-400: #5ba85e;
    --matcha-500: #3d8b40;
    --matcha-600: #2d6e30;
    --matcha-700: #255828;
    --matcha-800: #1f4622;
    --matcha-900: #1a3a1c;

    /* Neutrals – warm stone */
    --stone-50:  #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;

    /* Accents */
    --cream:     #fdfcf7;
    --warm-white:#faf9f6;
    --gold:      #b8860b;
    --gold-soft: #d4a843;

    /* Semantic */
    --bg:        var(--warm-white);
    --bg-card:   #ffffff;
    --text:      var(--stone-800);
    --text-muted:var(--stone-500);
    --text-light:var(--stone-400);
    --primary:   var(--matcha-600);
    --primary-hover: var(--matcha-700);
    --primary-light: var(--matcha-100);
    --accent:    var(--gold-soft);
    --border:    var(--stone-200);
    --border-light: rgba(0,0,0,0.06);

    /* Typography */
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body:    'Outfit', -apple-system, sans-serif;

    /* Spacing */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Layout */
    --max-width:     1200px;
    --content-width: 780px;
    --radius:        8px;
    --radius-lg:     14px;
    --radius-xl:     20px;

    /* Shadows */
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md:  0 4px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    --shadow-lg:  0 10px 30px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
    --shadow-xl:  0 20px 50px rgba(0,0,0,0.10);

    /* Transitions */
    --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --duration:  0.3s;
}

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

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--duration) var(--ease); }
a:hover { color: var(--primary-hover); }

/* ---------- Utilities ---------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container--narrow {
    max-width: var(--content-width);
}

.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;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.25;
    color: var(--stone-900);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }

.label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
}

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
    line-height: 1;
}

.btn svg { width: 16px; height: 16px; }

.btn--primary {
    background: var(--primary);
    color: #fff;
}
.btn--primary:hover {
    background: var(--primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}
.btn--outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    padding: 0.5rem 0;
}
.btn--ghost:hover { color: var(--primary); }
.btn--ghost svg { transition: transform var(--duration) var(--ease); }
.btn--ghost:hover svg { transform: translateX(4px); }

.btn--sm { font-size: 0.8rem; padding: 0.5rem 1rem; }
.btn--lg { font-size: 1rem; padding: 1rem 2rem; border-radius: var(--radius-lg); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 249, 246, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--stone-900);
    text-decoration: none;
}

.site-logo__icon {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.site-logo:hover { color: var(--primary); }

.site-nav { display: flex; align-items: center; gap: 0; }

.site-nav a {
    display: block;
    padding: 0.5rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--stone-600);
    border-radius: var(--radius);
    transition: all var(--duration) var(--ease);
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--primary);
    background: var(--matcha-50);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--stone-700);
}

.mobile-toggle svg { width: 24px; height: 24px; }

/* Mobile nav */
@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    
    .site-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: var(--space-md) var(--space-lg);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }

    .site-nav.open { display: flex; }

    .site-nav a {
        padding: 0.75rem 0;
        font-size: 1rem;
        border-radius: 0;
        border-bottom: 1px solid var(--border-light);
    }
}

/* ---------- Hero ---------- */
.hero {
    padding: var(--space-4xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 100%;
    background: radial-gradient(ellipse at center, var(--matcha-100) 0%, transparent 70%);
    opacity: 0.5;
    pointer-events: none;
}

.hero__label { margin-bottom: var(--space-md); }

.hero__title {
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    margin-bottom: var(--space-lg);
    position: relative;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    font-weight: 300;
    line-height: 1.8;
}

.hero__actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Sections ---------- */
.section {
    padding: var(--space-4xl) 0;
}

.section--alt {
    background: var(--matcha-50);
}

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

.section__header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto var(--space-3xl);
}

.section__header .label { margin-bottom: var(--space-sm); }
.section__header h2 { margin-bottom: var(--space-md); }
.section__header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 300;
}

/* ---------- Cards ---------- */
.card-grid {
    display: grid;
    gap: var(--space-lg);
}

.card-grid--2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: var(--space-xl);
    transition: all var(--duration) var(--ease);
    position: relative;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--matcha-200);
}

.card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--matcha-50);
    border-radius: 12px;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.card__icon svg { width: 22px; height: 22px; }

.card__title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
    color: var(--stone-900);
}

.card__desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: var(--space-md);
}

.card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
}

.card__link svg { width: 14px; height: 14px; transition: transform var(--duration) var(--ease); }
.card:hover .card__link svg { transform: translateX(4px); }

/* Article card */
.article-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.article-card .card__meta {
    display: flex;
    gap: var(--space-md);
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

/* ---------- City cards ---------- */
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-md);
}

.city-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: all var(--duration) var(--ease);
    text-decoration: none;
    color: inherit;
}

.city-card:hover {
    border-color: var(--matcha-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: inherit;
}

.city-card__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--matcha-50);
    border-radius: 10px;
    color: var(--primary);
}

.city-card__icon svg { width: 18px; height: 18px; }

.city-card__name {
    font-family: var(--font-display);
    font-size: 1.05rem;
}

.city-card__status {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 2px;
}

/* ---------- Product / Affiliate card ---------- */
.product-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--duration) var(--ease);
}

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

.product-card__img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    background: var(--stone-100);
}

.product-card__body {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card__badges {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-bottom: var(--space-sm);
}

.badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 100px;
    background: var(--matcha-50);
    color: var(--primary);
}

.badge--gold { background: #fef3cd; color: var(--gold); }
.badge--organic { background: #e8f5e9; color: #2e7d32; }

.product-card__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: var(--space-sm);
}

.product-card__desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    flex: 1;
}

.product-card__cta {
    align-self: flex-start;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    padding: var(--space-md) 0;
    font-size: 0.82rem;
    color: var(--text-light);
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
}

.breadcrumb li::after {
    content: '/';
    margin-left: 0.4rem;
    color: var(--stone-300);
}

.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb li:last-child { color: var(--text); font-weight: 500; }

/* ---------- Article Content ---------- */
.article-header {
    text-align: center;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: var(--space-3xl) 0 var(--space-xl);
}

.article-header .label { margin-bottom: var(--space-md); }
.article-header h1 { margin-bottom: var(--space-md); }

.article-header__meta {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.article-header__meta svg { width: 16px; height: 16px; }

.article-body {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: var(--space-xl) 0 var(--space-4xl);
}

.article-body h2 {
    margin: var(--space-3xl) 0 var(--space-md);
    padding-top: var(--space-md);
}

.article-body h3 {
    margin: var(--space-2xl) 0 var(--space-sm);
}

.article-body p {
    margin-bottom: var(--space-md);
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-body ul, .article-body ol {
    margin: var(--space-md) 0 var(--space-lg) var(--space-lg);
}

.article-body li {
    margin-bottom: var(--space-sm);
    font-size: 1.02rem;
    line-height: 1.7;
}

.article-body strong { color: var(--stone-900); }

/* Info box */
.info-box {
    background: var(--matcha-50);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: var(--space-lg) var(--space-xl);
    margin: var(--space-xl) 0;
    font-size: 0.95rem;
}

.info-box p:last-child { margin-bottom: 0; }

/* ---------- TOC ---------- */
.toc {
    background: var(--stone-50);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-xl);
    margin: var(--space-xl) 0;
}

.toc__title {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.toc ol {
    list-style: none;
    counter-reset: toc;
}

.toc li {
    counter-increment: toc;
    margin-bottom: var(--space-xs);
}

.toc li a {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.92rem;
    color: var(--stone-600);
    border-radius: var(--radius);
    transition: color var(--duration) var(--ease);
}

.toc li a::before {
    content: counter(toc, decimal-leading-zero);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--matcha-400);
    min-width: 1.5em;
}

.toc li a:hover { color: var(--primary); }

.toc .toc__sub { margin-left: var(--space-xl); }
.toc .toc__sub li a::before { content: '—'; color: var(--stone-300); }

/* ---------- FAQ ---------- */
.faq-list { max-width: var(--content-width); margin: 0 auto; }

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: var(--space-lg) 0;
    font-family: var(--font-display);
    font-size: 1.1rem;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--stone-800);
    transition: color var(--duration) var(--ease);
}

.faq-question:hover { color: var(--primary); }

.faq-question svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--text-light);
    transition: transform var(--duration) var(--ease);
}

.faq-item.open .faq-question svg { transform: rotate(90deg); }

.faq-answer {
    display: none;
    padding: 0 0 var(--space-lg);
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

/* ---------- CTA Block ---------- */
.cta-block {
    background: linear-gradient(135deg, var(--matcha-600) 0%, var(--matcha-700) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl) var(--space-xl);
    text-align: center;
    color: #fff;
}

.cta-block h2 {
    color: #fff;
    margin-bottom: var(--space-md);
}

.cta-block p {
    color: rgba(255,255,255,0.85);
    max-width: 500px;
    margin: 0 auto var(--space-xl);
    font-weight: 300;
}

.cta-block .btn {
    background: #fff;
    color: var(--primary);
}

.cta-block .btn:hover {
    background: var(--cream);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* ---------- Related articles ---------- */
.related {
    border-top: 1px solid var(--border);
    padding-top: var(--space-3xl);
    margin-top: var(--space-3xl);
}

/* ---------- Affiliate disclosure ---------- */
.affiliate-disclosure {
    font-size: 0.82rem;
    color: var(--text-light);
    background: var(--stone-50);
    border-radius: var(--radius);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

/* ---------- Hub page ---------- */
.hub-intro {
    max-width: var(--content-width);
    margin: 0 auto var(--space-3xl);
    text-align: center;
}

.hub-intro h1 { margin-bottom: var(--space-md); }

.hub-intro p {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--stone-900);
    color: var(--stone-400);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: var(--space-md);
}

.footer-brand p {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--stone-500);
    line-height: 1.7;
    margin-top: var(--space-sm);
}

.footer-col h4 {
    color: var(--stone-200);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
}

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

.footer-col li { margin-bottom: var(--space-xs); }

.footer-col a {
    color: var(--stone-500);
    font-size: 0.88rem;
    transition: color var(--duration) var(--ease);
}

.footer-col a:hover { color: var(--matcha-400); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--stone-600);
    flex-wrap: wrap;
    gap: var(--space-md);
}

/* ---------- Trust bar ---------- */
.trust-bar {
    display: flex;
    justify-content: center;
    gap: var(--space-3xl);
    flex-wrap: wrap;
    padding: var(--space-xl) 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

/* ---------- Teaser / Coming Soon ---------- */
.teaser-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    background: var(--gold-soft);
    color: #fff;
}

/* ---------- Decorative ---------- */
.divider {
    width: 40px;
    height: 2px;
    background: var(--matcha-300);
    margin: var(--space-lg) auto;
}

.divider--left { margin-left: 0; }

/* ---------- Page transition ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeInUp 0.6s var(--ease) both;
}

.animate-in--d1 { animation-delay: 0.1s; }
.animate-in--d2 { animation-delay: 0.2s; }
.animate-in--d3 { animation-delay: 0.3s; }
.animate-in--d4 { animation-delay: 0.4s; }

/* ---------- 404 ---------- */
.page-404 {
    text-align: center;
    padding: var(--space-4xl) 0;
}

.page-404 h1 { font-size: 4rem; color: var(--matcha-300); }

/* ---------- Location card ---------- */
.location-card {
    position: relative;
}

.location-card .card__title a:hover {
    color: var(--primary);
}

.location-card svg {
    width: 14px;
    height: 14px;
    display: inline;
    vertical-align: middle;
}

/* ---------- Discovery link section ---------- */
.discovery-links {
    background: var(--matcha-50);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-top: var(--space-2xl);
}

.discovery-links h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
}

.discovery-links p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.discovery-links a {
    font-weight: 500;
}

/* ---------- Listing plan badges ---------- */
.badge--editorial {
    background: var(--stone-100);
    color: var(--stone-600);
}

.badge--free {
    background: transparent;
    color: var(--stone-500);
    border: 1px solid var(--stone-300);
}

.badge--featured {
    background: linear-gradient(135deg, #fef3cd 0%, #fce588 100%);
    color: var(--gold);
    font-weight: 600;
}

/* Featured location card */
.location-card--featured {
    border-color: var(--gold-soft);
    box-shadow: 0 0 0 1px rgba(212, 168, 67, 0.15);
}

.location-card--featured:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(212, 168, 67, 0.25);
}

/* ---------- Form styles ---------- */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--stone-700);
    margin-bottom: var(--space-xs);
}

.form-label small {
    font-weight: 400;
    color: var(--text-light);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.7rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--duration) var(--ease);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 110, 48, 0.1);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: var(--space-sm);
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
}

.form-success {
    background: var(--matcha-50);
    border: 1px solid var(--matcha-300);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    color: var(--primary);
}

.form-error {
    color: #c62828;
    font-size: 0.85rem;
    margin-top: var(--space-xs);
}

.hp-field { display: none !important; }

/* ---------- Pricing card ---------- */
.pricing-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    transition: all var(--duration) var(--ease);
}

.pricing-card--featured {
    border-color: var(--gold-soft);
    position: relative;
}

.pricing-card--featured::before {
    content: 'Recomandat';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold-soft);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3rem 1rem;
    border-radius: 100px;
}

.pricing-card h3 {
    margin-bottom: var(--space-sm);
}

.pricing-card .price {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--stone-900);
    margin-bottom: var(--space-md);
}

.pricing-card .price small {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: var(--space-xl);
}

.pricing-card li {
    padding: var(--space-sm) 0;
    font-size: 0.92rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.pricing-card li svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ---------- Directory filters ---------- */
.filter-bar {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
    justify-content: center;
}

.filter-btn {
    display: inline-block;
    padding: 0.45rem 1rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.filter-btn:hover { border-color: var(--matcha-300); color: var(--primary); }
.filter-btn.filter-active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Matcha marker on map */
.matcha-marker { background: none; border: none; }

/* ==========================================================================
   UX COMPRESSION PASS — Mobile density + spacing refinement
   Keep premium aesthetic, compress vertical waste
   ========================================================================== */

/* ---------- Global spacing tighten ---------- */
.section {
    padding: var(--space-3xl) 0;
}

.section__header {
    margin-bottom: var(--space-xl);
}

.section__header p {
    font-size: 1rem;
}

/* ---------- Hero compression ---------- */
.hero {
    padding: var(--space-3xl) 0 var(--space-2xl);
}

.hero__subtitle {
    font-size: 1rem;
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.hero__actions {
    gap: var(--space-sm);
}

/* ---------- Trust bar — 2x2 grid ---------- */
.trust-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md) var(--space-lg);
    padding: var(--space-md) 0;
}

.trust-item {
    font-size: 0.85rem;
}

/* ---------- Cards — tighter ---------- */
.card {
    padding: var(--space-lg);
}

.card__desc {
    font-size: 0.88rem;
    margin-bottom: var(--space-sm);
}

.card__title {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

/* ---------- Product cards — compact mobile ---------- */
.product-card__img {
    aspect-ratio: 16/9;
}

.product-card__body {
    padding: var(--space-md) var(--space-lg);
}

.product-card__title {
    font-size: 1.05rem;
}

.product-card__desc {
    font-size: 0.85rem;
    margin-bottom: var(--space-md);
}

/* ---------- Location cards — tighter ---------- */
.location-card {
    padding: var(--space-md) var(--space-lg);
}

/* ---------- City cards — tighter ---------- */
.city-card {
    padding: var(--space-md) var(--space-lg);
}

.city-grid {
    gap: var(--space-sm);
}

/* ---------- Header — slightly tighter ---------- */
.site-header__inner {
    height: 56px;
}

.site-logo {
    font-size: 1.25rem;
}

.site-logo__icon {
    width: 24px;
    height: 24px;
}

/* ---------- Article body — tighter ---------- */
.article-header {
    padding: var(--space-2xl) 0 var(--space-lg);
}

.article-body h2 {
    margin: var(--space-2xl) 0 var(--space-sm);
    padding-top: var(--space-sm);
}

.article-body h3 {
    margin: var(--space-xl) 0 var(--space-xs);
}

.article-body p {
    font-size: 1.02rem;
    line-height: 1.75;
    margin-bottom: var(--space-sm);
}

/* ---------- TOC — compact ---------- */
.toc {
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-md) 0;
}

/* ---------- FAQ — tighter ---------- */
.faq-question {
    padding: var(--space-md) 0;
    font-size: 1.02rem;
}

.faq-answer {
    padding: 0 0 var(--space-md);
    font-size: 0.92rem;
}

/* ---------- CTA block — less padding ---------- */
.cta-block {
    padding: var(--space-2xl) var(--space-lg);
}

/* ---------- Info box — compact ---------- */
.info-box {
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-md) 0;
    font-size: 0.9rem;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    padding: var(--space-sm) 0;
}

/* ---------- Hub intro ---------- */
.hub-intro {
    margin-bottom: var(--space-xl);
}

.hub-intro p {
    font-size: 1rem;
}

/* ---------- Footer — tighter ---------- */
.site-footer {
    padding: var(--space-3xl) 0 var(--space-md);
}

.footer-grid {
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

/* ---------- Related articles ---------- */
.related {
    padding-top: var(--space-2xl);
    margin-top: var(--space-2xl);
}

/* ---------- Discovery links ---------- */
.discovery-links {
    padding: var(--space-md) var(--space-lg);
    margin-top: var(--space-xl);
}

/* ---------- Pricing cards ---------- */
.pricing-card {
    padding: var(--space-xl);
}

/* ---------- Buttons — slightly tighter ---------- */
.btn--lg {
    padding: 0.85rem 1.75rem;
}

/* ---------- Divider ---------- */
.divider {
    margin: var(--space-md) auto;
}

.divider--left {
    margin-left: 0;
}

/* =============================================
   MOBILE-SPECIFIC OVERRIDES
   ============================================= */

@media (max-width: 768px) {
    /* Spacing tokens on mobile */
    :root {
        --space-3xl: 2.5rem;
        --space-4xl: 3.5rem;
    }

    /* Hero */
    .hero {
        padding: var(--space-xl) 0 var(--space-lg);
    }

    .hero__title {
        font-size: 1.8rem;
        margin-bottom: var(--space-md);
    }

    .hero__subtitle {
        font-size: 0.92rem;
        margin-bottom: var(--space-md);
    }

    .hero::before {
        opacity: 0.3;
    }

    .hero__actions {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Sections */
    .section {
        padding: var(--space-2xl) 0;
    }

    .section--alt, .section--cream {
        padding: var(--space-2xl) 0;
    }

    .section__header {
        margin-bottom: var(--space-lg);
    }

    .section__header h2 {
        font-size: 1.35rem;
    }

    .section__header p {
        font-size: 0.92rem;
    }

    /* Trust bar — compact 2x2 */
    .trust-bar {
        gap: var(--space-sm) var(--space-md);
        padding: var(--space-sm) 0;
    }

    .trust-item {
        font-size: 0.8rem;
        gap: 0.35rem;
    }

    .trust-item svg {
        width: 16px;
        height: 16px;
    }

    /* Cards */
    .card {
        padding: var(--space-md);
    }

    .card-grid {
        gap: var(--space-md);
    }

    .card__title {
        font-size: 1.02rem;
    }

    .card__desc {
        font-size: 0.85rem;
        line-height: 1.55;
    }

    /* Product cards — compact */
    .product-card__img {
        aspect-ratio: 2/1;
        max-height: 120px;
    }

    .product-card__body {
        padding: var(--space-md);
    }

    .product-card__title {
        font-size: 1rem;
    }

    .product-card__desc {
        font-size: 0.82rem;
        line-height: 1.5;
        margin-bottom: var(--space-sm);
    }

    /* Location cards */
    .location-card {
        padding: var(--space-md);
    }

    /* City grid */
    .city-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
    }

    .city-card {
        padding: var(--space-sm) var(--space-md);
    }

    .city-card__name {
        font-size: 0.95rem;
    }

    .city-card__icon {
        width: 34px;
        height: 34px;
    }

    .city-card__icon svg {
        width: 15px;
        height: 15px;
    }

    /* Header */
    .site-header__inner {
        height: 52px;
    }

    .site-logo {
        font-size: 1.15rem;
    }

    .site-logo__icon {
        width: 22px;
        height: 22px;
    }

    /* Article header */
    .article-header {
        padding: var(--space-lg) 0 var(--space-md);
    }

    .article-header h1 {
        font-size: 1.6rem;
    }

    .article-header__meta {
        font-size: 0.82rem;
        gap: var(--space-md);
    }

    /* Article body */
    .article-body h2 {
        font-size: 1.25rem;
        margin: var(--space-xl) 0 var(--space-sm);
        padding-top: 0;
    }

    .article-body h3 {
        font-size: 1.1rem;
    }

    .article-body p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .article-body li {
        font-size: 0.93rem;
    }

    /* TOC */
    .toc {
        padding: var(--space-sm) var(--space-md);
    }

    .toc li a {
        font-size: 0.85rem;
        padding: 0.25rem 0;
    }

    /* FAQ */
    .faq-question {
        font-size: 0.95rem;
        padding: var(--space-sm) 0;
    }

    /* CTA */
    .cta-block {
        padding: var(--space-xl) var(--space-md);
        border-radius: var(--radius-lg);
    }

    .cta-block h2 {
        font-size: 1.3rem;
    }

    .cta-block p {
        font-size: 0.9rem;
    }

    /* Buttons */
    .btn--lg {
        font-size: 0.92rem;
        padding: 0.75rem 1.5rem;
    }

    /* Hub intro */
    .hub-intro h1 {
        font-size: 1.6rem;
    }

    .hub-intro p {
        font-size: 0.92rem;
    }

    /* Info box */
    .info-box {
        padding: var(--space-sm) var(--space-md);
    }

    /* Footer */
    .site-footer {
        padding: var(--space-2xl) 0 var(--space-md);
    }

    .footer-grid {
        gap: var(--space-lg);
        margin-bottom: var(--space-lg);
    }

    .footer-brand p {
        font-size: 0.82rem;
    }

    .footer-col h4 {
        font-size: 0.88rem;
        margin-bottom: var(--space-sm);
    }

    .footer-col a {
        font-size: 0.82rem;
    }

    /* Filter bar */
    .filter-bar {
        margin-bottom: var(--space-lg);
    }

    .filter-btn {
        font-size: 0.75rem;
        padding: 0.35rem 0.8rem;
    }

    /* Pricing */
    .pricing-card {
        padding: var(--space-lg);
    }

    .pricing-card .price {
        font-size: 1.6rem;
    }

    /* Form */
    .form-row {
        gap: var(--space-sm);
    }

    .form-group {
        margin-bottom: var(--space-md);
    }

    /* Discovery links */
    .discovery-links {
        padding: var(--space-sm) var(--space-md);
    }

    /* Breadcrumb */
    .breadcrumb {
        font-size: 0.78rem;
    }

    /* Page 404 */
    .page-404 h1 {
        font-size: 3rem;
    }

    /* Badge */
    .badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }

    /* Related */
    .related {
        padding-top: var(--space-xl);
        margin-top: var(--space-xl);
    }

    /* Affiliate disclosure */
    .affiliate-disclosure {
        font-size: 0.78rem;
        padding: var(--space-sm) var(--space-md);
    }
}

/* Tablet refinement */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero {
        padding: var(--space-2xl) 0;
    }

    .section {
        padding: var(--space-2xl) 0;
    }

    .product-card__img {
        aspect-ratio: 16/9;
        max-height: 160px;
    }

    .trust-bar {
        grid-template-columns: repeat(4, auto);
        justify-content: center;
    }
}

/* ==========================================================================
   IMAGE SYSTEM — Visual polish + fallback system
   ========================================================================== */

/* ---------- Article card with image ---------- */
.article-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.article-card__img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin: calc(var(--space-lg) * -1) calc(var(--space-lg) * -1) 0;
    width: calc(100% + var(--space-lg) * 2);
}

.article-card__body {
    padding-top: var(--space-md);
}

/* ---------- Product card fallback ---------- */
.product-card__img--fallback {
    object-fit: contain;
    background: #f0f7f0;
    padding: var(--space-md);
}

/* ---------- Hero with pattern ---------- */
.hero {
    position: relative;
    background-image: url('/assets/img/homepage/hero-pattern.svg');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 50% auto;
}

.hero::before {
    background: radial-gradient(ellipse at 30% 50%, var(--matcha-100) 0%, transparent 70%);
}

/* ---------- Location card fallback image ---------- */
.location-card__visual {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
    margin: calc(var(--space-md) * -1) calc(var(--space-lg) * -1) var(--space-sm);
    width: calc(100% + var(--space-lg) * 2);
}

/* ---------- Mobile image adjustments ---------- */
@media (max-width: 768px) {
    .article-card__img {
        height: 100px;
        margin: calc(var(--space-md) * -1) calc(var(--space-md) * -1) 0;
        width: calc(100% + var(--space-md) * 2);
    }

    .hero {
        background-size: 60% auto;
        background-position: right bottom;
    }

    .product-card__img {
        max-height: 100px;
    }

    .product-card__img--fallback {
        max-height: 80px;
        padding: var(--space-sm);
    }
}

@media (min-width: 769px) {
    .article-card__img {
        height: 160px;
    }
}

/* ==========================================================================
   AD WIDGET — Product recommendation component
   ========================================================================== */

.ad-widget {
    background: var(--bg-card);
    border: 1.5px solid var(--matcha-200);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
    position: relative;
}

.ad-widget--promo { border-color: var(--matcha-300); background: linear-gradient(135deg, #fdfcf7 0%, var(--matcha-50) 100%); }
.ad-widget--featured { border-color: var(--gold-soft); background: linear-gradient(135deg, #fdfcf7 0%, #fef8e8 100%); }
.ad-widget--info { border-color: var(--border); }
.ad-widget--minimal { border-color: var(--border-light); padding: var(--space-md); }

.ad-widget__inner {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

.ad-widget__badge {
    position: absolute;
    top: -10px;
    right: var(--space-lg);
    background: var(--primary);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.7rem;
    border-radius: 100px;
}

.ad-widget--featured .ad-widget__badge { background: var(--gold-soft); }

.ad-widget__img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: var(--radius);
    background: var(--stone-50);
    flex-shrink: 0;
}

.ad-widget__content { flex: 1; min-width: 0; }

.ad-widget__brand {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.ad-widget__title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--stone-900);
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.ad-widget__desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: var(--space-sm);
}

.ad-widget__code {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--stone-50);
    border: 1px dashed var(--matcha-300);
    border-radius: var(--radius);
    padding: 0.35rem 0.7rem;
    margin-bottom: var(--space-sm);
}

.ad-widget__code code {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.05em;
}

.ad-widget__copy {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    font-family: var(--font-body);
}

.ad-widget__copy:hover { color: var(--primary); }

.ad-widget__cta { margin-top: var(--space-xs); }

.ad-widget__disclosure {
    display: block;
    text-align: right;
    font-size: 0.68rem;
    color: var(--text-light);
    margin-top: var(--space-sm);
}

@media (max-width: 600px) {
    .ad-widget__inner { flex-direction: column; gap: var(--space-md); }
    .ad-widget__img { width: 80px; height: 80px; }
    .ad-widget__title { font-size: 0.95rem; }
    .ad-widget__desc { font-size: 0.82rem; }
}

/* ==========================================================================
   DISCOVERY BLOCKS — Internal linking components
   ========================================================================== */

.discover-block {
    background: var(--stone-50);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
}

.discover-block__title {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.discover-block__title svg { width: 16px; height: 16px; color: var(--primary); }

.discover-block__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.discover-block__links a {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--primary);
    background: var(--bg-card);
    border: 1px solid var(--matcha-200);
    border-radius: 100px;
    padding: 0.3rem 0.8rem;
    text-decoration: none;
    transition: all var(--duration) var(--ease);
}

.discover-block__links a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Discovery grid for 2 side-by-side blocks */
.discover-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

@media (max-width: 600px) {
    .discover-grid { grid-template-columns: 1fr; }
    .discover-block { padding: var(--space-md); }
    .discover-block__links a { font-size: 0.78rem; padding: 0.25rem 0.65rem; }
}

/* ==========================================================================
   ARTICLE IMAGE REFINEMENTS — Tighter, more editorial
   ========================================================================== */

/* Article card images — tighter on all screens */
.article-card__img {
    height: 120px;
}

@media (max-width: 768px) {
    .article-card__img { height: 80px; }
}

@media (min-width: 769px) {
    .article-card__img { height: 120px; }
}

/* Article header — no hero image waste */
.article-header {
    padding: var(--space-xl) 0 var(--space-md);
    text-align: center;
}

@media (max-width: 768px) {
    .article-header { padding: var(--space-lg) 0 var(--space-sm); }
    .article-header h1 { font-size: 1.5rem; }
}

/* Tighter article body sections */
.article-body .discover-block { margin: var(--space-lg) 0; }
.article-body .ad-widget { margin: var(--space-xl) 0; }
