/* =========================================================
   Money and Medicine - Static HTML Site Styles
   Based on original WordPress Hello Elementor + Elementor design
   ========================================================= */

/* --- Fonts --- */
@font-face {
    font-family: 'Avenir';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('../fonts/Avenir-Black.ttf') format('truetype');
}
@font-face {
    font-family: 'Avenir';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/Avenir-Medium.ttf') format('truetype');
}
@font-face {
    font-family: 'Avenir';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Avenir-Book.ttf') format('truetype');
}

/* --- CSS Variables / Design System --- */
:root {
    --color-primary: #144856;
    --color-secondary: #5DA09D;
    --color-text: #4E4E4E;
    --color-accent: #F3F3F3;
    --color-dark: #040E29;
    --color-gold: #A99370;
    --color-white: #FFFFFF;
    --color-dark-teal: #204E4C;

    --font-primary: 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --heading-xxl: 70px;
    --heading-xl: 40px;
    --heading-lg: 24px;
    --heading-md: 20px;
    --body-size: 16px;
    --body-line: 24px;

    --container-max: 1140px;
    --container-wide: 1400px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-primary);
    font-size: var(--body-size);
    font-weight: 400;
    line-height: var(--body-line);
    color: var(--color-text);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--color-secondary); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-primary); color: var(--color-primary); line-height: 1.2; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 70px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.2;
}
.btn-primary {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}
.btn-primary:hover {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}
.btn-secondary {
    background: var(--color-secondary);
    color: var(--color-white);
    border-color: var(--color-secondary);
}
.btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}
.btn-teal {
    background: var(--color-secondary);
    color: var(--color-white);
    border-radius: 0;
    padding: 15px 45px;
    border: none;
}
.btn-teal:hover {
    background: var(--color-primary);
    color: var(--color-white);
}
.btn-dark {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    border-radius: 0;
}
.btn-dark:hover {
    background: var(--color-white);
    color: var(--color-primary);
}
.btn-outline-light {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
    border-radius: 0;
}
.btn-outline-light:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

/* --- Header / Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(20, 72, 86, 0.95);
    backdrop-filter: blur(10px);
    padding: 0 20px;
    transition: background 0.3s ease;
}
.header-inner {
    max-width: var(--container-wide);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}
.site-logo {
    display: flex;
    align-items: center;
}
.site-logo img {
    height: 40px;
    width: auto;
}
.site-logo span {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 900;
    color: var(--color-white);
    margin-left: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 8px;
}
.main-nav ul li a {
    display: block;
    padding: 8px 16px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    border-radius: 4px;
}
.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--color-white);
    background: rgba(255,255,255,0.1);
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    margin: 5px 0;
    transition: 0.3s;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #144856 0%, #1a5a6b 50%, #204E4C 100%);
    overflow: hidden;
    padding-top: 80px;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../wp-content/uploads/2021/02/DSC05308_1-1.jpg') center center / cover no-repeat;
    opacity: 0.2;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}
.hero-content h4 {
    font-size: var(--heading-lg);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 20px;
    letter-spacing: 2px;
}
.hero-content h1 {
    font-size: var(--heading-xxl);
    font-weight: 900;
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -2px;
}
.hero-content p {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    animation: bounce 2s infinite;
}
.scroll-indicator svg {
    width: 32px;
    height: 32px;
    fill: var(--color-white);
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* --- Section Styles --- */
.section {
    padding: 80px 0;
}
.section-dark {
    background: var(--color-primary);
    color: var(--color-white);
}
.section-dark h2, .section-dark h3, .section-dark h4 {
    color: var(--color-white);
}
.section-light {
    background: var(--color-accent);
}
.section-white {
    background: var(--color-white);
}
.section-title {
    font-size: var(--heading-lg);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 30px;
    letter-spacing: 0.4px;
}
.section-title-large {
    font-size: var(--heading-xl);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

/* --- Subscribe Bar --- */
.subscribe-bar {
    background: var(--color-secondary);
    padding: 40px 0;
    text-align: center;
}
.subscribe-bar h2 {
    color: var(--color-white);
    font-size: var(--heading-lg);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 15px;
}
.subscribe-bar p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 25px;
}
.subscribe-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.subscribe-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: 2px solid var(--color-white);
    color: var(--color-white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    border-radius: 70px;
    transition: all 0.3s ease;
}
.subscribe-links a svg {
    width: 20px;
    height: 20px;
}
.subscribe-links a:hover {
    background: var(--color-white);
    color: var(--color-secondary);
}
.subscribe-links a:hover svg path { fill: var(--color-secondary); }

/* --- Card Grid --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}
.card {
    background: var(--color-white);
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.card-image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}
.card-body {
    padding: 20px;
}
.card-category {
    font-size: 14px;
    color: #959595;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.card-title {
    font-size: var(--heading-md);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
    line-height: 1.2;
}
.card-title a { color: var(--color-primary); }
.card-title a:hover { color: var(--color-secondary); }
.card-excerpt {
    font-size: 14px;
    color: var(--color-text);
    margin-bottom: 20px;
}
.card-link {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-primary);
}

/* --- Two Column Split --- */
.split-section {
    display: flex;
    min-height: 500px;
}
.split-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 80px;
}
.split-image {
    flex: 1;
    overflow: hidden;
}
.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.split-text h2 {
    font-size: var(--heading-lg);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.split-text p {
    margin-bottom: 20px;
}

/* --- CTA Section --- */
.cta-section {
    text-align: center;
    padding: 80px 20px;
}
.cta-section h3 {
    font-size: var(--heading-xl);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--color-primary);
}
.cta-section p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: var(--body-size);
    line-height: 1.8;
}
.cta-section.dark-bg h3,
.cta-section.dark-bg p {
    color: var(--color-white);
}
.cta-section.dark-bg {
    background: var(--color-primary);
}

/* --- Logo Carousel / Affiliates --- */
.logo-carousel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 40px 0;
}
.logo-carousel img {
    max-height: 60px;
    width: auto;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    filter: grayscale(100%);
}
.logo-carousel img:hover {
    opacity: 1;
    filter: grayscale(0%);
}
.divider-line {
    width: 12%;
    height: 2.5px;
    background: var(--color-white);
    margin-bottom: 20px;
}

/* --- About Page Specific --- */
.founders-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.founder-card {
    text-align: center;
}
.founder-card img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 20px;
}
.founder-card h3 {
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.founder-card h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 16px;
    line-height: 1.4;
}

/* Testimonials */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}
.testimonial {
    background: var(--color-white);
    padding: 30px;
    border-left: 4px solid var(--color-secondary);
}
.testimonial p {
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.7;
}
.testimonial .attribution {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial .attribution img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 30px;
}
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- FAQ --- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
}
.faq-question {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::after {
    content: '+';
    font-size: 24px;
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question::after {
    content: '−';
}
.faq-answer {
    padding-top: 15px;
    display: none;
    line-height: 1.7;
}
.faq-item.active .faq-answer {
    display: block;
}

/* --- Episodes --- */
.episode-category {
    margin-bottom: 50px;
}
.episode-category h5 {
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 25px;
    letter-spacing: 1px;
}
.episode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.episode-card {
    border: 1px solid #eee;
    padding: 0;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.episode-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.episode-thumb {
    aspect-ratio: 16/9;
    background: #333;
    position: relative;
    cursor: pointer;
}
.episode-thumb iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.episode-thumb .play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
}
.episode-thumb .play-overlay svg {
    width: 48px;
    height: 48px;
    fill: var(--color-white);
    opacity: 0.9;
}
.episode-info {
    padding: 12px 16px;
}
.episode-info p {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
}

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.contact-person {
    background: var(--color-accent);
    padding: 40px;
    text-align: center;
}
.contact-person h2 {
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 15px;
}
.contact-person p {
    margin-bottom: 20px;
}
.contact-person .contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.contact-person .contact-links a {
    display: inline-block;
    padding: 10px 24px;
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    border-radius: 70px;
    min-width: 200px;
    transition: all 0.3s ease;
}
.contact-person .contact-links a:hover {
    background: var(--color-secondary);
    color: var(--color-white);
}

/* --- Blog Page --- */
.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 40px;
}
.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    color: var(--color-text);
    font-size: 14px;
    transition: all 0.3s ease;
}
.pagination a:hover,
.pagination a.active {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* --- Sub Page Hero --- */
.page-hero {
    background: var(--color-primary);
    padding: 140px 20px 60px;
    text-align: center;
}
.page-hero h1 {
    font-size: 48px;
    font-weight: 900;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: -1px;
}
.page-hero p {
    color: rgba(255,255,255,0.85);
    font-size: 18px;
    margin-top: 10px;
}

/* --- Blog Post Hero --- */
.post-hero {
    background: var(--color-primary);
    padding: 140px 20px 60px;
    text-align: center;
}
.post-hero h1 {
    font-size: 36px;
    font-weight: 900;
    color: var(--color-white);
    max-width: 800px;
    margin: 0 auto;
}
.post-hero .meta {
    color: rgba(255,255,255,0.7);
    margin-top: 12px;
    font-size: 14px;
}

/* --- Footer --- */
.site-footer {
    background: var(--color-primary);
    color: rgba(255,255,255,0.7);
    padding: 60px 20px 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: var(--container-wide);
    margin: 0 auto;
}
.footer-col h4 {
    color: var(--color-white);
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.footer-col p {
    font-size: 14px;
    line-height: 1.6;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: color 0.3s ease;
}
.footer-col ul li a:hover {
    color: var(--color-white);
}
.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 13px;
}
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}
.footer-social a:hover {
    background: var(--color-white);
    border-color: var(--color-white);
}
.footer-social a:hover svg path {
    fill: var(--color-primary);
}
.footer-social svg {
    width: 16px;
    height: 16px;
}
.footer-social svg path {
    fill: rgba(255,255,255,0.7);
}

/* --- Form Elements --- */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    font-family: var(--font-primary);
    font-size: 15px;
    transition: border-color 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* --- Page Content (WYSIWYG) --- */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    line-height: 1.8;
}
.page-content h2 { font-size: 28px; font-weight: 900; margin: 30px 0 15px; }
.page-content h3 { font-size: 22px; font-weight: 700; margin: 25px 0 12px; }
.page-content h4 { font-size: 18px; font-weight: 700; margin: 20px 0 10px; }
.page-content p { margin-bottom: 16px; }
.page-content ul, .page-content ol { margin-bottom: 16px; padding-left: 24px; }
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content li { margin-bottom: 8px; }
.page-content a { text-decoration: underline; }
.page-content strong { font-weight: 700; }

/* --- Tax Tips Specific --- */
.tax-tip {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}
.tax-tip:last-child { border-bottom: none; }
.tax-tip h2 {
    font-size: var(--heading-lg);
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 15px;
}
.tax-tip .step {
    display: inline-block;
    font-size: 48px;
    font-weight: 900;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 40px;
        letter-spacing: -1px;
    }
    .hero-content h4 { font-size: 18px; }
    .split-text { padding: 40px; }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .section-title-large { font-size: 32px; }
}

@media (max-width: 767px) {
    .nav-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--color-primary);
        padding: 20px;
    }
    .main-nav.open { display: block; }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    .main-nav ul li a {
        padding: 14px 16px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .hero-content h1 { font-size: 30px; }
    .hero-content { padding: 40px 20px; }
    .split-section { flex-direction: column; }
    .split-text { padding: 40px 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .contact-grid { grid-template-columns: 1fr; }
    .founders-grid { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: 1fr; }
    .blog-list { grid-template-columns: 1fr; }
    .section { padding: 50px 0; }
    .page-hero { padding: 120px 20px 40px; }
    .page-hero h1 { font-size: 28px; }
    .section-title-large { font-size: 24px; }
    .cta-section h3 { font-size: 28px; }
    .episode-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .episode-grid { grid-template-columns: 1fr; }
}
