/* ===================
   Self-Hosted Fonts
   =================== */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/montserrat-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/opensans-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/opensans-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===================
   CSS Variables
   =================== */
:root {
    --primary-color: #1a365d;      /* Navy blue from logo */
    --secondary-color: #2c5282;    /* Lighter navy */
    --accent-color: #3182ce;       /* Bright blue for buttons */
    --text-color: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-dark: #1a365d;
    --white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* New variables for upgraded design */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 12px 40px rgba(0,0,0,0.16);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --section-padding: 100px 20px;
    --section-padding-sm: 70px 20px;
    --transition-base: 0.3s ease;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===================
   Reset & Base
   =================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===================
   Section Titles (shared)
   =================== */
.section-subtitle {
    display: block;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 12px;
}

/* ===================
   Scroll Animations
   =================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--transition-smooth),
                transform 0.6s var(--transition-smooth);
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children animations */
.stagger-children .fade-in-up:nth-child(1) { transition-delay: 0s; }
.stagger-children .fade-in-up:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .fade-in-up:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .fade-in-up:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .fade-in-up:nth-child(5) { transition-delay: 0.4s; }
.stagger-children .fade-in-up:nth-child(6) { transition-delay: 0.5s; }

/* ===================
   Buttons
   =================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    position: relative;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 16px;
}

/* ===================
   Header (Overlay on Hero)
   =================== */
.main-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 30px 0;
    z-index: 1000;
    background: transparent;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    padding: 0 30px 0 0;
}

.logo {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    margin-left: 25px;
}

.logo img {
    height: 200px;
    width: auto;
}

.main-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.main-nav ul {
    display: flex;
    gap: 35px;
}

.main-nav a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    color: var(--white);
    transition: color var(--transition-base);
    padding: 5px 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent-color);
}

.main-header .btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 14px 28px;
}

/* ===================
   Hero Section
   =================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    background-image: url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-color: var(--primary-color);
}

/* Home page hero - shorter since header is separate */
.hero-home {
    min-height: 80vh;
    padding: 60px 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.85) 0%, rgba(44, 82, 130, 0.75) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 22px;
    opacity: 0.95;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Certification Badges */
.certifications {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cert-badge-img {
    height: 130px;
    width: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    background: var(--white);
    padding: 12px;
    transition: transform var(--transition-base);
}

.cert-badge-img:hover {
    transform: scale(1.05);
}

.cert-badge-styled {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--white);
    padding: 25px 35px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    min-width: 140px;
}

.cert-icon-text {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.cert-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    margin-top: 8px;
    line-height: 1.4;
}

.sba-badge {
    border-top: 4px solid var(--primary-color);
}

.hubzone-badge {
    border-top: 4px solid #c41e3a;
}

.hubzone-badge .cert-icon-text {
    color: #c41e3a;
}

/* SDVOSB Badge */
.cert-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a365d, #2c5282);
    color: white;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    padding: 15px 25px;
    border-radius: var(--radius-md);
    border: 3px solid #c41e3a;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.sdvosb-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a365d, #2c5282);
    color: white;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    padding: 25px 30px;
    border-radius: var(--radius-md);
    border: 3px solid #c41e3a;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    min-width: 140px;
}

.sdvosb-badge::after {
    content: 'Veteran-Owned';
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    opacity: 0.9;
}

.sdvosb-badge-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a365d, #2c5282);
    color: white;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    border: 2px solid #c41e3a;
    height: 80px;
}

/* ===================
   Credibility Bar
   =================== */
.credibility-bar {
    background: linear-gradient(135deg, #0f2440 0%, #1a365d 100%);
    padding: 20px 0;
    text-align: center;
    border-bottom: 3px solid var(--accent-color);
}

.credibility-bar .container,
.credibility-bar .credibility-items {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 0;
}

.credibility-bar p,
.credibility-bar span {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1.6;
    margin: 0;
}

.credibility-bar .separator,
.credibility-bar .credibility-divider {
    display: inline-block;
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.4);
    margin: 0 18px;
    vertical-align: middle;
    font-size: 0;
    overflow: hidden;
}

.credibility-bar strong {
    color: var(--white);
    font-weight: 600;
}

/* ===================
   Services Preview
   =================== */
.services-preview {
    padding: var(--section-padding);
    text-align: center;
    background-color: var(--bg-light);
}

.services-preview h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 55px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 45px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    border-top: 4px solid var(--accent-color);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.service-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

/* ===================
   Why Choose Us
   =================== */
.why-us {
    padding: var(--section-padding);
    text-align: center;
}

.why-us h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 55px;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.features-grid .feature {
    flex: 0 1 calc(33.333% - 27px);
    min-width: 280px;
}

.feature h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.7;
}

/* ===================
   Service Area Regions
   =================== */
.service-areas {
    padding: var(--section-padding);
    background: var(--bg-light);
    text-align: center;
}

.service-areas h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-areas > .container > p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.regions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.region-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 35px 25px;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    border-top: 4px solid var(--accent-color);
    text-align: left;
}

.region-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.region-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.region-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.region-card ul {
    list-style: none;
    padding: 0;
}

.region-card ul li {
    font-size: 14px;
    color: var(--text-light);
    padding: 4px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    line-height: 1.6;
}

.region-card ul li:last-child {
    border-bottom: none;
}

/* ===================
   Markets We Serve
   =================== */
.markets-served {
    padding: var(--section-padding);
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.markets-served h2 {
    font-size: 36px;
    margin-bottom: 55px;
}

.markets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.market-item {
    padding: 35px 25px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    transition: all var(--transition-smooth);
    border: 1px solid rgba(255,255,255,0.08);
}

.market-item:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-3px);
}

.market-item h4 {
    font-size: 19px;
    margin-bottom: 10px;
    color: var(--white);
}

.market-item p {
    font-size: 14px;
    opacity: 0.75;
    line-height: 1.6;
}

/* Keep legacy class for backward compatibility */
.industries-served {
    padding: var(--section-padding);
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.industries-served h2 {
    font-size: 36px;
    margin-bottom: 55px;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.industry-item {
    padding: 35px 25px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    transition: all var(--transition-smooth);
    border: 1px solid rgba(255,255,255,0.08);
}

.industry-item:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-3px);
}

.industry-item h4 {
    font-size: 19px;
    margin-bottom: 10px;
}

.industry-item p {
    font-size: 14px;
    opacity: 0.75;
    line-height: 1.6;
}

/* ===================
   CTA Section
   =================== */
.cta {
    background: linear-gradient(135deg, #1a365d 0%, #0f2440 50%, #1a365d 100%);
    color: var(--white);
    padding: var(--section-padding);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(49, 130, 206, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 38px;
    margin-bottom: 18px;
    font-weight: 700;
}

.cta p {
    font-size: 19px;
    opacity: 0.85;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
}

.cta .btn-primary:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

/* ===================
   Footer
   =================== */
.main-footer {
    background-color: var(--bg-dark);
    color: var(--white);
    padding: 70px 20px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.8;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: color var(--transition-base);
}

.footer-col ul a:hover {
    color: var(--white);
}

/* Footer service area regional format */
.footer-region {
    margin-bottom: 12px;
}

.footer-region-label {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    display: block;
    margin-bottom: 2px;
}

.footer-region-cities {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

.site-credit {
    display: block;
    margin-top: 15px;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    transition: color var(--transition-base);
}

.site-credit:hover {
    color: rgba(255,255,255,0.7);
}

/* ===================
   Solid Header (for inner pages)
   =================== */
.header-solid {
    position: relative;
    background: var(--white);
    padding: 25px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-solid .container {
    max-width: 1200px;
    padding: 0 30px;
}

.header-solid .logo {
    background: transparent;
    padding: 0;
    margin-left: 0;
}

.header-solid .logo img {
    height: 120px;
}

.header-solid .main-nav a {
    color: var(--primary-color);
}

.header-solid .main-nav a:hover,
.header-solid .main-nav a.active {
    color: var(--accent-color);
}

.header-solid .main-nav {
    position: relative;
    left: auto;
    transform: none;
}

.header-solid .main-nav a {
    text-shadow: none;
}

/* ===================
   Dropdown Menu
   =================== */
.has-dropdown {
    position: relative;
}

.has-dropdown > a::after {
    content: ' \25BE';
    font-size: 10px;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    min-width: 220px;
    padding: 10px 0;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 1001;
    margin-top: 10px;
}

.dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--white);
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
}

.dropdown li {
    display: block;
}

.dropdown a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color) !important;
    font-size: 14px !important;
    text-shadow: none !important;
    transition: background 0.2s ease;
}

.dropdown a:hover {
    background: var(--bg-light);
    color: var(--accent-color) !important;
}

/* ===================
   Page Hero
   =================== */
.page-hero {
    position: relative;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.9) 0%, rgba(44, 82, 130, 0.85) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.page-hero p {
    font-size: 20px;
    opacity: 0.9;
}

/* Portfolio Hero with custom image */
.page-hero.portfolio-hero {
    background-image: url('../images/portfolio-hero.jpg');
}

/* ===================
   About Story Section
   =================== */
.about-story {
    padding: var(--section-padding);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-content h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.story-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
}

.story-image img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

/* ===================
   Company Timeline
   =================== */
.company-timeline {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.company-timeline h2 {
    font-size: 36px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 60px;
}

.timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Vertical center line */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent-color), var(--primary-color));
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding-bottom: 60px;
    align-items: center;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

/* Odd items: content left, image right */
.timeline-item .timeline-text {
    padding-right: 20px;
}

.timeline-item .timeline-image {
    padding-left: 20px;
}

/* Even items: image left, content right */
.timeline-item:nth-child(even) .timeline-text {
    order: 2;
    padding-right: 0;
    padding-left: 20px;
}

.timeline-item:nth-child(even) .timeline-image {
    order: 1;
    padding-left: 0;
    padding-right: 20px;
}

/* Dot on the center line */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 30px;
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--accent-color);
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-item:nth-child(even)::before {
    left: 50%;
}

/* Timeline images */
.timeline-image img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.timeline-image img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.timeline-year {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    background: var(--accent-color);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.timeline-content {
    background: var(--white);
    padding: 25px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--accent-color);
}

.timeline-content h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* ===================
   Founder Section
   =================== */
.founder-section {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.founder-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
}

.founder-placeholder {
    width: 250px;
    height: 250px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.founder-placeholder span {
    font-size: 72px;
    font-weight: 700;
    color: var(--white);
    font-family: var(--font-heading);
}

.founder-content h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.founder-content h3 {
    font-size: 28px;
    color: var(--text-color);
    margin-bottom: 5px;
}

.founder-title {
    font-size: 16px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.founder-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 15px;
}

.founder-credentials {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.credential {
    text-align: center;
}

.credential-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.credential-label {
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===================
   Differentiators Section
   =================== */
.differentiators {
    padding: var(--section-padding);
}

.differentiators h2 {
    font-size: 36px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 55px;
}

.diff-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.diff-card {
    flex: 0 1 calc(33.333% - 20px);
    min-width: 280px;
}

.diff-card {
    background: var(--white);
    padding: 35px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--accent-color);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.diff-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.diff-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.diff-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===================
   Certifications Section
   =================== */
.certifications-section {
    padding: var(--section-padding);
    background: var(--bg-light);
    text-align: center;
}

.certifications-section h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 55px;
}

.cert-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
}

.cert-item {
    text-align: center;
    max-width: 250px;
}

.cert-item img {
    height: 120px;
    width: auto;
    margin-bottom: 20px;
    background: var(--white);
    padding: 15px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.cert-item h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.cert-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.company-data {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.data-item {
    text-align: center;
}

.data-label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.data-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

/* ===================
   Services Page
   =================== */
.services-intro {
    padding: 60px 20px;
    text-align: center;
    background: var(--bg-light);
}

.intro-text {
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-color);
    max-width: 900px;
    margin: 0 auto;
}

.service-detail {
    padding: var(--section-padding);
}

.service-detail.alt-bg {
    background: var(--bg-light);
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

.service-grid.reverse {
    grid-template-columns: 400px 1fr;
}

.service-content h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 25px;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-color);
}

.service-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.service-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-placeholder {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    font-family: var(--font-heading);
}

/* Service Images */
.service-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

/* Service Image Placeholder */
.service-image-placeholder {
    width: 100%;
    max-width: 400px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

/* Services Overview (quick cards) */
.services-overview {
    padding: 60px 20px 0;
    text-align: center;
}

/* Service Areas Grid (region cards) */
.service-areas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.service-area-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 35px 25px;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    border-top: 4px solid var(--accent-color);
    text-align: center;
}

.service-area-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-area-card h4 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.service-area-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    margin: 6px 0;
    transition: all var(--transition-base);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===================
   Portfolio Page
   =================== */
.portfolio-intro {
    padding: 60px 20px;
    text-align: center;
    background: var(--bg-light);
}

.portfolio-grid-section {
    padding: 60px 20px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-item {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-placeholder span {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
    opacity: 0.7;
}

.portfolio-info {
    padding: 25px;
}

.portfolio-info h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.portfolio-category {
    font-size: 13px;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.portfolio-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Portfolio Stats */
.portfolio-stats {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 30px;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===================
   Contact Page
   =================== */
.contact-section {
    padding: var(--section-padding);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2,
.contact-form-wrapper h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info > p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 35px;
}

.contact-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

.contact-method h4 {
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.contact-method p {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.6;
}

.contact-method a {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-method a:hover {
    color: var(--accent-color);
}

.contact-certifications h4 {
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.cert-badges {
    display: flex;
    gap: 20px;
}

.cert-badges img {
    height: 80px;
    width: auto;
    background: var(--white);
    padding: 10px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--radius-md);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    background: var(--white);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.contact-form .btn {
    width: 100%;
    margin-top: 10px;
}

/* ===================
   Mobile Nav Toggle
   =================== */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    margin: 6px 0;
    transition: all var(--transition-base);
    border-radius: 2px;
}

/* ===================
   Responsive — Tablet (1024px)
   =================== */
@media (max-width: 1024px) {
    .regions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .diff-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .markets-grid,
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-grid,
    .service-grid.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-image {
        order: -1;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .founder-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .founder-credentials {
        justify-content: center;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Timeline stacks on tablet */
    .timeline-item,
    .timeline-item:nth-child(even) {
        display: block;
        padding: 0 0 40px 50px;
    }

    .timeline-item .timeline-text,
    .timeline-item:nth-child(even) .timeline-text {
        order: unset;
        padding: 0;
    }

    .timeline-item .timeline-image,
    .timeline-item:nth-child(even) .timeline-image {
        order: unset;
        padding: 0;
        margin-top: 20px;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-item::before,
    .timeline-item:nth-child(even)::before {
        left: 8px;
        transform: none;
    }
}

/* ===================
   Responsive — Mobile (768px)
   =================== */
@media (max-width: 768px) {
    :root {
        --section-padding: 70px 20px;
    }

    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .main-header .container {
        flex-wrap: wrap;
        gap: 15px;
    }

    /* Fix certification badges on mobile */
    .certifications {
        flex-wrap: wrap;
        gap: 15px;
        padding: 0 15px;
    }

    .cert-badge-img {
        height: 80px;
        padding: 10px;
    }

    .main-nav ul {
        gap: 20px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .services-preview h2,
    .why-us h2,
    .cta h2 {
        font-size: 28px;
    }

    /* Credibility bar stacks */
    .credibility-bar .container,
    .credibility-bar .credibility-items {
        flex-direction: column;
        gap: 4px;
    }

    .credibility-bar .separator,
    .credibility-bar .credibility-divider {
        display: none;
    }

    .credibility-bar p,
    .credibility-bar span {
        font-size: 13px;
    }

    /* Mobile menu toggle */
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        padding: 20px;
    }

    .main-nav.mobile-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav ul li a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .dropdown {
        position: static;
        transform: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        padding-left: 20px;
        margin-top: 0;
    }

    .dropdown::before {
        display: none;
    }

    .has-dropdown > a::after {
        display: none;
    }

    .main-header .btn-primary {
        display: none;
    }

    /* Service area cards stack */
    .regions-grid,
    .service-areas-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .region-card,
    .service-area-card {
        text-align: center;
    }

    /* Markets/Industries stack */
    .markets-grid,
    .industries-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Diff grid */
    .diff-grid {
        grid-template-columns: 1fr;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-number {
        font-size: 36px;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 25px;
    }

    /* Footer fixes for mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Hero content on mobile */
    .hero-content {
        padding: 0 15px;
    }

    /* Timeline mobile */
    .timeline-item,
    .timeline-item:nth-child(even) {
        padding: 0 0 30px 45px;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-image img {
        border-radius: var(--radius-sm);
    }

    /* CTA on mobile */
    .cta h2 {
        font-size: 28px;
    }

    .cta p {
        font-size: 16px;
    }

    /* Cert grid */
    .cert-grid {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    /* Company data */
    .company-data {
        flex-direction: column;
        gap: 20px;
    }

    /* Page hero */
    .page-hero h1 {
        font-size: 32px;
    }

    .page-hero {
        height: 250px;
    }
}

/* ===================
   Responsive — Small Mobile (480px)
   =================== */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 15px;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: 14px;
    }

    .page-hero h1 {
        font-size: 26px;
    }

    .services-preview h2,
    .why-us h2,
    .cta h2,
    .differentiators h2,
    .certifications-section h2,
    .markets-served h2,
    .industries-served h2,
    .service-areas h2,
    .company-timeline h2 {
        font-size: 24px;
    }

    .founder-credentials {
        flex-direction: column;
        gap: 20px;
    }
}

/* ===================
   Print Styles
   =================== */
@media print {
    .main-header,
    .main-footer,
    .cta,
    .credibility-bar {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 20px;
    }

    .hero-overlay {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
    }
}
