/**
 * Yuminaga site theme — shared tokens from index.html
 *
 * Palette
 *   --page-bg      #fffefa  Background (warm white)
 *   --text-color   #2A2A28  Body / letter color
 *   --btn-color    #203c2b  Primary buttons & brand dark green
 *   --matcha-color #7fa24d  Matcha accent (icons / stars)
 *   --spice-color  #96141d  Spice accent (icons / stars / spice CTAs)
 *
 * Type
 *   --font-body    Times New Roman (body copy)
 *   --font-nav     Poppins (footer, matching contact page)
 *   --font-title   Cormorant Garamond (headings + header nav)
 *
 * Load after page-local <style> (and with public-site-nav.css) so these rules win.
 */

:root {
    --page-bg: #fffefa;
    --text-color: #2A2A28;
    --btn-color: #203c2b;
    --matcha-color: #7fa24d;
    --spice-color: #96141d;
    --font-body: 'Times New Roman', Times, serif;
    --font-nav: 'Poppins', sans-serif;
    --font-title: 'Cormorant Garamond', serif;
}

body {
    font-family: var(--font-body) !important;
    background-color: var(--page-bg) !important;
    color: var(--text-color) !important;
}

h1,
h2,
h3,
h4,
.serif,
.font-cormorant {
    font-family: var(--font-title) !important;
}

/* Soft cream / off-white section backgrounds → theme white */
.bg-\[\#FAFAF7\],
.bg-\[\#FAF8F3\],
.bg-\[\#F9F9F7\],
.bg-\[\#F5F3EE\],
.bg-\[\#f7f4ef\],
.bg-\[\#fafaf7\],
.bg-white {
    background-color: var(--page-bg) !important;
}

/* Keep true white only where opacity modifiers need the base (handled by Tailwind) */
.bg-white\/95,
.bg-\[\#fffefa\]\/95 {
    background-color: rgba(255, 254, 250, 0.95) !important;
}

/* Common body text utilities */
.text-\[\#1a1a1a\],
.text-black {
    color: var(--text-color) !important;
}

/* Primary brand / button green */
.text-\[\#203c2b\] {
    color: var(--btn-color) !important;
}

.bg-\[\#203c2b\] {
    background-color: var(--btn-color) !important;
}

.border-\[\#203c2b\] {
    border-color: var(--btn-color) !important;
}

/* Matcha / spice accents */
.text-\[\#7fa24d\],
.matcha-green-text {
    color: var(--matcha-color) !important;
}

.bg-\[\#7fa24d\],
.matcha-green {
    background-color: var(--matcha-color) !important;
}

.text-\[\#96141d\],
.spice-red-text {
    color: var(--spice-color) !important;
}

.bg-\[\#96141d\],
.chili-red {
    background-color: var(--spice-color) !important;
}

.border-\[\#96141d\] {
    border-color: var(--spice-color) !important;
}

/* Nav + mobile drawer — Cormorant Garamond */
#main-nav,
#main-nav a,
#main-nav button,
.mobile-menu,
.mobile-menu a,
.mobile-menu p {
    font-family: var(--font-title) !important;
}

.mobile-menu {
    background-color: var(--page-bg) !important;
}

/* Header nav type scaled +20% over the Tailwind defaults */
#main-nav .nav-links > a,
#main-nav .nav-dropdown-label,
#main-nav .nav-dropdown-toggle,
#main-nav .nav-cta {
    font-size: 1.05rem !important; /* text-sm 0.875rem × 1.2 */
}

/* Header nav bold */
#main-nav .nav-links > a,
#main-nav .nav-dropdown-label,
#main-nav .nav-dropdown-toggle,
#main-nav .nav-cta,
#main-nav .nav-dropdown-menu a,
.mobile-menu .flex.flex-col > a,
.mobile-menu .mobile-nav-contact-label,
.mobile-menu .mobile-nav-contact-group a {
    font-weight: 700 !important;
}

#main-nav .nav-cta--shopify {
    font-size: 0.9rem !important; /* text-xs 0.75rem × 1.2 */
}

@media (min-width: 1201px) {
    #main-nav .nav-cta--shopify {
        font-size: 0.88rem !important;
    }
}

@media (min-width: 1440px) {
    #main-nav .nav-cta--shopify {
        font-size: 1.05rem !important;
    }
}

#main-nav .nav-dropdown-menu a {
    color: var(--text-color) !important;
    font-family: var(--font-title) !important;
    font-size: 0.84rem !important; /* 0.7rem × 1.2 */
}

/* Mobile drawer links: text-lg 1.125rem × 1.2 */
.mobile-menu .flex.flex-col > a,
.mobile-menu .mobile-nav-contact-label,
.mobile-menu .mobile-nav-contact-group a {
    font-size: 1.35rem !important;
}

#main-nav:not(.nav-scrolled) .nav-dropdown-menu a {
    color: var(--text-color) !important;
}

/* Footer titles use display face; body copy uses Poppins, matching the contact page */
footer,
footer a,
footer p,
footer ul,
footer li {
    font-family: var(--font-nav) !important;
}

footer h3 {
    font-family: var(--font-title) !important;
}

/* Article / inquiry helpers */
.article-prose,
.inquiry-feature__body,
.faq-item,
.faq-item p,
.faq-item__answer {
    font-family: var(--font-body);
    color: var(--text-color);
}

.article-prose h2,
.article-prose h3,
.inquiry-feature__heading,
.faq-category,
.inquiry-hero__title {
    font-family: var(--font-title) !important;
}

/* Shared page hero height — match News (blog) header image */
.inquiry-hero,
.anchor-hero {
    min-height: 42vh;
}

@media (min-width: 768px) {
    .inquiry-hero,
    .anchor-hero {
        height: 48vh;
        min-height: 48vh;
        max-height: 48vh;
    }
}

.inquiry-hero__actions {
    margin-top: 1.25rem;
}

.inquiry-hero:has(.inquiry-hero__actions) .inquiry-hero__content {
    padding: 6.25rem 1.5rem 2.25rem;
}

@media (min-width: 768px) {
    .inquiry-hero:has(.inquiry-hero__actions) .inquiry-hero__content {
        padding: 7rem 3rem 2.75rem;
    }
}

/* Primary CTA hover → cream fill */
a.rounded-full.bg-\[\#203c2b\]:hover,
.brand-story-cta:hover {
    background-color: var(--page-bg) !important;
    color: var(--btn-color) !important;
}

a.rounded-full.bg-\[\#96141d\]:hover {
    background-color: var(--page-bg) !important;
    color: var(--spice-color) !important;
}

a.rounded-full.bg-\[\#7fa24d\]:hover {
    background-color: var(--page-bg) !important;
    color: var(--matcha-color) !important;
}

/* Prevent horizontal scroll from full-bleed section dashes */
body {
    overflow-x: hidden;
}

/* Section heading: long dash from viewport left + title */
.section-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.section-heading::before {
    content: '';
    display: block;
    height: 1px;
    background: #9a958c;
    flex-shrink: 0;
    width: max(2.75rem, calc(50vw - 50%));
    margin-left: calc(50% - 50vw);
}

.section-heading--light::before {
    background: rgba(255, 255, 255, 0.55);
}

/* Match "Our standard blends" size/font across Products & Locations */
.section-title,
.section-heading > h2 {
    font-family: var(--font-title) !important;
    font-size: clamp(2.25rem, 5vw, 3.25rem) !important;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: 0.01em;
    color: var(--text-color);
}

.section-heading--light .section-title,
.section-heading--light > h1,
.section-heading--light > h2,
.section-heading--light > h3 {
    color: #fff !important;
}

.section-heading .section-title,
.section-heading > h1,
.section-heading > h2,
.section-heading > h3 {
    margin-top: 0;
    margin-bottom: 0;
}
