
body { 
        background: #f1ecec; 
        color: rgba(0,0,0,0.87); 
        font-family: 'Inter', sans-serif;
        margin: 0; 
        padding: 0; 
}
body::before {
        content: ""; 
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url(../images/white-marble-pattern.png);
        background-attachment: fixed;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        opacity: 0.3;
        z-index: -1;
}

/*element styles*/
a { text-decoration: none; color: white;}
h2 {margin-bottom: 0px;}

/* ==========================
| content classes
| =========================== */
p {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 520;
    line-height: 1.6;
    color: #333333; /* Soft dark gray instead of harsh pure black */
}
p.hero-content {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 520;
    line-height: 1.6;
    max-width: 500px;
    margin: 20px auto 0px auto;
}
p.services-content {
    text-align: center;
    font-family: 'Inter', sans-serif;
    max-width: 700px;
    margin: 20px auto 0px auto;
}
p.approach-content {
    text-align: center;
    font-family: 'Inter', sans-serif;
    max-width: 700px;
    margin: 20px auto 0px auto;
}
p.about-content {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 520;
    line-height: 1.6;
    color: #333333;
    max-width: 900px;
    margin: 20px auto; 
}
/* Apply globally to all elements that have an ID targeted by a link */
[id] {
    scroll-margin-top: 100px; 
}

.body-link {
        color: black;
        font-family: 'Inter', sans-serif;
        font-size: 1.1em;
        font-weight: bold;
}
.content-container {
    width: 100%;
    max-width: 1200px; /* Limits size on large monitors */
    margin: 0 auto;
    padding: 1rem; /* Comfortable padding for desktop */
    box-sizing: border-box; /* Crucial: stops padding from breaking element width */
}
/* Mobile Tweak */
@media (max-width: 800px) {
    .content-container {
        padding: 0rem; /* Reduces spacing on mobile to maximize readability screen space */
    }
}

/* ==========================
| text modifiers
| =========================== */
span.red {
        color:#b6121b;
}

/* ==========================
| styles for dividers
| =========================== */
.full-subtle-divider {
    border: none;      
    height: 2px;       
    background-color: #b6121b; 
    width: 100%;              
    margin: 2px auto;
}
.subtle-divider {
    border: none;      
    height: 2px;       
    background-color: #b6121b; 
    width: 85%;              
    max-width: 1000px;        
    margin: 0px auto;         
}
.subtle-card-divider {
    border: none;      
    height: 1px;       
    background-color: #b8b0b0; 
    width: 85%;              
    max-width: 1000px;        
    margin: 10px auto;    
}

/* ==========================
| navigation bar styling
| =========================== */
header { 
        position: sticky;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 2000;
        background: #f1ecec; 
        color: rgba(0,0,0,0.87); 
        font-family: 'Inter', sans-serif;
        margin: 0; 
        padding: 0; 
        /* Hardware acceleration smooth transition */
        transition: transform 0.3s ease-in-out;
        transform: translateY(0); 
}
/* Slide up and perfectly hide the header */
header.header-hidden {
    transform: translateY(-100%);
}
header nav {
    background: #ffffff;
    padding: 0.5rem 1rem; /* Expanded breathing room vertically and horizontally */
    margin: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* Adds a subtle separation barrier over the background content */
}
.nav-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
}
.nav-logo {
        display: flex;
        align-items: center;
        gap: 0.5em;
}
.nav-links {
        display: flex;
        align-items: center;
        gap: 2em;
        padding-right: 1em;
}

/* ======================================
| navigation bar styling - Hamburger
| ======================================= */
.hamburger {
    display: none; /* Invisible on desktop screens */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    width: 100%;
    height: 3.2px;
    background-color: #b6121b;
    transition: all 0.3s ease;
    
    /* Forces the browser to render the rendering bounding boxes sharply */
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ==========================================
   Mobile Responsive Screen Breakpoint
   ========================================== */
@media (max-width: 800px) {
    .hamburger {
        display: flex; /* Appears on mobile viewports */
    }
    .nav-links {
        display: none; /* Hidden by default on mobile */
        position: absolute;
        top: 100%; /* Sits exactly underneath the sticky header */
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        gap: 0;
        box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
    }
    .nav-links .nav-link-button {
        padding: 12px 24px;
        width: 100%;
        box-sizing: border-box;
    }
    .nav-links .red-button {
        padding: 12px 24px;
        width: 80%;
        margin: 0px auto 12px auto;
    }
    .nav-links.active {
        display: flex; 
    }
    #logo-section {
        display: none; /* Hides the logo section on mobile to save space */
    }
}
@media (max-width: 800px) {
    .hamburger.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.open span:nth-child(2) {
        opacity: 0; /* Hides middle bar */
    }
    .hamburger.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* ==========================
| organizational styling
| =========================== */
.flex-container {
        display: flex;
        flex-direction: row;       /* Places logo section and text section side-by-side */
        align-items: center;       /* CRUCIAL: Centers both sibling containers vertically against each other */
        justify-content: center;   /* Spreads or centers them horizontally on the screen */
        gap: 40px;
        margin: 20px;
}
#main > .flex-container {
    margin-top: 100px;
    margin-bottom: 100px;
}
.white-ish-bg {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
    
    margin: 100px auto; 
    max-width: 1000px;
    text-align: center;
}
.vertical-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.vertical-container#sections {
    gap: 100px;
}
.section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* ==========================
| Grid card styling
| =========================== */
.grid-item-card {
    background-color: #ffffff;
    border-radius: 8px;
    /* Flex basis forces a 3-column max width subtracting gaps */
    flex: 1 1 calc(33.333% - 24px); 
    min-width: 280px;
    max-width: 340px;
    padding: 30px 24px;
    text-align: center;
    box-sizing: border-box;
    
    /* Elegant Material Drop Shadow matching image_de3524.jpg */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
        .grid-item-card:hover {
                transform: translateY(-2px);
                box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
        }
        .card-icon {
                font-size: 2.5rem;
                color: #b6121b;
                margin-bottom: 16px;
                display: flex;
                justify-content: center;
                align-items: center;
        }
        .card-content h3 {
                font-family: 'Inter', sans-serif;
                font-size: 1.25rem;
                color: #b6121b; 
                margin: 0 0 12px 0;
                font-weight: 700;
        }
        .card-content p {
                font-family: 'Inter', sans-serif;
                font-size: 0.95rem;
                color: #4a4a4a; 
                line-height: 1.5;
                margin: 0;
        }
.grid-4-item-card {
    background-color: #ffffff;
    border-radius: 8px;
    /* Flex basis forces a 4-column max width subtracting gaps */
    flex: 1 1 calc(25% - 24px); 
    min-width: 200px;
    max-width: 300px;
    padding: 30px 24px;
    text-align: center;
    box-sizing: border-box;
    
    /* Elegant Material Drop Shadow matching image_de3524.jpg */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
        .grid-4-item-card:hover {
                transform: translateY(-2px);
                box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
        }

/* ==========================
| Section Header Typography
| =========================== */
#home {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    color: #1a202c;
    margin-bottom: 10px;
    font-weight: 800;
}
#about {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    color: #1a202c;
    margin-bottom: 10px;
    font-weight: 600;
}
#approach {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    color: #1a202c;
    margin-bottom: 10px;
    font-weight: 600;
}
#services {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    color: #1a202c;
    margin-bottom: 10px;
    font-weight: 600;
}

/* ==========================
| buttons
| =========================== */
#submit-button {
        margin: 20px auto 0 auto;
}
.red-button {
        display: block;
        padding: 12px 30px; /* Top/Bottom and Left/Right */
        text-decoration: none;
        background-color: #b6121b; 
        color: #FFFFFF;
        font-family: Roboto, Helvetica, Arial, sans-serif; 
        font-size: 16px;
        font-weight: 500;
        text-align: center;
        border: none;
        border-radius: 3px;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
        cursor: pointer;
        transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
        .red-button:hover {
        background-color: #b6121b;
        box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.4); /* Increase shadow depth */
        }

        /* Active/Click effect: The button "depresses" */
        .red-button:active {
        box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.2); /* Almost remove the shadow */
        transform: translateY(1px); /* Move it down slightly */
        }

.white-button {
        background-color: #ffffff;
        font-family: Roboto, Helvetica, Arial, sans-serif; 
        font-size: 16px;
        font-weight: 500;
        border-color: #5a5858;
        border-radius: 5px;
        padding: 5px;
        box-shadow: 2px 2px 10px grey;
}
.nav-link-button {
        color: #b6121b;
        font-family: Roboto, Helvetica, Arial, sans-serif;
        font-size: 1.1em;
        font-weight: bold;
        text-decoration: none;
}
        .nav-link-button:hover {
                text-decoration: underline;
        }
.logout-button {
        display: inline-block; 
        padding: 12px 30px; /* Top/Bottom and Left/Right */
        text-decoration: none;
        background-color: #b6121b; 
        color: #FFFFFF;
        font-family: Roboto, Helvetica, Arial, sans-serif; 
        font-size: 16px;
        font-weight: 500;
        text-align: center;
        border: none;
        border-radius: 3px;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
        cursor: pointer;
        transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
        .logout-button:hover {
        background-color: #b6121b;
        box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.4);
        }
        .logout-button:active {
        box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.2);
        transform: translateY(1px);
        }       

/* ==========================
| footer styling
| =========================== */
footer {
    background: #ffffff;
    display: flex;             /* Use flex to center the content */
    justify-content: center;   /* Horizontal centering */
    padding: 30px 20px;        /* Give it some breathing room top/bottom */
    box-sizing: border-box;
}

.vertical-container-footer {
    display: flex;
    flex-direction: column;
    align-items: center;       /* Centers title and button */
    width: 100%;
    max-width: 800px;          /* Prevents the form from getting too wide on desktop */
}

.flex-container-footer {
    display: flex;
    justify-content: center;
    width: 100%;               /* Fill the container width */
    gap: 15px;
    margin-bottom: 15px;       /* Space below the Name/Company row */
}
footer input, footer textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;    /* Ensures padding doesn't break the width */
    padding: 12px 15px;
    margin-bottom: 15px;       /* Vertical spacing between rows */
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}
.flex-container-footer input {
    margin-bottom: 0; 
}
.vertical-container-footer > input {
    flex: 1;
    box-sizing: border-box; 
}
footer h2 {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
    font-size: 2rem;
    color: #1f2937;
}

footer h2::before,
footer h2::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ccc;
    margin: 0 20px;
}