:root {
    --primary-brown: #5D4037;
    --secondary-orange: #F57C00;
    --accent-stone: #B0BEC5;
    --background-light: #F5F5F5;
    --surface-white: #FFFFFF;
    --text-dark: #37474F;
    --text-light: #FFFFFF;
}

body {
    padding-top: 70px;
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-light);
    color: var(--text-dark); 
    transition: background-color 0.3s ease, color 0.3s ease;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.navbar {
    border-bottom: 3px solid var(--secondary-orange);
    background-color: var(--surface-white) !important;
}

nav .container {
    padding-left: 1rem;
    padding-right: 1rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-brown) !important;
}

.nav-link.btn {
    padding: 0.5rem 1rem !important;
}

.navbar .d-flex.align-items-center {
    gap: 0.5rem; /* Use gap for spacing instead of margins */
}

.hero-section {
    background: linear-gradient(rgba(93, 64, 55, 0.85), rgba(93, 64, 55, 0.95)), url('./assets/hero-background.jpg') center/cover no-repeat;
    color: var(--text-light);
    padding: 120px 0;
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 40px;
    font-weight: 700;
    color: var(--primary-brown);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-orange);
    border-radius: 2px;
}

.problem-card {
    border: 1px solid #e9ecef;
    border-top: 5px solid var(--secondary-orange);
    background-color: var(--surface-white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.problem-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.problem-card .feature-icon {
    background: none;
    width: auto;
    height: auto;
    margin-bottom: 1rem;
}
.problem-card .feature-icon i {
    font-size: 3rem;
    color: var(--primary-brown);
}

.solution-section .section-title {
    text-align: left;
}
.solution-section .section-title:after {
    left: 0;
    transform: none;
}
.solution-section .lead {
    color: #555;
    font-size: 1.1rem;
}
.solution-section ul li {
    font-size: 1.05rem;
}
.solution-section ul li strong {
    display: block;
    color: var(--primary-brown);
}
.solution-section .row:hover .mobile-mockup {
    transform: translateY(-15px) scale(1.03);
}

.btn-primary {
    background-color: var(--primary-brown);
    border-color: var(--primary-brown);
    padding: 12px 30px;
    font-weight: bold;
}
.btn-primary:hover {
    background-color: #4E342E;
    border-color: #4E342E;
}

.btn-secondary {
    background-color: var(--secondary-orange);
    border-color: var(--secondary-orange);
    padding: 12px 30px;
    font-weight: bold;
}
.btn-secondary:hover {
    background-color: #EF6C00;
    border-color: #EF6C00;
}

.pricing-card.popular {
    transform: scale(1.05);
    border: 3px solid var(--secondary-orange);
    box-shadow: 0 10px 40px rgba(245, 124, 0, 0.25);
}

footer {
    background-color: var(--text-dark);
    color: #adb5bd;
}

footer h3 {
    color: var(--text-light);
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}
.form-status.success {
    background-color: #d4edda;
    color: #155724;
}
.form-status.error {
    background-color: #f8d7da;
    color: #721c24;
}

footer .social-icon-footer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
footer .social-icon-footer:hover {
    background-color: var(--secondary-orange);
    transform: translateY(-5px);
}
footer .btn {
    padding: 10px 25px;
    font-weight: bold;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

footer p {
    color: #adb5bd;
}

.feature-row {
    padding: 4rem 0;
    border-bottom: 1px solid #e0e0e0;
}
.feature-row:last-child {
    border-bottom: none;
}

.mobile-mockup {
    max-width: 300px;
    border-radius: 30px;
    padding: 10px;
    background-color: #111;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease-in-out;
}

.role-card {
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease-in-out;
}
.role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-brown);
}
.role-card .feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-brown), #8D6E63);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
}

.feature-row:hover .mobile-mockup {
    transform: translateY(-15px) scale(1.03);
}

.feature-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 1.5rem;
    align-items: start;
}

.feature-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-stone);
    line-height: 1;
    user-select: none;
    padding-top: 0.25rem;
}

.feature-text-wrapper {
    grid-column: 2;
}

.feature-content.text-lg-end {
    grid-template-columns: 1fr auto;
}

.feature-content.text-lg-end .feature-number {
    grid-column: 2;
}

.feature-content.text-lg-end .feature-text-wrapper {
    grid-column: 1;
}

.feature-row .order-lg-1 .feature-content {
    grid-template-columns: 1fr auto;
}

.feature-row .order-lg-1 .feature-number {
    grid-column: 2;
}

.feature-row .order-lg-1 .feature-text-wrapper {
    grid-column: 1;
    text-align: right;
}

.feature-text-wrapper h3 {
    font-weight: 700;
    color: var(--primary-brown);
    margin-bottom: 1rem;
}

.feature-text-wrapper p {
    margin-bottom: 1rem;
}

.feature-text-wrapper ul {
    list-style: none;
    padding-left: 0;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary-brown), #4E342E); /* Using your Beaver theme */
}

.cta-section h2, .cta-section .lead {
    color: var(--text-light);
}

.trial-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 50px; /* Pill shape */
    font-size: 1rem;
    color: #E0E0E0;
}

.cta-section .btn-light {
    transition: all 0.3s ease;
}

.cta-section .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width:  991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%; /* Position it directly below the navbar */
        left: 0;
        right: 0;
        width: 100%;
        background-color: var(--surface-white);
        padding: 1rem;
        border-top: 1px solid #e0e0e0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .navbar-collapse .navbar-nav {
        width: 100%;
        text-align: left; /* Align links to the left for a cleaner menu */
    }

    .navbar-collapse .navbar-nav .nav-item {
        padding: 0.5rem 0;
        border-bottom: 1px solid #eee;
    }
    .navbar-collapse .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    .feature-content {
        display: block;
    }
    .feature-number {
       display: none;
    }
    .mobile-mockup {
        margin-bottom: 2rem;
    }
    .feature-row .order-lg-1 .feature-text-wrapper {
        text-align: center;
    }
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px; /* Match your card corner radius */
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.whatsapp-fab {
    position: fixed;
    bottom: 25px;
    right: 25px;
    
    width: 60px;
    height: 60px;
    
    background-color: #25D366; /* Official WhatsApp Green */
    color: #FFFFFF;
    
    border-radius: 50%;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    font-size: 2rem; /* Size of the WhatsApp icon */
    
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    
    z-index: 100; /* Ensure it's on top of other content */
    
    transition: transform 0.3s ease;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
    color: #FFFFFF;
}

.theme-switch-wrapper {
    display: flex;
    align-items: center;
}
.theme-switch-wrapper .form-check-input {
    width: 3.5em;
    height: 1.75em;
    cursor: pointer;
}
.theme-switch-wrapper i {
    color: var(--primary-brown);
    transition: color 0.3s ease-in-out;
}

body[data-theme="light"] {
    background-color: var(--background-light); /* Uses your light theme variable */
    color: var(--text-dark); /* Uses your light theme text color */
}

body[data-theme="dark"] {
    --primary-brown: #A1887F;
    --secondary-orange: #FFAB40;
    --accent-stone: #616161;
    --background-light: #121212;
    --surface-white: #1E1E1E;
    --text-dark: #E0E0E0;
    --text-light: #FFFFFF;

    /* 2. OVERRIDE BOOTSTRAP'S internal variables for dark mode */
    --bs-body-color: #E0E0E0;
    --bs-body-bg: #121212;
    --bs-light-bg-subtle: #212121;
    --bs-secondary-color: #adb5bd;
    --bs-border-color: #424242;
    --bs-light: #212121; /* Make .bg-light dark */
    --bs-white: #1E1E1E; /* Make .bg-white a dark surface color */
}

/* --- General Overrides for Dark Mode --- */
body[data-theme="dark"] .navbar,
body[data-theme="dark"] .card,
body[data-theme="dark"] .accordion-item,
body[data-theme="dark"] .form-control,
body[data-theme="dark"] .form-select {
    background-color: var(--surface-white);
    color: var(--text-dark);
}

body[data-theme="dark"] .whatsapp-fab {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

body[data-theme="dark"] .bg-light {
    background-color: var(--bs-light-bg-subtle) !important;
}

body[data-theme="dark"] h1, body[data-theme="dark"] h2, body[data-theme="dark"] h3, 
body[data-theme="dark"] h4, body[data-theme="dark"] h5 {
    color: #f5f5f5;
}

body[data-theme="dark"] .section-title,
body[data-theme="dark"] .problem-card .feature-icon i,
body[data-theme="dark"] .navbar-brand {
    color: var(--primary-brown) !important;
}

body[data-theme="dark"] .text-muted {
    color: #9E9E9E !important;
}

body[data-theme="dark"] .form-control::placeholder {
    color: #888;
}

body[data-theme="dark"] .theme-switch-wrapper i {
    color: #888;
}
body[data-theme="dark"] .theme-switch-wrapper .bi-moon-fill {
    color: var(--secondary-orange);
}

body[data-theme="dark"] .text-success {
    color: #66BB6A !important; /* A nice light green for dark mode */
}

body[data-theme="dark"] footer {
    background-color: #212529; /* A standard very dark gray */
}

body[data-theme="dark"] footer .text-white {
    color: var(--text-light) !important;
}

body[data-theme="dark"] footer .text-white-50 {
    color: #adb5bd !important; /* Bootstrap's light secondary text color */
}

body[data-theme="dark"] footer a {
    color: #CFD8DC;
}
body[data-theme="dark"] footer a:hover {
    color: var(--secondary-orange);
}
body[data-theme="dark"] .navbar-collapse {
    background-color: var(--surface-white);
    border-top-color: #333;
}
    
body[data-theme="dark"] .navbar-collapse .navbar-nav .nav-item {
    border-bottom-color: #333;
}