/* --- Reset & Basic Setup --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0d6efd; /* A typical Bootstrap blue, similar vibe to Spiff's accent */
    --primary-blue-darker: #0b5ed7;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --background-light: #f8f9fa;
    --background-white: #ffffff;
    --border-color: #dee2e6;
    --font-family-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

html {
    scroll-padding-top: 70px; /* Adjust based on header height for anchor links */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-sans-serif);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-white);
    padding-top: 70px; /* Adjust if header height changes */
}

.container {
    width: 90%;
    max-width: 1140px; /* Slightly wider container */
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px; /* Gutters for smaller screens */
    padding-right: 15px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600; /* Bolder headings */
    line-height: 1.3;
    margin-bottom: 0.75em;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; /* Adjust sizes as needed */ }
h2 { font-size: 2rem; text-align: center; margin-bottom: 30px; } /* Center section titles */
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-muted); /* Slightly lighter paragraph text */
}

/* Center paragraphs within centered sections, but keep text left-aligned */
section[id*="-intro"] p,
section[id*="-cta"] p,
#challenge p,
#benefits-intro p,
#comparison p, /* Added */
#about-intro p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center; /* Center the paragraph block */
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--primary-blue-darker);
    text-decoration: underline;
}

ul {
    list-style: none; /* Remove default bullets */
    padding-left: 0;
    margin-bottom: 1rem;
}

/* --- Header --- */
header {
    background-color: var(--background-white);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    position: fixed; /* Sticky header */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    height: 70px; /* Fixed height */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding-top: 0; /* Remove container padding */
    padding-bottom: 0;
}

header h1 {
    font-size: 1.75rem;
    margin-bottom: 0; /* Reset margin */
    font-weight: 700;
}

header nav ul {
    display: flex; /* Align nav items horizontally */
    margin-bottom: 0; /* Reset margin */
}

header nav ul li {
    margin-left: 25px; /* Spacing between nav items */
}

header nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding-bottom: 5px; /* Space for potential underline hover */
    border-bottom: 2px solid transparent; /* Prepare for hover effect */
    transition: color 0.2s ease, border-color 0.2s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue); /* Underline effect on hover/active */
    text-decoration: none; /* Remove default underline */
}

/* Header CTA Button */
header .container .cta-button {
    margin-left: 25px;
    padding: 8px 18px; /* Slightly smaller header button */
    font-size: 0.9rem;
}

/* --- Main Content & Sections --- */
main section {
    padding: 70px 0; /* Generous vertical spacing */
    border-bottom: none; /* Remove default borders */
}

/* Alternating Backgrounds */
main section:nth-child(even):not(#hero) { /* Don't apply to hero */
    background-color: var(--background-light);
}

#hero {
    padding-top: 60px; /* Adjust padding */
    padding-bottom: 60px;
    text-align: center; /* Center hero content */
    background-color: var(--background-white); /* Ensure white background */
}
#hero h2 {
    font-size: 2.8rem; /* Larger hero heading */
    max-width: 800px; /* Constrain width */
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons --- */
.cta-button {
    display: inline-block;
    padding: 12px 30px; /* Generous padding */
    text-decoration: none;
    border-radius: 25px; /* Rounded corners */
    margin: 10px 5px 10px 0;
    text-align: center;
    font-weight: 600; /* Bolder button text */
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.cta-button:hover {
    text-decoration: none; /* No underline on button hover */
}

.cta-button.primary {
    background-color: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
}
.cta-button.primary:hover {
    background-color: var(--primary-blue-darker);
    border-color: var(--primary-blue-darker);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}
.cta-button.secondary:hover {
     background-color: var(--primary-blue);
     color: #fff;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* --- Specific Section Styling --- */

/* Features/Benefits as Cards (Example using Flexbox) */
#solution ul,
#key-benefits ul,
#core-benefits .container, /* Target container for benefit items */
#our-values ul {
    display: flex;
    flex-wrap: wrap;
    gap: 30px; /* Space between cards */
    justify-content: center; /* Center cards if they don't fill row */
    padding-left: 0; /* Reset padding */
}

#solution ul li,
#key-benefits ul li,
.benefit-item, /* Style the article directly */
#our-values ul li {
    flex: 1 1 300px; /* Grow, shrink, base width ~300px */
    max-width: 350px; /* Max width per card */
    background-color: var(--background-white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center; /* Center text within cards */
    border: 1px solid var(--border-color);
    margin-bottom: 0; /* Remove default li margin */
}
/* If using articles instead of li for benefits */
.benefit-item p {
    text-align: center; /* Ensure p text is centered */
    color: var(--text-muted);
}
.benefit-item h3 {
     text-align: center;
     font-size: 1.25rem;
}

/* Add icons here if desired */
#solution ul li::before,
#key-benefits ul li::before,
.benefit-item::before,
#our-values ul li::before {
   /* content: url('path/to/icon.svg'); Example */
    display: block;
    margin-bottom: 15px;
    /* Style icon size etc. */
}

/* Comparison Section */
#comparison article {
    background: var(--background-white);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}
#comparison h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-blue);
}
#comparison p {
    margin-bottom: 5px;
    color: var(--text-muted);
    text-align: left; /* Keep comparison text left-aligned */
    max-width: none; /* Override general centering */
    margin-left: 0;
    margin-right: 0;
}
#comparison strong {
    color: var(--text-dark);
    font-weight: 600;
}


/* Visual Placeholders */
.visual-placeholder,
.logo-placeholder,
#your-3d-viewer-placeholder,
#map-placeholder {
     border: 1px solid var(--border-color);
     background-color: var(--background-light);
     display: flex;
     align-items: center;
     justify-content: center;
     color: #adb5bd;
     font-style: italic;
     border-radius: 8px; /* Rounded corners for visuals */
     margin-top: 20px;
     margin-bottom: 20px;
     min-height: 200px; /* Ensure minimum height */
}
#your-3d-viewer-placeholder {
    min-height: 400px; /* Larger for demo area */
}

/* Logos */
.logos-placeholder {
    margin-top: 30px;
    font-style: italic;
    color: var(--text-muted);
    text-align: center;
}

/* Case Studies */
.case-study {
    background-color: var(--background-white);
    padding: 30px;
    margin-bottom: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.case-study h3 { text-align: left; }
.case-study h4 { text-align: left; margin-top: 20px; font-size: 1.1rem; color: var(--primary-blue); }
.case-study p, .case-study ul { text-align: left; max-width: none; margin-left:0; }
.case-study ul { list-style: disc; padding-left: 20px;}
.case-study blockquote {
    margin-top: 20px;
    padding-left: 15px;
    border-left: 3px solid var(--primary-blue);
    font-style: italic;
    color: var(--text-muted);
}
.case-study blockquote footer {
    margin-top: 5px;
    font-style: normal;
    font-weight: 600;
    color: var(--text-dark);
}

/* Testimonials */
#testimonials blockquote {
    max-width: 700px;
    margin: 30px auto;
    text-align: center;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-muted);
}
#testimonials blockquote footer {
    margin-top: 10px;
    font-style: normal;
    font-weight: 600;
    color: var(--text-dark);
}
.testimonial-placeholder { /* Specific styling */
    padding: 20px;
    background: var(--background-light);
    border-left: 4px solid var(--primary-blue);
    border-radius: 4px;
}


/* --- Forms --- */
#contact-form-section {
    background-color: var(--background-light); /* Light background for form area */
}
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px; /* Slightly less rounded for inputs */
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25); /* Focus glow */
    outline: none;
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
#contact-form-section form button {
    width: auto; /* Don't make button full width */
    min-width: 150px;
}

/* Direct Contact Section */
#direct-contact {
    text-align: center;
}
#direct-contact h3 {
    margin-bottom: 15px;
}


/* --- Footer --- */
footer {
    background-color: var(--text-dark); /* Dark footer */
    color: #adb5bd; /* Muted text color */
    padding: 40px 0;
    margin-top: 60px;
    font-size: 0.9rem;
}
footer .container {
    /* Could use Flexbox/Grid for multi-column layout here */
    text-align: center;
}
footer p {
    margin-bottom: 10px;
    color: #adb5bd; /* Ensure paragraph color */
}
footer a {
    color: var(--background-white); /* Brighter links in footer */
    text-decoration: underline;
}
footer a:hover {
    color: #dee2e6; /* Lighter hover */
}

/* --- Media Queries for Responsiveness (Basic Example) --- */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    #hero h2 { font-size: 2.2rem; }

    header .container {
        /* Adjust header for mobile if needed, maybe hide some links under a burger menu */
    }
    header nav {
        /* Hide nav initially on mobile? Requires JS */
        /* display: none; */
    }

    /* Stack flex items */
    #solution ul,
    #key-benefits ul,
    #core-benefits .container,
    #our-values ul {
        flex-direction: column;
        align-items: center; /* Center stacked items */
    }
     #solution ul li,
    #key-benefits ul li,
    .benefit-item,
    #our-values ul li {
        flex-basis: auto; /* Reset basis */
        width: 90%; /* Make cards wider on mobile */
        max-width: 400px; /* Limit max width */
    }

}