/* ============================================================
   HydroponicPlans - Clean Minimal Design
   Colors derived from Sun Hydroponics logo
   ============================================================ */

/* Self-hosted Google Fonts (eliminates external DNS lookup + connection) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/inter-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/inter-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/outfit-700.woff2') format('woff2');
}

:root {
    /* From logo — dark green (leaves / "HYDROPONICS") */
    --hp-green: #1b7340;
    --hp-green-dark: #145a32;
    --hp-green-light: #eaf5ef;

    /* From logo — bright leaf */
    --hp-leaf: #6cb33f;

    /* From logo — orange (sun / "SUN") — used sparingly as accent */
    --hp-orange: #e87a1e;
    --hp-orange-light: #fef4eb;

    /* Neutrals */
    --hp-white: #ffffff;
    --hp-off-white: #f8f9fa;
    --hp-border: #767676;
    --hp-text: #1a1a1a;
    --hp-text-secondary: #595959;
    --hp-text-muted: #595959;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --transition: 0.2s ease;
}

/* WCAG 1.4.11: interactive element borders need 3:1 contrast against background.
   #767676 on white = 4.5:1 — passes both text and non-text contrast. */
.form-control, .form-select, .btn-outline-secondary, .btn-outline-success,
.card, .accordion-item, .accordion-button, .btn-outline-light, .btn-outline-primary,
.btn-success, .btn-warning, .badge,
.table, .table td, .table th, .input-group-text, .dropdown-menu,
.list-group-item, .modal-content, .alert {
    border-color: #767676;
}
.accordion-button:not(.collapsed) {
    border-bottom-color: #767676;
}
.nav-tabs .nav-link {
    color: #495057;
}
.nav-tabs .nav-link.active {
    border-color: #767676 #767676 #fff;
    color: #212529;
}

/* Global keyboard focus indicator */
:focus-visible {
    outline: 2px solid var(--hp-green);
    outline-offset: 2px;
}

/* --- Base --- */
html {
    font-size: 16px;
    position: relative;
    min-height: 100%;
}

body {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--hp-white);
    color: var(--hp-text);
    line-height: 1.6;
    margin-bottom: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', 'Inter', 'Helvetica Neue', sans-serif;
    font-weight: 700;
    color: var(--hp-text);
    line-height: 1.2;
}

a {
    color: var(--hp-green);
    transition: color var(--transition);
}

a:hover {
    color: var(--hp-green-dark);
}

/* --- Navbar (full-width, white, clean) --- */
.site-nav {
    background: var(--hp-white);
    border-bottom: 1px solid var(--hp-border);
    position: sticky;
    top: 0;
    z-index: 1030;
    height: 80px;
    box-sizing: border-box;
    transition: box-shadow var(--transition);
    width: 100%;
}

.site-nav.scrolled {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.nav-container {
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
    position: relative;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    height: 72px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color var(--transition);
    padding: 0.25rem 0;
}

.nav-links a:hover {
    color: var(--hp-green);
}

.nav-links a.active {
    color: var(--hp-green);
}

/* Start Here nav highlight */
.nav-links a.nav-start-here {
    color: var(--hp-orange);
}

.nav-links a.nav-start-here:hover {
    color: #d06c15;
}

.nav-mobile-menu a.nav-start-here {
    color: var(--hp-orange);
}

.nav-mobile-menu a.nav-start-here:hover {
    color: #d06c15;
}

/* Auth nav button */
.nav-auth-btn {
    background: none;
    border: none;
    color: #333;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.25rem 0;
    transition: color var(--transition);
}
.nav-auth-btn:hover {
    color: var(--hp-green);
}

/* Hamburger — hidden by default, shown only on small screens */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 1px;
    transition: all var(--transition);
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu — hidden by default */
.nav-mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--hp-white);
    border-bottom: 1px solid var(--hp-border);
    padding: 0.5rem 2rem 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.nav-mobile-menu.open {
    display: flex;
}

.nav-mobile-menu a {
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--hp-border);
    transition: color var(--transition);
}

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

.nav-mobile-menu a:hover,
.nav-mobile-menu a.active {
    color: var(--hp-green);
}

/* Navbar tagline / share link */
.nav-tagline {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--hp-green);
    white-space: nowrap;
    text-decoration: none;
    transition: color var(--transition);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-tagline:hover {
    color: var(--hp-green-dark);
}

/* Tablet and below: hide tagline, swap nav links for hamburger */
@media (max-width: 1399px) {
    .nav-tagline { display: none; }
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
}

/* Phone: smaller logo */
@media (max-width: 576px) {
    .nav-logo img { height: 54px; }
    .site-nav { height: 66px; }
}

/* --- Hero (single image with overlay) --- */
.hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('/images/hero/hero-1.webp') center / cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(5, 40, 20, 0.85);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 1.275rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    background: rgba(27, 115, 64, 0.85);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--hp-white);
    margin-bottom: 1rem;
    line-height: 1.15;
}

.hero .lead {
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    color: var(--hp-white);
    opacity: 0.92;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-cta-group {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background-color: var(--hp-leaf);
    color: var(--hp-white);
    border: 2px solid #fff;
    border-radius: var(--radius-sm);
    font-weight: 700;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    transition: all var(--transition);
}

.btn-hero-primary:hover {
    background-color: #5a9c2f;
    border-color: #fff;
    color: var(--hp-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-hero-outline {
    background: transparent;
    color: var(--hp-white);
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-sm);
    font-weight: 700;
    padding: 0.7rem 2rem;
    font-size: 1rem;
    transition: all var(--transition);
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--hp-white);
    color: var(--hp-white);
}

/* --- Stats Bar --- */
.stats-bar {
    background: var(--hp-green-dark);
    color: var(--hp-white);
    padding: 1rem 0;
}

.stats-bar-inner {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.stat-item i {
    color: #a8e06c;
    font-size: 1rem;
}

.stat-item strong {
    font-weight: 700;
}
a.stat-link {
    color: inherit;
    text-decoration: none;
}
a.stat-link:hover {
    color: var(--hp-leaf);
}

/* --- Feature List (What Makes Plans Different) --- */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.feature-list li i {
    color: var(--hp-leaf);
    font-size: 1.1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

/* --- CTA Block --- */
.cta-block {
    background: linear-gradient(135deg, var(--hp-green) 0%, var(--hp-green-dark) 100%);
    color: var(--hp-white);
    padding: 3.5rem 0;
}

.cta-block h2 {
    color: var(--hp-white);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    margin-bottom: 0.75rem;
}

.cta-block p {
    opacity: 0.9;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

/* --- Wizard CTA Banner --- */
.wizard-cta-banner {
    background: linear-gradient(135deg, #1b7340 0%, #145a32 60%, #0d3b21 100%);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.wizard-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* --- Featured Starter Plan --- */
.starter-plan-card {
    border: 2px solid var(--hp-green);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(27, 115, 64, 0.1);
}

.starter-plan-visual {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    position: relative;
    overflow: hidden;
}

.starter-plan-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--hp-green);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    z-index: 1;
}

.starter-plan-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.starter-plan-icon {
    font-size: 4rem;
    color: var(--hp-green);
}

.starter-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.starter-stat i {
    color: var(--hp-green);
    font-size: 1.1rem;
}

.starter-stat div {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.starter-stat small {
    color: #666;
    font-size: 0.75rem;
}

/* --- Roadmap --- */
.roadmap-step {
    position: relative;
    padding-top: 1rem;
}

.roadmap-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--hp-green);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

.roadmap-icon {
    font-size: 1.75rem;
    color: var(--hp-green);
    margin-bottom: 0.75rem;
}

/* --- FAQ Accordion --- */
.accordion-item {
    border: 1px solid var(--hp-border);
    border-radius: var(--radius-md) !important;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.accordion-button {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--hp-text);
    padding: 1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
    background: var(--hp-green-light);
    color: var(--hp-green-dark);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 2px rgba(27, 115, 64, 0.2);
    border-color: transparent;
}

.accordion-body {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--hp-text-secondary);
}

/* Filter bar overrides when inside hero */
.hero-filter-bar {
    border-bottom: none;
    padding: 0;
    margin-bottom: 0;
}

.hero-filter-bar .filter-bar-controls {
    flex-wrap: wrap;
    justify-content: center;
}

.hero-filter-bar .filter-pill {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--hp-text);
    backdrop-filter: blur(4px);
}

.hero-filter-bar .filter-pill:hover {
    background-color: var(--hp-white);
    border-color: rgba(255, 255, 255, 0.6);
}

.hero-filter-bar .filter-pill.active {
    background-color: var(--hp-white);
    border-color: var(--hp-white);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* --- Section Spacing --- */
.section {
    padding: 3.5rem 0;
    background-color: var(--hp-white);
}

.section-alt {
    background-color: var(--hp-off-white);
}

.section-heading {
    margin-bottom: 0.5rem;
}

.section-subtext {
    color: var(--hp-text-muted);
    margin-bottom: 2rem;
}

/* --- Cards (clean, 1px border, subtle hover) --- */
.card-system,
.card-plan {
    border: 1px solid var(--hp-border);
    border-radius: var(--radius-md);
    box-shadow: none;
    background: var(--hp-white);
    transition: transform var(--transition), box-shadow var(--transition);
    overflow: hidden;
}

.card-system:hover,
.card-plan:hover,
.card-system:focus-within,
.card-plan:focus-within {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* --- Plan Card Images --- */
.plan-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.plan-card-img-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--hp-green-light) 0%, #d4edda 50%, var(--hp-green-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hp-green);
    font-size: 2.5rem;
}

/* --- Plan Detail Hero Image --- */
.plan-hero-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.plan-hero-placeholder {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, var(--hp-green-dark) 0%, var(--hp-green) 40%, var(--hp-leaf) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 4rem;
}

@media print {
    .plan-hero-img {
        max-height: 260px;
        border-radius: 0;
        box-shadow: none;
        margin-bottom: 1rem;
    }
    .plan-hero-placeholder { display: none !important; }
}

/* --- System Icons (solid fill) --- */
.system-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--hp-green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--hp-green);
    margin: 0 auto 1rem;
    transition: all var(--transition);
}

.card-system:hover .system-icon {
    background: var(--hp-green);
    color: var(--hp-white);
}

/* --- Environment Cards (Indoor / Outdoor) --- */
.env-card {
    border: 1px solid var(--hp-border);
    border-radius: var(--radius-md);
    background: var(--hp-white);
    transition: transform var(--transition), box-shadow var(--transition);
}

.env-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.env-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--hp-green-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--hp-green);
    margin-bottom: 1rem;
    transition: all var(--transition);
}

.env-card:hover .env-icon {
    background: var(--hp-green);
    color: var(--hp-white);
}

/* --- Space Icons --- */
.space-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--hp-green-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--hp-green);
    margin-bottom: 0.75rem;
}

/* --- Why Hydroponics Icons (orange accent) --- */
.why-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--hp-orange-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--hp-orange);
    margin-bottom: 1rem;
}

/* --- Buttons (solid) --- */
.btn-success {
    background-color: var(--hp-green);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    transition: all var(--transition);
}

.btn-success:hover {
    background-color: var(--hp-green-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-outline-secondary {
    border-radius: var(--radius-sm);
    font-weight: 500;
    border-color: var(--hp-border);
    color: var(--hp-text-secondary);
    transition: all var(--transition);
}

.btn-outline-secondary:hover {
    border-color: var(--hp-green);
    color: var(--hp-green);
    background: var(--hp-green-light);
}

.btn-warning {
    background-color: var(--hp-orange);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--hp-white);
    transition: all var(--transition);
}

.btn-warning:hover {
    background-color: #d06c15;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    color: var(--hp-white);
}

/* --- Badges (solid) --- */
.badge {
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 0.3em 0.65em;
    font-size: 0.8em;
}

.badge-beginner { background-color: #2d6a1e; color: #fff; }
.badge-intermediate { background-color: #9a5209; color: #fff; }
.badge-advanced { background-color: #c0392b; color: #fff; }

/* --- Crop Badges --- */
.crop-badge {
    display: inline-block;
    padding: 0.45rem 1rem;
    margin: 0.25rem;
    border-radius: var(--radius-sm);
    background: var(--hp-white);
    color: var(--hp-green);
    border: 1px solid var(--hp-border);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.crop-badge:hover,
.crop-badge:focus {
    background-color: var(--hp-green);
    border-color: var(--hp-green);
    color: var(--hp-white);
}

/* --- Affiliate Block --- */
.affiliate-block {
    background: var(--hp-green-light);
    border: none !important;
    border-left: 4px solid var(--hp-green) !important;
    border-radius: var(--radius-md) !important;
    transition: box-shadow var(--transition);
}

.affiliate-block:hover {
    box-shadow: var(--shadow-sm);
}

.affiliate-print-url {
    display: none;
}

/* Star rating input — focus outline for keyboard users */
#commentStarInput:focus-visible {
    outline: 2px solid var(--hp-green);
    outline-offset: 4px;
    border-radius: 4px;
}

.affiliate-block .affiliate-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: var(--hp-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hp-white);
    font-size: 1.1rem;
}

/* --- Plan Content --- */
.plan-content h2 {
    color: var(--hp-green-dark);
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--hp-border);
}

.plan-content h3 {
    color: var(--hp-green-dark);
    margin-top: 1.5rem;
}

/* --- Sticky Sidebar --- */
.plan-sidebar {
    position: sticky;
    top: 100px;
}

.plan-sidebar .card {
    border: 1px solid var(--hp-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.plan-sidebar .card-header {
    background: var(--hp-green);
    color: var(--hp-white);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    border: none;
    padding: 0.75rem 1rem;
}

.plan-sidebar .list-group-item {
    border-color: var(--hp-border);
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
}

.plan-sidebar .list-group-item i {
    width: 20px;
    text-align: center;
    color: var(--hp-green);
}

/* --- Donation Section (orange accent) --- */
.donation-section {
    background: var(--hp-orange-light);
    border: none;
    border-left: 4px solid var(--hp-orange);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 2rem 0;
}

/* --- Compare Table --- */
.table-comparison {
    border-radius: var(--radius-md);
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--hp-border);
}

.table-comparison thead {
    background: var(--hp-green) !important;
    color: #fff !important;
}

.table-comparison thead th {
    border: none !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    padding: 0.75rem 1rem;
    color: #fff !important;
    background: var(--hp-green) !important;
}

.table-comparison tbody td {
    vertical-align: middle;
}

/* --- Newsletter Band --- */
.newsletter-band {
    background: linear-gradient(135deg, var(--hp-green-dark) 0%, var(--hp-green) 100%);
    color: #fff;
    padding: 3rem 0;
}

.newsletter-inner {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.newsletter-text {
    flex: 1;
}

.newsletter-text h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.newsletter-text p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.newsletter-form {
    flex: 1;
    max-width: 440px;
}

.newsletter-input-group {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input-group .form-control {
    border-radius: 6px;
    border: 2px solid rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
}

.newsletter-input-group .form-control::placeholder {
    color: rgba(255,255,255,0.6);
}

.newsletter-input-group .form-control:focus {
    background: rgba(255,255,255,0.25);
    border-color: #fff;
    box-shadow: none;
    color: #fff;
}

.newsletter-input-group .btn {
    white-space: nowrap;
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    border: 2px solid #fff;
    background: #fff;
    color: var(--hp-green);
}

.newsletter-input-group .btn:hover {
    background: var(--hp-green-light);
    border-color: var(--hp-green-light);
}

.newsletter-msg {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.newsletter-msg.success { color: #a7f3d0; }
.newsletter-msg.error { color: #fca5a5; }

.newsletter-fine-print {
    margin: 0.5rem 0 0;
    font-size: 0.8rem;
    opacity: 0.85;
}

.newsletter-fine-print a {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .newsletter-inner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .newsletter-form {
        max-width: 100%;
        width: 100%;
    }

    .newsletter-input-group {
        flex-direction: column;
    }
}

/* --- Footer (light) --- */
.site-footer {
    background: var(--hp-off-white);
    border-top: 1px solid var(--hp-border);
    color: var(--hp-text-muted);
    padding: 2.5rem 0 0;
}

.site-footer h5 {
    color: var(--hp-text);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.site-footer a {
    color: var(--hp-text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.site-footer a:hover {
    color: var(--hp-green);
}

.site-footer .footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.site-footer .footer-brand img {
    height: 36px;
    width: auto;
}

.site-footer .footer-bottom {
    border-top: 1px solid var(--hp-border);
    padding: 1rem 0;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--hp-text-muted);
    padding-right: 60px;
}

.site-footer .footer-heading {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--hp-text);
    margin-bottom: 0.5rem;
}

.site-footer .footer-link-item {
    padding: 0.15rem 0;
    font-size: 0.85rem;
}

@media (max-width: 575.98px) {
    .site-footer .footer-link-item {
        font-size: 0.8rem;
    }
    .site-footer .footer-heading {
        font-size: 0.8rem;
    }
}

/* --- Breadcrumb --- */
.breadcrumb {
    background: transparent;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: var(--hp-green);
}

/* --- Plan Detail Tabs --- */
.plan-tabs .nav-tabs {
    border-bottom: 2px solid var(--hp-border);
    gap: 0.25rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.plan-tabs .nav-tabs::-webkit-scrollbar { display: none; }

.plan-tabs .nav-tabs .nav-link {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--hp-text-secondary);
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 0.65rem 1rem;
    white-space: nowrap;
    transition: color var(--transition), border-color var(--transition);
}

.plan-tabs .nav-tabs .nav-link:hover {
    color: var(--hp-green);
    border-bottom-color: var(--hp-green-light);
    background: transparent;
}

.plan-tabs .nav-tabs .nav-link.active {
    color: var(--hp-green);
    border-bottom-color: var(--hp-green);
    background: transparent;
}

.plan-tabs .nav-tabs .nav-link i {
    margin-right: 0.35rem;
}

.plan-tabs .tab-content {
    padding-top: 1.25rem;
}

/* On mobile, hide icon text and show only icons for compact tabs */
@media (max-width: 575.98px) {
    .plan-tabs .nav-tabs .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    .plan-tabs .nav-tabs .nav-link .tab-label {
        display: none;
    }
}

/* Print: show all tab panes, hide tab bar */
/* --- Print --- */
@media print {
    .navbar,
    .site-nav,
    .site-footer,
    footer,
    .btn,
    .affiliate-block .btn,
    .no-print,
    .plan-sidebar,
    .hero,
    .plan-tabs .nav-tabs,
    #cookieConsent,
    .nav-hamburger,
    .nav-mobile-menu,
    .grecaptcha-badge {
        display: none !important;
    }

    .print-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        background: #1b7340;
        color: #fff;
        padding: 0.75rem 1.25rem;
        margin: -1rem -1rem 1rem -1rem;
        page-break-after: avoid;
    }
    .print-header-logo img {
        height: 28px;
        width: auto;
    }
    .print-header-center {
        text-align: center;
        flex-grow: 1;
    }
    .print-header-center .print-header-title {
        font-family: 'Outfit', sans-serif;
        font-size: 14pt;
        font-weight: 700;
        margin: 0;
    }
    .print-header-center .print-header-url {
        font-size: 9pt;
        opacity: 0.8;
        margin: 0;
    }
    .print-header-free {
        font-size: 10pt;
        font-weight: 700;
        white-space: nowrap;
    }

    .print-footer-disclosure {
        display: block !important;
        margin-top: 2rem;
        padding-top: 0.75rem;
        border-top: 1px solid #ccc;
        font-size: 8pt;
        color: #666;
        font-style: italic;
    }

    .plan-tabs .tab-pane {
        display: block !important;
        opacity: 1 !important;
    }

    #pane-comments,
    #pane-qa {
        display: none !important;
    }

    .plan-rating-link {
        pointer-events: none;
        color: #333 !important;
    }

    .affiliate-block {
        border: 1px solid #ccc !important;
        background: #f9f9f9 !important;
    }

    .affiliate-block .affiliate-icon {
        display: none !important;
    }

    .affiliate-print-url {
        display: block !important;
        font-family: 'Courier New', Courier, monospace;
        font-size: 8pt;
        color: #666;
        margin-top: 4px;
        word-break: break-all;
    }

    body {
        font-size: 12pt;
        background: #fff;
        color: #000;
    }

    .plan-content {
        max-width: 100% !important;
    }

    .col-lg-8 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
}

/* --- Filter Bar (Zillow-style single row) --- */
.filter-bar {
    border-bottom: 1px solid var(--hp-border);
    padding: 0.65rem 0;
    margin-bottom: 1rem;
}

.filter-bar-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-pill-wrapper {
    position: relative;
    display: inline-flex;
}

.filter-pill {
    appearance: none;
    -webkit-appearance: none;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--hp-border);
    border-radius: var(--radius-sm);
    background: var(--hp-white);
    color: var(--hp-text);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    line-height: 1.4;
}

.filter-pill:hover {
    border-color: #aaa;
}

.filter-pill.active {
    border-color: var(--hp-green);
    background-color: var(--hp-green-light);
    color: var(--hp-green-dark);
}

.filter-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 1050;
    background: var(--hp-white);
    border: 1px solid var(--hp-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 0.5rem;
    min-width: 200px;
}

.filter-dropdown.open {
    display: block;
}

.filter-dropdown label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background var(--transition);
}

.filter-dropdown label:hover {
    background: var(--hp-green-light);
}

.filter-dropdown input[type="checkbox"] {
    accent-color: var(--hp-green);
}

.filter-bar .btn-clear {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--hp-text-muted);
    text-decoration: none;
    border: 1px solid var(--hp-border);
    border-radius: var(--radius-sm);
    background: var(--hp-white);
    white-space: nowrap;
    transition: all var(--transition);
}

.filter-bar .btn-clear:hover {
    color: #c0392b;
    border-color: #c0392b;
}

@media (max-width: 575.98px) {
    .filter-bar-controls {
        gap: 0.4rem;
        flex-wrap: wrap;
    }

    .filter-pill,
    .filter-bar .btn-clear {
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
    }

    .filter-dropdown {
        max-height: 200px;
        overflow-y: auto;
    }
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .hero {
        min-height: 400px;
    }

    .hero-content {
        padding: 3rem 1.5rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .cta-block {
        padding: 2.5rem 0;
    }

    .plan-sidebar {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .stats-bar-inner {
        gap: 1rem 2rem;
        justify-content: center;
    }

    .stat-item {
        font-size: 0.82rem;
    }
}

@media (max-width: 575.98px) {
    .hero {
        min-height: 340px;
    }

    .hero-content {
        padding: 2.5rem 1rem;
    }

    .stats-bar-inner {
        gap: 0.75rem 1.5rem;
    }

    .stat-item {
        font-size: 0.78rem;
    }

    .hero-filter-bar .filter-bar-controls {
        gap: 0.4rem;
    }

    .hero-filter-bar .filter-pill {
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
    }
}


/* Skip to content (accessibility) */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    padding: 0.75rem 1.5rem;
    background: var(--hp-green);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 var(--radius-md) 0;
}
.skip-to-content:focus {
    left: 0;
    color: #fff;
}

/* Contextual Affiliate Ad Cards */
.affiliate-ad {
    margin: 2rem 0;
    border: 1px solid var(--hp-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--hp-white);
    box-shadow: var(--shadow-sm);
}

.affiliate-ad-header {
    background: linear-gradient(135deg, var(--hp-green) 0%, var(--hp-green-dark) 100%);
    color: #fff;
    padding: 0.65rem 1.25rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.affiliate-ad-disclosure {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    background: rgba(255,255,255,0.35);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.affiliate-ad-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1px;
    background: var(--hp-border);
}

.affiliate-ad-card {
    background: var(--hp-white);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.affiliate-ad-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--hp-green-light);
    color: var(--hp-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.affiliate-ad-info {
    flex: 1;
    min-width: 0;
}

.affiliate-ad-name {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--hp-text);
    margin-bottom: 0.25rem;
}

.affiliate-ad-pitch {
    font-size: 0.82rem;
    color: var(--hp-text-secondary);
    line-height: 1.45;
}

.affiliate-ad-actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: auto;
}

.affiliate-ad-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: #b45a0a;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background var(--transition);
    white-space: nowrap;
}

.affiliate-ad-cta:hover {
    background: #d06a10;
    color: #fff;
}

.affiliate-ad-alt {
    text-align: center;
    font-size: 0.75rem;
    color: var(--hp-text-muted);
    text-decoration: none;
}

.affiliate-ad-alt:hover {
    color: var(--hp-green);
    text-decoration: underline;
}

.affiliate-ad-personal-note {
    font-size: 0.85rem;
    color: var(--hp-green);
    margin-top: 0.4rem;
    margin-bottom: 0.3rem;
}
.affiliate-ad-budget-alt {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.3rem;
    padding: 0.4rem 0.6rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid var(--hp-orange);
}
.affiliate-sidebar-personal-note {
    color: var(--hp-green);
    font-size: 0.8rem;
}

@media (max-width: 576px) {
    .affiliate-ad-products {
        grid-template-columns: 1fr;
    }
}

@media print {
    .affiliate-ad { display: none !important; }
}

/* Hero affiliate ad — full-width featured product */
.affiliate-hero {
    margin: 2rem 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.affiliate-hero-bg {
    background: linear-gradient(135deg, var(--hp-green) 0%, #1a5c2e 60%, #0d3b1a 100%);
    padding: 2.5rem 2rem;
    position: relative;
}

.affiliate-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 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.04'%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");
}

.affiliate-hero-content {
    position: relative;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.affiliate-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.affiliate-hero-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1rem;
    backdrop-filter: blur(4px);
}

.affiliate-hero-title {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.affiliate-hero-pitch {
    color: rgba(255,255,255,0.88);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.affiliate-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.affiliate-hero-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    background: var(--hp-orange);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background var(--transition), transform var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.affiliate-hero-cta:hover {
    background: #d06a10;
    color: #fff;
    transform: translateY(-1px);
}

.affiliate-hero-alt {
    color: rgba(255,255,255,0.65);
    font-size: 0.8rem;
    text-decoration: none;
}

.affiliate-hero-alt:hover {
    color: #fff;
    text-decoration: underline;
}

@media print {
    .affiliate-hero { display: none !important; }
}

/* Sidebar tower affiliate ad */
.affiliate-sidebar {
    border: 1px solid var(--hp-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--hp-white);
    box-shadow: var(--shadow-sm);
    margin-top: 1rem;
}

.affiliate-sidebar-header {
    background: linear-gradient(135deg, var(--hp-green) 0%, var(--hp-green-dark) 100%);
    color: #fff;
    padding: 0.6rem 1rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.affiliate-sidebar-item {
    padding: 1rem;
    border-top: 1px solid var(--hp-border);
    text-align: center;
}

.affiliate-sidebar-item:first-of-type {
    border-top: none;
}

.affiliate-sidebar-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--hp-green-light);
    color: var(--hp-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin: 0 auto 0.5rem;
}

.affiliate-sidebar-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--hp-text);
    margin-bottom: 0.35rem;
}

.affiliate-sidebar-pitch {
    font-size: 0.78rem;
    color: var(--hp-text-secondary);
    line-height: 1.4;
    margin-bottom: 0.65rem;
}

.affiliate-sidebar-cta {
    display: block;
    padding: 0.45rem 0.75rem;
    background: var(--hp-orange);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background var(--transition);
}

.affiliate-sidebar-cta:hover {
    background: #d06a10;
    color: #fff;
}

.affiliate-sidebar-alt {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.72rem;
    color: var(--hp-text-muted);
    text-decoration: none;
}

.affiliate-sidebar-alt:hover {
    color: var(--hp-green);
    text-decoration: underline;
}

@media print {
    .affiliate-sidebar { display: none !important; }
}

/* Honeypot field — hidden from humans, bots fill it */
.hp-f2x {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
    tab-size: 0;
}

/* PDF email-gated download card */
.pdf-email-gate {
    border: 2px solid var(--hp-green);
    border-radius: 10px;
    max-width: none;
}

.pdf-email-gate .card-body {
    padding: 1rem 1.25rem;
}

.pdf-email-gate h5 {
    font-size: 1rem;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .pdf-email-gate .card-body {
        flex-direction: column;
        text-align: center;
    }
    .pdf-email-gate form {
        flex-direction: column !important;
        width: 100%;
    }
    .pdf-email-gate form input[type="email"] {
        min-width: 100% !important;
    }
}

/* Gallery thumbnails */
.gallery-thumb {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-thumb:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.gallery-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.gallery-caption {
    padding: 0.4rem 0.5rem;
    font-size: 0.8rem;
    background: var(--hp-green-light);
    color: var(--hp-green-dark);
    text-align: center;
    font-weight: 500;
}

/* Lightbox overlay */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.lightbox-overlay img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}
.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    z-index: 10000;
}
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    z-index: 10000;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.3); }
.lightbox-caption {
    color: #fff;
    margin-top: 1rem;
    font-size: 1rem;
    text-align: center;
}
@media print { .gallery-thumb, .lightbox-overlay { display: none !important; } }

/* Q&A input placeholder styling */
#qaQuestion::placeholder {
    color: #666;
    opacity: 1;
}
#qaQuestion:focus {
    border-color: var(--hp-green);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.2);
}

/* --- Video Facade Play Button --- */
.video-facade { position: relative; }
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(0,0,0,0.65);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: background 0.2s, transform 0.2s;
    pointer-events: none;
}
.video-facade:hover .video-play-btn {
    background: var(--hp-green);
    transform: translate(-50%, -50%) scale(1.1);
}

/* --- Video Gallery Thumbnail Strip --- */
.video-strip-wrapper {
    position: relative;
}
.video-strip-chevron {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.video-strip-chevron:hover { background: var(--hp-green); }
.video-strip-chevron.left { left: -12px; }
.video-strip-chevron.right { right: -12px; }
.video-strip-chevron.visible { display: flex; }

.video-thumb-strip {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    scroll-behavior: smooth;
}
.video-thumb-strip::-webkit-scrollbar { height: 4px; }
.video-thumb-strip::-webkit-scrollbar-thumb { background: var(--hp-green); border-radius: 2px; }

.video-thumb {
    flex: 0 0 auto;
    width: 160px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
    background: none;
    padding: 0;
    text-align: left;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.video-thumb img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
}
.video-thumb-label {
    display: block;
    padding: 0.25rem 0.5rem 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--hp-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.video-thumb-source {
    display: block;
    padding: 0 0.5rem 0.25rem;
    font-size: 0.65rem;
    color: var(--hp-text-muted);
}
.video-thumb:hover { border-color: var(--hp-green); }
.video-thumb--active {
    border-color: var(--hp-green);
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.3);
}
.video-thumb:focus-visible {
    outline: 2px solid var(--hp-green);
    outline-offset: 2px;
}
@media (max-width: 576px) {
    .video-thumb { width: 130px; }
    .video-thumb img { height: 73px; }
}


/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--hp-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 1000;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: var(--hp-green-dark);
    color: #fff;
    transform: translateY(-3px);
}
@media print { .back-to-top { display: none !important; } }

/* --- Thanks To Page --- */
.thanks-card {
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.thanks-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.thanks-photo {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border: 3px solid var(--hp-green-light);
}

/* AdSense containers */
.adsense-slot { text-align: center; margin: 0 auto; overflow: hidden; }
.adsense-top { max-width: 728px; padding: 0.5rem 0; border-bottom: 1px solid #eee; }
.adsense-bottom { max-width: 728px; padding: 0.5rem 0; margin-top: 2rem; border-top: 1px solid #eee; }
.adsense-mid { max-width: 728px; margin: 1.5rem auto; }
.adsense-sidebar { margin-top: 1rem; }

/* Sticky PDF bar (mobile) */
.pdf-sticky-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
    background: #fff; border-top: 2px solid var(--hp-green);
    padding: 0.75rem 1rem; display: flex; align-items: center;
    justify-content: space-between; box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}
.pdf-sticky-bar span { font-size: 0.85rem; font-weight: 600; color: #333; }

/* Mid-content email CTA */
.email-cta-mid { border: 2px solid var(--hp-green); border-radius: 12px; background: linear-gradient(135deg, #f0faf4, #fff); }

/* ── Nutrient Calculator ── */
.nc-result-card {
    border-radius: 12px;
    border-left: 4px solid var(--hp-green);
}
.nc-result-card .card-body h3 {
    color: var(--hp-text);
}
@media print {
    .nc-result-card { border: 1px solid #ccc; break-inside: avoid; }
    #calcModeTabs, .edu-hero { display: none !important; }
    #ncResults { display: block !important; }
    #ncPrintSummary { display: block !important; border: 2px solid #1b7340; border-radius: 8px; background: #eaf5ef; }
    #ncToolsCard { display: none !important; }
}

/* ── Syncfusion Chat UI: Q&A ── */
#planChatUI {
    height: 500px;
    border: 2px solid var(--hp-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
#planChatUI .e-chat-header {
    background: var(--hp-green) !important;
    color: #fff !important;
}
#planChatUI .e-chat-header .e-header-text {
    color: #fff !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}
#planChatUI .e-chat-header .e-header-icon {
    color: #fff !important;
}
/* Bot messages: light green bubble */
#planChatUI .e-message-wrapper:not(.e-message-right) .e-message-content {
    background: var(--hp-green-light) !important;
    border-color: transparent !important;
}
/* User messages: subtle blue-gray */
#planChatUI .e-message-wrapper.e-message-right .e-message-content {
    background: #eef2f7 !important;
    border-color: transparent !important;
}
/* Send button */
#planChatUI .e-footer .e-btn.e-send-icon {
    background: var(--hp-green) !important;
    border-color: var(--hp-green) !important;
    color: #fff !important;
}
#planChatUI .e-footer .e-btn.e-send-icon:hover {
    background: var(--hp-green-dark) !important;
}
/* Input focus ring */
#planChatUI .e-footer .e-input-focus::after {
    border-color: var(--hp-green) !important;
}
/* Typing indicator */
#planChatUI .e-typing-indicator {
    color: var(--hp-green) !important;
}

/* ── Planting Calendar ── */
.planting-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.dot-start { background: var(--hp-green); }
.dot-peak { background: #0d6efd; }
.dot-harvest { background: var(--hp-orange); }

/* ── Plant Doctor ── */
.doctor-option { cursor: pointer; transition: all 0.2s; border: 2px solid var(--hp-border); border-radius: var(--radius-md); }
.doctor-option:hover { border-color: var(--hp-green); background: var(--hp-green-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.doctor-option:focus-visible { outline: 2px solid var(--hp-green); outline-offset: 2px; background: var(--hp-green-light); }
.doctor-breadcrumb { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; align-items: center; }
.doctor-breadcrumb .badge { cursor: pointer; }
.doctor-breadcrumb .badge:hover { opacity: 0.8; }
