/* ==========================================================================
   The Finance Atelier by Debby Rivera - CSS
   ========================================================================== */

:root {
    /* Brand Color Palette */
    --maroon: #41140E;
    --soft-blue: #C1DBE8;
    --butter-yellow: #FFF1B5;
    --paper-cream: #F2EFEB;
    --white: #FFFFFF;
    
    /* Typography */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-script: 'Alex Brush', cursive;
    
    /* System Sizes */
    --header-h: 80px;
    --radius-sm: 4px;
    --radius-md: 10px;
    --radius-lg: 20px;
    
    /* Shadows & Transitions */
    --shadow-soft: 0 4px 20px rgba(65, 20, 14, 0.06);
    --shadow-hover: 0 10px 30px rgba(65, 20, 14, 0.12);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--paper-cream);
    color: var(--maroon);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    color: var(--maroon);
    line-height: 1.2;
}

a {
    color: var(--maroon);
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-spacing {
    padding: 5rem 0;
}

.bg-paper {
    background-color: var(--paper-cream);
}

.bg-white {
    background-color: var(--white);
}

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

.mt-4 { margin-top: 2rem; }
.w-100 { width: 100%; }

/* Editorial Elements */
.editorial-tag {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--maroon);
    opacity: 0.7;
    display: block;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-family: var(--font-script);
    font-size: 2.2rem;
    color: var(--maroon);
    display: block;
    line-height: 1;
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-text {
    font-size: 1.1rem;
    max-width: 750px;
    margin: 0 auto 2rem;
    opacity: 0.85;
}

.card-shadow {
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.card-shadow:hover {
    box-shadow: var(--shadow-hover);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 2rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--maroon);
    color: var(--paper-cream);
}

.btn-primary:hover {
    background-color: #2b0c09;
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--maroon);
    color: var(--maroon);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--maroon);
    color: var(--paper-cream);
}

.btn-outline-white {
    border-color: var(--paper-cream);
    color: var(--paper-cream);
    background: transparent;
}

.btn-outline-white:hover {
    background-color: var(--paper-cream);
    color: var(--maroon);
}

/* Header Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(242, 239, 235, 0.92);
    backdrop-filter: blur(12px);
    z-index: 9999;
    border-bottom: 1px solid rgba(65, 20, 14, 0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-h);
}

.logo-brand {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}

.logo-sub {
    font-family: var(--font-script);
    font-size: 1.2rem;
    color: var(--maroon);
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--maroon);
}

.nav-link:hover {
    opacity: 0.7;
}

.btn-contact-nav {
    border: 1px solid var(--maroon);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-sm);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--maroon);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-h) + 3rem);
    padding-bottom: 5rem;
}

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

.hero-title {
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    margin-bottom: 1rem;
}

.hero-title em {
    font-style: italic;
    font-weight: 400;
}

.hero-subtext {
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: var(--maroon);
}

.hero-desc {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.85;
    max-width: 520px;
}

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

/* Hero Visual & Mockups */
.hero-visual {
    position: relative;
}

.journal-card {
    background: var(--white);
    padding: 2rem;
    border: 1px solid rgba(65, 20, 14, 0.1);
    position: relative;
    border-radius: var(--radius-md);
}

.online-badge {
    background: var(--butter-yellow);
    border: 1px dashed var(--maroon);
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.badge-icon {
    color: var(--maroon);
    width: 24px;
    height: 24px;
}

.badge-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.badge-desc {
    font-size: 0.85rem;
    font-weight: 600;
}

.dashboard-mockup {
    background: var(--paper-cream);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(65, 20, 14, 0.1);
    overflow: hidden;
}

.mockup-header {
    background: var(--maroon);
    color: var(--paper-cream);
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.red { background: #E57373; }
.dot.yellow { background: #FFB74D; }
.dot.green { background: #81C784; }

.mockup-title {
    font-size: 0.8rem;
    font-family: var(--font-sans);
    margin-left: 0.5rem;
    opacity: 0.9;
}

.mockup-body {
    padding: 1.2rem;
}

.mockup-stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.mockup-stat {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    opacity: 0.6;
}

.stat-val {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
}

.stat-val.highlight {
    color: #2E7D32;
}

.mockup-progress {
    height: 8px;
    background: rgba(65, 20, 14, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    background: var(--soft-blue);
}

.mockup-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.m-tag {
    font-size: 0.75rem;
    background: var(--white);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    border: 1px solid rgba(65, 20, 14, 0.1);
}

.wax-stamp-official {
    position: absolute;
    bottom: -22px;
    right: -22px;
    width: 65px;
    height: 65px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
    transition: transform 0.3s ease;
}

.wax-stamp-official:hover {
    transform: scale(1.1) rotate(5deg);
}

.wax-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Philosophy Section */
.quote-card {
    background: var(--white);
    padding: 3.5rem 2rem;
    text-align: center;
    border-radius: var(--radius-md);
    border: 1px solid rgba(65, 20, 14, 0.08);
    position: relative;
}

.script-accent {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--maroon);
    display: block;
}

.quote-text {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-style: italic;
    margin: 0.5rem 0 1rem;
    font-weight: 400;
}

.quote-author {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(65, 20, 14, 0.06);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: var(--soft-blue);
    color: var(--maroon);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.service-desc {
    font-size: 0.95rem;
    opacity: 0.85;
}

.banner-online {
    background: var(--maroon);
    color: var(--paper-cream);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.banner-content .icon-lg {
    width: 40px;
    height: 40px;
    color: var(--butter-yellow);
}

.banner-content h4 {
    color: var(--paper-cream);
    font-size: 1.4rem;
}

.banner-content p {
    opacity: 0.85;
    font-size: 0.95rem;
}

/* Template Section */
.template-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.template-info,
.template-preview {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.features-editorial-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
}

.feature-editorial-card {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.1rem 1.4rem;
    background: var(--paper-cream);
    border: 1px solid rgba(65, 20, 14, 0.08);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    width: 100%;
    box-sizing: border-box;
}

.feature-editorial-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transform: translateX(4px);
    border-color: rgba(65, 20, 14, 0.2);
}

.f-check {
    width: 28px;
    height: 28px;
    background: var(--maroon);
    color: var(--paper-cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.f-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.f-body .f-title {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    color: var(--maroon);
    margin: 0;
}

.f-body .f-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
    line-height: 1.4;
}

.sheet-preview-card {
    background: var(--paper-cream);
    border: 1px solid rgba(65, 20, 14, 0.15);
    border-radius: var(--radius-md);
    padding: 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid var(--maroon);
    padding-bottom: 0.8rem;
    margin-bottom: 1.5rem;
}

.sheet-brand {
    font-family: var(--font-serif);
    font-weight: 700;
}

.sheet-period {
    font-size: 0.85rem;
    font-weight: 600;
}

.sheet-table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sheet-table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 0.4rem;
    padding: 0.7rem 0.8rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    align-items: center;
    box-sizing: border-box;
}

.table-head {
    background: var(--soft-blue);
    font-weight: 700;
    color: var(--maroon);
}

/* Pills (Blog Cards) Section */
.pills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pill-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(65, 20, 14, 0.08);
    transition: var(--transition);
}

.pill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.pill-img-wrapper {
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: var(--paper-cream);
}

.pill-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pill-card:hover .pill-img-wrapper img {
    transform: scale(1.05);
}

.pill-content {
    padding: 1.5rem;
}

.pill-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--maroon);
    background: var(--butter-yellow);
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
}

.pill-title {
    font-size: 1.3rem;
    margin: 0.8rem 0 0.5rem;
}

.pill-excerpt {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* TikTok Video Showcase */
.video-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.video-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(65, 20, 14, 0.08);
    transition: var(--transition);
    cursor: pointer;
}

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

.video-thumbnail {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(65, 20, 14, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.play-btn {
    width: 50px;
    height: 50px;
    background: var(--butter-yellow);
    color: var(--maroon);
    border-radius: 50%;
    padding: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.video-info {
    padding: 1.2rem;
}

.v-tag {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.7;
    display: block;
    margin-bottom: 0.3rem;
}

.video-info h4 {
    font-size: 1.1rem;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 2rem;
}

.c-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
}

.c-item i {
    width: 24px;
    height: 24px;
    color: var(--maroon);
}

.contact-form-card {
    background: var(--paper-cream);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(65, 20, 14, 0.1);
}

.instagram-contact-card {
    text-align: center;
}

.instagram-contact-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 1.25rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--maroon);
}

.instagram-contact-card h3 {
    margin: 0;
    color: var(--maroon);
    font-family: var(--font-display);
    font-size: 1.8rem;
}

.instagram-contact-card p {
    margin: 0.8rem auto 1.6rem;
    max-width: 25rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.wa-form .form-group {
    margin-bottom: 1.2rem;
}

.wa-form label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.wa-form input,
.wa-form select,
.wa-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(65, 20, 14, 0.2);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    background: var(--white);
    color: var(--maroon);
}

.wa-form input:focus,
.wa-form select:focus,
.wa-form textarea:focus {
    outline: none;
    border-color: var(--maroon);
}

/* Footer */
.footer {
    background: var(--maroon);
    color: var(--paper-cream);
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.f-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
}

.f-sub {
    font-family: var(--font-script);
    font-size: 1.4rem;
    color: var(--butter-yellow);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 2rem;
}

.c-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
}

.c-icon-box {
    width: 44px;
    height: 44px;
    background: var(--soft-blue);
    color: var(--maroon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.c-icon-box i,
.c-icon-box svg {
    width: 22px;
    height: 22px;
    stroke: var(--maroon);
    fill: none;
    display: block;
}

.c-link {
    color: var(--maroon);
    transition: var(--transition);
}

.c-link:hover .c-icon-box {
    background: var(--maroon);
    color: var(--paper-cream);
    transform: scale(1.08);
}

.c-link:hover .c-icon-box svg {
    stroke: var(--paper-cream);
}

.ig-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(242, 239, 235, 0.3);
    border-radius: var(--radius-sm);
    color: var(--paper-cream);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.ig-footer-btn i,
.ig-footer-btn svg {
    width: 22px;
    height: 22px;
    stroke: var(--butter-yellow);
    fill: none;
}

.ig-footer-btn:hover {
    background: var(--butter-yellow);
    color: var(--maroon);
}

.ig-footer-btn:hover i,
.ig-footer-btn:hover svg {
    stroke: var(--maroon);
}

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

.footer-copy {
    border-top: 1px solid rgba(242, 239, 235, 0.15);
    padding-top: 1.5rem;
    font-size: 0.85rem;
    opacity: 0.6;
}

.footer-copy .site-credit {
    margin: 0.7rem 0 0;
    font-size: 0.76rem;
    letter-spacing: 0.04em;
}

.footer-copy .site-credit a {
    color: var(--butter-yellow);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.footer-copy .site-credit a:hover,
.footer-copy .site-credit a:focus-visible {
    color: var(--paper-cream);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-grid,
    .template-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--paper-cream);
        flex-direction: column;
        padding: 2.5rem 2rem;
        gap: 1.8rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 9998;
    }

    .nav-menu.open {
        transform: translateX(0);
    }
    
    .sheet-preview-card {
        padding: 1.2rem 0.75rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .sheet-header {
        flex-direction: flex-row;
        justify-content: space-between;
        align-items: center;
        gap: 0.4rem;
        margin-bottom: 1rem;
    }

    .sheet-brand {
        font-size: 0.85rem;
    }

    .sheet-period {
        font-size: 0.75rem;
    }

    .sheet-table-wrapper {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .sheet-table {
        width: 100%;
        min-width: 0;
        gap: 0.4rem;
    }

    .table-row {
        font-size: 0.72rem;
        padding: 0.5rem 0.35rem;
        gap: 0.15rem;
        grid-template-columns: 1.6fr 0.9fr 1fr 0.9fr;
        text-align: center;
    }

    .table-row span:first-child {
        text-align: left;
    }

    .feature-editorial-card {
        padding: 0.9rem 1rem;
        gap: 0.8rem;
    }
}
