/* --- Global Variables & Resets --- */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #475569;
    --color-navy: #1e293b;
    --color-teal: #0ea5e9;
    --color-teal-dark: #0284c7;
    --font-stack: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    color: var(--text-main);
    background-color: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 11000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.max-width-text { max-width: 750px; margin: 0 auto; }

/* --- Components & Typography --- */
h1 { font-size: 2.75rem; font-weight: 700; line-height: 1.2; color: #ffffff; }
h2 { font-size: 2.25rem; font-weight: 700; color: var(--color-navy); margin-bottom: 1.5rem; }
h3 { font-size: 1.35rem; font-weight: 600; color: var(--color-navy); margin-bottom: 0.75rem; }
p { color: var(--text-muted); font-size: 1.05rem; }

.section-tag {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-teal);
    margin-bottom: 0.75rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    font-size: 0.95rem;
}
.btn-primary {
    background-color: var(--color-teal);
    color: #ffffff;
    border: none;
}
.btn-primary:hover { background-color: var(--color-teal-dark); }
.btn-secondary {
    background-color: transparent;
    color: var(--color-teal);
    border: 1px solid var(--color-teal);
}
.btn-secondary:hover {
    background-color: var(--color-teal);
    color: #ffffff;
}
.btn-block { width: 100%; display: block; }

/* Grids */
.grid { display: grid; gap: 2rem; }
@media (min-width: 768px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Scale down the hero section text for mobile */
    .hero-container h1 {
        font-size: 2rem; /* Adjust this value if it still feels too large */
        line-height: 1.2;
        padding-left: 10px;
        padding-right: 10px;
    }

/* Mobile Responsive Layout for Header */
@media (max-width: 768px) {
    /* Stack the logo and navigation vertically */
    .nav-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
    }

    /* Constrain the logo size on mobile */
    .logo-img {
        max-width: 180px; 
        height: auto;
        margin-bottom: 15px;
    }

    /* Convert navigation links to a neat, wrapping row */
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 15px;
    }

    /* Force the Contact Us button text to stay on one line */
    nav .btn {
        white-space: nowrap;
    }
}

/* Ensure padding doesn't increase element width */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Prevent horizontal scrolling and hide the white gap */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Ensure all images scale down */
img {
    max-width: 100%;
    height: auto;
}

/* --- Header / Navigation --- */

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


/* This restricts the logo height so it keeps the navigation bar clean and professional */
.logo-img {
    display: flex;
    align-items: center;
    height: 50px; /* Adjust this number if you want it slightly bigger or smaller */
    width: auto;
    display: block;
}
header {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
nav a {
    text-decoration: none;
    color: var(--text-muted);
    margin-left: 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}
nav a:hover { color: var(--color-navy); }
nav a.btn-secondary { color: var(--color-teal); }
nav a.btn-secondary:hover { color: #ffffff; }

/* --- Sections --- */

/* Hero */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 8rem 0;
    text-align: center;
}
.hero-container { max-width: 800px; }
.hero h1 { margin-bottom: 1.5rem; }
.hero p { color: #cbd5e1; font-size: 1.25rem; margin-bottom: 2.5rem; }

/* Intro / About */
.intro-section { padding: 6rem 0; background-color: var(--bg-primary); }
.intro-section p { font-size: 1.15rem; }

/* Services */
.services-section { padding: 6rem 0; background-color: var(--bg-secondary); }
.services-section h2 { margin-bottom: 3rem; }
.card {
    background: var(--bg-primary);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.card-icon {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

/* Callout Banner */
.cta-banner {
    background-color: var(--color-navy);
    color: #ffffff;
    padding: 5rem 0;
}
.cta-banner h2 { color: #ffffff; }
.cta-banner p { color: #94a3b8; font-size: 1.1rem; }

/* Contact Form */
.contact-section { padding: 6rem 0; background-color: var(--bg-primary); }
.contact-section p { margin-bottom: 2.5rem; }
.max-width-form { max-width: 600px; }

.contact-form {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-navy);
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: var(--font-stack);
    font-size: 1rem;
    color: var(--text-main);
    background-color: #ffffff;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-teal);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

/* --- Footer --- */
footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid #334155;
    font-size: 0.95rem;
}
.footer-subtext {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    color: #64748b;
}
