/* --- Global Reset & Variable Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Typography & Elements --- */
h1 { font-size: 2.2rem; line-height: 1.2; margin-bottom: 20px; }
h2 { font-size: 1.8rem; margin-bottom: 15px; color: #111; }
h3 { font-size: 1.4rem; margin-bottom: 10px; color: #0072ff; }
p { margin-bottom: 15px; color: #555; }

/* Buttons & Touch Targets */
.btn {
    display: inline-block;
    background-color: #ffffff;
    color: #0072ff;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    min-height: 48px;
    transition: background 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn:hover {
    background-color: #f0f0f0;
}

/* --- Header & Mobile Dropdown Navigation --- */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo h2 {
    margin-bottom: 0;
    color: #0072ff;
}

/* Hide toggle checkbox */
.menu-toggle {
    display: none;
}

/* Mobile Hamburger Drawing */
.hamburger {
    display: block;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: 0.3s;
}

/* Mobile Menu Fallback Overlay */
nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 4px 5px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
}

nav ul li a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #eee;
}

/* CSS Trigger: When checkbox is checked, show mobile nav menu */
.menu-toggle:checked ~ nav {
    display: block;
}

/* --- Page Sections Layouts --- */
.hero {
    color: #ffffff;
    padding: 60px 0;
    text-align: center;
}

.hero p {
    color: #e0f0ff;
    max-width: 700px;
    margin: 0 auto;
}

.about-preview {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.services-home {
    padding: 50px 0;
}

/* Core Expertise Cards Setup (Vertical Stack default) */
/* --- Mobile Layout (Stacked) --- */
.cards {
    width: 100%;
    margin-top: 25px;
}

.card {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    margin-bottom: 20px; /* Replaces grid-gap with a standard bottom margin */
    box-sizing: border-box;
}

.cta {
    padding: 60px 0;
    background: #222;
    color: #fff;
    text-align: center;
}

.cta h2 { color: #fff; }

.cta .btn {
    background-color: #0072ff;
    color: #fff;
}

footer {
    background-color: #111;
    color: #888;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Mobile Layout (Stacked) --- */

/*
.cards {
  width: 100%;
  margin-top: 25px;
  display: flex;
  flex-direction: column; 
  gap: 20px;              
}

.card {
  background: #ffffff;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #eaeaea;
  width: 100%;            
  box-sizing: border-box;
}

.card:last-child {
  margin-bottom: 0;
}

*/

/* --- Mobile Layout (Stacked) --- */
.cards {
  width: 100%;
  margin-top: 25px;
  display: flex;
  flex-direction: column; /* Stack vertically on mobile */
}

.card {
  background: #ffffff;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #eaeaea;
  width: 100%;            /* Fill mobile screen */
  box-sizing: border-box;
  margin-bottom: 20px;    /* Bulletproof vertical gap for mobile rows */
}




/* ==========================================================================
   DESKTOP STYLES (Screens 768px wide and above)
   ========================================================================== */
@media screen and (min-width: 768px) {
    /* Hide Mobile Hamburger Trigger */
    .hamburger {
        display: none;
    }

    /* Convert Navigation Menu to Horizontal Desktop Bar */
    nav {
        display: block !important;
        position: static;
        width: auto;
        box-shadow: none;
    }

    nav ul {
        flex-direction: row;
    }

    nav ul li a {
        padding: 10px 15px;
        border-bottom: none;
    }

    nav ul li a:hover {
        color: #0072ff;
    }

    /* Scaled Text sizes for PC Display */
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }

    /* Increase Section Breathe Space */
    .hero { padding: 100px 0; }
    .about-preview, .services-home, .cta { padding: 80px 0; }

    /* Spread Core Expertise Cards Side-by-Side into 3 Columns */

/*
.cards {
        display: block; 
         
    }
    
    .card {
        float: left;            
        width: 31%;             
        margin-right: 3.5%;     
        margin-bottom: 25px;
    }
    
        .card:last-child {
        margin-right: 0;       
    }
    

    .cards::after {
        content: "";
        display: table;
        clear: both;
    }
    */
    
.cards {
    display: flex;        /* Ensure layout is active */
    flex-direction: row;  
    flex-wrap: wrap;      
    align-items: stretch; /* FIX 1: Forces all cards in a row to equal height */
    margin-right: -20px;  
  }

  .card {
    display: flex;         /* FIX 2: Makes card content stretch nicely inside */
    flex-direction: column;
    width: calc(33.333% - 20px); 
    margin-right: 20px;   
    margin-bottom: 20px;  
  }



}
