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

html, body {
    overflow-x: hidden;
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #1a365d; /* Navy */
}

body {
    background-color: #f8fafc; /* Light silver */
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}



/* Typography */
h1, h2 {
    font-weight: bold;
}

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.hero h1 span {
    white-space: nowrap;
    position: relative;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 1px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #e2e8f0;
    z-index: 100;
    padding-top: 40px; /* Space for logo bleed */
}



header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 1rem;
    min-height: 25px;
    position: relative;
}

.logo-container {
    position: relative;
    width: 120px;
    height: 40px; /* Space for bleed */
}

.logo {
    position: absolute;
    top: 0px;
    left: -5px;
    height: 120px;
    width: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #1a365d;
    opacity: 0;
    transition: opacity 2s ease-in-out, transform 0.3s ease;
}

nav {
    display: flex;
    gap: 1rem;
    margin-left: auto; /* Ensure nav is at right */
}

nav a {
    font-size: 1rem;
}

nav a {
    color: #1a365d;
    text-decoration: none;
    font-weight: 500;
    padding: 0.125rem;
    min-height: 20px;
    display: flex;
    align-items: center;
}

nav a:hover, nav a:focus {
    color: #2d3748;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    color: white;
    padding-top: 80px; /* Space for fixed header */
}

.hero .container {
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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



/* Sections */
.services, .contact {
    scroll-margin-top: 250px;
}

.services .container, .contact .container {
    max-width: 1000px;
}

@media (max-width: 767px) {
    .service-card:hover, .service-card.hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15) !important;
        background-color: #f0f8ff !important;
        border: 2px solid #1a365d !important;
        outline: 2px solid #1a365d !important;
    }
}

.promotion-toast-container {
    top: 30px;
    right: 10px;
    z-index: 9999;
    margin-top: 15px;
}

.toast.fade {
    transition: opacity 1.5s ease-in !important;
}



#turnstile-widget {
    margin-bottom: 1rem;
}

#form-status {
    display: none;
}

.email-link {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #4a5568;
}

.email-link a {
    text-decoration: none;
    color: #3182ce;
}

.email-link a:hover, .email-link a:focus {
    text-decoration: underline;
}

.email-link {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #4a5568;
}

.email-link a {
    text-decoration: none;
    color: #3182ce;
}

.email-link a:hover, .email-link a:focus {
    text-decoration: underline;
}



/* Responsive */
@media (max-width: 767px) {
    .hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}



    nav {
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero {
        padding: 4rem 1rem;
    }
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 6px;
}

/* Focus visible */
*:focus-visible {
    outline: 2px solid #3182ce;
    outline-offset: 2px;
}

/* Floating contact button */
.contact-float-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #1a365d;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
}

.contact-float-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.contact-float-btn.show {
    opacity: 1;
    pointer-events: auto;
}