/* ═══════════════════════════════════════════
   SAMPLE CALL FUNNEL — Shared Styles
   ═══════════════════════════════════════════ */

:root {
    --ink: #1a1915;
    --cream: #faf8f4;
    --warm-gray: #a09a8e;
    --stone: #d4cfc4;
    --terracotta: #c4553a;
    --terracotta-soft: #e8806a;
    --deep-green: #1e3a2f;
    --sage: #5c7a6a;
    --gold: #b8962e;
    --card-bg: #ffffff;
    --header-bg: rgba(250, 248, 244, 0.92);
    --text-muted: #4a4a44;
    --serif: 'DM Serif Display', 'Georgia', serif;
    --sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 6px;
}

/* ─── DARK MODE ─── */
[data-theme="dark"] {
    --ink: #f5f3ef;
    --cream: #141312;
    --warm-gray: #8a8478;
    --stone: #2e2c28;
    --deep-green: #1a2f26;
    --sage: #4a6358;
    --card-bg: #1c1b19;
    --header-bg: rgba(20, 19, 18, 0.92);
    --text-muted: #a8a49c;
}

[data-theme="dark"] body {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
}

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

body {
    font-family: var(--sans);
    line-height: 1.65;
    color: var(--ink);
    background: var(--cream);
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* Grain texture overlay */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    /* Smooth theme transition */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.section { padding: 100px 0; }

/* ─── HEADER ─── */
.header {
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--stone);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav { display: flex; justify-content: space-between; align-items: center; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ─── THEME TOGGLE ─── */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--stone);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--warm-gray);
}

.theme-toggle:hover {
    border-color: var(--warm-gray);
    color: var(--ink);
    background: var(--card-bg);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
    transform: rotate(15deg);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.logo {
    font-family: var(--serif);
    font-size: 24px;
    color: var(--ink);
    letter-spacing: -0.01em;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--warm-gray);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: color 0.25s;
}

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

.btn-header {
    background: var(--ink);
    color: var(--cream);
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-header:hover {
    background: var(--terracotta);
    transform: translateY(-1px);
}

/* ─── MOBILE NAV ─── */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    position: relative;
    z-index: 200;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ink);
    transition: all 0.3s ease;
    position: absolute;
    left: 0;
}

.mobile-toggle span:nth-child(1) { top: 0; }
.mobile-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-toggle span:nth-child(3) { bottom: 0; }

.mobile-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--stone);
    padding: 24px 28px;
    z-index: 99;
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu.open {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu ul li a {
    display: block;
    padding: 14px 0;
    text-decoration: none;
    color: var(--ink);
    font-weight: 500;
    font-size: 16px;
    border-bottom: 1px solid var(--stone);
    transition: color 0.25s;
}

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

.mobile-menu ul li a:hover {
    color: var(--terracotta);
}

/* ─── PLAY BUTTON PULSE ─── */
@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
    70% { box-shadow: 0 0 0 16px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* Button reset for play buttons */
button.play-circle,
button.training-play-sm,
button.breakout-play-sm {
    background: transparent;
    font: inherit;
    color: inherit;
    padding: 0;
}

.play-circle {
    width: 72px;
    height: 72px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    animation: pulse-ring 2.5s ease-out infinite;
}

.play-circle:hover {
    border-color: white;
    background: rgba(255,255,255,0.1);
    transform: scale(1.08);
    animation: none;
}

.play-circle svg { margin-left: 3px; }

/* ─── VIDEO ─── */
.video-wrapper {
    background: var(--deep-green);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--stone);
}

.video-thumbnail {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-thumbnail::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(92, 122, 106, 0.4) 0%, transparent 60%);
}

.video-title {
    position: absolute;
    bottom: 24px;
    left: 28px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 500;
    z-index: 2;
}

.video-chapters {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.5);
    border-radius: 4px;
    padding: 6px 12px;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    z-index: 2;
}

/* ─── TESTIMONIAL SHARED ─── */
.testimonial-quote {
    font-family: var(--serif);
    font-size: 44px;
    line-height: 1;
    color: var(--stone);
    margin-bottom: 12px;
}

.testimonial-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-style: normal;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: white;
}

.author-info h4 {
    font-weight: 600;
    font-size: 15px;
}

.author-info p {
    color: var(--warm-gray);
    font-size: 13px;
}

/* ─── FOOTER ─── */
.footer {
    background: var(--ink);
    color: white;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer a {
    color: var(--terracotta-soft);
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    text-align: center;
    color: rgba(255,255,255,0.3);
    font-size: 14px;
}

/* ─── FOCUS STATES ─── */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--terracotta);
    outline-offset: 3px;
}

.btn-header:focus-visible,
.btn-primary:focus-visible,
.btn-cta:focus-visible {
    outline-offset: 4px;
    box-shadow: 0 0 0 4px rgba(196, 85, 58, 0.2);
}

.play-circle:focus-visible,
.training-play-sm:focus-visible,
.breakout-play-sm:focus-visible {
    outline-color: white;
    outline-offset: 4px;
}

/* Skip to Main Content */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: var(--cream);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    z-index: 1000;
    transition: top 0.3s ease;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

/* ─── ANIMATIONS ─── */
@keyframes float-gentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.fade-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── RESPONSIVE SHARED ─── */
@media (max-width: 768px) {
    .section { padding: 72px 0; }
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .footer-content { grid-template-columns: 1fr; gap: 32px; }
}
