/* --- RESET & VARIABLES --- */
:root {
    --brand-dark: #0f172a;       /* Very dark blue/slate */
    --brand-teal: #0d9488;       /* Modern Teal */
    --brand-orange: #f97316;     /* Vibrant Orange */
    --bg-light: #f8fafc;         /* Off-white background */
    --text-main: #334155;
    --border: #e2e8f0;
}

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

body {
    font-family: 'Bricolage Grotesque', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- NAVIGATION --- */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--brand-dark);
    text-decoration: none;
    letter-spacing: -1px;
}

.brand-accent { color: var(--brand-orange); }

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- HERO SECTION --- */
.hero {
    background-color: var(--brand-dark);
    color: white;
    text-align: center;
    padding: 6rem 1rem 10rem 1rem; /* Extra padding bottom for the overlap */
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.2rem;
    color: #94a3b8; /* Muted text */
    max-width: 500px;
    margin: 0 auto;
}

/* --- TOOL WRAPPER (The Overlap) --- */
.tool-wrapper {
    max-width: 600px;
    margin: -80px auto 4rem auto; /* Negative margin pulls it up */
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}

/* --- THE CARD (Container from form.php) --- */
/* We target .container class inside form.php */
.container {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border);
}

/* --- FORM ELEMENTS --- */
label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

input[type="text"], input[type="number"], select, textarea, input[type="file"] {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: border 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand-teal);
}

.service-row {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

/* BUTTONS */
.btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--brand-teal);
    color: white;
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.btn-primary:hover { background-color: #0f766e; }

.btn-secondary {
    background: white;
    border: 2px dashed #cbd5e1;
    color: var(--text-main);
    width: 100%;
    padding: 0.8rem;
}

.btn-secondary:hover { border-color: var(--brand-teal); color: var(--brand-teal); }

.btn-remove {
    background: #fee2e2;
    color: #ef4444;
    padding: 0.8rem;
    border-radius: 6px;
}

/* --- FEATURES --- */
.features {
    padding: 4rem 1rem;
    text-align: center;
    background: white;
    border-top: 1px solid var(--border);
}

.feature-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-item {
    width: 250px;
}

.feature-item h3 { margin-bottom: 0.5rem; color: var(--brand-dark); }
.feature-item p { color: #64748b; font-size: 0.9rem; }

/* --- FOOTER --- */
.site-footer {
    margin-top: auto; /* Pushes footer to bottom */
    background: var(--brand-dark);
    color: #94a3b8;
    padding: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

.footer-tagline {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Mobile Tweak */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .tool-wrapper { margin-top: -40px; }
    .service-row { grid-template-columns: 1fr; gap: 0.5rem; }
}
/* --- MODERN ABOUT SECTION --- */
.about-section {
    background-color: var(--white);
    padding: 6rem 1.5rem;
    border-top: 1px solid var(--border);
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center; /* Vertically centers the text with the image */
    gap: 4rem; /* Space between picture and text */
}

/* Column 1: Image Styling */
.about-image-wrapper {
    flex: 1; /* Takes up 1 part of space */
    position: relative;
}

.about-photo {
    width: 100%;
    max-width: 400px; /* Limits width so it doesn't get too huge */
    height: auto;
    aspect-ratio: 3 / 4; /* Enforces a 'Tall Portrait' shape */
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 20px 20px 0px var(--brand-teal); /* The "Offset" solid shadow effect */
}

/* Column 2: Text Styling */
.about-content {
    flex: 1.2; /* Takes up slightly more space than image for readability */
}

.accent-text {
    color: var(--brand-orange);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.about-content h2 {
    font-size: 2.5rem;
    line-height: 1.1;
    color: var(--brand-dark);
    margin-bottom: 1.5rem;
}

.about-content p {
    color: #64748B; /* Slate Grey */
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Signature Styling */
.signature-block {
    margin-top: 2rem;
}

.signature-img {
    height: 50px; /* Keep it small and subtle */
    opacity: 0.8;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 850px) {
    .about-container {
        flex-direction: column; /* Stack them */
        text-align: center;
        gap: 3rem;
    }

    .about-photo {
        box-shadow: 10px 10px 0px var(--brand-teal); /* Smaller shadow on mobile */
        max-width: 100%; /* Full width on mobile */
    }

    .about-content h2 {
        font-size: 2rem;
    }
}
/* --- HOW IT WORKS SECTION --- */
.how-it-works {
    padding: 6rem 1.5rem;
    background-color: white; /* Pure White Background */
    text-align: center;
    
    /* Creates the "Cut" separation effect */
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-header {
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--brand-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-sub {
    color: #64748B;
    font-size: 1.1rem;
}

/* The Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* The Individual Cards */
.step-card {
    background: #F8FAFC;
    padding: 3rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    position: relative; /* For positioning the number */
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left; /* Easier to read */
}

.step-card:hover {
    transform: translateY(-10px); /* Lifts up on hover */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-teal);
}

/* The Number Badge (01, 02, 03) */
.step-number {
    position: absolute;
    top: -20px;
    left: 20px;
    background-color: var(--brand-dark);
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 4px solid var(--bg-light); /* Creates a "cutout" effect */
}

/* Step content styling */
.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.step-card h3 {
    color: var(--brand-dark);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.step-card p {
    color: #64748B;
    line-height: 1.6;
    font-size: 1rem;
}

/* Highlight the middle card slightly for visual interest (Optional) */
@media (min-width: 900px) {
    .step-card:nth-child(2) {
        margin-top: -20px; /* Staggers the grid */
    }
}

/* --- FAQ SECTION (Dark Mode) --- */
.faq-section {
    background-color: var(--brand-dark); /* Dark background for contrast */
    color: white;
    padding: 6rem 1.5rem;
}

.faq-container {
    max-width: 800px; /* Narrower width for better readability */
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 4rem;
}

.faq-header h2 {
    font-size: 2.5rem;
    color: white;
}

/* The Accordion Box */
.faq-item {
    background: rgba(255, 255, 255, 0.05); /* Subtle glass effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* The Question (Clickable part) */
summary {
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none; /* Hides default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

/* The Custom +/- Icon */
summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--brand-teal);
    font-weight: 300;
    transition: transform 0.2s;
}

/* Rotate icon when open */
details[open] summary::after {
    transform: rotate(45deg); /* Turns + into x */
    color: var(--brand-orange);
}

/* The Answer */
.faq-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: #cbd5e1; /* Muted text for readability */
    line-height: 1.6;
    font-size: 1rem;
    animation: fadeIn 0.3s ease-in-out;
}

/* Smooth Fade In Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hiding default marker in some browsers */
summary::-webkit-details-marker {
    display: none;
}

/* --- COMPACT DARK FOOTER --- */
.footer {
    background-color: var(--brand-dark);
    color: white;
    padding: 0.5rem 0; /* Slightly reduced padding for a tighter look */
    margin-top: 2rem;
    border-top: 4px solid var(--brand-teal);
}

/* THE FIX: Reset container AND make it compact */
.footer .container {
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    
    /* This makes it compact (not full width) */
    max-width: 1100px !important; 
    margin: 0 auto !important; /* Centers the block */
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Left Side */
.footer-left p {
    margin: 0;
    font-size: 0.85rem;
    color: #94a3b8;
}
.footer-left strong { color: white; }

/* Right Side Links */
.footer-links {
    display: flex;
    align-items: center;
    gap: 15px; /* Tighter gap since we are compact */
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--brand-teal);
}

/* The Slash Separator */
.separator {
    color: #475569; /* Darker grey so the slash is subtle */
    font-size: 0.8rem;
    user-select: none; /* Prevents user from selecting the slash */
}

/* Mobile */
@media (max-width: 600px) {
    .footer-content { 
        flex-direction: column; 
        text-align: center; 
    }
}

/* Header Navigation Spacing */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 20px; /* Space between Blog and How it Works */
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--brand-teal);
}