/* ===== 4WAVE Antennas - Master Stylesheet ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
    --primary: #0066cc;
    --primary-dark: #004c99;
    --light-bg: #ffffff;
    --card-bg: #ffffff;
    --text-color: #333333;
    --navy: #003366;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- Header & Nav Logic --- */
header {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 51, 102, 0.12);
    box-shadow: 0 1px 3px rgba(0, 51, 102, 0.06);
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allows nav to drop below logo on mobile */
}

.logo {
    max-width: 180px;
    height: auto;
    display: block;
}

/* Hamburger - Hidden by default on Desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

/* Desktop Navigation */
nav {
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease, opacity 0.2s ease;
}

nav a:hover {
    color: var(--primary-dark);
}

/* --- Mobile Responsiveness (The Safari Fix) --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Show hamburger */
    }

    nav {
        display: none; /* Default hidden */
        width: 100%;
        flex-direction: column;
        background: var(--card-bg);
        margin-top: 1rem;
        border: 1px solid rgba(0, 51, 102, 0.12);
        border-radius: 10px;
        box-shadow: 0 8px 24px rgba(0, 51, 102, 0.08);
        gap: 0; /* Stack links tightly */
        overflow: hidden;
    }

    /* When JS toggles 'active' */
    nav.active {
        display: flex;
    }

    nav a {
        display: block;
        padding: 1rem;
        margin: 0;
        border-bottom: 1px solid rgba(0, 51, 102, 0.08);
        text-align: center;
        width: 100%;
        color: var(--primary);
    }

    nav a:last-child {
        border-bottom: none;
    }

    .logo { max-width: 140px; }
    .hero h1 { font-size: 2rem; }
    .container { padding: 1rem; }
}

/* --- Rest of your existing styles --- */
.container { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem; }
.card { background: var(--card-bg); border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); padding: 2rem; margin-bottom: 2rem; }
.update-card { border-left: 6px solid var(--primary); background: #fdfefe; }

.hero {
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 102, 204, 0.8)), url('images/RegularDeployed.jpg') center/cover;
    color: white; text-align: center; padding: 4rem 1rem; border-radius: 12px; margin-bottom: 2rem;
}

.hero h1 { color: white; font-size: 2.5rem; }

/* Tables & Forms */
table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
th, td { border: 1px solid #ddd; padding: 12px; }
th { background: var(--primary); color: white; }

input[type="text"], input[type="email"], textarea, select {
    width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 6px;
}

.submit-btn {
    background: var(--primary); color: white; padding: 14px 28px; border: none; border-radius: 6px; cursor: pointer; font-weight: 600;
}

footer { background: var(--navy); color: white; text-align: center; padding: 1.5rem; margin-top: 2rem; border-top: 4px solid #f39c12; }
footer a { color: #f39c12; text-decoration: none; margin: 0 10px; font-weight: bold; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.gallery figure { margin: 0; background: var(--card-bg); border-radius: 12px; overflow: hidden; }
.gallery img { width: 100%; height: 220px; object-fit: cover; }
figcaption strong {
    color: var(--primary);
    text-transform: uppercase;
}

figcaption span {
    display: block;
    margin-top: 5px;
    line-height: 1.2;
}
/* --- Field Report & Social Sharing --- */
.report-card {
    border: 1px solid #ddd;
    transition: transform 0.2s;
}

.mode-badge {
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

.caption-text {
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
    font-style: italic;
    color: #555;
    font-size: 0.9rem;
}

.share-bar {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.share-btn {
    flex: 1;
    text-align: center;
    padding: 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    border: none;
}

.share-btn.fb { background: #1877F2; color: white; }
.share-btn.insta { background: #E4405F; color: white; }

.share-btn:hover { opacity: 0.9; }

/* ----- Home page (index.php) — nh-* layout ----- */
.container.container--home {
    max-width: 1200px;
    padding-left: clamp(1rem, 4vw, 1.5rem);
    padding-right: clamp(1rem, 4vw, 1.5rem);
}

.nh-hero {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.92) 0%, rgba(0, 102, 204, 0.85) 100%),
        url('images/RegularDeployed.jpg') center / cover;
    color: #fff;
    text-align: center;
    padding: clamp(2.5rem, 8vw, 4.5rem) clamp(1.25rem, 4vw, 2rem);
}

.nh-hero__inner {
    max-width: 44rem;
    margin: 0 auto;
}

.nh-hero__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 0.75rem;
}

.nh-hero h1 {
    color: #fff;
    font-size: clamp(1.65rem, 4.5vw, 2.65rem);
    line-height: 1.15;
    margin: 0 0 0.75rem;
    font-weight: 700;
}

.nh-hero__lead {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    line-height: 1.5;
    margin: 0 0 1.5rem;
    opacity: 0.95;
}

.nh-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    align-items: center;
}

.nh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.nh-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.nh-btn--primary {
    background: #fff;
    color: var(--navy);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.nh-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.nh-btn--ghost {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.nh-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.25);
}

.nh-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: start;
}

@media (min-width: 960px) {
    .nh-layout {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    }
}

.nh-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 3vw, 1.75rem);
}

.nh-aside {
    min-width: 0;
}

@media (min-width: 960px) {
    .nh-aside {
        position: sticky;
        top: 5.5rem;
    }
}

.nh-card {
    background: var(--card-bg);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 51, 102, 0.06), 0 8px 28px rgba(0, 0, 0, 0.04);
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border: 1px solid rgba(0, 51, 102, 0.06);
}

.nh-card__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.2rem, 2.5vw, 1.45rem);
    color: var(--navy);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}

.nh-card__title small {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
}

.nh-card__body {
    margin: 0;
    line-height: 1.65;
}

.nh-card__body strong {
    color: var(--navy);
}

.nh-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.5rem, 2vw, 0.85rem);
    margin-top: 1rem;
}

@media (max-width: 520px) {
    .nh-gallery-grid {
        grid-template-columns: 1fr;
    }
}

.nh-gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #e8eef5;
}

.nh-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.nh-gallery-item:hover img {
    transform: scale(1.04);
}

.nh-gallery-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.4rem 0.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.04em;
}

.nh-gallery-foot {
    margin-top: 1.1rem;
    text-align: center;
}

.nh-gallery-foot a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
}

.nh-gallery-foot a:hover {
    text-decoration: underline;
}

.nh-pricing-wrap {
    overflow-x: auto;
    margin: 0.5rem -0.25rem 0;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
}

.nh-pricing-table {
    width: 100%;
    min-width: 320px;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.nh-pricing-table th,
.nh-pricing-table td {
    padding: 0.65rem 0.85rem;
    border: 1px solid #e2e8f0;
}

.nh-pricing-table thead th {
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    text-align: left;
}

.nh-pricing-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.nh-pricing-table td:last-child {
    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
}

.nh-sidebar {
    border-left: 4px solid var(--primary);
    background: linear-gradient(180deg, #fdfefe 0%, #f4f9fc 100%);
}

.nh-sidebar__heading {
    margin: 0 0 0.85rem;
    font-size: 1.05rem;
    color: var(--navy);
    font-weight: 700;
}

/* Sidebar rich text (Quill + legacy): avoid double-wrapping <ul> in index.php */
.nh-sidebar__hamfests,
.store-inperson-hamfests,
.nh-sidebar__production {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #333;
}

.nh-sidebar__hamfests {
    margin: 0 0 1.25rem;
}

.store-inperson-hamfests {
    margin: 0.35rem 0 0;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
}

.store-pickup-lead {
    font-size: 0.9rem;
    margin: 0 0 0.25rem;
    line-height: 1.5;
    color: #333;
}

.store-pickup-fallback {
    font-size: 0.9rem;
    margin: 0.35rem 0 0;
    line-height: 1.5;
    color: #555;
}

.store-pickup-fallback a {
    color: var(--primary);
}

.nh-sidebar__hamfests ul,
.nh-sidebar__hamfests ol,
.store-inperson-hamfests ul,
.store-inperson-hamfests ol,
.nh-sidebar__production ul,
.nh-sidebar__production ol {
    margin: 0.25em 0 0.5em;
    padding-left: 1.15rem;
}

.nh-sidebar__hamfests > ul:first-child,
.nh-sidebar__hamfests > ol:first-child,
.store-inperson-hamfests > ul:first-child,
.store-inperson-hamfests > ol:first-child {
    margin-top: 0;
}

.nh-sidebar__hamfests p,
.store-inperson-hamfests p,
.nh-sidebar__production p {
    margin: 0 0 0.5em;
}

.nh-sidebar__hamfests p:last-child,
.store-inperson-hamfests p:last-child,
.nh-sidebar__production p:last-child {
    margin-bottom: 0;
}

.nh-sidebar__hamfests h2,
.nh-sidebar__hamfests h3,
.nh-sidebar__hamfests h4,
.store-inperson-hamfests h2,
.store-inperson-hamfests h3,
.store-inperson-hamfests h4,
.nh-sidebar__production h2,
.nh-sidebar__production h3,
.nh-sidebar__production h4 {
    margin: 0.4em 0 0.35em;
    font-size: 0.95rem;
    color: var(--navy);
    line-height: 1.3;
}

.nh-sidebar__hamfests h2:first-child,
.nh-sidebar__hamfests h3:first-child,
.store-inperson-hamfests h2:first-child,
.store-inperson-hamfests h3:first-child,
.nh-sidebar__production h2:first-child,
.nh-sidebar__production h3:first-child {
    margin-top: 0;
}

.nh-sidebar__hamfests a,
.store-inperson-hamfests a,
.nh-sidebar__production a {
    color: var(--primary);
}

.nh-sidebar hr {
    border: none;
    border-top: 1px solid #dde5ed;
    margin: 1rem 0;
}

.nh-sidebar__production {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #444;
}

.nh-progress {
    background: #e2e8f0;
    height: 10px;
    border-radius: 999px;
    margin-top: 0.85rem;
    overflow: hidden;
}

.nh-progress__bar {
    background: linear-gradient(90deg, var(--primary), #3399ff);
    height: 100%;
    border-radius: 999px;
    transition: width 0.4s ease;
}

.nh-progress__label {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.68rem;
    color: #64748b;
}

.nh-alert {
    border-radius: 12px;
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
    border-left: 5px solid #dc2626;
    background: #fef2f2;
    color: #991b1b;
    font-size: 0.95rem;
}

/* ----- Blog (public) ----- */
.blog-page {
    padding-bottom: 2rem;
}

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 860px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
}

.blog-header {
    margin-bottom: 1.5rem;
}

.blog-header h1 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.75rem, 4vw, 2.1rem);
    color: var(--navy);
}

.blog-lead {
    margin: 0;
    color: #555;
    font-size: 1.05rem;
}

.blog-index {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-index-item {
    border-bottom: 1px solid #e8eef3;
}

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

.blog-index-link {
    display: block;
    padding: 1rem 0.25rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
    border-radius: 8px;
}

.blog-index-link:hover {
    background: #f4f8fc;
}

.blog-index-title {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.blog-index-meta {
    font-size: 0.85rem;
    color: #666;
}

.blog-article-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e8eef3;
}

.blog-back {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
}

.blog-back a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.blog-back a:hover {
    text-decoration: underline;
}

.blog-article-header h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    color: var(--navy);
    line-height: 1.2;
}

.blog-article-meta {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.blog-article-meta time {
    margin-left: 0.35rem;
}

.prose-blog {
    font-size: 1rem;
    line-height: 1.65;
    color: #333;
}

.prose-blog h1,
.prose-blog h2,
.prose-blog h3,
.prose-blog h4 {
    color: var(--navy);
    margin: 1.25em 0 0.5em;
    line-height: 1.3;
}

.prose-blog h1:first-child,
.prose-blog h2:first-child,
.prose-blog h3:first-child {
    margin-top: 0;
}

.prose-blog p {
    margin: 0 0 1em;
}

.prose-blog ul,
.prose-blog ol {
    margin: 0 0 1em;
    padding-left: 1.35rem;
}

.prose-blog pre,
.prose-blog code {
    font-family: ui-monospace, 'Cascadia Code', monospace;
    font-size: 0.9em;
}

.prose-blog pre {
    background: #f4f6f8;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid #e5e9ef;
}

.prose-blog blockquote {
    margin: 1em 0;
    padding-left: 1rem;
    border-left: 4px solid var(--primary);
    color: #555;
}

.blog-aside {
    padding: 1.25rem !important;
}

.blog-aside-title {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: var(--navy);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.blog-aside-empty {
    margin: 0;
    font-size: 0.9rem;
    color: #777;
}

.blog-aside-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.92rem;
    line-height: 1.5;
}

.blog-aside-list li {
    margin-bottom: 0.65rem;
}

.blog-aside-list a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.blog-aside-list a:hover {
    text-decoration: underline;
}
