/**
 * Home Page Custom Styles
 * Styles specific to the home page module
 */

/* Global Reset for Edge-to-Edge Layout */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    min-height: 100%;
    background: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Rounded Design Tokens */
:root {
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-pill: 9999px;
    --top-menu-h: 40px;
    --header-h: 104px; /* top menu + main nav */
    --content-width: min(1200px, 92vw);
}

/* Header Styles */
.main-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.navbar-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
}

.navbar-brand:hover {
    color: #5cb85c;
    text-decoration: none;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    z-index: 1001;
}

.mobile-menu-toggle:focus {
    outline: 2px solid #5cb85c;
    outline-offset: 2px;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.navbar-menu {
    display: flex;
    align-items: center;
}

.nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav li {
    margin: 0 5px;
}

.nav li a {
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: color 0.3s ease;
}

.nav li a:hover,
.nav li.current-page a {
    color: #5cb85c;
    text-decoration: none;
}

.navbar-right {
    margin-left: auto;
}

/* Footer Styles */
.main-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    margin-top: 40px;
    padding: 20px 0;
}

.main-footer hr {
    margin: 20px 0;
    border-color: #dee2e6;
}

.main-footer p {
    margin: 0;
}

/* Container - matches Bootstrap's container class */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Bootstrap-like utility classes */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.row > [class*="col-"] {
    padding: 0 15px;
}

.col-md-12 {
    width: 100%;
}

.col-md-4 {
    width: 33.333333%;
}

@media (max-width: 768px) {
    .col-md-4 {
        width: 100%;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .navbar {
        flex-direction: row;
        align-items: center;
        position: relative;
    }
    
    .navbar-header {
        width: 100%;
        justify-content: space-between;
    }
    
    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #f8f9fa;
        border-top: 1px solid #dee2e6;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        margin-top: 0;
        padding: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-menu.active {
        max-height: 500px;
        padding: 10px 0;
    }
    
    .nav {
        flex-direction: column;
        width: 100%;
    }
    
    .nav li {
        margin: 0;
        width: 100%;
    }
    
    .nav li a {
        padding: 12px 20px;
        width: 100%;
        border-bottom: 1px solid #e9ecef;
    }
    
    .nav li:last-child a {
        border-bottom: none;
    }
    
    .navbar-right {
        margin-left: 0;
        width: 100%;
    }
    
    .navbar-right .nav {
        border-top: 1px solid #dee2e6;
        margin-top: 5px;
        padding-top: 5px;
    }
}

.home-container {
    padding: 30px 0;
    min-height: 500px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e7e7e7;
}

.page-header h1 {
    color: #333;
    font-weight: 300;
    margin-bottom: 10px;
}

.page-header .lead {
    color: #666;
    font-size: 18px;
}

/* Status Box */
.status-box {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
    border-left: 4px solid #5cb85c;
}

.status-box h3 {
    margin-top: 0;
    color: #333;
}

.status-info .alert {
    margin-bottom: 0;
}

/* Feature Cards */
.feature-cards {
    margin-bottom: 40px;
}

.feature-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-color: #5cb85c;
}

.feature-icon {
    margin-bottom: 20px;
    color: #5cb85c;
}

.feature-card h4 {
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    margin-bottom: 20px;
    min-height: 60px;
}

.btn-feature {
    transition: all 0.3s ease;
}

.btn-feature:hover {
    background-color: #449d44;
    border-color: #398439;
}

/* Quick Stats */
.quick-stats {
    margin-bottom: 40px;
}

.quick-stats h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    min-width: 200px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-item:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-item:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-value {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Demo Section */
.demo-section {
    margin-bottom: 30px;
}

.demo-box {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.demo-box h4 {
    margin-top: 0;
    color: #333;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.feature-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #555;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list i {
    margin-right: 10px;
}

.demo-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    display: none;
    animation: fadeIn 0.5s ease;
}

.demo-result.show {
    display: block;
}

.demo-result.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.demo-result.info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .home-container {
        padding: 15px 0;
    }
    
    .stats-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        width: 100%;
        max-width: 300px;
    }
    
    .feature-card {
        margin-bottom: 20px;
    }
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease;
}

.pulse {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 31, 58, 0.7);
    backdrop-filter: saturate(140%) blur(8px);
    color: #fff;
    padding: 14px 8%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow-x: hidden;
}

.site-brand {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(90deg, #0ea5e9 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    margin-right: 24px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.06);
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
}

.site-header h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(90deg, #0ea5e9 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav .nav-root {
    display: flex;
    gap: 18px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav {
    transition: transform .25s ease, opacity .25s ease;
    max-width: 100%;
    overflow-x: hidden;
    margin-left: auto;
}

.nav .nav-root > .nav-item > a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 8px 10px;
    transition: color .2s ease, opacity .2s ease, background .2s ease;
    opacity: .9;
    border-radius: var(--radius-pill);
}

.nav .nav-root > .nav-item > a::after {
    display: none;
}

.nav .nav-root > .nav-item > a:hover {
    color: #fff;
    opacity: 1;
    background: rgba(255,255,255,0.08);
}

.nav .nav-root > .nav-item > a:hover::after {
    display: none;
}

/* Mega menu removed */

@media (max-width: 900px) {
    .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    }
    .nav {
        position: fixed;
        left: 0;
        right: 0;
        top: 56px;
        background: rgba(13,21,38,0.95);
        backdrop-filter: blur(8px);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
    }
    .nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav .nav-root {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 8%;
        gap: 10px;
    }
    .nav .nav-root > .nav-item > a {
        padding: 10px 0;
    }
}
.site-hero {
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #fff;
    position: relative;
}

.site-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2,6,23,0.5) 0%, rgba(2,6,23,0.15) 60%, rgba(2,6,23,0.6) 100%), rgba(11,31,58,0.6);
}

.site-hero .hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-hero-content {
    position: relative;
    max-width: 600px;
}

.site-hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.site-hero p {
    margin-bottom: 30px;
    font-size: 18px;
}

.site-btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(90deg, #38bdf8 0%, #60a5fa 50%, #8b5cf6 100%);
    background-size: 200% 100%;
    color: #0b1f3a;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.3);
    transition: transform .2s ease, box-shadow .2s ease, background-position .3s ease;
}

.site-btn:hover {
    transform: translateY(-2px);
    background-position: 100% 0;
    box-shadow: 0 14px 28px rgba(139, 92, 246, 0.35);
}

.site-section {
    padding: 80px 0;
}

.site-section:nth-of-type(even) {
    background: #f8fafc;
}

.site-section-title {
    text-align: center;
    margin-bottom: 50px;
}

.site-section-title h3 {
    font-size: 32px;
    margin-bottom: 10px;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.site-section-title h3 {
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, #0ea5e9 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-section-title h3::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    bottom: -10px;
    background: linear-gradient(90deg, #0ea5e9 0%, #8b5cf6 100%);
    border-radius: 999px;
    opacity: .2;
}

.site-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.site-service-card {
    --card-pad: 30px;
    padding: var(--card-pad);
    background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.95) 100%);
    border-radius: 12px;
    transition: 0.3s ease;
    border: 1px solid rgba(2,6,23,0.06);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.site-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(15,23,42,0.12);
}

.site-service-card h4 {
    margin-bottom: 10px;
    color: #0b1f3a;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Services page: jump links and block structure */
.service-jump {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-bottom: 40px;
    padding: 16px 20px;
    background: rgba(14, 165, 233, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(14, 165, 233, 0.2);
}
.service-jump-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0b1f3a;
    margin-right: 8px;
}
.service-jump a {
    font-size: 14px;
    color: #0369a1;
    text-decoration: none;
    font-weight: 500;
}
.service-jump a:hover {
    text-decoration: underline;
}

.service-block {
    margin-bottom: 40px;
    scroll-margin-top: 100px;
}
.service-block:last-of-type {
    margin-bottom: 0;
}
.service-lead {
    font-size: 1.05em;
    line-height: 1.65;
    margin-bottom: 20px;
    color: #334155;
}
.service-block h5 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0b1f3a;
    margin: 24px 0 10px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}
.service-block h5:first-of-type {
    margin-top: 0;
}
.service-block ul {
    margin: 0 0 8px 0;
    padding-left: 22px;
    line-height: 1.7;
    color: #334155;
}
.service-block ul li {
    margin-bottom: 6px;
}
.service-block ul li strong {
    color: #0b1f3a;
}
.service-best-for {
    margin-top: 20px;
    margin-bottom: 0;
    font-size: 14px;
    color: #64748b;
}

/* At a glance strip */
.service-at-a-glance {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.service-glance-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.service-glance-item strong {
    font-size: 15px;
    color: #0b1f3a;
}
.service-glance-item span {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}
.service-glance-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0369a1;
}
.service-glance-icon svg {
    width: 24px;
    height: 24px;
}

/* Back to top */
.service-back-top {
    text-align: center;
    margin: 32px 0 24px 0;
}
.service-back-top a {
    font-size: 14px;
    color: #0369a1;
    text-decoration: none;
    font-weight: 500;
}
.service-back-top a:hover {
    text-decoration: underline;
}

/* Summary strip before CTA */
.service-summary-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12) 0%, rgba(139, 92, 246, 0.08) 100%);
    border-radius: 12px;
    border: 1px solid rgba(14, 165, 233, 0.25);
}
.service-summary-strip p {
    margin: 0;
    font-size: 1.05em;
    line-height: 1.6;
    color: #0b1f3a;
    flex: 1;
    min-width: 260px;
}

.site-service-card .card-img {
    width: calc(100% + (var(--card-pad) * 2));
    height: 140px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    margin-bottom: 12px;
    display: block;
    margin-left: calc(var(--card-pad) * -1);
    margin-right: calc(var(--card-pad) * -1);
    margin-top: calc(var(--card-pad) * -1);
}

@media (max-width: 768px) {
    .site-service-card .card-img {
        height: 120px;
    }
}

.site-service-card form input,
.site-service-card form textarea,
.site-service-card form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.site-service-card form input:focus,
.site-service-card form textarea:focus,
.site-service-card form select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.25);
}

.site-stats {
    background: linear-gradient(135deg, #0b1f3a 0%, #0f172a 100%);
    color: #fff;
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 60px 0;
}

.site-stats div h4 {
    font-size: 40px;
    margin-bottom: 10px;
}

.site-cta {
    background: linear-gradient(90deg, #0ea5e9 0%, #8b5cf6 100%);
    color: #fff;
    text-align: center;
    padding: 70px 0;
}

.site-footer {
    background: radial-gradient(1200px 600px at 10% 0%, #2b3aa0 0%, #211c59 45%, #0b1220 100%);
    color: #cdd5e1;
    padding: 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.site-footer a {
    color: #cdd5e1;
    text-decoration: none;
}

.site-footer a:hover {
    color: #e5e7eb;
}

/* Icon utilities */
.icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    color: currentColor;
}
.icon svg {
    width: 100%;
    height: 100%;
}
.icon-32 {
    width: 32px;
    height: 32px;
}
.icon-muted {
    opacity: .8;
}

.footer-container {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 60px 4% 24px 4%;
    box-sizing: border-box;
}

.footer-top {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 32px;
}

.footer-brand {
    display: grid;
    gap: 12px;
}

.footer-logo {
    height: 64px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

.footer-brand-name {
    font-weight: 700;
    letter-spacing: .6px;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 24px 32px;
}

.footer-heading {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 12px;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin: 8px 0;
}

.footer-list a {
    opacity: .9;
    transition: opacity .2s ease, color .2s ease;
}

.footer-list a:hover {
    opacity: 1;
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-trademark {
    width: 100%;
    font-size: 12px;
    opacity: 0.85;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.footer-bottom-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    opacity: .9;
}

.footer-links .sep {
    opacity: .5;
    margin: 0 6px;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.footer-social-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: #e5e7eb;
    opacity: 0.9;
    margin-right: 4px;
}

.footer-social a {
    font-size: 13px;
    color: #e5e7eb;
    opacity: .9;
    background: rgba(255,255,255,0.06);
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    transition: background .2s ease, opacity .2s ease;
}

.footer-social a:hover {
    background: rgba(255,255,255,0.12);
    opacity: 1;
}

/* Menu containment and responsive overrides */
:root {
    --dropdown-image-w: clamp(180px, 22vw, 280px);
}

.site-nav .menu > .menu-item .menu-dropdown {
    width: min(960px, calc(100vw - 16%));
    max-width: calc(100vw - 16%);
    padding-left: var(--dropdown-image-w);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.site-nav .menu > .menu-item .menu-dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--dropdown-image-w);
    border-radius: var(--radius-md);
    background-size: cover;
    background-position: center;
    background-image: url('../images/cta-bg.jpg');
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.site-nav .menu > .menu-item.has-dropdown:last-child .menu-dropdown,
.site-nav .menu > .menu-item.has-dropdown:nth-last-child(2) .menu-dropdown {
    right: 0;
    left: auto;
}

@media (max-width: 900px) {
    .site-nav .menu > .menu-item .menu-dropdown {
        width: auto;
        max-width: none;
        padding-left: 0;
        max-height: none;
        overflow: visible;
    }
    .site-nav .menu > .menu-item .menu-dropdown::before {
        display: none;
    }
}
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
    .footer-columns {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
}

@media (max-width: 640px) {
    .footer-columns {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-bottom-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .service-at-a-glance {
        grid-template-columns: 1fr;
    }
    .service-summary-strip {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .service-summary-strip .site-btn {
        align-self: center;
    }
}

/* Rounded approach enhancements */

.site-btn {
    border-radius: var(--radius-pill);
}

.site-service-card {
    border-radius: var(--radius-lg);
}

.site-service-card form input,
.site-service-card form textarea,
.site-service-card form select {
    border-radius: var(--radius-md);
}

/* Section containers remain square; only elements are rounded */
@media (max-width: 768px) {
    .site-hero h2 {
        font-size: 32px;
    }
    .site-stats {
        flex-direction: column;
        gap: 30px;
    }
}

/* Top bar + main nav wrapper (fixed) */
.site-header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #0f0a1e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Top menu bar */
.site-top-menu {
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-top-menu-inner {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 4%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--top-menu-h);
    flex-wrap: wrap;
    gap: 8px;
}
.site-top-menu-left,
.site-top-menu-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.site-top-menu a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}
.site-top-menu a:hover {
    color: #fff;
}
.site-top-menu-sep {
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
    user-select: none;
}

/* Main header (nav bar) */
.site-header {
    display: flex;
    justify-content: center;
    padding: 12px 0;
    background: #14006d;
    border-bottom: 1px solid #420196;
}
.site-header-inner {
    width: 100%;
    max-width: var(--content-width);
    margin: 0;
    padding: 0 4%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 16px;
}
.site-brand {
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.site-brand-logo {
    height: 52px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    display: block;
}
.nav {
    margin-left: auto;
}
.nav-toggle {
    display: none;
    width: 40px;
    height: 34px;
    border: 1px solid currentColor;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
}
.nav .nav-root {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 18px;
    align-items: center;
}
.nav .nav-root > .nav-item > a {
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 9999px;
}
/* Inner content same width as menu (use on content wrapper only, not on sections) */
.site-content {
    width: 100%;
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 4%;
    box-sizing: border-box;
}

/* Ensure content doesn't sit under fixed header */
body {
    padding-top: var(--header-h) !important;
}
@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }
    .nav {
        position: fixed;
        left: 0;
        right: 0;
        top: var(--header-h);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
    }
    .nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav .nav-root {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 8%;
        gap: 10px;
    }
    .nav .nav-root > .nav-item > a {
        padding: 10px 0;
    }
}
/* Top menu reset removed */

