/* ========================================
   Component Styles — MysticSwell Brand
   ========================================
   All values reference design-tokens.css.
   Import: tokens first, then this file.
   ======================================== */

/* ========================================
   NAV
   ======================================== */

.nav {
    background: var(--bg-dark);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 0.5px solid rgba(255,255,255,0.07);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 400;
    color: var(--text-on-dark);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.nav-logo span { color: var(--text-accent); }

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(232,226,214,0.55);
    text-decoration: none;
    transition: color 0.2s;
    padding: 4px 0;
}

.nav-links a:hover { color: var(--text-on-dark); }
.nav-links a[aria-current="page"],
.nav-links a.active { color: var(--text-on-dark); }

/* Mobile menu toggle */
.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-on-dark);
    cursor: pointer;
    padding: 8px;
}

.nav-mobile-menu {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border-top: 0.5px solid rgba(255,255,255,0.07);
    padding: 16px 24px;
    z-index: 99;
}

.nav-mobile-menu.hidden { display: none; }

.nav-mobile-menu a {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(232,226,214,0.5);
    text-decoration: none;
    padding: 14px 0;
    min-height: 48px;
    border-bottom: 0.5px solid rgba(255,255,255,0.05);
    transition: color 0.2s;
}

.nav-mobile-menu a:last-child { border-bottom: none; }
.nav-mobile-menu a:hover,
.nav-mobile-menu a[aria-current="page"] { color: var(--text-on-dark); }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-mobile-toggle { display: block; }
}

/* ========================================
   HERO
   ======================================== */

.hero {
    background: var(--bg-dark);
    padding: 48px 24px 0;
    position: relative;
}

.hero-eyebrow {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-accent);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--text-accent);
    opacity: 0.6;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 6vw, 52px);
    font-weight: 400;
    color: var(--text-on-dark);
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    text-wrap: balance;
    overflow-wrap: break-word;
}

.hero-sub {
    font-size: 17px;
    font-weight: 300;
    color: rgba(232,226,214,0.6);
    line-height: 1.6;
    max-width: 480px;
    margin-bottom: 40px;
}

.hero-wave {
    display: block;
    width: calc(100% + 48px);
    margin-left: -24px;
    height: 40px;
}

/* ========================================
   STATUS BAND
   ======================================== */

.status-band {
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.status-band--safe { background: var(--bg-safe); }
.status-band--warning { background: var(--bg-warning); }
.status-band--unsafe { background: var(--bg-unsafe); }

.status-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.25);
    animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 4px rgba(255,255,255,0.25); }
    50% { opacity: 0.4; box-shadow: 0 0 0 8px rgba(255,255,255,0.06); }
}

.status-text {
    font-size: 17px;
    font-weight: 500;
    color: #fff;
}

.status-countdown {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.18s;
    border: none;
    justify-content: center;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--bg-dark);
    color: var(--text-on-dark);
}

.btn-primary:hover { background: var(--bg-teal); }

.btn-secondary {
    background: transparent;
    color: var(--bg-dark);
    border: 0.5px solid rgba(0,0,0,0.2);
}

.btn-secondary:hover {
    border-color: rgba(0,0,0,0.4);
    background: rgba(0,0,0,0.03);
}

.btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ========================================
   CARDS
   ======================================== */

.quick-links {
    padding: 24px 24px 28px;
    background: var(--bg-page);
}

.quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.quick-card {
    background: #fff;
    border: 0.5px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 16px;
    text-decoration: none;
    color: var(--bg-dark);
    display: block;
    transition: border-color 0.2s, transform 0.15s;
}

.quick-card:hover {
    border-color: var(--text-accent);
    transform: translateY(-1px);
}

.quick-card-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
}

.quick-card-sub {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.quick-card-icon {
    font-size: 18px;
    margin-bottom: 10px;
    display: block;
}

/* ========================================
   CONTENT STRIP (About / Feature)
   ======================================== */

.about-strip {
    background: #e8e3da;
    border-top: 0.5px solid rgba(0,0,0,0.07);
    border-bottom: 0.5px solid rgba(0,0,0,0.07);
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-strip h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    color: var(--bg-dark);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.about-strip p {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.7;
    color: #3d3829;
    max-width: 640px;
    margin-bottom: 14px;
}

.about-strip p:last-child { margin-bottom: 0; }

.about-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.fact-card {
    background: var(--bg-page);
    border-radius: 8px;
    padding: 14px 16px;
    border: 0.5px solid rgba(0,0,0,0.08);
}

.fact-num {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 400;
    color: var(--bg-dark);
    line-height: 1;
    margin-bottom: 4px;
}

.fact-label {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ========================================
   SAFETY BANNER
   ======================================== */

.safety-banner {
    margin: 0 24px 24px;
    background: #fff8f0;
    border: 0.5px solid #e8d5b0;
    border-left: 3px solid #b83224;
    border-radius: 0 8px 8px 0;
    padding: 14px 16px;
}

.safety-banner-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #b83224;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.safety-banner p {
    font-size: 15px;
    line-height: 1.6;
    color: #3d3626;
}

.safety-banner strong { font-weight: 500; }

/* ========================================
   ALERTS
   ======================================== */

.alert-safe,
.alert-warning,
.alert-danger,
.alert-info {
    padding: 14px 16px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.6;
}

.alert-safe {
    background-color: var(--color-safe-bg);
    border-left: 4px solid var(--color-safe-border);
    color: var(--color-safe-text);
}

.alert-danger {
    background-color: var(--color-danger-bg);
    border-left: 4px solid var(--color-danger-border);
    color: var(--color-danger-text);
}

.alert-warning {
    background-color: var(--color-warning-bg);
    border-left: 4px solid var(--color-warning-border);
    color: var(--color-warning-text);
}

.alert-info {
    background-color: var(--color-info-bg);
    border-left: 4px solid var(--color-info-border);
    color: var(--color-info-text);
}

/* ========================================
   FAQ ACCORDION
   ======================================== */

.faq-list {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    overflow: hidden;
}

.faq-item { border-bottom: 1px solid #e5e7eb; }
.faq-item:last-child { border-bottom: none; }

.faq-question {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
    text-align: left;
    padding: 1.25rem 1.5rem;
    background: white;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    transition: background-color 0.15s ease;
}

.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; content: ''; }
.faq-question:hover { background-color: #f9fafb; }
.faq-question span { flex: 1; }

.faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #9ca3af;
    transition: transform 0.2s ease, color 0.15s ease;
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
    color: var(--text-accent);
}

.faq-answer {
    padding: 0 1.5rem 1.25rem;
    background: white;
}

.faq-answer p:last-child,
.faq-answer ul:last-child { margin-bottom: 0; }

/* ========================================
   SECTION EYEBROW
   ======================================== */

.section-eyebrow {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* ========================================
   TIDE GRID
   ======================================== */

.tide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tide-tile {
    background: #fff;
    border: 0.5px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    text-align: center;
}

.tide-tile-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.tide-tile-value {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    color: var(--bg-dark);
}

@media (min-width: 768px) {
    .tide-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ========================================
   BREADCRUMBS
   ======================================== */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    padding: 0 24px;
}

.breadcrumb a { color: var(--text-accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-separator { color: #9ca3af; }

/* ========================================
   FOOTER
   ======================================== */

.bp-footer {
    background: var(--bg-dark);
    padding: 32px 24px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 0.5px solid rgba(255,255,255,0.08);
}

.bp-footer .footer-logo {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--text-on-dark);
    margin-bottom: 8px;
}

.bp-footer .footer-logo span { color: var(--text-accent); }

.bp-footer .footer-tagline {
    font-size: 14px;
    font-weight: 300;
    color: rgba(232,226,214,0.5);
    line-height: 1.6;
}

.footer-col-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(232,226,214,0.45);
    margin-bottom: 12px;
}

.bp-footer .footer-links { list-style: none; }
.bp-footer .footer-links li { margin-bottom: 8px; }

.bp-footer .footer-links a {
    font-size: 14px;
    color: rgba(232,226,214,0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.bp-footer .footer-links a:hover { color: var(--text-on-dark); }

.footer-emergency {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(184,50,36,0.15);
    border: 0.5px solid rgba(184,50,36,0.3);
    border-radius: 8px;
    padding: 12px 14px;
    margin-top: 16px;
}

.footer-emergency-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #e07060;
}

.footer-emergency-text {
    font-size: 14px;
    color: rgba(232,226,214,0.7);
    line-height: 1.5;
}

.footer-emergency-text strong {
    color: var(--text-on-dark);
    font-weight: 500;
}

.bp-footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-copy {
    font-size: 13px;
    color: rgba(232,226,214,0.35);
}

.footer-disclaimer {
    font-size: 12px;
    color: rgba(232,226,214,0.35);
    max-width: 400px;
    text-align: right;
    line-height: 1.5;
}

/* ========================================
   BACK TO TOP
   ======================================== */

.back-to-top {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-dark);
    color: var(--text-on-dark);
    border: none;
    cursor: pointer;
    z-index: 90;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: opacity 0.2s;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible { display: flex; }

.back-to-top:hover { opacity: 0.85; }

@media (min-width: 769px) {
    .back-to-top { bottom: 24px; }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 { animation: fadeUp 0.6s ease both; }
.hero-sub { animation: fadeUp 0.6s 0.1s ease both; }
.status-band { animation: fadeUp 0.5s 0.2s ease both; }

@keyframes loading-pulse-anim {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading-pulse {
    animation: loading-pulse-anim 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 520px) {
    .about-facts { grid-template-columns: 1fr 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-disclaimer { text-align: left; }
    .tide-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 380px) {
    .quick-grid { grid-template-columns: 1fr; }
    .about-facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.bp-focus:focus-visible {
    outline: 2px solid var(--text-accent);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .btn,
    .quick-card {
        min-height: 48px;
    }
}

/* ========================================
   PRINT
   ======================================== */

@media print {
    .nav, .bp-footer, .back-to-top, .mobile-bottom-nav { display: none; }
}
