/* ====================================================================== */
/* 1. CSS RESET & GLOBAL STYLES */
/* ====================================================================== */

/* Minimal Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Color Palette */
    --color-primary: #000;          /* Black for text and primary buttons */
    --color-secondary: #555;        /* Dark gray for secondary text */
    --color-background: #fff;       /* Pure white */
    --color-light-bg: #F9F9F9;      /* Very light gray for subtle contrast */
    --color-accent: #007aff;        /* A clean, standard blue for links/actions */
    --color-border: #E0E0E0;        /* Light gray for borders */

    /* Typography */
    --font-family-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --font-size-base: 18px;
    --line-height-base: 1.6;

    /* Spacing (Maintain large whitespace) */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 40px;
    --spacing-lg: 80px;
    --max-width: 1200px;
}

body {
    font-family: var(--font-family-sans);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-secondary);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    font-weight: 500; 
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-primary);
}

/* Base Section Styling */
.section {
    width: 100%;
    margin: 0 auto;
    /* Removed padding-top/bottom here as it's in padded-section */
    /* Add a subtle separator at the top of every main section */
    border-top: 1px solid var(--color-border); 
}

.padded-section {
    max-width: var(--max-width);
    padding: var(--spacing-lg) var(--spacing-md);
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-size: 2.2rem;
}

/* --- SECTION BACKGROUND UTILITY CLASSES (NEW) --- */
.bg-white {
    background-color: var(--color-background);
}

.bg-light-gray {
    background-color: var(--color-light-bg);
}


/* ====================================================================== */
/* 1 Hero BG */
/* ====================================================================== */


.hero-section {
    /* Specify the image file and its location */
    background-image: url('s1l_bg.jpg');

    /* Control how the image is displayed */
    background-size: cover; /* This makes the image cover the entire element */
    background-position: center; /* This centers the image in the element */
    background-repeat: no-repeat; /* This prevents the image from repeating */

    /* Set a minimum height to ensure the image is visible */
    min-height: 100vh; /* 'vh' stands for viewport height, making it full screen height */
    
    /* Optional: Add a subtle overlay to make the text easier to read */
    position: relative; /* Needed for the overlay pseudo-element */
}



/* Ensure the content is above the overlay */
.hero-content {
    position: relative;
    z-index: 2; /* Place the content above the overlay */
    /* You will also likely need to add text color, padding, and alignment here */
    color: white; /* Example: make the text white for contrast */
    padding: 100px 20px; /* Example padding */
    text-align: center; /* Example alignment */
}


/* ====================================================================== */
/* 2. BUTTON STYLES */
/* ====================================================================== */

/* ====================================================================== */
/* BUTTON BASE STYLES */
/* ====================================================================== */

.btn {
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid transparent;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-size: 0.9rem;
    text-align: center;
    text-decoration: none;
    font-family: var(--font-family-sans);
     font-weight: normal !important;
}

/* ====================================================================== */
/* PRIMARY BUTTON */
/* ====================================================================== */

.btn.sofia-btn-primary {
    background-color: var(--color-primary);   /* #000 */
    color: #fff;
    border: none;
    border-radius: 0px; /* Square edges if that's your design choice */
}

.btn.sofia-btn-primary:hover {
    background-color: #333;
    color: #fff;
}

/* ====================================================================== */
/* SECONDARY BUTTON */
/* ====================================================================== */

.btn.sofia-btn-secondary {
    background-color: transparent;
    color: var(--color-primary); /* #000 */
    border: 2px solid var(--color-primary);
    border-radius: 4px;
}

.btn.sofia-btn-secondary:hover {
    background-color: var(--color-primary);
    color: #fff;
}

/* =======================================================*



/* ====================================================================== */
/* 3. SECTION 1: HERO (Image Slider + Content) */
/* ====================================================================== */

.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--color-background); /* Explicitly set Hero background */
    border-top: none; /* Hero is the first element, so no top border */
}

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: url('placeholder-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15; 
}

.hero-content {
    color: white; /* This sets the text of h1 and p to white */
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: var(--spacing-md);
}

.hero-content h1 {
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    font-size: clamp(2.5rem, 6vw, 4.5rem); 
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-secondary);
}

.hero-buttons {
    margin-top: var(--spacing-md);
}


/* ====================================================================== */
/* 4. SECTION 2: WHAT WE DO (3 Columns) */
/* ====================================================================== */

.three-column-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    text-align: center;
}

.service-block {
    padding: var(--spacing-md);
    transition: transform 0.3s ease;
}

.service-block:hover {
    transform: translateY(-5px);
}

.service-block::before {
    content: "★"; 
    font-size: 2.5rem;
    color: var(--color-accent);
    display: block;
    margin-bottom: var(--spacing-sm);
}

.service-block h3 {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ====================================================================== */
/* 4.5 SECTION 3: SOCIAL PROOF (STATS BLOCK) */
/* ====================================================================== */

.stats-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    /* 3 equal columns for desktop */
    grid-template-columns: repeat(3, 1fr); 
    gap: var(--spacing-md);
    text-align: center;
}

.stat-block {
    padding: var(--spacing-md);
}

.stat-number {
    font-size: 4rem; /* Large, eye-catching size */
    font-weight: 700;
    color: var(--color-primary); /* Bold black */
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0;
}

/* Responsiveness for Stats Block */
@media (max-width: 600px) {
    .stats-grid {
        /* Stack stats vertically on small mobile screens */
        grid-template-columns: 1fr; 
    }
}


/* ====================================================================== */
/* 5. SECTION: FEATURES LIST TABLE (2-Column Revision: 8 Rows) */
/* ====================================================================== */

.features-table-container {
    /* Reduced width for a cleaner 2-column look */
    max-width: 600px; 
    margin: 0 auto;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden; 
}

.feature-table {
    display: grid;
    /* 2 columns - one wide for the feature, one narrow for the checkmark */
    grid-template-columns: 3fr 1fr; 
    font-size: 0.95rem;
}

.table-header, .table-cell {
    padding: 15px 10px;
    border-bottom: 1px solid var(--color-border);
}

.table-header {
    background-color: var(--color-light-bg);
    color: var(--color-primary);
    font-weight: 600;
    border-right: none;
}

.table-header:last-child {
    /* Align the 'Available' header text to match the checkmark */
    text-align: center; 
}

/* Feature Name Column (1st column) */
.table-cell:nth-child(2n + 1) { /* Every odd cell (1, 3, 5, etc.) is the feature name */
    text-align: left;
    font-weight: 500;
    color: var(--color-primary);
    background-color: var(--color-background);
    /* Keep separator between the two columns */
    border-right: 1px solid var(--color-border); 
}

/* Checkmark Column (2nd column) */
.table-cell:nth-child(2n) { /* Every even cell (2, 4, 6, etc.) is the checkmark */
    text-align: center;
    border-right: none;
}

/* * FIX: Remove bottom border for the last row (Cells 17 and 18).
 * The last row starts at the 17th item (2 header cells + 7 rows * 2 cells = 16 cells total before the last row).
 * We target items from the 17th onwards and remove their bottom border.
 */
.feature-table > div:nth-child(n+17) { 
    border-bottom: none;
}

.checkmark {
    color: green;
    font-weight: bold;
    font-size: 1.1rem;
}

/* ====================================================================== */
/* 6. SECTION 4: CONTACT FORM */
/* ====================================================================== */

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-family-sans);
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-primary);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .primary-button {
    margin-top: var(--spacing-sm);
    width: 100%;
}


/* ====================================================================== */
/* 7. SECTION 5: GET STARTED BLOCK (Final CTA) */
/* ====================================================================== */

.get-started-block {
    /* Removed background-color: var(--color-light-bg); here */
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
    border-top: 1px solid var(--color-border); 
}

.block-content {
    max-width: 700px;
    margin: 0 auto;
}

.block-content h2 {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.block-content p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-secondary);
}


/* ====================================================================== */
/* 8. SECTION 6: FOOTER */
/* ====================================================================== */

.site-footer {
    padding: var(--spacing-md);
    background-color: var(--color-primary);
    color: var(--color-light-bg);
    text-align: center;
    font-size: 0.85rem;
    border-top: 1px solid var(--color-primary); /* Use primary color for separation */
}

.site-footer a {
    color: var(--color-light-bg);
    margin: 0 10px;
}

.site-footer a:hover {
    color: var(--color-accent);
}

.site-footer p {
    margin-bottom: var(--spacing-xs);
}

.footer-links {
    margin-top: var(--spacing-xs);
}


/* ====================================================================== */
/* 9. MEDIA QUERIES (Responsiveness for Mobile) */
/* ====================================================================== */

@media (max-width: 768px) {
    :root {
        --spacing-md: 25px;
        --spacing-lg: 50px;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.3rem; }

    /* Hero */
    .hero-content {
        padding: 0 var(--spacing-md);
    }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    .secondary-button {
        margin-left: 0;
    }

    /* Features Table (Stack columns on small screens) */
    .features-table-container {
        overflow-x: auto; 
        -webkit-overflow-scrolling: touch;
    }

    .feature-table {
        width: 700px; 
    }
}


/* Base pagination button style */
.pagination .page-link {
    background-color: transparent;
    color: black;
    border: 1px solid black;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.4rem 0.75rem;
    transition: all 0.2s ease-in-out;
}

/* Hover effect */
.pagination .page-link:hover {
    background-color: black;
    color: white;
}

/* Active page */
.pagination .page-item.active .page-link {
    background-color: black;
    border-color: black;
    color: white;
}

/* Disabled (e.g., ellipsis) */
.pagination .page-item.disabled .page-link {
    color: #aaa;
    background-color: transparent;
    border-color: transparent;
    cursor: default;
}
