/*
Theme Name: KRCNA 40 — Kentuckiana Regional Convention
Theme URI: https://krcna.org
Author: Custom Theme
Description: Official WordPress theme for KRCNA 40 — Kentuckiana Regional Convention of Narcotics Anonymous. Warm, welcoming design for the recovery community.
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: krcna-theme
*/

/* ============================================================
   DESIGN DIRECTION
   Warm, hopeful, community-centered. Sunrise palette — deep
   teal/forest at the bottom, amber and warm cream rising up.
   Rounded, friendly shapes. Hand-feel typography. This is a
   celebration of recovery, not a government website.
   ============================================================ */

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

:root {
    /* Warm sunrise palette */
    --teal:          #1a6b6b;
    --teal-dark:     #0f4a4a;
    --teal-deep:     #0a3535;
    --teal-light:    #2a8a8a;
    --teal-pale:     #e0f2f2;

    --amber:         #e07b2a;
    --amber-light:   #f0a050;
    --amber-warm:    #f8c070;
    --amber-pale:    #fef3e2;

    --cream:         #fdf8f0;
    --warm-white:    #fffcf7;
    --warm-gray:     #f5efe6;
    --border:        #e8ddd0;
    --border-soft:   #f0e8dc;

    --text-dark:     #1a2e2e;
    --text-body:     #3a4f4a;
    --text-muted:    #7a9490;

    --link:          #1a6b6b;
    --link-hover:    #e07b2a;

    /* Soft warm shadows */
    --shadow-sm:     0 2px 10px rgba(26,107,107,0.08);
    --shadow:        0 4px 20px rgba(26,107,107,0.12);
    --shadow-warm:   0 4px 20px rgba(224,123,42,0.15);
    --shadow-hover:  0 8px 32px rgba(26,107,107,0.18);

    /* Typography — friendly, warm, human */
    --font-display:  'Nunito', 'Trebuchet MS', sans-serif;
    --font-heading:  'Lora', Georgia, serif;
    --font-body:     'Nunito', 'Segoe UI', sans-serif;

    --max-width:     1080px;
    --radius:        12px;
    --radius-sm:     8px;
    --radius-pill:   50px;
}

/* ============================================================
   BASE
   ============================================================ */
html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background: var(--cream);
    line-height: 1.7;
}

a { color: var(--link); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--link-hover); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-heading);
    color: var(--teal-dark);
    line-height: 1.3;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1; }

/* ============================================================
   HEADER — warm sunrise gradient
   ============================================================ */
.site-header {
    background: linear-gradient(160deg, var(--teal-deep) 0%, var(--teal) 55%, var(--teal-light) 100%);
    position: relative;
    overflow: hidden;
}

/* Warm sunrise glow in top-right */
.site-header::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(240,160,80,0.28) 0%, transparent 70%);
    pointer-events: none;
}

/* Soft wave/ripple at bottom of header */
.site-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40'%3E%3Cpath d='M0,20 C200,40 400,0 600,20 C800,40 1000,0 1200,20 L1200,40 L0,40 Z' fill='%23fdf8f0'/%3E%3C/svg%3E") center bottom / cover no-repeat;
    pointer-events: none;
    z-index: 2;
}

.header-top {
    position: relative;
    z-index: 3;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 22px 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    flex: 1;
}

.site-logo img { height: 80px; width: auto; }

.site-logo-text { display: flex; flex-direction: column; gap: 3px; }

.site-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.site-title span {
    color: var(--amber-warm);
}

.site-subtitle {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255,255,255,0.82);
    letter-spacing: 0.03em;
    line-height: 1.4;
}

.site-tagline-quote {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.55);
    font-style: italic;
    margin-top: 2px;
    max-width: 400px;
    line-height: 1.45;
    font-family: var(--font-heading);
}

/* CTA Button — warm amber pill */
.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--amber-light), var(--amber));
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 12px 26px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    box-shadow: 0 4px 18px rgba(224,123,42,0.45);
    transition: all 0.22s;
    flex-shrink: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.header-cta:hover {
    background: linear-gradient(135deg, var(--amber-warm), var(--amber-light));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(224,123,42,0.55);
}

/* ============================================================
   NAVIGATION — warm teal bar
   ============================================================ */
.site-nav {
    background: var(--teal-dark);
    position: relative;
    z-index: 10;
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.primary-menu { display: flex; align-items: stretch; }
.primary-menu > li { position: relative; }

.primary-menu > li > a {
    display: flex;
    align-items: center;
    color: rgba(255,255,255,0.80);
    font-family: var(--font-display);
    font-size: 0.83rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 14px 15px;
    transition: color 0.18s, background 0.18s;
    white-space: nowrap;
    border-radius: 0;
    position: relative;
}

.primary-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 15px; right: 15px;
    height: 2px;
    background: var(--amber-light);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.2s;
}

.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a {
    color: var(--amber-warm);
    background: rgba(255,255,255,0.06);
}

.primary-menu > li > a:hover::after,
.primary-menu > li.current-menu-item > a::after {
    transform: scaleX(1);
}

.primary-menu > li.menu-item-has-children > a > span::after,
.primary-menu > li.menu-item-has-children > a::before {
    content: ' ▾';
    font-size: 0.65em;
    margin-left: 4px;
    opacity: 0.6;
}

/* Dropdowns */
.sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 210px;
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--amber);
    box-shadow: var(--shadow);
    z-index: 300;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    overflow: hidden;
}

.primary-menu > li:hover > .sub-menu { display: block; }

.sub-menu li a {
    display: block;
    color: var(--text-body);
    font-size: 0.84rem;
    font-weight: 600;
    padding: 10px 18px;
    border-bottom: 1px solid var(--border-soft);
    transition: background 0.15s, color 0.15s;
    font-family: var(--font-display);
}
.sub-menu li:last-child a { border-bottom: none; }
.sub-menu li a:hover { background: var(--amber-pale); color: var(--amber); }

.nav-cart { color: rgba(255,255,255,0.6); font-size: 0.84rem; padding: 14px 0; transition: color 0.2s; }
.nav-cart:hover { color: var(--amber-warm); }

.menu-toggle {
    display: none; background: none; border: none;
    cursor: pointer; padding: 10px; flex-direction: column; gap: 5px;
}
.menu-toggle span {
    display: block; width: 24px; height: 2px;
    background: #fff; border-radius: 2px; transition: all 0.25s;
}

/* ============================================================
   BANNER / HERO
   ============================================================ */
.site-banner {
    background: var(--teal-deep);
    position: relative;
}
.site-banner img { max-width: var(--max-width); margin: 0 auto; width: 100%; }

/* Fallback banner — sunrise gradient with big warm type */
.banner-fallback {
    background: linear-gradient(160deg, var(--teal-deep) 0%, var(--teal) 60%, #2a8a6a 100%);
    position: relative;
    overflow: hidden;
    padding: 52px 24px 72px;
    text-align: center;
}

/* Sunrise radial glow */
.banner-fallback::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(248,192,112,0.22) 0%, transparent 65%);
    pointer-events: none;
}

/* Bottom wave */
.banner-fallback::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 50px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 50'%3E%3Cpath d='M0,25 C150,50 350,0 600,25 C850,50 1050,0 1200,25 L1200,50 L0,50 Z' fill='%23fdf8f0'/%3E%3C/svg%3E") center bottom / cover no-repeat;
    pointer-events: none;
}

.banner-fallback .banner-eyebrow {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber-warm);
    margin-bottom: 10px;
    position: relative;
}

.banner-fallback .banner-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 6px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    position: relative;
}

.banner-fallback .banner-title em {
    font-style: normal;
    color: var(--amber-warm);
}

.banner-fallback .banner-sub {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.78);
    margin-bottom: 18px;
    position: relative;
}

.banner-fallback .banner-quote {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    color: rgba(255,255,255,0.70);
    font-style: italic;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
    padding: 14px 20px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    background: rgba(0,0,0,0.12);
    position: relative;
}

/* ============================================================
   QUICK LINKS — warm card grid
   ============================================================ */
.quick-links {
    background: var(--cream);
    padding: 44px 20px 52px;
}

.quick-links-inner { max-width: var(--max-width); margin: 0 auto; }

.quick-links-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-links-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* Warm, rounded, friendly cards */
.quick-link-card {
    background: var(--warm-white);
    border-radius: var(--radius);
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--border-soft);
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Warm corner accent */
.quick-link-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--amber-light), var(--teal-light));
    border-radius: var(--radius) 0 0 var(--radius);
    opacity: 0.6;
    transition: opacity 0.2s, width 0.2s;
}

.quick-link-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--shadow-warm);
    border-color: var(--amber-warm);
    color: var(--text-body);
}

.quick-link-card:hover::before {
    opacity: 1;
    width: 5px;
}

.quick-link-card h3 {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--teal-dark);
    margin: 0;
    transition: color 0.2s;
}

.quick-link-card:hover h3 { color: var(--amber); }

.quick-link-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.45;
}

/* Animated arrow */
.quick-link-card::after {
    content: '→';
    position: absolute;
    right: 16px; bottom: 20px;
    color: var(--amber-light);
    font-size: 1.1rem;
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.22s;
}

.quick-link-card:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================================
   CONTENT AREA
   ============================================================ */
.content-area {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 32px 20px;
    display: grid;
    grid-template-columns: 1fr 285px;
    gap: 28px;
    align-items: start;
}
.content-area.no-sidebar { grid-template-columns: 1fr; max-width: 820px; }

/* ============================================================
   PAGE / POST CONTENT
   ============================================================ */
.entry-content, .page-content {
    background: var(--warm-white);
    padding: 32px 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--border-soft);
}

.entry-header {
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-soft);
}

.entry-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--teal-dark);
    margin-bottom: 5px;
}

.entry-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.entry-body h2 { font-size: 1.3rem; margin: 24px 0 10px; color: var(--teal); }
.entry-body h3 { font-size: 1.08rem; margin: 18px 0 7px; color: var(--teal-light); }
.entry-body p { margin-bottom: 14px; }
.entry-body ul, .entry-body ol { margin: 0 0 14px 22px; list-style: disc; }
.entry-body ol { list-style: decimal; }
.entry-body li { margin-bottom: 6px; }
.entry-body a { color: var(--link); text-decoration: underline; }
.entry-body a:hover { color: var(--link-hover); }

.entry-body blockquote {
    border-left: 4px solid var(--amber-light);
    background: var(--amber-pale);
    padding: 16px 22px;
    margin: 20px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--teal-dark);
    font-style: italic;
}

.entry-body table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 0.88rem; border-radius: var(--radius-sm); overflow: hidden; }
.entry-body th { background: var(--teal); color: #fff; padding: 10px 15px; text-align: left; font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.05em; }
.entry-body td { padding: 9px 15px; border-bottom: 1px solid var(--border-soft); }
.entry-body tr:nth-child(even) td { background: var(--warm-gray); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { display: flex; flex-direction: column; gap: 22px; }

.widget {
    background: var(--warm-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--border-soft);
    overflow: hidden;
}

.widget-title {
    background: linear-gradient(135deg, var(--teal), var(--teal-light));
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 12px 18px;
}

.widget-content { padding: 16px 18px; }
.widget-content ul { list-style: none; margin: 0; padding: 0; }
.widget-content ul li { padding: 7px 0; border-bottom: 1px solid var(--border-soft); font-size: 0.87rem; }
.widget-content ul li:last-child { border-bottom: none; }
.widget-content ul li a { color: var(--link); font-weight: 600; }
.widget-content ul li a:hover { color: var(--link-hover); }
.widget-content p { font-size: 0.87rem; margin-bottom: 9px; }
.widget-content p:last-child { margin-bottom: 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn, button[type="submit"], input[type="submit"] {
    display: inline-block;
    background: linear-gradient(135deg, var(--teal-light), var(--teal));
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 11px 26px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: all 0.22s;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(26,107,107,0.25);
}
.btn:hover, button[type="submit"]:hover, input[type="submit"]:hover {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(26,107,107,0.35);
}
.btn-warm {
    background: linear-gradient(135deg, var(--amber-light), var(--amber));
    box-shadow: 0 3px 12px rgba(224,123,42,0.3);
}
.btn-warm:hover {
    background: linear-gradient(135deg, var(--amber-warm), var(--amber-light));
    box-shadow: 0 5px 18px rgba(224,123,42,0.4);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-field { margin-bottom: 18px; }
.form-field label {
    display: block; font-size: 0.87rem; font-weight: 700;
    color: var(--teal-dark); margin-bottom: 6px;
    font-family: var(--font-display);
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea,
.form-field select {
    width: 100%; padding: 11px 15px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-dark);
    background: var(--warm-white);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
    outline: none;
    border-color: var(--teal-light);
    box-shadow: 0 0 0 3px rgba(26,107,107,0.10);
}
.form-field textarea { min-height: 120px; resize: vertical; }

/* ============================================================
   FOOTER — deep teal, warm and earthy
   ============================================================ */
.site-footer {
    background: linear-gradient(160deg, var(--teal-deep) 0%, var(--teal-dark) 100%);
    color: rgba(255,255,255,0.65);
    padding: 56px 20px 24px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

/* Sunrise glow in footer top-right */
.site-footer::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(240,160,80,0.12) 0%, transparent 65%);
    pointer-events: none;
}

/* Wave at top of footer */
.footer-wave {
    position: absolute;
    top: -1px; left: 0; right: 0;
    height: 50px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 50'%3E%3Cpath d='M0,25 C150,50 350,0 600,25 C850,50 1050,0 1200,25 L1200,0 L0,0 Z' fill='%23fdf8f0'/%3E%3C/svg%3E") center top / cover no-repeat;
    pointer-events: none;
}

.footer-inner {
    position: relative;
    max-width: var(--max-width); margin: 0 auto;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-widget-title {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--amber-warm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(248,192,112,0.2);
}

.footer-widget p,
.footer-widget li { font-size: 0.83rem; line-height: 1.65; margin-bottom: 6px; }
.footer-widget ul { list-style: none; padding: 0; margin: 0; }
.footer-widget a { color: rgba(255,255,255,0.60); transition: color 0.2s; }
.footer-widget a:hover { color: var(--amber-warm); }
.footer-quote {
    font-style: italic;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    color: rgba(255,255,255,0.42);
    line-height: 1.6;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom {
    position: relative;
    max-width: var(--max-width); margin: 0 auto;
    padding-top: 20px;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.78rem; flex-wrap: wrap; gap: 8px;
    color: rgba(255,255,255,0.40);
}
.footer-bottom a { color: rgba(255,255,255,0.40); }
.footer-bottom a:hover { color: var(--amber-warm); }

/* ============================================================
   WP HELPERS
   ============================================================ */
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin: 0 20px 10px 0; }
.alignright { float: right; margin: 0 0 10px 20px; }
.wp-caption-text { font-size: 0.78rem; color: var(--text-muted); text-align: center; padding: 4px; }
.screen-reader-text { position: absolute; left: -9999em; top: -9999em; }

.pagination { display: flex; gap: 6px; margin-top: 24px; justify-content: center; }
.pagination .page-numbers {
    display: inline-block; padding: 8px 14px;
    background: var(--warm-white); border: 1.5px solid var(--border);
    border-radius: var(--radius-pill); color: var(--teal); font-size: 0.85rem;
    font-weight: 600; transition: all 0.18s;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ============================================================
   ANIMATIONS — gentle, hopeful
   ============================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.quick-link-card {
    animation: fadeUp 0.4s ease both;
}
.quick-link-card:nth-child(1) { animation-delay: 0.05s; }
.quick-link-card:nth-child(2) { animation-delay: 0.10s; }
.quick-link-card:nth-child(3) { animation-delay: 0.15s; }
.quick-link-card:nth-child(4) { animation-delay: 0.20s; }
.quick-link-card:nth-child(5) { animation-delay: 0.25s; }
.quick-link-card:nth-child(6) { animation-delay: 0.30s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .quick-links-grid { grid-template-columns: repeat(2, 1fr); }
    .content-area { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
    .header-top { flex-wrap: wrap; gap: 12px; padding-bottom: 22px; }
    .site-title { font-size: 1.5rem; }
    .banner-fallback .banner-title { font-size: 2rem; }

    .primary-menu {
        display: none; flex-direction: column; width: 100%;
        background: var(--teal-deep); padding: 8px 0;
    }
    .primary-menu.open { display: flex; }
    .primary-menu > li > a { padding: 13px 20px; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .primary-menu > li > a::after { display: none; }
    .sub-menu {
        position: static; display: none; box-shadow: none;
        border-top: none; border-left: 3px solid var(--amber-light);
        margin-left: 20px; background: rgba(0,0,0,0.15); border-radius: 0;
    }
    .primary-menu > li.open > .sub-menu { display: block; }
    .sub-menu li a { color: rgba(255,255,255,0.75); background: none; }
    .sub-menu li a:hover { background: rgba(255,255,255,0.08); color: var(--amber-warm); }
    .menu-toggle { display: flex; }
    .nav-inner { flex-wrap: wrap; }
    .quick-links-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .entry-content, .page-content { padding: 22px 18px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .header-cta { padding: 10px 20px; font-size: 0.84rem; }
}
