/* --- Root Variables & Reset --- */
:root {
    --primary: #0f172a; 
    --accent: #0891b2;  
    --accent-pop: #22d3ee; 
    --text-main: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-tint: #f0f9ff;
    --white: #ffffff;
    --border: #e2e8f0;
}

html { scroll-behavior: smooth; }
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--white);
}

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

/* --- Navigation & Square Logo Crop --- */
nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content { display: flex; justify-content: space-between; align-items: center; }

.logo {
    display: block;
    height: 60px; /* The visible window */
    overflow: hidden; /* Crops the square logo */
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 150px; /* Scaled up so text is large within the 60px window */
    width: auto;
    display: block;
}

.nav-links a { margin-left: 2rem; text-decoration: none; color: var(--text-main); font-weight: 600; font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* --- Compact Hero Section --- */
.hero {
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 7rem 0; 
    color: var(--white);
    margin-bottom: 1rem; /* Reduced spacing below hero section */
}

.hero h1 { font-size: 3rem; margin-bottom: 1rem; letter-spacing: -1px; line-height: 1.1; }
.hero p { font-size: 1.15rem; max-width: 700px; margin: 0 auto 2rem; color: #cbd5e1; }

/* --- Global Card & Grid System --- */

/* --- Grid for 2 Cards Per Row --- */
.card-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 2.5rem; 
}

/* --- Link Styling --- */
.visit-link {
    margin-top: auto; /* Pushes link to the bottom of the card */
    padding-top: 1.5rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}

.visit-link:hover {
    color: var(--accent-pop);
    text-decoration: underline;
}

/* --- Responsive adjustment --- */
@media (max-width: 900px) { 
    .card-grid { grid-template-columns: 1fr; } 
}

/* --- Responsive adjustment for tablets and phones --- */
@media (max-width: 900px) { 
    .card-grid { 
        grid-template-columns: 1fr; /* Stacks to one column on smaller screens */
    } 
    .hero h1 { font-size: 2.5rem; }
}

/* Keep all other logo-cropping and card styles from the previous audit */

.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    border-top: 6px solid var(--accent);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, border-top-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover { transform: translateY(-5px); border-top-color: var(--accent-pop); }
.card h2, .card h3 { color: var(--primary); margin-bottom: 1rem; font-size: 1.5rem; }

/* --- Add margins to cards on mobile --- */
@media (max-width: 900px) {
    .card {
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

/* --- Infrastructure & Customer Specifics --- */
.infra-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
    gap: 1rem; 
    margin-top: 2rem; 
}

.infra-item {
    padding: 1rem;
    background: var(--bg-tint);
    border-radius: 8px;
    border: 1px solid #bae6fd;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
}

.tag { 
    display: inline-block; 
    background: var(--bg-tint); 
    color: var(--accent); 
    padding: 0.2rem 0.6rem; 
    border-radius: 99px; 
    font-size: 0.75rem; 
    font-weight: 700; 
    margin-bottom: 1rem; 
    text-transform: uppercase; 
}

.scope-box { 
    background: var(--bg-light); 
    padding: 1.25rem; 
    border-radius: 8px; 
    font-size: 0.9rem; 
    margin-top: 1rem; 
    flex-grow: 1;
}

.scope-box ul { list-style: none; padding-top: 0.5rem; }
.scope-box li::before { content: "→ "; color: var(--accent); font-weight: bold; }

/* --- Buttons & CTAs --- */
.btn-fixed {
    display: inline-block;
    background-color: var(--accent);
    color: var(--white) !important;
    padding: 0.8rem 2.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-fixed:hover { background-color: var(--accent-pop); transform: translateY(-2px); }

.btn-outline {
    display: inline-block;
    border: 2px solid var(--accent-pop);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
}

.cta-banner {
    text-align: center;
    margin-top: 5rem;
    padding: 4rem 2rem;
    background: var(--bg-light);
    border-radius: 20px;
}

/* --- Footer --- */
footer { background: var(--primary); padding: 4rem 0; text-align: center; color: var(--white); margin-top: 5rem; }
footer p { opacity: 0.7; font-size: 0.9rem; }

/* --- Hamburger menu styles --- */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    margin: 4px 0;
    transition: all 0.3s ease;
}

.nav-links {
    display: none; /* Initially hidden for mobile */
    flex-direction: column;
    background-color: var(--white);
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-links.active {
    display: flex; /* Show menu when active */
}

/* Ensure navigation is visible on desktop */
@media (min-width: 769px) {
    .nav-links {
        display: flex !important; /* Force display on desktop */
        flex-direction: row;
        position: static; /* Reset position for desktop */
        box-shadow: none; /* Remove mobile-specific styles */
        background-color: transparent; /* Reset background */
        width: auto; /* Reset width */
        padding: 0; /* Reset padding */
    }

    .hamburger {
        display: none; /* Hide hamburger menu on desktop */
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex; /* Show hamburger icon on mobile */
    }

    .nav-links a {
        margin: 0.5rem 0;
        text-align: center;
    }
}

/* Contact page specific styles */
.contact-container {
    display: flex;
    justify-content: center;
    padding: 5rem 0;
    margin-top: 1.5rem; /* Adjust spacing as needed */
}

.contact-card {
    max-width: 600px;
    width: 100%;
}