/* --- 1. RESETS & BASE STYLES --- */
:root {
    --color-primary: #000000; /* Black */
    --color-secondary: #ffffff; /* White */
    --color-accent: #00A7B5; /* Deep Cyan */
    --font-family-body: 'Inter', sans-serif;
    --max-width: 1200px;
    --spacing-unit: 1.5rem;
}

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

body {
  overflow-x: clip;
}

body {
    font-family: var(--font-family-body);
    line-height: 1.6;
    color: var(--color-primary);
    background-color: var(--color-secondary);
    min-height: 100vh;
}

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

a:hover {
    color: var(--color-primary);
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

section {
    padding: 5rem 0; /* Consistent vertical spacing for sections */
}

.section-padded {
    padding: 3rem 0;
}

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

/* --- 2. TYPOGRAPHY & HEADINGS --- */
h1, h2, h3 {
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: var(--spacing-unit);
    text-transform: uppercase;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    color: var(--color-primary);
    text-align: center;
}

/* --- 3. HEADER & NAVIGATION --- */
.site-header {
    /* Larger Padding to fit the tall, large logo */
    padding: 2.5rem 0; /* INCREASED VERTICAL PADDING */
    background-color: var(--color-secondary);
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
    /* Enable smooth transition for height/size changes */
    transition: all 0.3s ease-in-out;
}

/* Base Logo/Link Container */
.header-content .logo {
    min-width: 300px; /* Reserves space for large logo */
    height: 60px; /* Reserves vertical space */
}

/* --- NEW: SCROLL CLASS FOR SHRINKING EFFECT --- */
.site-header.scrolled {
    padding: 0.5rem 0; /* Shrinks vertical padding */
    background-color: rgba(255, 255, 255, 0.95); /* Semi-transparent white */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.site-header.scrolled .header-logo {
    width: 150px; /* Shrinks logo width */
    left: 10px; /* Moves logo slightly left */
    transform: translateY(-50%) scale(0.8); /* Shrinks it down further */
}

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

.logo img {
    height: 100px; /* Adjust size of logo image */
    width: auto;
}

/* Mobile Menu Toggle */
.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: block; /* Show on mobile */
    color: var(--color-primary);
}

.main-navigation {
    display: none; /* Hidden by default for mobile */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-secondary);
    border-top: 1px solid #eee;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.main-navigation.is-open {
    display: block;
}

.main-navigation ul {
    list-style: none;
}

.main-navigation li a {
    display: block;
    padding: 0.5rem 0.5rem;
    text-align: center;
    border-bottom: 1px solid #f5f5f5;
    color: var(--color-primary);
    font-weight: 700;
}

/* --- 4. BUTTONS / CTA --- */
.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin: 0.5rem 0;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
    border: 2px solid var(--color-primary);
}

.cta-button.primary {
    background-color: var(--color-accent);
    color: var(--color-secondary);
    border-color: var(--color-accent);
}

.cta-button.primary:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-secondary);
}

.cta-button.secondary {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.cta-button.secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

/* --- 5. HERO SECTION --- */
#hero {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0;
    background-color: #f7f7f7; /* Light background for the image section */
}

.hero-image-wrapper {
    /* Use the existing stock photo (hero.jpg) */
    position: relative;
    width: 100%;
    height: 300px; /* Initial height for mobile */
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* Focus on the face/hands */
}

.hero-content {
    padding: 2rem 0;
    text-align: center;
}

.headline {
    font-size: 2rem;
    color: var(--color-accent);
}

.subheadline {
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

.cta-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.cta-footer-link {
    margin-top: 1rem;
}


/* --- 6. SERVICES OVERVIEW --- */
#services-overview h2 {
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    gap: 2rem;
    text-align: center;
}

.service-card {
    padding: var(--spacing-unit);
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: var(--color-secondary);
}

.service-card i {
    color: var(--color-accent);
    margin-bottom: 1rem;
}

/* --- 7. DEBTLAW PARTNERSHIP --- */
#debtlaw-partner {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    padding: 3rem 0;
}

#debtlaw-partner h2 {
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.lead-text {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

/* --- 8. VIDEO SECTION --- */
.video-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: #f7f7f7; /* Light grey background for the box */
}

/* --- 9. FOOTER --- */
.site-footer {
    background-color: #f7f7f7;
    padding: 2rem 0 1rem;
    border-top: 1px solid #ddd;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
}

/* 9.1: Top Contact Bar Styling */
.footer-contact-bar {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
    justify-content: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    gap: 0.5rem 1rem; /* Vertical and horizontal gap between items */
    font-weight: 700;
}

.footer-contact-bar a {
    color: var(--color-accent); /* Links are now the lovely blue/turquoise */
    text-decoration: none;
}

.footer-contact-bar a:hover {
    color: var(--color-primary); /* Links turn black on hover (the reverse effect) */
}

/* 9.2: Bottom Bar (Copyright & Navigation) Styling */
.footer-bottom-bar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding-top: 0.5rem;
    width: 100%;
}

.footer-bottom-bar p {
    margin: 0;
}

.footer-nav a {
    margin: 0 0.5rem;
}


/* Desktop Layout (768px and up) */
@media (min-width: 768px) {
    
    /* --- General Layout Overrides --- */
    
    /* Header & Navigation (Fixes the misplaced nav) */
    .menu-toggle {
        display: none; /* Hide toggle button on desktop */
    }
    
    .main-navigation {
        display: block; /* Show menu on desktop */
        position: static;
        box-shadow: none;
        border-top: none;
    }

    .main-navigation ul {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-navigation li a {
  display: inline-block;
  text-align: left;
  padding: 0.5rem 1rem;
  border-bottom: none;
  white-space: nowrap;
}

    /* Hero Section (Fixes the misalignment and image crop) */
    #hero {
        flex-direction: row;
        min-height: 500px;
        background-color: var(--color-secondary);
        border-bottom: 1px solid #ddd;
    }

    .hero-image-wrapper {
        width: 50%;
        height: 100%;
    }

    .hero-img {
        object-position: center center;
    }

    .hero-content {
        width: 50%;
        text-align: left;
        padding: 4rem 3rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .headline {
        font-size: 3.5rem;
    }
    
    .subheadline {
        font-size: 1.25rem;
        max-width: 450px;
    }

    .cta-group {
        flex-direction: row;
        gap: 1.5rem;
        justify-content: flex-start;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
    }

    /* --- Footer Styles (The rules you confirmed as perfect) --- */

    /* 9.1: Desktop Contact Bar */
    .footer-contact-bar {
        flex-wrap: nowrap; /* Forces contact details onto one line */
        justify-content: space-between; /* Spreads contact details evenly */
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    /* 9.2: Desktop Bottom Bar */
    .footer-bottom-bar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

/* --- CSS ADDITIONS FOR tell-us-about-it.html --- */

.page-title {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.intro-text {
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Form Styles */
.simple-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fcfcfc;
}

.simple-form fieldset {
    border: none;
    padding: 0;
    margin-bottom: 2rem;
}

.simple-form legend {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
    padding: 0;
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
    padding-bottom: 5px;
}

.simple-form input[type="text"],
.simple-form input[type="email"],
.simple-form input[type="tel"],
.simple-form input[type="url"],
.simple-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-family-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.simple-form input:focus,
.simple-form textarea:focus {
    border-color: var(--color-accent);
    outline: none;
}

.simple-form textarea {
    resize: vertical;
}

/* Custom CSS for Onboarding Form Readability */
.simple-form label {
    display: block; /* Forces label to take full width and stack elements */
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.simple-form select {
    width: 100%; /* Makes the select box fill the width like the input boxes */
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-family-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.file-upload {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px dashed #ccc;
    border-radius: 4px;
}

.file-upload label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.disclosure-text {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #666;
}

.submit-button {
    width: 100%;
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* --- CSS ADDITIONS FOR accounts-department.html OVERHAUL --- */

/* How It Works Grid */
.works-grid-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.work-step-detail i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.work-step-detail h3 {
    text-transform: none;
    font-weight: 700;
    font-size: 1.25rem;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 3rem auto 0;
    text-align: left;
}

.option-card {
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: var(--color-secondary);
}

.option-card h3 {
    color: var(--color-accent);
    font-size: 1.4rem;
    text-transform: uppercase;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.option-card ul {
    list-style: none;
}

.option-card li {
    padding: 0.5rem 0;
}

.option-card li i {
    color: var(--color-accent);
    margin-right: 0.5rem;
}

/* Example Workflow (Flex layout) */
.workflow-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.workflow-steps .step {
    flex: 1 1 180px; /* Allows up to 5 steps on large screen, wraps on small */
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    min-height: 120px;
}

.workflow-steps .step .day {
    display: block;
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.step-arrow {
    font-size: 1.5rem;
    color: #ccc;
    display: none;
}

@media (min-width: 768px) {
    .options-grid {
        grid-template-columns: 1fr 1fr;
    }
    .step-arrow {
        display: block;
    }
}

/* --- CSS ADDITIONS FOR pricing.html --- */

.pricing-card-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr; /* Stacked on mobile */
    margin-bottom: 3rem;
}

.pricing-card {
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.pricing-card .card-header {
    background-color: #f7f7f7;
    padding: 2rem 1rem 1rem;
    border-bottom: 1px solid #ddd;
}

.pricing-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.pricing-card i {
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.pricing-card .price-tag {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-primary);
    margin-top: 0.5rem;
}

.pricing-card .card-body {
    padding: 1.5rem;
    flex-grow: 1; /* Ensures equal card height */
    text-align: left;
}

.pricing-card .card-body ul {
    list-style: none;
    padding: 0;
}

.pricing-card .card-body li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed #eee;
}

.pricing-card .card-body li i {
    color: var(--color-accent);
    margin-right: 0.5rem;
}

.pricing-card .card-footer {
    padding: 1.5rem;
    border-top: 1px solid #ddd;
}

/* Highlighted Card */
.pricing-card.highlighted {
    border-color: var(--color-accent);
    box-shadow: 0 5px 15px rgba(0, 167, 181, 0.15);
}

.pricing-card.highlighted .card-header {
    background-color: var(--color-accent);
    color: var(--color-secondary);
}

.pricing-card.highlighted h2, 
.pricing-card.highlighted .price-tag {
    color: var(--color-secondary);
}

/* --- CSS ADDITIONS FOR pricing.html TIER LISTS --- */

.pricing-card .card-body ul .tier-list-heading {
    font-weight: 900;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: none;
    color: var(--color-primary);
}

.pricing-card .card-body ul .tier-disclaimer {
    margin-top: 0.75rem;
    font-style: italic;
    font-size: 0.9em;
    color: #666;
    border-top: 1px dashed #eee;
}

.pricing-card .card-body ul .tier-disclaimer i {
    color: #F00; /* Red X for clarity */
}

/* Add-ons Section */
.add-ons-section {
    margin-top: 3rem;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fcfcfc;
}

.add-ons-section h3 {
    text-transform: uppercase;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.add-on-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.add-on-list p {
    font-weight: 700;
}

.add-on-list i {
    color: var(--color-accent);
    margin-right: 0.5rem;
}


/* Desktop Pricing Layout */
@media (min-width: 768px) {
    .pricing-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- CSS ADDITIONS FOR contact.html --- */

.contact-grid {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr; /* Single column on mobile */
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.contact-form-wrapper h2, .direct-contact-info h2 {
    text-align: left;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-form-wrapper .simple-form {
    padding: 1.5rem;
    background-color: #fff;
    border: 1px solid #ddd;
}

.direct-contact-info h3 {
    font-size: 1.3rem;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-details {
    margin-top: 1.5rem;
    font-size: 1.1rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
}

.contact-details i {
    color: var(--color-accent);
    margin-right: 0.5rem;
    width: 1.5rem; /* for alignment */
    text-align: center;
}

/* Desktop Contact Layout */
@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr; /* Two columns on desktop */
    }
}

/* --- CSS ADDITIONS FOR reviews.html --- */

.review-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr; /* Stacked on mobile */
    margin-bottom: 2rem;
}

.review-card {
    background-color: var(--color-secondary);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.review-card .stars {
    color: #FFD700; /* Gold color for stars */
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.review-text {
    font-size: 1.15rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.review-meta {
    font-size: 0.9rem;
    color: #666;
    font-weight: 700;
    text-transform: uppercase;
}

/* Desktop Review Layout */
@media (min-width: 768px) {
    .review-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- FINAL LOGO OVERLAP STYLES --- */

/* 1. Establish Positioning Context and Reserve Space */
/* 1. Logo Positioning Context */
.header-content {
    position: relative;
}

.header-content .logo {
    min-width: 180px; /* Reserve space so nav doesn't shift */
    height: 30px;
}

/* 2. Default (Mobile) Logo */
.header-logo {
    width: 180px;
    height: auto;
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    z-index: 101;
    visibility: visible !important;
    max-width: 180px;
}

/* 3. Desktop Adjustments */
@media (min-width: 768px) {
  .header-logo {
    width: 260px;
    left: 25px;
  }
}

    .header-content .logo {
        min-width: 260px;
    }

    .main-navigation {
        margin-left: 100px;
    }
}
    
    /* B. Overlap & Positioning */
    position: absolute;
    top: 50%; 
    left: 20px; 
    transform: translateY(-50%); /* Vertically centers the logo */
    z-index: 101; /* Ensure logo sits on top */
    
    /* Ensure image itself is fully opaque */
    visibility: visible !important; 
    max-width: 180px; /* Max size on mobile */
}

/* 3. DESKTOP ADJUSTMENTS (min-width: 768px) */
@media (min-width: 768px) {
    .header-logo {
        /* Make it larger for desktop visibility */
        width: 250px; 
        
        /* Adjust overlap position */
        top: 60%; 
        left: 30px; 
        max-width: none;
    }

    /* Reserve more space for the logo on desktop */
    .header-content .logo {
        min-width: 250px;
    }
    
    /* Pull the navigation menu back to the left slightly */
    .main-navigation {
        margin-left: 100px;
    }
}

/* --- DYNAMIC HEADER SCROLL EFFECT --- */

/* 1. Base Header Transition setup */
.site-header {
    /* Ensures smooth resizing/color change */
    transition: all 0.3s ease-in-out; 
}

/* 2. Style when scrolled (Shrinking Header and Transparency) */
.site-header.scrolled {
    padding: 0.5rem 0; /* Shrinks vertical padding */
    /* Semi-transparent white background */
    background-color: rgba(255, 255, 255, 0.95); 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 3. Style the Logo when Scrolled (Shrinking Logo) */
.site-header.scrolled .header-logo {
    width: 150px; /* Shrinks logo to smaller size */
    transform: translateY(-50%) scale(0.6); /* Shrinks it further and centers it */
}
