/* ============================================================
   NordicToNook — Stylesheet
   Design: Deep forest greens + warm birch off-whites + slate blue
   Type: Fraunces (display) + Inter (body)
   ============================================================ */

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

:root {
    --forest:     #2A4A35;
    --forest-mid: #3D6B4F;
    --moss:       #5C8C6A;
    --birch:      #F5F0E8;
    --birch-dark: #EBE4D6;
    --slate:      #2E4057;
    --slate-mid:  #4A6080;
    --amber:      #C4773B;
    --amber-light:#F0C27F;
    --text:       #1E2A20;
    --text-mid:   #4A5C4E;
    --text-muted: #7A8C7E;
    --white:      #FDFCF9;
    --border:     #D4CCBA;
    --radius:     6px;
    --radius-lg:  12px;
    --shadow-sm:  0 1px 3px rgba(30,42,32,.08);
    --shadow-md:  0 4px 16px rgba(30,42,32,.10);
    --font-display: 'Fraunces', Georgia, serif;
    --font-body:    'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
}

img { display: block; max-width: 100%; height: auto; }
a  { color: var(--forest-mid); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--forest); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.25;
    color: var(--forest);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Header ------------------------------------------------ */
.site-header {
    background: var(--forest);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--amber);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: .75rem;
    padding-bottom: .75rem;
    gap: 1rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    color: var(--birch);
}

.logo-mark {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--amber-light);
    letter-spacing: -.02em;
    white-space: nowrap;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-size: .95rem; font-weight: 500; color: var(--birch); }
.logo-text em { font-size: .72rem; font-style: normal; color: rgba(245,240,232,.6); }

/* Nav */
.main-nav { position: relative; }
.nav-menu {
    display: flex;
    align-items: center;
    gap: .25rem;
    list-style: none;
}

.nav-menu a {
    display: block;
    padding: .45rem .75rem;
    color: rgba(245,240,232,.85);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: background .15s, color .15s;
}
.nav-menu a:hover { background: rgba(255,255,255,.1); color: var(--birch); }

.has-dropdown { position: relative; }
.dropdown {
    display: none;
    position: absolute;
    top: calc(100% + .5rem);
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    list-style: none;
    min-width: 220px;
    padding: .5rem;
    z-index: 200;
}
.dropdown a { color: var(--text); font-size: .85rem; padding: .5rem .75rem; border-radius: var(--radius); }
.dropdown a:hover { background: var(--birch); color: var(--forest); }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .4rem;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--birch);
    border-radius: 2px;
    transition: transform .2s;
}

/* --- Hero -------------------------------------------------- */
.hero {
    background: var(--forest);
    background-image:
        radial-gradient(ellipse 80% 60% at 70% 50%, rgba(92,140,106,.25) 0%, transparent 70%),
        linear-gradient(160deg, var(--forest) 0%, var(--slate) 100%);
    padding: 5rem 0 4rem;
    color: var(--birch);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; max-width: 680px; }

.hero-eyebrow {
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--amber-light);
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 300;
    color: var(--birch);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}
.hero h1 em { font-style: italic; color: var(--amber-light); font-weight: 400; }

.hero-sub {
    font-size: 1.1rem;
    color: rgba(245,240,232,.75);
    max-width: 520px;
    margin-bottom: 2rem;
    line-height: 1.65;
}

.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* --- Buttons ----------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .7rem 1.4rem;
    border-radius: var(--radius);
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s, transform .1s;
    font-family: var(--font-body);
}
.btn:active { transform: scale(.98); }

.btn-primary {
    background: var(--amber);
    color: var(--white);
    border-color: var(--amber);
}
.btn-primary:hover { background: #B56A2E; border-color: #B56A2E; color: var(--white); }

.btn-outline {
    background: transparent;
    color: var(--birch);
    border-color: rgba(245,240,232,.4);
}
.btn-outline:hover { background: rgba(245,240,232,.1); color: var(--birch); }

.btn-ghost {
    background: transparent;
    color: var(--forest-mid);
    border-color: var(--border);
}
.btn-ghost:hover { background: var(--birch); color: var(--forest); }

.btn-sm { padding: .45rem .9rem; font-size: .8rem; }

/* --- Zone Bands ------------------------------------------- */
.zones-band {
    background: var(--birch);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 0;
}

.zones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.zone-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    text-decoration: none;
    color: var(--text);
    text-align: center;
    transition: box-shadow .15s, transform .15s, border-color .15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}
.zone-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--moss);
    color: var(--text);
}

.zone-icon { font-size: 2rem; line-height: 1; }
.zone-name { font-family: var(--font-display); font-size: .95rem; font-weight: 500; color: var(--forest); }
.zone-climate { font-size: .72rem; color: var(--text-muted); }

/* --- Section Labels --------------------------------------- */
.section { padding: 4rem 0; }
.section-alt { background: var(--birch); }

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: .5rem;
}
.section-header h2 { font-size: 1.75rem; }

/* --- Guide Cards ------------------------------------------ */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.guide-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s, transform .15s;
}
.guide-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.guide-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: .75rem; }

.guide-meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    font-size: .7rem;
    font-weight: 500;
    padding: .2rem .6rem;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: .06em;
    text-decoration: none;
}
.badge-category {
    background: var(--forest);
    color: var(--birch);
}
.badge-season {
    background: var(--birch-dark);
    color: var(--text-mid);
}
.badge-difficulty-beginner     { background: #d1fae5; color: #065f46; }
.badge-difficulty-intermediate { background: #fef3c7; color: #92400e; }
.badge-difficulty-advanced     { background: #fee2e2; color: #991b1b; }

.guide-card h3 { font-size: 1.1rem; margin: 0; }
.guide-card h3 a { color: var(--forest); text-decoration: none; }
.guide-card h3 a:hover { color: var(--forest-mid); text-decoration: underline; }

.guide-card-excerpt { font-size: .875rem; color: var(--text-mid); line-height: 1.6; flex: 1; }

.guide-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem 1.25rem;
    border-top: 1px solid var(--birch-dark);
    font-size: .78rem;
    color: var(--text-muted);
}

.guide-views { display: flex; align-items: center; gap: .25rem; }

/* --- Featured Strip --------------------------------------- */
.featured-guide {
    background: var(--forest);
    color: var(--birch);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.featured-label {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--amber-light);
    margin-bottom: .5rem;
}

.featured-guide h3 {
    font-size: 1.5rem;
    color: var(--birch);
    margin-bottom: .75rem;
}

.featured-guide p { color: rgba(245,240,232,.8); font-size: .95rem; margin-bottom: 1.25rem; }

/* --- Guide Single Page ------------------------------------ */
.guide-single { max-width: 780px; margin: 0 auto; padding: 3rem 1.5rem; }

.guide-header { margin-bottom: 2.5rem; border-bottom: 1px solid var(--border); padding-bottom: 2rem; }

.guide-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 500;
    margin: 1rem 0;
    line-height: 1.2;
}

.guide-byline {
    display: flex;
    gap: 1.25rem;
    font-size: .82rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    align-items: center;
}

.guide-byline span { display: flex; align-items: center; gap: .3rem; }

/* Guide content typography */
.guide-content { font-size: 1.0625rem; line-height: 1.8; color: var(--text); }
.guide-content h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 .75rem;
    padding-top: 2rem;
    border-top: 1px solid var(--birch-dark);
}
.guide-content h3 { font-size: 1.15rem; margin: 1.75rem 0 .5rem; color: var(--slate); }
.guide-content p  { margin-bottom: 1.25rem; }
.guide-content ul, .guide-content ol { margin: 1rem 0 1.25rem 1.5rem; }
.guide-content li { margin-bottom: .4rem; }
.guide-content strong { color: var(--forest); font-weight: 500; }
.guide-content a { color: var(--forest-mid); }

/* Affiliate box */
.affiliate-box {
    background: var(--birch);
    border: 1px solid var(--border);
    border-left: 4px solid var(--amber);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 2rem 0;
}
.affiliate-box h4 { font-size: 1rem; margin-bottom: .75rem; color: var(--forest); }
.affiliate-links-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.affiliate-links-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .6rem .9rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    font-size: .875rem;
    color: var(--text);
    transition: border-color .15s, background .15s;
}
.affiliate-links-list a:hover { border-color: var(--moss); background: var(--birch); }
.affiliate-network { font-size: .72rem; color: var(--text-muted); }
.disclosure-note { font-size: .75rem; color: var(--text-muted); margin-top: .75rem; font-style: italic; }

/* --- Search Bar ------------------------------------------- */
.search-bar { display: flex; gap: .5rem; max-width: 520px; }
.search-bar input {
    flex: 1;
    padding: .65rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: .9rem;
    background: var(--white);
    color: var(--text);
}
.search-bar input:focus { outline: 2px solid var(--moss); outline-offset: 1px; border-color: var(--moss); }
.search-bar button {
    padding: .65rem 1.25rem;
    background: var(--forest);
    color: var(--birch);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: .875rem;
    font-weight: 500;
    transition: background .15s;
}
.search-bar button:hover { background: var(--forest-mid); }

/* --- Filter Row ------------------------------------------- */
.filter-row {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 2rem;
}
.filter-row select {
    padding: .5rem .75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: .85rem;
    color: var(--text);
    background: var(--white);
    cursor: pointer;
}

/* --- Guide Listing Page ----------------------------------- */
.guides-page { padding: 3rem 0; }
.guides-page-header { margin-bottom: 2rem; }
.guides-page-header h1 { font-size: 2rem; }

/* --- Newsletter Form -------------------------------------- */
.newsletter-section {
    background: var(--slate);
    padding: 3.5rem 0;
    text-align: center;
}
.newsletter-section h2 { color: var(--birch); margin-bottom: .5rem; }
.newsletter-section p { color: rgba(245,240,232,.75); margin-bottom: 1.5rem; }

.newsletter-inline-form {
    display: flex;
    gap: .5rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 0 auto;
}
.newsletter-inline-form input {
    flex: 1;
    min-width: 200px;
    padding: .7rem 1rem;
    border-radius: var(--radius);
    border: none;
    font-family: var(--font-body);
    font-size: .9rem;
}
.newsletter-inline-form button {
    background: var(--amber);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: .7rem 1.4rem;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background .15s;
}
.newsletter-inline-form button:hover { background: #B56A2E; }

/* --- Footer ---------------------------------------------- */
.site-footer {
    background: var(--text);
    color: var(--birch);
    padding: 3.5rem 0 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    color: var(--birch);
    margin-bottom: 1rem;
}
.footer-logo strong { font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; }
.footer-logo .logo-mark { color: var(--amber-light); font-size: 1.2rem; }

.site-footer p { font-size: .875rem; color: rgba(245,240,232,.65); line-height: 1.65; }
.footer-small  { font-size: .78rem; margin-top: .75rem; }

.footer-nav h4 {
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(245,240,232,.5);
    margin-bottom: .75rem;
    font-family: var(--font-body);
}
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: .4rem; }
.footer-nav a { font-size: .875rem; color: rgba(245,240,232,.7); text-decoration: none; transition: color .15s; }
.footer-nav a:hover { color: var(--birch); }

.footer-newsletter h4 {
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(245,240,232,.5);
    margin-bottom: .75rem;
    font-family: var(--font-body);
}
.footer-newsletter p { font-size: .875rem; color: rgba(245,240,232,.65); margin-bottom: 1rem; }

.newsletter-form { display: flex; flex-direction: column; gap: .5rem; }
.newsletter-form input,
.newsletter-form select {
    padding: .6rem .85rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.08);
    color: var(--birch);
    font-family: var(--font-body);
    font-size: .85rem;
}
.newsletter-form input::placeholder { color: rgba(245,240,232,.4); }
.newsletter-form select option { background: var(--text); }
.newsletter-form button {
    padding: .6rem 1rem;
    background: var(--amber);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background .15s;
}
.newsletter-form button:hover { background: #B56A2E; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 1.25rem 0;
}
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.footer-bottom p { font-size: .8rem; color: rgba(245,240,232,.4); }

/* --- Pages (About, Privacy, etc.) ------------------------- */
.page-content { max-width: 740px; margin: 0 auto; padding: 3.5rem 1.5rem; }
.page-content h1 { font-size: 2.2rem; margin-bottom: 2rem; }
.page-content h2 { font-size: 1.35rem; margin: 2rem 0 .75rem; }
.page-content p, .page-content li { margin-bottom: .9rem; color: var(--text-mid); line-height: 1.75; }
.page-content ul { margin-left: 1.5rem; }
.page-content a { color: var(--forest-mid); }

/* --- Contact Form ----------------------------------------- */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; max-width: 580px; margin-top: 2rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .875rem; font-weight: 500; color: var(--text); }
.form-group input,
.form-group textarea,
.form-group select {
    padding: .7rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--text);
    background: var(--white);
    transition: border-color .15s;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--moss); }
.form-group textarea { min-height: 140px; resize: vertical; }

/* --- Breadcrumb ------------------------------------------- */
.breadcrumb {
    display: flex;
    gap: .4rem;
    align-items: center;
    font-size: .8rem;
    color: var(--text-muted);
    padding: 1rem 0 0;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--forest-mid); }
.breadcrumb span { color: var(--border); }

/* --- Alert Messages --------------------------------------- */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    font-size: .9rem;
    margin-bottom: 1rem;
}
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* --- Responsive ------------------------------------------- */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .featured-guide { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        display: none;
        position: absolute;
        top: calc(100% + .75rem);
        right: 0;
        background: var(--forest);
        border: 1px solid rgba(255,255,255,.1);
        border-radius: var(--radius-lg);
        flex-direction: column;
        align-items: stretch;
        min-width: 220px;
        padding: .5rem;
        box-shadow: var(--shadow-md);
    }
    .nav-menu.open { display: flex; }
    .nav-menu a { color: var(--birch); }
    .dropdown { position: static; box-shadow: none; border: none; padding: 0 0 0 .75rem; border-radius: 0; }
    .has-dropdown:hover .dropdown { display: none; }
    .has-dropdown.open .dropdown { display: block; }

    .footer-grid { grid-template-columns: 1fr; }
    .hero { padding: 3rem 0 2.5rem; }
    .guides-grid { grid-template-columns: 1fr; }
    .zones-grid  { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom .container { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
