/* ===== GrypMed Engineering LLP - Stylesheet ===== */

:root {
    --brand-brown: #4A2C1F;
    --brand-brown-dark: #2E1B14;
    --brand-red: #B85450;
    --brand-red-dark: #9A423F;
    --brand-green: #6BA539;
    --brand-green-light: #8FC25F;
    --bg-light: #FAFAFA;
    --bg-cream: #F7F4EE;
    --text-dark: #2C2C2C;
    --text-muted: #6A6A6A;
    --border-light: #E5E5E5;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.10);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

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

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

/* ===== Top Info Bar ===== */
.top-bar {
    background-color: var(--brand-brown);
    color: var(--white);
    font-size: 13px;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.top-bar-info {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.top-bar-info span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-bar-tagline {
    font-style: italic;
    opacity: 0.9;
}

/* ===== Header / Navigation ===== */
.site-header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-block img {
    height: 64px;
    width: auto;
}

.logo-text h1 {
    font-size: 20px;
    color: var(--brand-brown);
    letter-spacing: 0.5px;
    font-weight: 700;
}

.logo-text h1 .accent {
    color: var(--brand-red);
}

.logo-text p {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 6px;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav > ul > li > a {
    display: block;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active,
.main-nav > ul > li.has-dropdown:hover > a {
    background-color: var(--brand-brown);
    color: var(--white);
}

.main-nav .caret {
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.25s ease;
    display: inline-block;
}

.main-nav .has-dropdown:hover .caret {
    transform: rotate(180deg);
}

/* Dropdown panel */
.main-nav .dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 260px;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    border-top: 3px solid var(--brand-red);
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    z-index: 1000;
    display: block;
    gap: 0;
    border-radius: 0 0 4px 4px;
}

.main-nav .has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Bridge to keep hover state when moving from trigger to dropdown */
.main-nav .has-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
}

.main-nav .dropdown li {
    margin: 0;
    width: 100%;
}

.main-nav .dropdown a {
    display: block;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: 0;
    border-left: 3px solid transparent;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.main-nav .dropdown a:hover {
    background-color: var(--bg-cream);
    color: var(--brand-red);
    border-left-color: var(--brand-red);
    padding-left: 26px;
}

/* ===== Hero Carousel ===== */
.hero-carousel {
    position: relative;
    overflow: hidden;
    min-height: 580px;
    background-color: var(--brand-brown-dark);
}

.hero-slides {
    position: relative;
    min-height: 580px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    display: flex;
    align-items: center;
    padding: 90px 0 110px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease, visibility 0.9s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-content {
    max-width: 760px;
}

.hero-slide h2 {
    font-size: 46px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease 0.25s, transform 0.7s ease 0.25s;
}

.hero-slide h2 span {
    color: var(--brand-green-light);
}

.hero-slide p {
    font-size: 17px;
    margin-bottom: 32px;
    opacity: 0;
    line-height: 1.65;
    transform: translateY(20px);
    transition: opacity 0.7s ease 0.4s, transform 0.7s ease 0.4s;
}

.hero-slide .btn {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease 0.55s, transform 0.7s ease 0.55s, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.hero-slide.active h2,
.hero-slide.active p {
    opacity: 1;
    transform: translateY(0);
}

.hero-slide.active p {
    opacity: 0.95;
}

.hero-slide.active .btn {
    opacity: 1;
    transform: translateY(0);
}

/* Carousel controls */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    font-family: inherit;
    padding: 0;
}

.carousel-arrow:hover {
    background-color: var(--brand-red);
    border-color: var(--brand-red);
    transform: translateY(-50%) scale(1.05);
}

.carousel-prev { left: 28px; }
.carousel-next { right: 28px; }

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background-color: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}

.dot:hover { border-color: var(--white); }

.dot.active {
    background-color: var(--brand-red);
    border-color: var(--brand-red);
    width: 32px;
    border-radius: 8px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 4px;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--brand-red);
    color: var(--white);
    border-color: var(--brand-red);
}

.btn-primary:hover {
    background-color: var(--brand-red-dark);
    border-color: var(--brand-red-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
    margin-left: 12px;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--brand-brown);
}

/* ===== Page Banner (sub-pages) ===== */
.page-banner {
    background:
        linear-gradient(rgba(46, 27, 20, 0.82), rgba(74, 44, 31, 0.78)),
        url('https://images.unsplash.com/photo-1579154204601-01588f351e67?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    color: var(--white);
    padding: 90px 0 70px;
    text-align: center;
}

.page-banner h2 {
    font-size: 42px;
    margin-bottom: 12px;
}

.page-banner p {
    font-size: 16px;
    opacity: 0.9;
}

/* Mid-page banner variant (used on home page) */
.mid-banner {
    background:
        linear-gradient(rgba(46, 27, 20, 0.78), rgba(74, 44, 31, 0.72)),
        url('https://images.unsplash.com/photo-1551190822-a9333d879b1f?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    background-attachment: fixed;
    padding: 110px 0;
}

.mid-banner h2 {
    font-size: 36px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.3;
}

.mid-banner p {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brand-green-light);
    opacity: 1;
}

/* ===== Section Defaults ===== */
section {
    padding: 80px 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 56px;
}

.section-heading .eyebrow {
    display: inline-block;
    color: var(--brand-red);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-heading h3 {
    font-size: 34px;
    color: var(--brand-brown);
    margin-bottom: 14px;
    font-weight: 700;
}

.section-heading .divider {
    width: 60px;
    height: 3px;
    background-color: var(--brand-red);
    margin: 0 auto 18px;
}

.section-heading p {
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto;
    font-size: 16px;
}

/* ===== Intro Section (Home) ===== */
.intro {
    background-color: var(--white);
}

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

.intro-image {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.intro-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.intro-text .eyebrow {
    color: var(--brand-red);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.intro-text h3 {
    font-size: 32px;
    color: var(--brand-brown);
    margin: 10px 0 20px;
    line-height: 1.25;
}

.intro-text p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 15.5px;
}

.intro-text ul {
    list-style: none;
    margin: 20px 0 28px;
}

.intro-text ul li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: var(--text-dark);
}

.intro-text ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--brand-green);
    font-weight: 700;
    font-size: 16px;
}

/* ===== Service Cards ===== */
.services {
    background-color: var(--bg-cream);
}

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

.service-card {
    background-color: var(--white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--brand-red);
}

.service-card .card-image {
    height: 200px;
    overflow: hidden;
}

.service-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-image img {
    transform: scale(1.08);
}

.service-card .card-body {
    padding: 26px 24px 30px;
}

.service-card h4 {
    color: var(--brand-brown);
    font-size: 19px;
    margin-bottom: 12px;
}

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

/* ===== Why Choose Us ===== */
.why-us {
    background-color: var(--white);
}

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

.feature {
    text-align: center;
    padding: 30px 20px;
    border-radius: 6px;
    background-color: var(--bg-light);
    transition: all 0.25s ease;
}

.feature:hover {
    background-color: var(--brand-brown);
    color: var(--white);
}

.feature:hover h5,
.feature:hover p {
    color: var(--white);
}

.feature .icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    background-color: var(--brand-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
}

.feature h5 {
    color: var(--brand-brown);
    font-size: 17px;
    margin-bottom: 10px;
    transition: color 0.25s ease;
}

.feature p {
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.25s ease;
}

/* ===== Stats Section ===== */
.stats {
    background:
        linear-gradient(rgba(46, 27, 20, 0.9), rgba(46, 27, 20, 0.92)),
        url('https://images.unsplash.com/photo-1551076805-e1869033e561?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    color: var(--white);
    padding: 70px 0;
}

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

.stat-number {
    font-size: 44px;
    font-weight: 700;
    color: var(--brand-green-light);
    margin-bottom: 6px;
}

.stat-label {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* ===== CTA Section ===== */
.cta {
    background-color: var(--brand-red);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.cta h3 {
    font-size: 32px;
    margin-bottom: 14px;
}

.cta p {
    font-size: 17px;
    margin-bottom: 26px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

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

/* ===== About Page ===== */
.about-content {
    background-color: var(--white);
}

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

.about-image {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.about-text h3 {
    color: var(--brand-brown);
    font-size: 30px;
    margin-bottom: 18px;
    line-height: 1.25;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 15.5px;
}

.about-text strong {
    color: var(--brand-brown);
}

/* Vision Mission */
.vision-mission {
    background-color: var(--bg-cream);
}

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

.vm-card {
    background-color: var(--white);
    padding: 40px 36px;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--brand-red);
}

.vm-card:last-child {
    border-left-color: var(--brand-green);
}

.vm-card h4 {
    color: var(--brand-brown);
    font-size: 24px;
    margin-bottom: 14px;
}

.vm-card p {
    color: var(--text-muted);
    font-size: 15.5px;
}

/* Clients Served */
.clients {
    background-color: var(--white);
}

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

.client-item {
    background-color: var(--bg-cream);
    padding: 24px 24px 24px 56px;
    border-radius: 4px;
    position: relative;
    font-weight: 500;
    color: var(--brand-brown);
    transition: all 0.25s ease;
}

.client-item::before {
    content: "▸";
    position: absolute;
    left: 24px;
    color: var(--brand-red);
    font-size: 20px;
    font-weight: 700;
}

.client-item:hover {
    background-color: var(--brand-brown);
    color: var(--white);
}

.client-item:hover::before {
    color: var(--brand-green-light);
}

/* ===== Services Page ===== */
.service-detail {
    background-color: var(--white);
    padding: 80px 0;
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

.service-row:last-child {
    margin-bottom: 0;
}

.service-row.reverse {
    direction: rtl;
}

.service-row.reverse > * {
    direction: ltr;
}

.service-row .img-wrap {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.service-row .img-wrap img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.service-row .text-wrap .num {
    display: inline-block;
    background-color: var(--brand-red);
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    text-align: center;
    line-height: 44px;
    font-weight: 700;
    margin-bottom: 18px;
}

.service-row .text-wrap h3 {
    color: var(--brand-brown);
    font-size: 28px;
    margin-bottom: 16px;
}

.service-row .text-wrap p {
    color: var(--text-muted);
    margin-bottom: 14px;
    font-size: 15.5px;
}

.service-row ul {
    list-style: none;
    margin-top: 16px;
}

.service-row ul li {
    padding: 6px 0 6px 26px;
    position: relative;
    color: var(--text-dark);
}

.service-row ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--brand-green);
    font-weight: 700;
}

/* Alt background section */
.alt-bg {
    background-color: var(--bg-cream);
}

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

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

.contact-info-card {
    background-color: var(--brand-brown);
    color: var(--white);
    padding: 40px 36px;
    border-radius: 6px;
}

.contact-info-card h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.contact-info-card .lead {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 30px;
}

.contact-block {
    display: flex;
    gap: 18px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-block .icon-circle {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--brand-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.contact-block .info-text h5 {
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--brand-green-light);
    letter-spacing: 0.5px;
}

.contact-block .info-text p {
    font-size: 14.5px;
    opacity: 0.92;
    line-height: 1.55;
}

.contact-block .info-text a {
    color: var(--white);
    transition: color 0.2s ease;
}

.contact-block .info-text a:hover {
    color: var(--brand-green-light);
}

.contact-form-card {
    background-color: var(--bg-cream);
    padding: 40px 36px;
    border-radius: 6px;
    border-top: 4px solid var(--brand-red);
}

.contact-form-card h3 {
    color: var(--brand-brown);
    font-size: 24px;
    margin-bottom: 8px;
}

.contact-form-card .lead {
    color: var(--text-muted);
    margin-bottom: 26px;
    font-size: 14.5px;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-brown);
    letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    background-color: var(--white);
    font-size: 14.5px;
    font-family: inherit;
    color: var(--text-dark);
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--brand-red);
}

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

.contact-form-card .btn {
    width: 100%;
    border: none;
}

/* Map Section */
.map-section {
    padding: 0;
}

.map-section iframe {
    width: 100%;
    height: 380px;
    border: 0;
    display: block;
}

/* ===== Footer ===== */
.site-footer {
    background-color: var(--brand-brown-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.3fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h5 {
    color: var(--white);
    font-size: 17px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--brand-red);
    display: inline-block;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul li a {
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--brand-green-light);
    padding-left: 6px;
}

.footer-contact-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.55;
}

.footer-contact-row .ico {
    color: var(--brand-red);
    font-weight: 700;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}

.footer-bottom .tagline {
    color: var(--brand-green-light);
    font-style: italic;
    margin-bottom: 4px;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .hero-slide h2 { font-size: 36px; }
    .carousel-prev { left: 12px; }
    .carousel-next { right: 12px; }
    .carousel-arrow { width: 40px; height: 40px; font-size: 16px; }
    .intro-grid,
    .about-grid,
    .contact-grid,
    .service-row { grid-template-columns: 1fr; }
    .service-row.reverse { direction: ltr; }
    .service-grid,
    .feature-grid,
    .stats-grid,
    .client-grid,
    .vm-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .top-bar .container { flex-direction: column; text-align: center; }
    .header-inner { flex-direction: column; gap: 12px; padding: 12px 0; }
    .hero-carousel,
    .hero-slides { min-height: 520px; }
    .hero-slide { padding: 70px 0 90px; }
    .hero-slide h2 { font-size: 28px; }
    .hero-slide p { font-size: 15px; }
    .carousel-arrow { display: none; }

    /* Vertical mobile nav */
    .main-nav { width: 100%; }
    .main-nav > ul {
        flex-direction: column;
        gap: 4px;
        width: 100%;
        flex-wrap: nowrap;
    }
    .main-nav > ul > li {
        width: 100%;
        position: relative;
    }
    .main-nav > ul > li > a {
        text-align: center;
        padding: 12px 18px;
    }

    /* Mobile dropdown - hidden by default, accordion on .open */
    .main-nav .dropdown {
        position: static;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        background-color: var(--bg-cream);
        min-width: auto;
        padding: 0;
        margin: 4px 0 0;
        border-radius: 4px;
        transition: max-height 0.35s ease, padding 0.35s ease;
        display: block;
    }
    .main-nav .has-dropdown.open .dropdown {
        max-height: 500px;
        padding: 6px 0;
    }
    .main-nav .dropdown a {
        padding: 10px 24px;
        font-size: 13.5px;
        text-align: center;
    }
    .main-nav .caret {
        display: inline-block;
        font-size: 9px;
        transition: transform 0.3s ease;
    }
    .main-nav .has-dropdown.open > a .caret {
        transform: rotate(180deg);
    }
    .main-nav .has-dropdown::after { display: none; }

    /* Don't trigger desktop hover styles on mobile */
    .main-nav > ul > li.has-dropdown:hover > a {
        background-color: transparent;
        color: var(--text-dark);
    }
    .main-nav > ul > li.has-dropdown:hover .dropdown {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .main-nav > ul > li.has-dropdown.open > a {
        background-color: var(--brand-brown);
        color: var(--white);
    }
    .btn-outline { margin-left: 0; margin-top: 10px; }
    .page-banner h2 { font-size: 32px; }
    section { padding: 60px 0; }
    .section-heading h3 { font-size: 26px; }
    .service-grid,
    .feature-grid,
    .stats-grid,
    .client-grid,
    .vm-grid,
    .footer-grid,
    .form-row { grid-template-columns: 1fr; }
    .logo-block img { height: 52px; }
    .logo-text h1 { font-size: 17px; }
}
