/* Clearwater Kiteboarding — Public Stylesheet */
:root {
    /* Live site Elementor kit colors (clearwaterkiteboarding.com) */
    --brand-blue: #1875C5;
    --brand-blue-light: #6EC1E4;
    --brand-blue-dark: #155a94;
    --btn-bg: #104573;
    --bg-primary: #1875C5;
    --bg-secondary: #1a6aab;
    --bg-card: #175f9e;
    --bg-card-hover: #1a6aab;
    --text-primary: #ffffff;
    --text-secondary: #e8f4fc;
    --text-muted: #caf0f8;
    --text-on-card: #ffffff;
    --text-secondary-on-card: #cfe8fb;
    --ocean: #1875C5;
    --ocean-light: #6EC1E4;
    --ocean-dark: #155a94;
    --sand: #f4e4bc;
    --accent: var(--ocean);
    --accent-light: var(--ocean-light);
    --accent-glow: rgba(0, 119, 182, 0.25);
    --amber-glow: rgba(0, 180, 216, 0.2);
    --gold: var(--ocean);
    --gold-light: var(--ocean-light);
    --gold-gradient: linear-gradient(135deg, #5eb8e0 0%, #6EC1E4 100%);
    --gold-gradient-hover: linear-gradient(135deg, #6EC1E4 0%, #8ed4f0 100%);
    --border: rgba(255, 255, 255, 0.15);
    --border-gold: rgba(0, 119, 182, 0.25);
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(13, 33, 55, 0.08);
    --shadow-gold: 0 4px 20px var(--accent-glow);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Space Grotesk', var(--font-sans);
    --container: 1200px;
    --header-h: 120px;
    --elevation-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    --elevation-shadow-strong: 0 8px 28px rgba(0, 0, 0, 0.42), 0 4px 12px rgba(0, 0, 0, 0.28);
    --elevation-shadow-strong-up: 0 -8px 28px rgba(0, 0, 0, 0.42), 0 -4px 12px rgba(0, 0, 0, 0.28);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a,
a:link,
a:visited,
a:hover,
a:active,
a:focus {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s, text-decoration 0.2s;
}
a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--brand-blue);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: var(--elevation-shadow-strong);
    min-height: var(--header-h);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: var(--header-h);
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--text-primary);
}

.logo-img {
    display: block;
    height: 92px;
    width: auto;
    max-width: min(100%, 480px);
    object-fit: contain;
}

.logo-img--footer {
    height: 76px;
    max-width: 420px;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    margin-left: auto;
}

.main-nav a {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
}

.main-nav a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.header-search {
    display: flex;
    align-items: stretch;
    background: var(--bg-secondary);
    border: 1px solid var(--border-gold);
    border-radius: 999px;
    overflow: hidden;
    max-width: 240px;
    box-shadow: 0 0 16px rgba(255, 140, 40, 0.12);
}

.header-search input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    outline: none;
    min-width: 0;
}

.header-search input:focus {
    box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.25);
}

.header-search .btn-icon {
    border-radius: 0;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.5rem 0.85rem;
    min-width: 42px;
    color: #ffffff;
    background: transparent;
    background-image: none;
    box-shadow: none;
    text-shadow: none;
    transition: none;
}

.header-search .btn-icon::after {
    display: none;
}

.search-icon {
    display: block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #ffffff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
}

/* Main */
.site-main { flex: 1; }

/* Hero */
.hero {
    padding: 4rem 0 5rem;
    background: radial-gradient(ellipse at 70% 50%, rgba(212, 175, 55, 0.14) 0%, transparent 55%),
                radial-gradient(ellipse at 20% 80%, rgba(255, 140, 40, 0.08) 0%, transparent 50%);
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-light);
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }

.hero-search {
    display: flex;
    gap: 0.5rem;
    max-width: 480px;
}

.hero-search input {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    outline: none;
}

.hero-search input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 320px;
}

.hero-glow {
    position: absolute;
    width: min(90%, 420px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 200, 80, 0.35) 0%, rgba(212, 175, 55, 0.15) 45%, transparent 70%);
    filter: blur(40px);
    animation: pulse 4s ease-in-out infinite;
}

.hero-image {
    position: relative;
    z-index: 1;
    width: min(100%, 480px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(255, 170, 50, 0.4))
            drop-shadow(0 0 60px rgba(212, 175, 55, 0.25));
    animation: hero-float 6s ease-in-out infinite;
}

@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.06); opacity: 1; } }

/* Buttons — flat solid fill, no effects */
.btn,
button.btn,
a.btn,
.btn-primary,
.btn-call,
.site-main button[type="submit"]:not(.nav-toggle),
.site-main input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.65rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: #ffffff;
    background: var(--btn-bg);
    background-image: none;
    text-shadow: none;
    box-shadow: none;
    transition: none;
    transform: none;
}

.btn::after,
.site-main button[type="submit"]:not(.nav-toggle)::after {
    display: none;
}

.btn:hover,
button.btn:hover,
a.btn:hover,
.btn-primary:hover,
.btn-call:hover,
.site-main button[type="submit"]:not(.nav-toggle):hover,
.site-main input[type="submit"]:hover {
    color: #ffffff;
    background: var(--btn-bg);
    background-image: none;
    border: none;
    text-decoration: none;
    text-shadow: none;
    box-shadow: none;
    transform: none;
}

.btn:active,
button.btn:active,
a.btn:active {
    transform: none;
}

a.btn,
a.btn:hover,
a.btn:visited,
a.btn:focus {
    color: #ffffff;
    text-decoration: none;
}

.btn-outline {
    background: var(--btn-bg);
    background-image: none;
    color: #ffffff;
    border: none;
    box-shadow: none;
    text-shadow: none;
    transition: none;
}

.btn-outline:hover,
a.btn-outline:hover {
    background: var(--btn-bg);
    background-image: none;
    color: #ffffff;
    border: none;
    box-shadow: none;
    text-decoration: none;
}

.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }

.btn-icon {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
}

.btn:disabled,
button.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Sections */
.section { padding: 4rem 0; }
.section--alt { background: var(--bg-secondary); }

/* Thin divider bar between stacked homepage sections — same tone as the
   header/footer border so sections read as distinct blocks. */
.section-divider {
    height: 1px;
    border: none;
    margin: 0;
    background: rgba(255, 255, 255, 0.15);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.section-header__titles {
    min-width: 0;
}

.section-subtitle {
    margin-top: 0.35rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 42rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
}

.section-link {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    background: var(--btn-bg);
    background-image: none;
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: none;
    text-shadow: none;
    text-decoration: none;
    transition: none;
}

.section-link:hover,
.section-link:visited {
    color: #ffffff;
    background: var(--btn-bg);
    box-shadow: none;
    text-decoration: none;
    transform: none;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.video-grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* Strict 4-across grid for homepage topic sections */
.video-grid--4col {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
    .video-grid--4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .video-grid--4col {
        grid-template-columns: 1fr;
    }
}

.video-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--border-gold);
}

.video-card__link { color: inherit; display: block; }

.video-card__thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-secondary);
}

.video-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-card:hover .video-card__thumb img { transform: scale(1.05); }

.video-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.2s;
}

.video-card:hover .video-card__play { opacity: 1; }

.video-card__badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: var(--gold-gradient);
    color: #1a1208;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.video-card__body { padding: 1rem; }

.video-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card__category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-light);
    background: rgba(212, 175, 55, 0.15);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

/* Genre carousel (homepage) */
.genre-section .section-header {
    align-items: flex-start;
}

.genre-carousel {
    position: relative;
    padding: 0 3.25rem;
}

.genre-carousel__track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.25rem 0 0.5rem;
}

.genre-carousel__track::-webkit-scrollbar {
    display: none;
}

.genre-carousel__track .video-card {
    flex: 0 0 260px;
    width: 260px;
    scroll-snap-align: start;
}

.genre-carousel__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-top: -2rem;
    padding: 0;
    color: #ffffff;
    background: var(--btn-bg);
    background-image: none;
    border: none;
    border-radius: 50%;
    box-shadow: none;
    text-shadow: none;
    cursor: pointer;
    transition: none;
}

.genre-carousel__arrow:hover:not(:disabled) {
    color: #ffffff;
    background: var(--btn-bg);
    box-shadow: none;
    transform: none;
}

.genre-carousel__arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.genre-carousel__arrow--prev {
    left: 0;
}

.genre-carousel__arrow--next {
    right: 0;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.category-grid--large {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Strict 4-across, 2-row layout for the homepage Instruction Video Library */
.category-grid--4col {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
    .category-grid--4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .category-grid--4col {
        grid-template-columns: 1fr;
    }
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    color: var(--text-on-card);
    transition: all 0.2s;
}

.category-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow), 0 0 24px var(--amber-glow);
}

.category-card h2, .category-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.category-card p {
    font-size: 0.85rem;
    color: var(--text-secondary-on-card);
    margin-bottom: 0.75rem;
}

.category-card__count {
    font-size: 0.8rem;
    color: var(--accent-light);
    font-weight: 600;
}

/* Page Header */
.page-header {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-header p { color: var(--text-secondary); }

/* Toolbar */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.toolbar-count { color: var(--text-muted); font-size: 0.9rem; }

.toolbar-sort select {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    color: var(--gold-light);
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 12px rgba(255, 140, 40, 0.15);
    cursor: pointer;
}

.toolbar-sort select:focus {
    outline: none;
    border-color: var(--gold-bright);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}

/* Video Detail */
.video-detail { padding: 2rem 0 4rem; }

.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.breadcrumb a { color: #ffffff; }
.breadcrumb span { margin: 0 0.4rem; }

.video-detail__layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.video-embed {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-detail__info h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.video-meta__date { color: #ffffff; }
.video-meta__category {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
}
.video-meta__category:hover {
    color: #ffffff;
    text-decoration: underline;
}

.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    font-size: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    color: var(--text-secondary);
}

.tag:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
    text-decoration: underline;
}

.video-description {
    margin-bottom: 1.5rem;
}

.video-description h2 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.video-description p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: pre-wrap;
}

.related-videos h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

/* Video engagement actions */
.video-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.video-actions--compact {
    padding: 0.5rem 0.75rem 0.75rem;
    margin-bottom: 0;
    gap: 0.35rem;
}

.video-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border: none;
    border-radius: 999px;
    background: var(--btn-bg);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-shadow: none;
    box-shadow: none;
    transition: none;
}

.video-actions--compact .video-action-btn {
    padding: 0.3rem 0.55rem;
    font-size: 0.72rem;
}

.video-actions--compact .video-action-btn__label {
    display: none;
}

.video-action-btn:hover {
    border: none;
    color: #ffffff;
    background: var(--btn-bg);
    text-decoration: none;
    box-shadow: none;
}

.video-action-btn.is-active {
    border: none;
    background: var(--brand-blue);
    color: #ffffff;
}

.video-action-btn--like.is-active .video-action-btn__icon {
    color: #ef4444;
}

.video-action-btn--favorite.is-active .video-action-btn__icon {
    color: var(--gold-bright);
}

.video-action-btn__count {
    opacity: 0.85;
    font-variant-numeric: tabular-nums;
}

.video-action-share {
    position: relative;
}

.video-action-share__menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    z-index: 20;
    min-width: 140px;
    background: var(--bg-panel, #1a1a24);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg, 0 8px 24px rgba(0,0,0,0.4));
    overflow: hidden;
}

.video-action-share__menu button {
    display: block;
    width: 100%;
    padding: 0.55rem 0.85rem;
    border: none;
    background: var(--btn-bg);
    color: #ffffff;
    text-align: left;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    text-shadow: none;
    box-shadow: none;
    transition: none;
}

.video-action-share__menu button:hover {
    background: var(--btn-bg);
    color: #ffffff;
    text-decoration: none;
    box-shadow: none;
}

/* Auth pages */
.auth-page {
    padding: 3rem 0 5rem;
}

.auth-page__inner {
    display: flex;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 12px);
    padding: 2rem;
}

.auth-card h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.auth-card__lead {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.auth-card__footer {
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

.auth-form .form-group {
    margin-bottom: 1rem;
}

.auth-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.auth-form input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-input, #12121a);
    color: var(--text);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--gold);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.required {
    color: var(--gold-bright);
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86efac;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.page-section {
    padding: 2rem 0 4rem;
}

.page-header {
    margin-bottom: 2rem;
}

.text-muted {
    color: var(--text-muted);
}

/* Search */
.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin-top: 1rem;
}

.search-form input {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.search-results-count {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Content pages */
.content-page .prose {
    max-width: 720px;
}

.prose h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
}

.prose p, .prose li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.prose ul { padding-left: 1.5rem; margin-bottom: 1rem; }

/* CTA */
.cta-section {
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
}

.cta-inner {
    text-align: center;
    max-width: 600px;
}

.cta-inner h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.cta-inner p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: var(--bg-secondary);
    border: none;
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 0.9rem;
    text-decoration: none;
    text-shadow: none;
    box-shadow: none;
    transition: none;
}

.pagination__link:hover {
    border: none;
    color: #ffffff;
    background: var(--btn-bg);
    text-decoration: none;
    box-shadow: none;
}

.pagination__link--active {
    border: none;
    color: #ffffff;
    background: var(--btn-bg);
    background-image: none;
    font-weight: 700;
    text-shadow: none;
    box-shadow: none;
}

/* Empty / Error */
.empty-state, .error-page p {
    color: var(--text-muted);
    text-align: center;
    padding: 3rem 0;
}

.error-page {
    text-align: center;
    padding: 5rem 0;
}

.error-page h1 {
    font-family: var(--font-display);
    font-size: 5rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer */
.site-footer {
    position: relative;
    z-index: 1;
    background: var(--brand-blue);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: var(--elevation-shadow-strong-up);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

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

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.75rem;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.footer-links a {
    display: block;
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        padding: 2.5rem 0 3rem;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-search {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }

    .hero-visual {
        display: flex;
        min-height: auto;
        margin: 0 auto;
        padding-top: 0.5rem;
    }

    .hero-glow {
        display: none;
    }

    .hero-image {
        width: min(100%, 300px);
        filter: none;
    }

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

@media (max-width: 768px) {
    .genre-carousel__track .video-card {
        flex: 0 0 220px;
        width: 220px;
    }

    .genre-carousel__arrow {
        width: 2.35rem;
        height: 2.35rem;
    }

    .genre-carousel {
        padding: 0 2.75rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-header {
        min-height: auto;
    }

    .header-inner {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        min-height: auto;
    }

    .logo {
        width: 100%;
        justify-content: center;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 101;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        margin-left: 0;
    }

    .main-nav.open { display: flex; }

    .header-search { display: none; }

    .nav-toggle {
        display: flex;
        align-self: center;
    }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }
}

/* Clearwater Kiteboarding — call-to-action & layout extras */
.btn-call {
    background: var(--btn-bg);
    background-image: none;
    color: #ffffff !important;
    border: none;
    font-weight: 600;
    box-shadow: none;
    text-shadow: none;
    text-decoration: none;
    transition: none;
}
.btn-call:hover {
    background: var(--btn-bg);
    background-image: none;
    color: #ffffff !important;
    box-shadow: none;
    text-decoration: none;
}
.nav-call {
    color: #ffffff !important;
    font-weight: 700;
}
.hero--kite {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}
.hero--kite .hero-glow {
    background: radial-gradient(circle, rgba(0, 180, 216, 0.25) 0%, transparent 70%);
}
.section--intro {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.prose--center { text-align: center; max-width: 720px; margin: 0 auto; }

.about-photo {
    margin: 1rem 0 1.5rem;
}

.about-photo img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 264px;
}

.about-gallery {
    display: grid;
    gap: 1rem;
    margin: 1rem 0 2rem;
}

.about-gallery img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1rem; }
.phone-cta { margin: 1.5rem 0; }
.footer-phone a { font-size: 1.125rem; font-weight: 700; color: #ffffff; }
.site-footer {
    background: var(--brand-blue);
    color: #ffffff;
}
.site-footer a,
.site-footer a:link,
.site-footer a:visited,
.site-footer a:hover,
.site-footer a:active,
.site-footer a:focus {
    color: #ffffff;
}
.site-footer .footer-tagline { color: #ffffff; }
.cta-section {
    background: var(--gold-gradient);
    color: #fff;
}
.cta-section .btn-outline {
    border: none;
    color: #fff;
}
.page-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

/* Reviews & local spots pages */
.content-page--wide .container {
    max-width: var(--container);
}

.prose--intro {
    max-width: 760px;
    margin-bottom: 2rem;
}

.google-reviews-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    margin-bottom: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius);
    box-shadow: var(--shadow-gold);
}

.google-reviews-banner h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.google-reviews-banner p {
    color: var(--text-secondary);
    margin: 0;
    max-width: 520px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.review-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.review-card__quote {
    flex: 1;
    margin: 0 0 1.25rem;
    font-size: 0.975rem;
    line-height: 1.65;
    color: var(--text-secondary);
    font-style: normal;
}

.review-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.review-card__author {
    font-style: normal;
    font-weight: 600;
    color: #ffffff;
}

.review-card__date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.spot-region {
    margin-bottom: 2.5rem;
}

.spot-region__title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: #ffffff;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-gold);
}

.spots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.spot-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.spot-card__header {
    margin-bottom: 0.75rem;
}

.spot-card__name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.spot-card__name a {
    color: inherit;
    text-decoration: none;
}

.spot-card__name a:hover {
    color: var(--brand-blue-light);
    text-decoration: underline;
}

/* Individual spot detail page */
.spot-detail__grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2.5rem;
}

.spot-detail__lead {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.spot-lesson-badge {
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--bg-secondary);
    border-left: 4px solid var(--ocean);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}

.spot-faq {
    margin-top: 1rem;
}

.spot-faq__item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    background: var(--bg-card);
}

.spot-faq__item summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    color: #ffffff;
    list-style: none;
}

.spot-faq__item summary::-webkit-details-marker {
    display: none;
}

.spot-faq__item p {
    padding: 0 1.25rem 1rem;
    margin: 0;
    color: var(--text-secondary);
}

.spot-facts-card {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.25rem;
}

.spot-facts-card__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.spot-facts-card__list div {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    gap: 0.5rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.spot-facts-card__list dt {
    font-weight: 600;
    color: var(--text-primary);
}

.spot-facts-card__list dd {
    margin: 0;
    color: var(--text-secondary);
}

.spot-facts-card--cta p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.spot-related {
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.spot-related h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.spot-related__list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.spot-related__list li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.spot-detail__videos {
    text-align: center;
    font-weight: 600;
}

@media (max-width: 900px) {
    .spot-detail__grid {
        grid-template-columns: 1fr;
    }
}

.spot-card__area {
    font-size: 0.875rem;
    color: var(--ocean-light);
    font-weight: 600;
}

.spot-card__description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.spot-card__meta {
    margin: 0 0 1.25rem;
}

.spot-card__meta-row {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    gap: 0.5rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.spot-card__meta-row:last-child {
    border-bottom: none;
}

.spot-card__meta-row dt {
    font-weight: 600;
    color: var(--text-primary);
}

.spot-card__meta-row dd {
    margin: 0;
    color: var(--text-secondary);
}

.spot-card__map-link {
    margin-top: auto;
    font-weight: 600;
    font-size: 0.9rem;
}

.safety-callout {
    padding: 1.75rem 2rem;
    margin-bottom: 2.5rem;
    background: var(--bg-secondary);
    border-left: 4px solid var(--ocean);
    border-radius: var(--radius-sm);
}

.safety-callout h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.safety-callout ul {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-secondary);
}

.safety-callout li {
    margin-bottom: 0.5rem;
}

.page-cta-block {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.page-cta-block h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.page-cta-block p {
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 0.5rem;
}

@media (max-width: 640px) {
    .google-reviews-banner {
        padding: 1.25rem;
    }

    .google-reviews-banner .btn {
        width: 100%;
        text-align: center;
    }

    .spot-card__meta-row {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
}

/* Cards on the all-blue site background */
.video-card,
.instructor-card,
.instructor-sidebar-card,
.spot-card,
.review-card {
    color: var(--text-on-card);
}

.video-card__title,
.instructor-card__name,
.spot-card h2,
.review-card__author {
    color: var(--text-on-card);
}

.video-card__meta,
.instructor-card__tagline,
.instructor-card__location {
    color: var(--text-secondary-on-card);
}

.section-title,
.page-header h1,
.hero-title {
    color: #ffffff;
}

.page-header p,
.section-subtitle,
.hero-subtitle {
    color: var(--text-secondary);
}

.prose--center h2,
.prose h2 {
    color: #ffffff;
}

.content-page .prose,
.content-page .prose p,
.content-page .prose li {
    color: var(--text-secondary);
}

.nav-call {
    color: #ffffff !important;
    font-weight: 700;
}

/* Instructor directory */
.instructor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.instructor-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.instructor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(13, 33, 55, 0.12);
}

.instructor-card--featured {
    border-color: var(--border-gold);
}

.instructor-card__link {
    display: block;
    color: inherit;
}

.instructor-card__photo img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: top center;
}

.instructor-card__body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.instructor-card__badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    background: var(--brand-blue-light);
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    margin-bottom: 0.65rem;
}

.instructor-card__name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
}

.instructor-card__tagline,
.instructor-card__location {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.instructor-card__cta {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: underline;
}

.instructor-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
}

.instructor-hero__photo img {
    width: min(100%, 220px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.instructor-hero__tagline {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0.5rem 0;
}

.instructor-hero__location {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.instructor-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.instructor-profile {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: start;
}

.instructor-sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.instructor-sidebar-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.instructor-sidebar-card a {
    color: #ffffff;
}

.instructor-sidebar-card a:hover {
    color: var(--brand-blue-light);
    text-decoration: underline;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
    .instructor-profile-layout {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Directory theme — nav, hero, instructors
   ============================================================ */

/* Text/link colors for these regions are handled once, in the
   CONTRAST LAW section further down this file. */

/* Header — one line desktop, full logo, hamburger mobile */
.header-inner {
    flex-wrap: nowrap;
    justify-content: space-between;
}

.logo-img {
    height: 100px;
    width: auto;
    max-width: min(600px, 55vw);
}

.main-nav {
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 0.65rem;
    font-size: 0.8125rem;
    flex-shrink: 1;
}

.main-nav a,
.nav-call {
    color: #ffffff !important;
    white-space: nowrap;
}

.nav-toggle span {
    background: #ffffff;
}

.header-search {
    flex-shrink: 0;
    max-width: 180px;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.header-search input {
    color: #ffffff;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.header-search .btn-icon,
.header-search .search-icon {
    color: #ffffff;
}

.nav-toggle {
    display: none;
    margin-left: 0.5rem;
}

/* Hero slider — full image visible, no overlay text */
.hero-slider {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: var(--bg-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: var(--elevation-shadow-strong);
}

.hero-slider__track {
    position: relative;
}

.hero-slider__slide {
    display: none;
    width: 100%;
}

.hero-slider__slide.is-active {
    display: block;
}

.hero-slider__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center bottom;
    box-shadow: none;
    animation: none;
    filter: none;
}

/* Hero intro — headline and CTAs above slider */
.hero-intro {
    position: relative;
    z-index: 2;
    padding-top: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: var(--elevation-shadow-strong);
}

.hero-intro__inner {
    text-align: center;
    max-width: 960px;
    margin: 0 auto;
}

.hero-intro__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0.75rem;
}

.hero-intro__text {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

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

/* Directory listing inquiry page */
.listing-page__lead {
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.listing-benefits,
.listing-packages,
.listing-form-panel {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.listing-benefits h2,
.listing-packages h2,
.listing-form-panel h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.listing-benefits__list {
    padding-left: 1.25rem;
}

.listing-benefits__list li {
    margin-bottom: 0.65rem;
}

.listing-packages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.listing-package {
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
}

.listing-package h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.listing-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.listing-form input,
.listing-form textarea,
.listing-form select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: #ffffff;
    background: var(--bg-secondary);
}

.listing-form input::placeholder,
.listing-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.listing-form input:focus,
.listing-form textarea:focus,
.listing-form select:focus {
    outline: none;
    border-color: var(--brand-blue-light);
}

.listing-form select option {
    color: #0d2137;
    background: #ffffff;
}

.listing-page__footer-note {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 640px) {
    .listing-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* Remove legacy hero animations */
.hero-glow,
.hero-image {
    animation: none !important;
    filter: none !important;
    box-shadow: none !important;
}

/* Instructor rows — one per row, photo beside info */
.instructor-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.instructor-row {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.instructor-row__photo {
    width: 200px;
    height: 230px;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius);
    box-shadow: none;
    animation: none;
}

.instructor-row__name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
}

.instructor-row__name a {
    color: inherit;
}

.instructor-row__name a,
.instructor-row__tagline,
.instructor-row__location {
    color: #ffffff;
}

.instructor-row__tagline,
.instructor-row__location {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.instructor-row__specialties {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    margin-top: 0.5rem;
    padding: 0;
    font-size: 0.85rem;
}

.instructor-row__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
    min-width: 140px;
}

/* Instructor profile page — photo left, info right */
.instructor-profile-layout {
    display: grid;
    grid-template-columns: min(264px, 35%) 1fr;
    gap: 2rem;
    align-items: start;
    margin-top: 1rem;
}

.instructor-profile-photo {
    width: 100%;
    max-width: 264px;
    border-radius: var(--radius);
    box-shadow: none;
    animation: none;
}

.instructor-profile-layout h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.instructor-profile-tagline {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.instructor-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.instructor-profile-bio p {
    margin-bottom: 0.75rem;
}

.instructor-profile-list {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.instructor-directory-note {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}

.instructor-directory-note h2 {
    font-family: var(--font-display);
    margin-bottom: 0.75rem;
}

.directory-cta {
    text-align: center;
}

.directory-cta h2 {
    font-family: var(--font-display);
    margin-bottom: 0.75rem;
}

.directory-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.25rem;
}

.empty-panel {
    text-align: center;
    padding: 2rem;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: var(--radius);
}

.empty-panel code {
    font-size: 0.85rem;
}

/* Buttons — flat authority block */
.btn,
a.btn,
button.btn,
.btn-primary,
.btn-call,
.btn-outline,
.section-link,
.pagination__link,
.genre-carousel__arrow,
.video-action-btn,
.header-search .btn-icon,
.site-main button[type="submit"]:not(.nav-toggle),
.site-main input[type="submit"] {
    background-image: none !important;
    border: none !important;
    transition: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    text-decoration: none !important;
    transform: none !important;
}

.btn::after,
.site-main button[type="submit"]:not(.nav-toggle)::after {
    display: none !important;
}

.btn,
a.btn,
button.btn,
.btn-primary,
.btn-call,
.btn-outline {
    color: #ffffff !important;
    background: var(--btn-bg) !important;
    border: none !important;
}

.btn:hover,
a.btn:hover,
button.btn:hover,
.btn-primary:hover,
.btn-call:hover {
    color: #ffffff !important;
    background: var(--btn-bg) !important;
}

/* Responsive nav — hamburger under 992px */
@media (max-width: 992px) {
    .header-inner {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
    }

    .logo {
        flex: 1 1 auto;
        min-width: 0;
    }

    .logo-img {
        height: 72px;
        max-width: min(420px, 74vw);
    }

    .header-search {
        display: none;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 101;
        flex-direction: column;
        align-items: stretch;
        background: var(--brand-blue-dark);
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        margin-left: 0;
        white-space: normal;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 0.5rem 0;
    }

    .nav-toggle {
        display: flex;
        flex-shrink: 0;
    }

    .site-header {
        position: sticky;
        min-height: auto;
    }

    .header-inner {
        min-height: 88px;
        padding: 8px 0;
    }

    .instructor-row {
        grid-template-columns: 120px 1fr;
    }

    .instructor-row__actions {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .instructor-row__photo {
        width: 120px;
        height: 140px;
    }
}

@media (min-width: 993px) {
    .logo-img {
        height: 108px;
        max-width: 640px;
    }

    .logo-img--footer {
        height: 84px;
        max-width: 460px;
    }

    .header-inner {
        min-height: 128px;
    }
}

/* ============================================================
   CONTRAST LAW — final authority (site is all-blue, text is white)
   ============================================================ */

/* Every text element on every surface is white */
:is(
    .site-header,
    .site-footer,
    .page-header,
    .hero-slider,
    .video-detail,
    .section,
    .cta-section,
    .error-page
) :where(
    h1, h2, h3, h4, h5, h6,
    p, li, span, label, dt, dd, small, strong, em,
    blockquote, figcaption, code, th, td
) {
    color: #ffffff;
}

:is(
    .site-header,
    .site-footer,
    .page-header,
    .hero-slider,
    .video-detail,
    .section,
    .cta-section
) :where(.section-subtitle, .text-muted, .toolbar-count, .empty-state, .breadcrumb, .footer-tagline, .footer-bottom) {
    color: #ffffff;
}

/* Every link is white — no exceptions */
:is(.site-header, .site-footer, .page-header, .hero-slider, .video-detail, .section, .cta-section) a:not(.btn),
:is(.site-header, .site-footer, .page-header, .hero-slider, .video-detail, .section, .cta-section) a:not(.btn):link,
:is(.site-header, .site-footer, .page-header, .hero-slider, .video-detail, .section, .cta-section) a:not(.btn):visited,
:is(.site-header, .site-footer, .page-header, .hero-slider, .video-detail, .section, .cta-section) a:not(.btn):hover,
:is(.site-header, .site-footer, .page-header, .hero-slider, .video-detail, .section, .cta-section) a:not(.btn):active,
:is(.site-header, .site-footer, .page-header, .hero-slider, .video-detail, .section, .cta-section) a:not(.btn):focus {
    color: #ffffff !important;
}

/* Cards keep white text/links too (their background is a slightly lighter blue, not white) */
.section :is(.video-card, .category-card, .spot-card, .review-card, .instructor-card, .google-reviews-banner),
a.category-card,
a.category-card:link,
a.category-card:visited,
a.category-card:hover,
a.category-card:active,
a.category-card:focus {
    color: #ffffff !important;
}

.section :is(.video-card, .category-card, .spot-card, .review-card, .instructor-card, .google-reviews-banner) :where(h1, h2, h3, h4, h5, h6, p, li, span, dt, dd, small) {
    color: inherit;
}

.section :is(.video-card, .category-card, .spot-card, .review-card, .instructor-card, .google-reviews-banner) a:not(.btn),
.section :is(.video-card, .category-card, .spot-card, .review-card, .instructor-card, .google-reviews-banner) a:not(.btn):link,
.section :is(.video-card, .category-card, .spot-card, .review-card, .instructor-card, .google-reviews-banner) a:not(.btn):visited,
.section :is(.video-card, .category-card, .spot-card, .review-card, .instructor-card, .google-reviews-banner) a:not(.btn):hover,
.section :is(.video-card, .category-card, .spot-card, .review-card, .instructor-card, .google-reviews-banner) a:not(.btn):active,
.section :is(.video-card, .category-card, .spot-card, .review-card, .instructor-card, .google-reviews-banner) a:not(.btn):focus {
    color: #ffffff !important;
    text-decoration: none;
}

.section :is(.video-card, .category-card, .spot-card, .review-card, .instructor-card, .google-reviews-banner) a:not(.btn):hover {
    color: var(--brand-blue-light) !important;
    text-decoration: underline;
}

.section .content-page .prose a,
.section .content-page .prose a:link,
.section .content-page .prose a:visited,
.section .content-page .prose a:hover,
.section .content-page .prose a:active,
.section .content-page .prose a:focus,
.section .text-muted a,
.section .breadcrumb a {
    color: #ffffff !important;
}

/* Pagination — blue buttons, white text */
.pagination__link,
.pagination__link:link,
.pagination__link:visited {
    color: #ffffff !important;
    background: var(--btn-bg);
}

.pagination__link:hover {
    color: #ffffff !important;
    background: var(--btn-bg) !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.pagination__link--active {
    color: #ffffff !important;
    background: var(--btn-bg) !important;
    background-image: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

/* Video detail page on blue background */
.video-detail .tag,
.video-detail .video-meta__date,
.video-detail .breadcrumb,
.video-detail .breadcrumb a,
.video-detail .breadcrumb a:link,
.video-detail .breadcrumb a:visited,
.video-detail .breadcrumb a:hover {
    color: #ffffff !important;
}

.video-detail .tag:hover {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.6);
}

/* Instruction guides */
.guides-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.guide-featured {
    width: 100%;
}

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

.guide-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.guide-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.guide-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: #0d2f4a;
}

.guide-card__video,
.guide-detail__player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #0d2f4a;
}

.guide-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.guide-card__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.guide-card__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin: 0;
}

.guide-card__summary {
    color: var(--text-secondary);
    margin: 0;
    flex: 1;
}

.guide-card--compact .guide-card__body {
    padding: 1rem;
    gap: 0.65rem;
}

.guide-card--compact .guide-card__title {
    font-size: 1rem;
}

.guide-card--featured .guide-card__media {
    aspect-ratio: 16 / 9;
}

.guide-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.guide-detail__video {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.guide-related h2 {
    margin-bottom: 1rem;
}

@media (max-width: 900px) {
    .guide-detail {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .guide-grid--two {
        grid-template-columns: 1fr;
    }
}

/* Contact layouts */
.contact-layout,
.instructor-contact-layout {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.contact-sidebar h2 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

.instructor-contact-photo {
    width: 100%;
    max-width: 200px;
    border-radius: var(--radius);
    display: block;
    margin-bottom: 1rem;
}

.instructor-contact-tagline {
    color: var(--text-secondary);
}

@media (max-width: 800px) {
    .contact-layout,
    .instructor-contact-layout {
        grid-template-columns: 1fr;
    }
}

/* Spot map previews */
.spot-card__map,
.spot-detail__map {
    display: block;
    position: relative;
    margin: -1.5rem -1.5rem 1rem;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
}

.spot-detail__map {
    margin: 0 0 1rem;
    border-radius: var(--radius);
}

.spot-card__map img,
.spot-detail__map img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.spot-card__map-label,
.spot-detail__map-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.65rem 1rem;
    background: rgba(13, 47, 74, 0.82);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

/* Google-style reviews */
.google-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #fff;
    color: #4285f4;
    font-weight: 700;
    font-family: Arial, sans-serif;
    font-size: 1.1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.google-logo--small {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.75rem;
}

.google-reviews-banner__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.google-reviews-banner__brand h2 {
    margin: 0;
}

.reviews-grid--google {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.google-review-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.15);
    color: #202124;
}

.google-review-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.google-review-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1a73e8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.google-review-card__author {
    display: block;
    font-style: normal;
    font-weight: 600;
    color: #202124;
}

.google-review-card__date {
    display: block;
    font-size: 0.85rem;
    color: #5f6368;
}

.google-review-card__stars {
    display: flex;
    gap: 0.1rem;
}

.google-review-card__star {
    color: #dadce0;
    font-size: 1rem;
    line-height: 1;
}

.google-review-card__star.is-filled {
    color: #fbbc04;
}

.google-review-card__quote {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #3c4043;
    font-style: normal;
}

.google-review-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e8eaed;
    margin-top: auto;
}

.google-review-card__source {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #5f6368;
}

.google-review-card__link {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a73e8 !important;
}

.google-review-card__link:hover {
    text-decoration: underline !important;
}

.section .google-review-card :where(h1, h2, h3, h4, h5, h6, p, li, span, cite, time, blockquote) {
    color: inherit;
}

/* BUTTON LAW — final overrides (flat, no effects) */
.btn,
a.btn,
button.btn,
.btn-primary,
.btn-call,
.btn-outline,
.btn-sm,
.btn-lg,
.btn-block,
.btn-icon,
.section-link,
.pagination__link,
.genre-carousel__arrow,
.video-action-btn,
.video-action-share__menu button,
.header-search .btn-icon,
.site-main button[type="submit"]:not(.nav-toggle),
.site-main input[type="submit"],
.cta-section .btn,
.cta-section .btn-outline {
    background-image: none !important;
    border: none !important;
    transition: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    text-decoration: none !important;
    transform: none !important;
}

.btn::after,
.btn::before,
.site-main button[type="submit"]:not(.nav-toggle)::after {
    display: none !important;
    content: none !important;
}

/* Category card hover accent (the whole card is the <a>) */
a.category-card:hover {
    color: var(--brand-blue-light) !important;
}
