/*
Theme Name:  Food Friends Travel
Theme URI:   https://www.foodfriendstravel.com
Author:      Steven Tanner
Author URI:  https://www.foodfriendstravel.com
Description: A clean, minimal custom theme for Food Friends Travel — built on Underscores. Supports blog posts, photography, video embeds, custom post types, sidebar widgets, and WooCommerce (optional).
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fft
Tags:        blog, portfolio, food, travel, clean, minimal, responsive
*/

/* =========================================================
   CSS CUSTOM PROPERTIES — Edit colors & fonts here
   ========================================================= */
:root {
    /* Brand Colors */
    --color-navy:       #1b2a4a;
    --color-gold:       #c9a84c;
    --color-gold-light: #e2c882;
    --color-gold-dark:  #a6873a;

    /* UI Colors */
    --color-bg:         #ffffff;
    --color-bg-light:   #f7f7f5;
    --color-text:       #2b2b2b;
    --color-muted:      #777777;
    --color-border:     #e5e5e5;
    --color-white:      #ffffff;

    /* Typography */
    --font-main:        'Exo', system-ui, sans-serif;
    --fw-light:         300;
    --fw-regular:       400;
    --fw-semibold:      600;

    /* Spacing */
    --space-xs:         0.4rem;
    --space-sm:         0.8rem;
    --space-md:         1.5rem;
    --space-lg:         2.5rem;
    --space-xl:         4rem;

    /* Layout */
    --max-width:        1140px;
    --content-width:    740px;
    --sidebar-width:    280px;
    --nav-height:       64px;

    /* Effects */
    --radius:           4px;
    --shadow-sm:        0 1px 4px rgba(0,0,0,0.08);
    --shadow-md:        0 4px 16px rgba(0,0,0,0.10);
    --transition:       0.2s ease;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family:    var(--font-main);
    font-weight:    var(--fw-regular);
    font-size:      1rem;
    line-height:    1.75;
    color:          var(--color-text);
    background:     var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-gold); }
ul, ol { padding-left: 1.5rem; }

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
    font-family:    var(--font-main);
    font-weight:    var(--fw-semibold);
    line-height:    1.25;
    color:          var(--color-navy);
    margin-bottom:  var(--space-sm);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }

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

.entry-content p,
.entry-content li,
.entry-content td {
    font-size: 1.0625rem;
    line-height: 1.8;
}

blockquote {
    border-left: 4px solid var(--color-gold);
    padding: var(--space-sm) var(--space-md);
    margin: var(--space-md) 0;
    color: var(--color-muted);
    font-weight: var(--fw-light);
    font-size: 1.15rem;
    background: var(--color-bg-light);
}

code, pre {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    background: var(--color-bg-light);
    border-radius: var(--radius);
}
pre { padding: var(--space-md); overflow-x: auto; }
code { padding: 0.1em 0.4em; }

hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--space-lg) 0;
}

/* =========================================================
   LAYOUT — WRAPPER & GRID
   ========================================================= */
.site-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.content-area {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: var(--space-xl);
    align-items: start;
    padding: var(--space-xl) 0;
}

.content-area.no-sidebar {
    grid-template-columns: 1fr;
    max-width: var(--content-width);
    margin: 0 auto;
}

.content-area.full-width {
    grid-template-columns: 1fr;
}

/* =========================================================
   HEADER & BRANDING
   ========================================================= */
.site-header {
    background: var(--color-navy);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

/* Logo banner */
.header-logo-bar {
    background: var(--color-navy);
    border-bottom: 1px solid rgba(201,168,76,0.3);
    padding: var(--space-sm) 0;
}

.header-logo-bar .site-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-branding a,
.site-branding .site-name {
    display: flex;
    align-items: center;
    color: var(--color-white);
    font-weight: var(--fw-semibold);
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
}
.site-branding a:hover { color: var(--color-gold); }

.site-branding img.custom-logo {
    max-height: 100px;
    width: auto;
    display: block;
}

/* Nav bar */
.header-nav-bar {
    background: var(--color-navy);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.header-nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--nav-height);
    position: relative;
}

/* Legacy .header-inner — keep for compat */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.main-navigation { display: flex; align-items: center; width: 100%; justify-content: center; }

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0;
    justify-content: center;
}

.main-navigation > ul > li { position: relative; }

.main-navigation > ul > li > a {
    display: block;
    padding: 0 var(--space-md);
    height: 48px;
    line-height: 48px;
    color: rgba(255,255,255,0.85);
    font-weight: var(--fw-regular);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color var(--transition), background var(--transition);
}

.main-navigation > ul > li > a:hover,
.main-navigation > ul > li.current-menu-item > a,
.main-navigation > ul > li.current-menu-ancestor > a {
    color: var(--color-gold);
    background: rgba(255,255,255,0.04);
}

/* Dropdown */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 48px;
    left: 0;
    min-width: 200px;
    background: var(--color-navy);
    box-shadow: var(--shadow-md);
    border-top: 2px solid var(--color-gold);
    flex-direction: column;
    z-index: 200;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li:focus-within > ul { display: flex; }

.main-navigation ul ul li a {
    display: block;
    padding: 0.65rem var(--space-md);
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background var(--transition), color var(--transition);
}
.main-navigation ul ul li a:hover {
    background: rgba(201,168,76,0.12);
    color: var(--color-gold);
}

/* Mobile toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    color: var(--color-white);
}
.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    margin: 4px 0;
    transition: transform var(--transition), opacity var(--transition);
}

/* =========================================================
   HERO / FEATURED IMAGE BANNER
   ========================================================= */
.hero-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--color-navy);
}

.hero-banner img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.hero-banner .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(27,42,74,0.0) 0%, rgba(27,42,74,0.0) 0%);
    display: flex;
    align-items: flex-end;
    padding: var(--space-xl) var(--space-lg);
}

.hero-banner .hero-text {
    color: var(--color-white);
    max-width: 700px;
}
.hero-banner .hero-text h1 {
    color: var(--color-white);
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    margin-bottom: var(--space-xs);
}
.hero-banner .hero-text .hero-meta {
    color: var(--color-gold-light);
    font-size: 0.875rem;
    font-weight: var(--fw-light);
    letter-spacing: 0.04em;
}

/* Home hero (larger) */
.home .hero-banner img { height: 500px; object-position: center 40%; }

/* Hero banner adjustments */
.hero-banner img { height: 340px; object-position: center 30%; }

/* =========================================================
   PAGE TITLE BAR (no featured image)
   ========================================================= */
.page-title-bar {
    background: var(--color-bg-light);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-lg) 0;
}
.page-title-bar h1 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin: 0;
}
.page-title-bar .breadcrumb {
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-top: var(--space-xs);
}
.page-title-bar .breadcrumb a { color: var(--color-muted); }
.page-title-bar .breadcrumb a:hover { color: var(--color-gold); }

/* =========================================================
   POST CARDS (Archive / Blog index)
   ========================================================= */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.post-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.post-card .card-thumb {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
}
.post-card .card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-card:hover .card-thumb img { transform: scale(1.04); }

.post-card .card-body {
    flex: 1;
    padding: var(--space-md);
}

.post-card .card-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-gold-dark);
    margin-bottom: var(--space-xs);
}

.post-card .card-title {
    font-size: 1.05rem;
    font-weight: var(--fw-semibold);
    color: var(--color-navy);
    line-height: 1.35;
    margin-bottom: var(--space-xs);
}
.post-card .card-title a { color: inherit; }
.post-card .card-title a:hover { color: var(--color-gold-dark); }

.post-card .card-excerpt {
    font-size: 0.875rem;
    color: var(--color-muted);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card .card-meta {
    font-size: 0.775rem;
    color: var(--color-muted);
    font-weight: var(--fw-light);
}

/* =========================================================
   SINGLE POST / PAGE
   ========================================================= */
.entry-header { margin-bottom: var(--space-lg); }

.entry-meta {
    font-size: 0.825rem;
    color: var(--color-muted);
    font-weight: var(--fw-light);
    margin-bottom: var(--space-md);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    align-items: center;
}
.entry-meta .sep { color: var(--color-border); }
.entry-meta a { color: var(--color-muted); }
.entry-meta a:hover { color: var(--color-gold); }

.entry-content { max-width: 100%; }
.entry-content h2,
.entry-content h3,
.entry-content h4 { margin-top: var(--space-lg); }

.entry-content a {
    color: var(--color-gold-dark);
    text-decoration: underline;
    text-decoration-color: var(--color-gold-light);
    text-underline-offset: 2px;
}
.entry-content a:hover { color: var(--color-navy); }

.entry-content img {
    border-radius: var(--radius);
    margin: var(--space-md) 0;
}

/* Post navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}
.post-navigation a {
    display: block;
    font-size: 0.85rem;
    color: var(--color-muted);
}
.post-navigation .nav-title {
    display: block;
    font-weight: var(--fw-semibold);
    color: var(--color-navy);
    font-size: 0.95rem;
    margin-top: var(--space-xs);
}
.post-navigation .nav-next { text-align: right; }

/* =========================================================
   SIDEBAR & WIDGETS
   ========================================================= */
.widget-area { font-size: 0.9rem; }

.widget {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}
.widget:last-child { border-bottom: none; }

.widget-title {
    font-size: 0.75rem;
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-navy);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid var(--color-gold);
    display: inline-block;
}

.widget ul { list-style: none; padding: 0; }
.widget ul li {
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.875rem;
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--color-text); }
.widget ul li a:hover { color: var(--color-gold); padding-left: 4px; transition: padding var(--transition); }

/* Recent posts widget thumbnail */
.widget_recent_entries li { display: flex; gap: var(--space-sm); align-items: flex-start; }
.widget_recent_entries li img { width: 64px; height: 48px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }

/* Search widget */
.widget_search .search-form { display: flex; gap: 0; }
.widget_search input[type="search"] {
    flex: 1;
    padding: 0.5rem var(--space-sm);
    border: 1px solid var(--color-border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-family: var(--font-main);
    font-size: 0.875rem;
    outline: none;
}
.widget_search input[type="search"]:focus { border-color: var(--color-gold); }
.widget_search button {
    background: var(--color-navy);
    color: var(--color-white);
    border: none;
    padding: 0.5rem var(--space-sm);
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background var(--transition);
}
.widget_search button:hover { background: var(--color-gold-dark); }

/* =========================================================
   FORMS (Contact Form 7 + generic)
   ========================================================= */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 0.65rem var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-main);
    font-size: 0.9375rem;
    color: var(--color-text);
    background: var(--color-bg);
    transition: border-color var(--transition);
    outline: none;
    margin-bottom: var(--space-sm);
}
.wpcf7 input:focus,
.wpcf7 textarea:focus,
input:focus,
textarea:focus { border-color: var(--color-gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.12); }

.wpcf7 input[type="submit"],
button[type="submit"],
.btn {
    background: var(--color-navy);
    color: var(--color-white);
    border: 2px solid var(--color-navy);
    padding: 0.65rem var(--space-lg);
    font-family: var(--font-main);
    font-size: 0.875rem;
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}
.wpcf7 input[type="submit"]:hover,
button[type="submit"]:hover,
.btn:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-navy);
}
.btn-outline {
    background: transparent;
    color: var(--color-navy);
    border: 2px solid var(--color-navy);
}
.btn-outline:hover {
    background: var(--color-navy);
    color: var(--color-white);
}

/* =========================================================
   TABLES (Cruise comparison & general)
   ========================================================= */
.entry-content table,
.fft-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    margin: var(--space-md) 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.entry-content table th,
.fft-table th {
    background: var(--color-navy);
    color: var(--color-white);
    padding: 0.75rem var(--space-sm);
    text-align: left;
    font-weight: var(--fw-semibold);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.entry-content table td,
.fft-table td {
    padding: 0.65rem var(--space-sm);
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}
.entry-content table tr:nth-child(even),
.fft-table tr:nth-child(even) { background: var(--color-bg-light); }
.entry-content table tr:hover,
.fft-table tr:hover { background: rgba(201,168,76,0.06); }

/* Responsive table wrapper */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* =========================================================
   PHOTO GALLERY CPT
   ========================================================= */
.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-sm);
}
.photo-gallery-grid figure {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    position: relative;
}
.photo-gallery-grid figure img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
    margin: 0;
}
.photo-gallery-grid figure:hover img { transform: scale(1.05); }
.photo-gallery-grid figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(27,42,74,0.85), transparent);
    color: var(--color-white);
    font-size: 0.75rem;
    padding: var(--space-sm);
    opacity: 0;
    transition: opacity var(--transition);
}
.photo-gallery-grid figure:hover figcaption { opacity: 1; }

/* =========================================================
   VIDEO EMBED CPT
   ========================================================= */
.video-embed-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    margin: var(--space-md) 0;
}
.video-embed-wrap iframe,
.video-embed-wrap embed,
.video-embed-wrap object {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

/* =========================================================
   HOMEPAGE ABOUT BLURB
   ========================================================= */
.home-about {
    background: var(--color-bg-light);
    text-align: center;
    padding: var(--space-lg) 0 !important;
}

.home-about-inner {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.home-about-text {
    font-size: 1.05rem;
    color: var(--color-muted);
    line-height: 1.8;
    margin: 0;
    font-weight: var(--fw-light);
}

/* =========================================================
   HOMEPAGE SECTIONS
   ========================================================= */
.home-section { padding: var(--space-xl) 0; }
.home-section + .home-section { border-top: 1px solid var(--color-border); }

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}
.section-header h2 { margin: 0; }
.section-header .view-all {
    font-size: 0.8rem;
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-gold-dark);
}
.section-header .view-all:hover { color: var(--color-navy); }

/* Category nav links on homepage */
.category-tiles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
    padding: var(--space-md) 0;
}

.category-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0.5rem var(--space-sm);
    position: relative;
    transition: all var(--transition);
}

.category-tile::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-gold);
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: center;
}

.category-tile:hover::after,
.category-tile:focus::after {
    transform: scaleX(1);
}

.category-tile .tile-icon {
    width: 32px;
    height: 32px;
    stroke: var(--color-navy);
    fill: none;
    stroke-width: 1.5;
    transition: stroke var(--transition);
}

.category-tile:hover .tile-icon {
    stroke: var(--color-gold-dark);
}

.category-tile .tile-label {
    font-size: 0.75rem;
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-navy);
    transition: color var(--transition);
}

.category-tile:hover .tile-label {
    color: var(--color-gold-dark);
}

@media (max-width: 768px) {
    .category-tiles {
        gap: var(--space-md);
    }
    .category-tile .tile-icon {
        width: 26px;
        height: 26px;
    }
    .category-tile .tile-label {
        font-size: 0.7rem;
    }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    background: var(--color-navy);
    color: rgba(255,255,255,0.7);
    padding: var(--space-xl) 0 var(--space-lg);
    margin-top: var(--space-xl);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-widget .widget-title {
    color: var(--color-gold);
    border-bottom-color: var(--color-gold);
}
.footer-widget a { color: rgba(255,255,255,0.65); }
.footer-widget a:hover { color: var(--color-gold); }
.footer-widget ul li { border-bottom-color: rgba(255,255,255,0.08); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: var(--color-gold); }

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination {
    display: flex;
    gap: var(--space-xs);
    justify-content: center;
    padding: var(--space-lg) 0;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--color-text);
    transition: all var(--transition);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--color-navy);
    border-color: var(--color-navy);
    color: var(--color-white);
}

/* =========================================================
   UTILITY CLASSES
   ========================================================= */
.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%); height: 1px; margin: -1px;
    overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.text-gold   { color: var(--color-gold); }
.text-navy   { color: var(--color-navy); }
.text-muted  { color: var(--color-muted); }
.bg-light    { background: var(--color-bg-light); }
.mt-lg       { margin-top: var(--space-lg); }
.mb-lg       { margin-bottom: var(--space-lg); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
    .content-area {
        grid-template-columns: 1fr;
    }
    .widget-area {
        border-top: 1px solid var(--color-border);
        padding-top: var(--space-lg);
    }
}

@media (max-width: 768px) {
    :root { --nav-height: 56px; }

    .menu-toggle { display: flex; flex-direction: column; }

    .main-navigation {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--color-navy);
        border-top: 2px solid var(--color-gold);
        box-shadow: var(--shadow-md);
        padding: var(--space-sm) 0;
        z-index: 99;
    }
    .main-navigation.is-open { display: block; }
    .main-navigation ul { flex-direction: column; }
    .main-navigation > ul > li > a { height: auto; line-height: 1.5; padding: 0.75rem var(--space-md); }
    .main-navigation ul ul {
        position: static;
        border-top: none;
        border-left: 3px solid var(--color-gold);
        margin-left: var(--space-md);
        box-shadow: none;
        display: block;
    }

    .hero-banner img { height: 280px; }
    .home .hero-banner img { height: 340px; }

    .posts-grid { grid-template-columns: 1fr; }
    .category-tiles { grid-template-columns: repeat(3, 1fr); }

    .footer-widgets { grid-template-columns: 1fr 1fr; }

    .post-navigation { grid-template-columns: 1fr; }
    .post-navigation .nav-next { text-align: left; }
}

@media (max-width: 480px) {
    .category-tiles { grid-template-columns: repeat(2, 1fr); }
    .footer-widgets { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* =========================================================
   FOOTER LINK COLORS
   ========================================================= */
.site-footer .widget ul li a,
.site-footer .widget a,
.site-footer .footer-widget a,
.site-footer .widget_pages li a,
.site-footer .widget_recent_entries li a,
.site-footer .widget_categories li a,
.site-footer p,
.site-footer li {
    color: rgba(255, 255, 255, 0.75);
}

/* Center footer navigation menu */
.footer-widget .widget_nav_menu ul {
    text-align: center;
    padding-left: 0;
    list-style: none;
}
.footer-widget .widget_nav_menu ul li { text-align: center; }
.footer-widget .widget_nav_menu ul li a {
    display: block;
    text-align: center;
}

/* =========================================================
   HERO — HIDE TEXT OVERLAY
   ========================================================= */
.hero-banner .hero-text h1 { display: none; }
.hero-banner .hero-text .hero-meta { display: none; }

/* =========================================================
   HOMEPAGE — SECTION LAYOUT
   ========================================================= */
/* Hide Explore section on desktop, show on mobile only */
.home-section[aria-labelledby="categories-heading"] { display: none; }

/* Center Latest Posts heading, keep View All inline */
.home-section[aria-labelledby="latest-heading"] .section-header {
    justify-content: center;
    position: relative;
}
.home-section[aria-labelledby="latest-heading"] .section-header h2 {
    text-align: center;
    width: 100%;
}
.home-section[aria-labelledby="latest-heading"] .section-header .view-all {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Gap between hero banner and about blurb */
.home-about { margin-top: var(--space-lg); }

/* =========================================================
   FEATURED IMAGE IN POST BODY
   ========================================================= */
.post-featured-image {
    width: 100%;
    margin-bottom: 2rem;
}
.post-featured-image img {
    width: 100% !important;
    height: auto !important;
    display: block;
}

/* =========================================================
   MOBILE OVERRIDES
   ========================================================= */
@media (max-width: 768px) {
    .site-branding img.custom-logo { max-height: 60px; }
    .header-logo-bar { padding: 0.5rem 0; }

    .hero-banner img,
    .home .hero-banner img { height: 140px; }

    /* Show Explore section on mobile, hide heading */
    .home-section[aria-labelledby="categories-heading"] { display: block; border-top: none; padding-top: var(--space-md); }
    #categories-heading { display: none; }
}

/* =========================================================
   PRINT
   ========================================================= */
@media print {
    .site-header, .site-footer, .widget-area, .post-navigation { display: none; }
    .content-area { grid-template-columns: 1fr; }
    body { font-size: 12pt; color: #000; }
    a { color: #000; text-decoration: underline; }
}
