/* ================= Base Styles & Variables ================= */
:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --border-color: #000000;
    --gray: #f5f5f5;
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --noir-black: #000000;
    --noir-white: #ffffff;
    --noir-gray: #f2f2f2;
    --border-soft: #e5e5e5;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased; /* Sharper text on macOS/iOS */
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ================= Typography ================= */
h1 {
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

p {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: #333;
}

/* ================= Buttons (Interactive) ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    text-align: center;
    min-height: 44px; /* Accessible tap target for mobile */
}

.btn-solid {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.btn-solid:hover {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-color);
}

.btn-outline:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.btn-solid-white {
    background-color: var(--bg-color);
    color: var(--text-color);
    border-color: var(--bg-color);
}

.btn-solid-white:hover {
    background-color: transparent;
    color: var(--bg-color);
}

/* ================= Navbar ================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: -webkit-sticky; /* Safari support */
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #eaeaea;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo img {
    max-height: 40px;
    width: auto;
    display: block;
    transition: var(--transition);
}

.logo img:hover {
    opacity: 0.8;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links li a:not(.btn) {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0; /* Larger tap area */
}

.nav-links li a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0px;
    left: 0;
    background-color: var(--text-color);
    transition: var(--transition);
}

.nav-links li a:not(.btn):hover::after {
    width: 100%;
}

.nav-links li a.active-page {
    color: #000;
    font-weight: 800;
}

.nav-links li a.active-page::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0px;
    left: 0;
    background-color: #000;
}

/* ================= Mobile Hamburger Menu ================= */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001;
    padding: 5px 0; /* Expand tap area */
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: left center;
}

/* ================= Hero Section ================= */
.hero {
    padding: 8rem 5% 5rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Load-in Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= Trust Bar Section ================= */
.trust-bar {
    padding: 8rem 5%;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    text-align: left;
}

.trust-bar .tagline {
    margin-bottom: 1rem;
    display: block;
}

.trust-bar h2 {
    margin-bottom: 3rem;
    max-width: 600px;
}

.trust-content-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    align-items: start;
}

.trust-column p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.5rem;
}

.trust-column.solution {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--noir-black);
}

.trust-column.solution p:last-child {
    font-weight: 600;
    color: var(--noir-black);
}

/* ================= Process Section ================= */
.process-section {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    background-color: var(--bg-color);
}

.section-title {
    margin-bottom: 3rem;
    color: var(--noir-black);
}

.process-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.process-node {
    background: var(--bg-color);
    border: 1px solid var(--border-soft);
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.process-node:hover {
    border-color: var(--noir-black);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.icon-box {
    width: 54px;
    height: 54px;
    background: var(--noir-black);
    color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    transition: 0.3s ease;
}

.process-node:hover .icon-box {
    background: var(--bg-color);
    color: var(--noir-black);
    outline: 2px solid var(--noir-black);
}

.step-label {
    font-family: 'Roboto Mono', Consolas, monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: #888;
    display: block;
    margin-bottom: 0.5rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.process-content h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--noir-black);
}

/* ================= Services Section ================= */
.services {
    padding: 8rem 5%;
}

.services-header {
    max-width: 800px;
    margin-bottom: 4rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 3rem 2rem;
    border: 1px solid var(--border-soft);
    background-color: var(--bg-color);
    border-radius: 12px;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.service-card p {
    font-size: 1rem;
    transition: var(--transition);
    color: #444;
}

.service-card:hover {
    background-color: var(--text-color);
    border-color: var(--text-color);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-card:hover h3, 
.service-card:hover p {
    color: var(--bg-color);
}

/* ================= Forms & Inputs (Cross-Browser Safe) ================= */
input, textarea {
    -webkit-appearance: none; /* Removes iOS inner shadow */
    appearance: none;
    border-radius: 0; /* Fixes iOS rounded corners */
    font-family: inherit;
    width: 100%;
}

.newsletter {
    display: flex;
    border-bottom: 2px solid var(--text-color);
    padding-bottom: 0.5rem;
    width: 100%;
    max-width: 400px;
}

.newsletter input {
    border: none;
    background: transparent;
    outline: none;
    flex-grow: 1;
    font-size: 1rem;
    color: var(--text-color);
    padding: 0.5rem 0;
}

.newsletter button {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform var(--transition);
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
}

.newsletter button:hover {
    transform: translateX(5px);
}

/* ================= Call to Action ================= */
.cta {
    padding: 8rem 5%;
    background-color: var(--text-color);
    color: var(--bg-color);
    text-align: center;
}

.cta h2 {
    margin-bottom: 3rem;
    color: var(--bg-color);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* ================= Footer ================= */
.footer {
    padding: 6rem 5% 2rem;
    background-color: #fafafa;
    border-top: 1px solid var(--border-soft);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand {
    grid-column: 1 / -1; /* Span full width on smaller screens */
}

@media (min-width: 900px) {
    .footer-brand {
        grid-column: span 2; /* Span two columns on desktop */
    }
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: #555;
    max-width: 400px;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #666;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--text-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-soft);
    color: #666;
    font-size: 0.9rem;
}

/* ================= Media Queries & Mobile Responsiveness ================= */

@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh; /* Fallback for older browsers */
        height: 100dvh; /* Dynamic height for modern mobile browsers */
        background-color: var(--bg-color);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
        width: 100%;
        text-align: center;
    }

    .nav-links li a:not(.btn) {
        font-size: 1.5rem;
        display: block;
        padding: 1rem;
    }

    .nav-links li a.btn {
        font-size: 1.2rem;
        margin-top: 1rem;
        width: 80%;
        max-width: 300px;
        padding: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .trust-column.solution {
        padding-left: 0;
        border-left: none;
        border-top: 2px solid var(--noir-black);
        padding-top: 2rem;
    }
}

@media (max-width: 768px) {
    .hero, .trust-bar, .process-section, .services, .cta {
        padding: 5rem 5%;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

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

    .footer-brand p {
        margin-left: auto;
        margin-right: auto;
    }

    .newsletter {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 5% 3rem;
        min-height: 60vh;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .process-node {
        padding: 1.5rem;
    }
}

/* ================= Contact Form & Validation ================= */

.contact-section {
    padding: 2rem 5% 8rem;
    display: flex;
    justify-content: center;
}

.contact-container {
    width: 100%;
    max-width: 800px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-color);
}

.form-group input, 
.form-group textarea {
    padding: 1rem;
    border: 2px solid var(--border-soft);
    background-color: var(--noir-gray);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
    width: 100%;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--noir-black);
    background-color: var(--bg-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.form-group-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--noir-black);
    -webkit-appearance: checkbox; /* Ensure checkbox is visible on iOS */
    appearance: checkbox;
}

.validation-note {
    font-size: 0.85rem;
    color: #666;
    margin-top: -0.5rem;
}

.submit-btn {
    width: 100%;
    margin-top: 1rem;
    border-radius: 4px; /* Slightly sharper for the form's aesthetic */
}

/* Success Message State */
.success-message {
    text-align: center;
    padding: 4rem 2rem;
    border: 2px solid var(--noir-black);
    background: var(--noir-gray);
    animation: fadeInUp 0.5s ease forwards;
}

.success-message h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Mobile Adjustment for Form Rows */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-container {
        padding: 0;
    }
}

