/* ==========================================================================
   1. GLOBAL RESET & VARIABLE PARAMETERS
   ========================================================================== */
:root {
    --primary-color: #121820;
    --secondary-color: #1a232d;
    --accent-color: #c5a880;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --border-color: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.65;
    background-color: #fff;
    overflow-x: hidden;
}

/* ==========================================================================
   2. RESTRUCTURED & CLEAN LAYOUT UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.max-w-md { 
    max-width: 760px; 
    margin-left: auto; 
    margin-right: auto; 
    text-align: center; 
}

.text-center { text-align: center; }
.section-padding { padding: 6rem 0; }
.bg-light { background-color: var(--bg-light); }
.align-center { align-items: center; }
.shadow { box-shadow: 0 10px 30px rgba(0,0,0,0.06); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }

/* ==========================================================================
   3. TYPOGRAPHY & ELEMENTS
   ========================================================================== */
h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.25;
}

.section-tagline {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

p { margin-bottom: 1.25rem; color: var(--text-light); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.25rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}
.btn-primary { background-color: var(--accent-color); color: #fff; }
.btn-primary:hover { background-color: #b3956d; transform: translateY(-2px); }
.btn-secondary { background-color: transparent; border: 2px solid #fff; color: #fff; }
.btn-secondary:hover { background: #fff; color: var(--primary-color); }

/* ==========================================================================
   4. NAVIGATION HEADER FRAMEWORK (MAXIMIZED ICON LOGO & SCALED TABS)
   ========================================================================== */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

/* Reconfigured to use edge-to-edge layout instead of standard 1200px constraint */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 140px; 
    width: 100%;
    max-width: 100% !important; /* Overrides global container width bounds */
    padding: 0 1.5rem 0 0; /* Clears left padding so the logo hits the absolute edge */
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-link { 
    background: none; 
    border: none; 
    cursor: pointer; 
    padding: 0;
    display: flex;
    align-items: center;
    height: 100%; 
}

/* Maximized asset height remains intact */
.header-logo-img {
    height: 136px; 
    width: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.logo-link:hover .header-logo-img { transform: scale(1.02); }

/* Navigation Links */
.main-nav ul { 
    display: flex; 
    list-style: none; 
    gap: 1rem; 
}

.nav-tab-link {
    background: none;
    border: none;
    padding: 1rem 1.75rem; 
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem; 
    font-weight: 700;  
    color: var(--text-dark);
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase; 
    letter-spacing: 0.5px;
}
.nav-tab-link:hover, .nav-tab-link.active { color: var(--accent-color); }

.nav-tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 1.75rem;
    right: 1.75rem;
    height: 3px; 
    background-color: var(--accent-color);
}

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; }
 
/* ==========================================================================
   5. TAB PANELS & LANDING SCREEN EXPANSION (NO ENCLOSING CONTAINERS)
   ========================================================================== */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 8rem 0;
    position: relative;
    text-align: center;
}

/* Full-width open container allows text to stretch elegantly across the screen */
.hero-full-screen-container {
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-section h1 { 
    font-size: 3.8rem; 
    color: #fff; 
    margin-bottom: 1.75rem; 
    font-weight: 700;
    /* Clean text shadow provides crisp legibility directly on background image shapes */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.65), 0 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-subtitle { 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 3px; 
    color: var(--accent-color); 
    margin-bottom: 1.25rem; 
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-lead { 
    font-size: 1.4rem; 
    color: #f7fafc; 
    margin-bottom: 3rem; 
    font-weight: 400;
    max-width: 850px;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-actions { 
    display: flex; 
    gap: 1.5rem; 
    justify-content: center;
}

/* ==========================================================================
   6. CARDS & GENERAL BLOCKS
   ========================================================================== */
.card { background-color: #fff; padding: 3rem; border-radius: 4px; border: 1px solid var(--border-color); }
.card-accent-title { font-size: 1.5rem; margin-bottom: 1.5rem; position: relative; padding-bottom: 0.75rem; }
.card-accent-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background-color: var(--accent-color); }
.styled-list { list-style: none; }
.styled-list li { margin-bottom: 0.75rem; color: var(--text-light); }

/* About View Inner Sub-Tabs */
.tabs-container { margin-top: 2.5rem; }
.tab-menu { display: flex; border-bottom: 2px solid var(--border-color); margin-bottom: 1.5rem; }
.inner-tab-btn { background: none; border: none; padding: 0.75rem 1.5rem; font-family: 'Montserrat', sans-serif; font-size: 0.9rem; font-weight: 700; color: var(--text-light); cursor: pointer; transition: all 0.3s ease; }
.inner-tab-btn.active { color: var(--primary-color); border-bottom: 2px solid var(--primary-color); margin-bottom: -2px; }
.sub-tab-content { display: none; }
.sub-tab-content.active { display: block; }
.img-responsive { width: 100%; height: auto; display: block; border-radius: 4px; }

/* Commitment Banner Structure */
.commitment-banner {
    padding: 7.5rem 0;
    background-attachment: scroll;
    background-position: center center !important;
    background-size: 85% auto !important;
    background-repeat: no-repeat !important;
    background-color: var(--primary-color);
}

/* Sectors Served Structural Hover Enhancements */
.sector-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.sector-card:hover { transform: translateY(-5px); box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1); }

/* ==========================================================================
   7. INTERACTIVE PORTFOLIO SWITCHER STATE DECORATIONS
   ========================================================================== */
.filter-controls { margin: 2.5rem 0; display: flex; justify-content: center; gap: 1rem; }
.filter-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    padding: 0.6rem 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.filter-btn:hover { border-color: var(--accent-color); color: var(--accent-color); }
.filter-btn.active { background-color: var(--primary-color); border-color: var(--primary-color); color: #ffffff; }

/* Portfolio Cards Scaling Architecture */
.portfolio-img-container {
    position: relative;
    height: 250px;
    background-color: var(--secondary-color);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px 4px 0 0;
}
.portfolio-img-file { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform 0.4s ease; }
.portfolio-item { background: #fff; border: 1px solid var(--border-color); border-radius: 4px; overflow: hidden; transition: opacity 0.4s ease, transform 0.4s ease; }
.portfolio-item:hover .portfolio-img-file { transform: scale(1.05); }
.portfolio-item.hidden { display: none !important; opacity: 0; transform: scale(0.95); }

.badge { position: absolute; top: 1rem; right: 1rem; padding: 0.35rem 0.85rem; border-radius: 50px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.badge.upcoming { background-color: var(--accent-color); color: #fff; }
.badge.completed { background-color: #28a745; color: #fff; }

.portfolio-details { padding: 2rem; }
.portfolio-details h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.location { font-size: 0.85rem; font-weight: 600; color: var(--accent-color); margin-bottom: 1rem; }

/* ==========================================================================
   8. CONTACT CHANNELS & COOP DETAILS
   ========================================================================== */
.contact-methods-panel { display: flex; flex-direction: column; gap: 1.5rem; }
.method-card { display: flex; align-items: center; gap: 1.5rem; background-color: var(--bg-light); padding: 1.5rem 2rem; border-radius: 4px; }
.method-icon { font-size: 1.75rem; }
.method-info label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: var(--text-light); }
.method-info a, .method-info span { font-size: 1.1rem; font-weight: 600; color: var(--primary-color); text-decoration: none; }
.accent-callout-box { background-color: var(--primary-color); color: #fff; padding: 3rem; border-radius: 4px; }
.accent-callout-box h3 { color: #fff; margin-bottom: 1rem; font-size: 1.75rem; }
.accent-callout-box p { color: #a0aec0; }

/* Footer Wrapper */
.site-footer { background-color: var(--primary-color); padding: 3rem 0; color: #718096; font-size: 0.9rem; border-top: 1px solid #1a232d; }

/* ==========================================================================
   9. RESPONSIVE MEDIA VIEWPORT MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 3rem; }
    .commitment-banner { background-size: 100% auto !important; padding: 5.5rem 0; }
    .header-logo-img { height: 90px; }
    .header-container { height: 110px; }
    .hero-section h1 { font-size: 2.8rem; }
    .hero-lead { font-size: 1.25rem; }
}

@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .hero-section { min-height: auto; padding: 5rem 0; }
    .hero-section h1 { font-size: 2.2rem; }
    .hero-lead { font-size: 1.1rem; margin-bottom: 2rem; }
    .hero-actions { flex-direction: column; gap: 1rem; width: 100%; max-width: 300px; }
    .commitment-banner { background-size: cover !important; padding: 4.5rem 0; }
    
    .header-logo-img { height: 70px; }
    .header-container { height: 95px; }
    
    .mobile-toggle { display: block; position: relative; width: 25px; height: 18px; }
    .mobile-toggle span { position: absolute; width: 100%; height: 2px; background-color: var(--primary-color); left: 0; transition: all 0.3s ease; }
    .mobile-toggle span:nth-child(1) { top: 0; }
    .mobile-toggle span:nth-child(2) { top: 8px; }
    .mobile-toggle span:nth-child(3) { top: 16px; }
    
    .main-nav { display: none; width: 100%; position: absolute; top: 100%; left: 0; background: #fff; border-bottom: 1px solid var(--border-color); padding: 1.5rem 0; }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .nav-tab-link { width: 100%; text-align: left; padding: 1rem 2rem; }
    .nav-tab-link.active::after { left: 2rem; right: 2rem; }
}

.hero-section {
  min-height: 80vh; /* Adjusts section height so the image doesn't zoom in too far */
  max-height: 650px; /* Cap height to maintain crisp original aspect ratio */
  background-position: center 25%; /* Fine-tunes vertical framing to keep subject clear */
}