/* ============================================
   Deep Currents — Shared Styles + Mobile
   ============================================ */

/* --- Reset & Variables --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ocean-deep: #1E6BA8;
    --ocean-mid: #4CAED4;
    --seafoam: #9BE4E0;
    --sand: #FFD89C;
    --warm-cream: #FFF9F0;
    --coral: #FF8E8E;
    --earth: #7FD4A8;
    --warm-black: #3D3935;
    --soft-white: #FFFFFF;
    --lavender: #C5B9E8;
    --sunshine: #FFE156;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--warm-cream);
    color: var(--warm-black);
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- Responsive Images (global) --- */
img {
    max-width: 100%;
    height: auto;
}

/* --- Header --- */
header {
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, var(--soft-white) 0%, transparent 100%);
    z-index: 100;
}

.logo-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.logo {
    font-family: 'Spectral', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--ocean-deep);
    letter-spacing: -0.5px;
    line-height: 1;
    text-decoration: none;
}

.tagline-header {
    font-size: 0.85rem;
    color: var(--ocean-mid);
    font-style: italic;
    font-weight: 400;
}

/* --- Desktop Nav --- */
nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    color: var(--ocean-deep);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coral);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

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

/* --- Hamburger Button (hidden on desktop) --- */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 200;
    -webkit-tap-highlight-color: transparent;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--ocean-deep);
    border-radius: 3px;
    transition: all 0.3s ease;
    margin: 5px 0;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Mobile Nav Overlay (hidden on desktop) --- */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 80vw;
    height: 100%;
    background: var(--soft-white);
    z-index: 160;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 5rem 2rem 2rem;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}

.mobile-nav-drawer.active {
    transform: translateX(0);
}

.mobile-nav-drawer a {
    display: block;
    color: var(--ocean-deep);
    text-decoration: none;
    font-size: 1.15rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(155, 228, 224, 0.3);
    transition: color 0.3s ease;
    min-height: 48px;
    line-height: 1.5;
}

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

.mobile-nav-drawer a:hover,
.mobile-nav-drawer a:active {
    color: var(--coral);
}

/* --- Page Header --- */
.page-header {
    padding: 4rem 10%;
    text-align: center;
    background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-mid) 100%);
    color: var(--soft-white);
}

.page-header h1 {
    font-family: 'Spectral', serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--soft-white);
}

.page-header p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
    color: var(--soft-white);
}

/* --- Content Section --- */
.content-section {
    padding: 4rem 10%;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section h2 {
    font-family: 'Spectral', serif;
    font-size: 2.5rem;
    color: var(--ocean-deep);
    margin-bottom: 2rem;
}

.content-section h3 {
    font-family: 'Spectral', serif;
    font-size: 1.6rem;
    color: var(--ocean-mid);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.content-section p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--warm-black);
}

/* --- Testimonial Section --- */
.testimonial-section {
    background: var(--ocean-deep);
    color: var(--soft-white);
    padding: 4rem 10%;
    position: relative;
}

.testimonial-section::before {
    content: '\201C';
    font-family: 'Spectral', serif;
    font-size: 8rem;
    color: var(--seafoam);
    position: absolute;
    top: 2rem;
    left: 5%;
    opacity: 0.2;
    line-height: 1;
}

.testimonial-quote {
    font-family: 'Spectral', serif;
    font-size: 1.4rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    position: relative;
    z-index: 1;
    color: var(--soft-white);
}

.testimonial-author {
    text-align: center;
    font-size: 1.1rem;
    color: var(--seafoam);
    font-weight: 500;
}

/* --- Intro Layout (service pages) --- */
.intro-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.intro-layout .photo-column {
    flex: 0 0 66.666%;
    max-width: 66.666%;
}

.intro-layout .photo-column .photo-placeholder {
    width: 100%;
    margin-left: 0;
    height: 400px;
    margin-top: 0;
    margin-bottom: 0;
}

.intro-layout .text-column {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

.intro-layout .text-column p {
    margin: 0;
}

/* --- Photo-Topics Wrapper --- */
.photo-topics-wrapper {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-top: 3rem;
}

.photo-topics-wrapper .photo-placeholder {
    width: 400px;
    height: 400px;
    margin: 0;
    flex-shrink: 0;
    border-radius: 24px;
}

.topics-content {
    flex: 1;
}

/* --- Buttons --- */
.btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
    font-family: 'DM Sans', sans-serif;
    text-align: center;
}

.btn-primary {
    background: #5EBFB3;
    color: var(--soft-white);
    box-shadow: 0 6px 24px rgba(94, 191, 179, 0.4);
    font-weight: 600;
}

.btn-primary:hover {
    background: #4DAFA3;
    box-shadow: 0 8px 32px rgba(94, 191, 179, 0.5);
}

.btn-secondary {
    background: var(--soft-white);
    color: var(--ocean-deep);
    border: 3px solid var(--seafoam);
    box-shadow: 0 4px 16px rgba(155, 228, 224, 0.3);
    font-weight: 600;
}

.btn-secondary:hover {
    background: var(--seafoam);
    color: var(--ocean-deep);
    border-color: var(--ocean-mid);
    box-shadow: 0 6px 24px rgba(155, 228, 224, 0.5);
}

/* --- Bottom Actions --- */
.bottom-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 4rem 5%;
    background: var(--ocean-deep);
}

.bottom-actions .btn {
    min-width: 200px;
}

/* --- Quiz Teaser --- */
.quiz-teaser {
    padding: 3rem 10%;
    background: var(--ocean-deep);
    text-align: center;
    color: var(--soft-white);
}

.quiz-teaser h2 {
    font-family: 'Spectral', serif;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--soft-white);
    font-weight: 600;
}

.quiz-teaser p {
    font-size: 1.2rem;
    color: var(--seafoam);
    margin-bottom: 1.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* --- Footer --- */
footer {
    background: var(--ocean-deep);
    color: var(--warm-cream);
    padding: 3rem 5%;
    text-align: center;
}

footer p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

footer a {
    color: var(--seafoam);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--coral);
}

.social-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* --- Wave Decorations --- */
.wave-divider {
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%234A7C9C' opacity='0.1'/%3E%3C/svg%3E") no-repeat center;
    background-size: cover;
}

.wave-top {
    position: relative;
}

.wave-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23FAF7F2'/%3E%3C/svg%3E") no-repeat center;
    background-size: cover;
    transform: translateY(-1px);
}

.wave-bottom {
    position: relative;
}

.wave-bottom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23FAF7F2'/%3E%3C/svg%3E") no-repeat center;
    background-size: cover;
    transform: translateY(1px) rotate(180deg);
}

.page-header.wave-bottom::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23FAF7F2'/%3E%3C/svg%3E") no-repeat center;
    background-size: cover;
}

footer.wave-top::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23FAF7F2'/%3E%3C/svg%3E") no-repeat center;
    background-size: cover;
}

/* --- Photo Placeholder (shared base) --- */
.photo-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--seafoam) 0%, var(--ocean-mid) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--soft-white);
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.photo-placeholder::before {
    content: none;
}

/* ============================================
   Desktop Breakpoint (existing 968px rules)
   ============================================ */
@media (max-width: 968px) {
    .intro-layout {
        flex-direction: column;
    }

    .intro-layout .photo-column,
    .intro-layout .text-column {
        flex: 1;
        max-width: 100%;
    }

    .photo-topics-wrapper {
        flex-direction: column;
    }

    .photo-topics-wrapper .photo-placeholder {
        width: 100%;
    }
}

/* ============================================
   Tablet Breakpoint — 768px
   ============================================ */
@media (max-width: 768px) {
    /* --- Hamburger visible, desktop nav hidden --- */
    .hamburger {
        display: block;
    }

    nav {
        display: none;
    }

    .mobile-nav-overlay {
        display: block;
    }

    /* --- Sticky header on mobile --- */
    header {
        position: sticky;
        top: 0;
        z-index: 100;
        background: var(--soft-white);
    }

    /* --- Typography scaling --- */
    .page-header h1 {
        font-size: 2.5rem;
    }

    .page-header {
        padding: 3rem 5%;
    }

    .content-section {
        padding: 2.5rem 5%;
    }

    .content-section h2 {
        font-size: 2rem;
    }

    .content-section h3 {
        font-size: 1.4rem;
    }

    .quiz-teaser {
        padding: 2.5rem 5%;
    }

    .quiz-teaser h2 {
        font-size: 1.8rem;
    }

    .testimonial-section {
        padding: 3rem 5%;
    }

    .testimonial-quote {
        font-size: 1.2rem;
    }

    .testimonial-section::before {
        font-size: 5rem;
    }

    /* --- Mobile spacing --- */
    .bottom-actions {
        padding: 2.5rem 5%;
        flex-direction: column;
        align-items: center;
    }

    .bottom-actions .btn {
        width: 100%;
        max-width: 320px;
    }

    /* --- Intro layout stacking --- */
    .intro-layout .photo-column .photo-placeholder {
        width: 100%;
    }

    /* --- Touch targets --- */
    .btn {
        min-height: 48px;
        padding: 0.875rem 2rem;
    }

    .social-links {
        gap: 1.5rem;
    }

    .social-links a {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
    }

    footer a {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
    }

    /* --- Images with inline width: expand on mobile --- */
    img[style*="width: 65%"],
    img[style*="width: 70%"],
    img[style*="width: 80%"],
    img[style*="width: 85%"] {
        width: 95% !important;
    }

    /* Inline wrapper divs that constrain width */
    div[style*="width: 70%"],
    div[style*="width: 80%"],
    div[style*="width: 45%"],
    div[style*="width: 50%"],
    div[style*="width: 90%"] {
        width: 95% !important;
    }

    /* --- Inline flex layouts (learning-experiences intro, coaching intro) --- */
    div[style*="display: flex"][style*="gap: 1.5rem"] {
        flex-direction: column !important;
    }

    /* --- Hide particles on mobile (performance) --- */
    .particle {
        display: none !important;
    }
}

/* ============================================
   Small Phone Breakpoint — 480px
   ============================================ */
@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1.1rem;
    }

    .content-section h2 {
        font-size: 1.75rem;
    }

    .content-section p {
        font-size: 1.05rem;
    }

    .quiz-teaser h2 {
        font-size: 1.6rem;
    }

    .quiz-teaser p {
        font-size: 1.05rem;
    }

    .testimonial-quote {
        font-size: 1.1rem;
    }

    .bottom-actions .btn {
        max-width: 100%;
    }

    /* Inline width images expand fully */
    img[style*="width: 65%"],
    img[style*="width: 70%"],
    img[style*="width: 80%"],
    img[style*="width: 85%"],
    img[style*="width: 95%"] {
        width: 100% !important;
    }

    div[style*="width: 70%"],
    div[style*="width: 80%"],
    div[style*="width: 45%"],
    div[style*="width: 50%"],
    div[style*="width: 90%"],
    div[style*="width: 95%"] {
        width: 100% !important;
    }

    .mobile-nav-drawer {
        width: 100%;
        max-width: 100vw;
    }
}

/* ============================================
   Touch-specific (coarse pointer devices)
   ============================================ */
@media (pointer: coarse) {
    .btn {
        min-height: 48px;
    }

    nav a {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
    }

    .social-links a {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
    }
}

/* ============================================
   iOS Zoom Fix — form inputs ≥ 16px
   ============================================ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
select,
textarea {
    font-size: 16px;
}

/* ============================================
   Body scroll lock when mobile menu open
   ============================================ */
body.menu-open {
    overflow: hidden;
}
