/* ============================================================
   SIGNOVIA – Main Stylesheet
   ============================================================ */

:root {
    --primary:      #0B1F3A;
    --primary-light:#1a3a5c;
    --accent:       #F5A623;
    --accent-dark:  #d4891a;
    --white:        #ffffff;
    --light-bg:     #f4f7fb;
    --light-blue:   #e8f0f9;
    --text-dark:    #1a1a2a;
    --text-muted:   #6c757d;
    --border:       #dee2e6;
    --card-shadow:  0 4px 20px rgba(11,31,58,0.1);
    --transition:   all 0.3s ease;
}

/* ── Base ── */
* { box-sizing: border-box; }

/*
 * Horizontal scroll prevention.
 * html handles iOS Safari (body alone is not enough there).
 * body keeps overflow-x:hidden for everything else.
 * Neither can be set to overflow:hidden on elements that
 * contain position:sticky children — sticky stops working inside
 * a hidden overflow ancestor. The navbar uses sticky-top so we
 * must leave body/html at overflow-x:hidden (not overflow:hidden).
 */
html {
    overflow-x: clip;   /* 'clip' unlike 'hidden' does NOT create a scroll container,
                           so position:sticky children still work in all browsers */
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: clip; /* 'clip' does NOT create a scroll container, so position:sticky works */
}

h1,h2,h3,h4,h5,h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--primary);
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; }

/* ── Top Bar ── */
.top-bar {
    background: var(--primary);
    color: #cdd6e2;
    padding: 8px 0;
    font-size: 13.5px;
}

.top-bar a { color: #cdd6e2; }
.top-bar a:hover { color: var(--accent); }
.top-bar-info a { display: inline-flex; align-items: center; gap: 4px; }

.btn-quick-quote {
    background-color: var(--accent);
    background-image: linear-gradient(135deg, #ffe259 0%, #ffa751 50%, var(--accent) 50%);
    background-size: 205% 100%;
    background-position: 100% 0;
    color: var(--primary) !important;
    border-radius: 4px;
    padding: 4px 16px;
    font-weight: 600;
    font-size: 13px;
    border: none;
    transition: background-position .4s ease, box-shadow .3s ease, transform .2s ease;
}
.btn-quick-quote:hover {
    background-position: 0% 0;
    box-shadow: 0 4px 16px rgba(255,167,81,.45);
    transform: translateY(-1px);
}

.top-bar-social a {
    color: #cdd6e2;
    font-size: 13px;
}
.top-bar-social a:hover { color: var(--accent); }

/* ── Navbar ── */
.main-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 0;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.main-navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 4px 24px rgba(11,31,58,0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    padding: 12px 0;
}

.brand-sign  { color: var(--primary); }
.brand-ovia  { color: var(--accent); }

.main-navbar .nav-link {
    color: var(--primary) !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14.5px;
    padding: 22px 14px !important;
    position: relative;
    transition: var(--transition);
}

.main-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 14px; right: 14px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--accent) !important;
}

.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after {
    transform: scaleX(1);
}

.dropdown-menu { border: none; box-shadow: 0 8px 30px rgba(0,0,0,0.12); border-radius: 8px; padding: 10px 0; min-width: 220px; }
.dropdown-item { font-family: 'Poppins', sans-serif; font-size: 13.5px; color: var(--primary); padding: 8px 20px; transition: var(--transition); }
.dropdown-item:hover { background: var(--light-bg); color: var(--accent); }

/* ── Buttons ── */

/* Gold: bright yellow-gold sweeps in over the amber base */
.btn-primary-gold {
    background-color: var(--accent);
    background-image: linear-gradient(135deg, #ffe259 0%, #ffa751 50%, var(--accent) 50%);
    background-size: 205% 100%;
    background-position: 100% 0;
    color: var(--primary);
    border: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 5px;
    transition: background-position .4s ease, box-shadow .35s ease, transform .25s ease;
    display: inline-block;
}
.btn-primary-gold:hover {
    background-position: 0% 0;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255,167,81,.5);
}

/* Navy outline: deep blue sweeps in from the left */
.btn-outline-navy {
    border: 2px solid var(--primary);
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 5px;
    background-color: transparent;
    background-image: linear-gradient(135deg, #1a6b8a 0%, var(--primary) 50%, transparent 50%);
    background-size: 205% 100%;
    background-position: 100% 0;
    transition: background-position .4s ease, border-color .3s ease, box-shadow .35s ease, transform .25s ease, color .25s ease;
    display: inline-block;
}
.btn-outline-navy:hover {
    background-position: 0% 0;
    color: #fff;
    border-color: #1a6b8a;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(11,31,58,.35);
}

/* White outline (on dark bg): gold accent sweeps in on hover */
.btn-outline-white {
    border: 2px solid #fff;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 5px;
    background-color: transparent;
    background-image: linear-gradient(135deg, #ffe259 0%, var(--accent) 50%, rgba(255,255,255,0) 50%);
    background-size: 205% 100%;
    background-position: 100% 0;
    transition: background-position .4s ease, border-color .3s ease, box-shadow .35s ease, transform .25s ease, color .25s ease;
    display: inline-block;
}
.btn-outline-white:hover {
    background-position: 0% 0;
    color: var(--primary);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(245,166,35,.45);
}

/* ── Section Headings ── */
.section-tag {
    display: inline-block;
    background: var(--light-blue);
    color: var(--accent);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 30px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 580px;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    margin: 16px 0 24px;
}

/* ── Hero Section ── */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, #254d82 100%);
    color: #fff;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245,166,35,0.15);
    border: 1px solid rgba(245,166,35,0.4);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    margin-bottom: 18px;
}
.hero-location i { color: var(--accent); }

.trust-stripe {
    background: var(--accent);
    color: var(--primary);
    text-align: center;
    padding: 14px 20px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title .accent { color: var(--accent); }

.hero-title-kicker {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    font-style: italic;
    color: rgba(255,255,255,0.72);
    letter-spacing: 0.4px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.hero-subtitle {
    font-size: 17px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 35px;
    max-width: 520px;
    line-height: 1.7;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-image-wrapper {
    position: relative;
}

.hero-image-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.hero-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hero-stat-item {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
}

.hero-stat-item .number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.hero-stat-item .label {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    margin-top: 4px;
}

/* ── Hero Trust Strip ── */
.hero-trust-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 16px;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.2px;
}

.hero-trust-item i {
    color: var(--accent);
    font-size: 14px;
    flex-shrink: 0;
}

/* ── Stats Banner ── */
.stats-banner {
    background: var(--accent);
    padding: 40px 0;
}

.stat-card {
    text-align: center;
    padding: 10px;
}

.stat-card .stat-icon {
    width: 52px; height: 52px;
    background: rgba(11,31,58,0.12);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-card .stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 13.5px;
    color: var(--primary);
    font-weight: 600;
    margin-top: 4px;
}

/* ── Service Cards ── */
.services-section { padding: 80px 0; background: #fff; }

.service-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(11,31,58,0.18); }

.service-card-image {
    height: 220px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.service-card-image i {
    font-size: 3.5rem;
    color: rgba(255,255,255,0.3);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.service-card:hover .service-card-image i { color: var(--accent); transform: scale(1.1); }

.service-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11,31,58,0.7), transparent);
}

.service-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card-body h4 {
    font-size: 17px;
    margin-bottom: 10px;
    color: var(--primary);
}

.service-card-body p {
    font-size: 14px;
    color: var(--text-muted);
    flex: 1;
    margin-bottom: 18px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--accent);
}

.service-link:hover { color: var(--accent-dark); gap: 10px; }

/* ── Industries Section ── */
.industries-section { padding: 80px 0; background: var(--light-bg); }

.industry-item {
    background: #fff;
    border-radius: 12px;
    padding: 28px 16px;
    text-align: center;
    transition: var(--transition);
    cursor: default;
    border: 2px solid transparent;
}

.industry-item:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--card-shadow); }

.industry-icon {
    width: 64px; height: 64px;
    background: var(--light-blue);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--primary);
    margin-bottom: 12px;
    transition: var(--transition);
}

.industry-item:hover .industry-icon { background: var(--accent); color: var(--primary); }

.industry-item p { font-size: 13.5px; font-weight: 600; color: var(--primary); margin: 0; font-family: 'Poppins', sans-serif; }

/* ── Why Choose Us ── */
.why-section { padding: 80px 0; background: var(--primary); color: #fff; }

.why-section .section-title { color: #fff; }
.why-section .section-subtitle { color: rgba(255,255,255,0.75); }
.why-section .section-divider { background: var(--accent); }
.why-section .section-tag { background: rgba(245,166,35,0.15); }

.why-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 30px 24px;
    height: 100%;
    transition: var(--transition);
}

.why-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-4px); }

.why-card .icon {
    width: 56px; height: 56px;
    background: rgba(245,166,35,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--accent);
    margin-bottom: 18px;
}

.why-card h5 { color: #fff; font-size: 16px; margin-bottom: 10px; }
.why-card p { color: rgba(255,255,255,0.7); font-size: 14px; margin: 0; }

/* ── Process Steps ── */
.process-section { padding: 80px 0; background: #fff; }

.process-step {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.step-number {
    width: 64px; height: 64px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.step-number::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 2px solid var(--accent);
    border-radius: 50%;
}

.process-connector {
    position: absolute;
    top: 62px;
    left: calc(50% + 50px);
    right: calc(-50% + 50px);
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--accent) 0, var(--accent) 6px, transparent 6px, transparent 14px);
}

.process-step h5 { font-size: 16px; color: var(--primary); margin-bottom: 8px; }
.process-step p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ── CTA Section ── */
.cta-section {
    background: linear-gradient(135deg, var(--accent) 0%, #e8940e 100%);
    padding: 70px 0;
    text-align: center;
}

.cta-section h2 { color: var(--primary); font-size: 2.2rem; margin-bottom: 12px; }
.cta-section p { color: rgba(11,31,58,0.75); font-size: 17px; margin-bottom: 30px; }

/* ── Page Hero (inner pages) ── */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 70px 0 50px;
    position: relative;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 40px;
    background: #fff;
    clip-path: ellipse(55% 100% at 50% 100%);
}

.page-hero h1 { color: #fff; font-size: 2.4rem; }
.page-hero .breadcrumb { background: none; padding: 0; margin-bottom: 10px; display: flex; flex-wrap: wrap; }
.page-hero .breadcrumb-item, .page-hero .breadcrumb-item a { color: rgba(255,255,255,0.75); font-size: 14px; }
.page-hero .breadcrumb-item.active { color: var(--accent); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ── About Page ── */
.about-content img, .service-detail-image { border-radius: 12px; }

.about-feature { display: flex; gap: 16px; margin-bottom: 20px; }
.about-feature-icon { width: 48px; height: 48px; min-width: 48px; background: var(--light-blue); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 20px; }
.about-feature h6 { font-size: 15px; color: var(--primary); margin-bottom: 4px; }
.about-feature p { font-size: 13.5px; color: var(--text-muted); margin: 0; }

.capability-card { background: var(--light-bg); border-radius: 12px; padding: 28px 20px; text-align: center; height: 100%; transition: var(--transition); }
.capability-card:hover { background: var(--primary); }
.capability-card:hover h5 { color: #fff; }
.capability-card:hover p { color: rgba(255,255,255,0.7); }
.capability-card:hover .cap-icon { background: rgba(245,166,35,0.2); color: var(--accent); }
.cap-icon { width: 56px; height: 56px; background: var(--light-blue); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; color: var(--primary); margin-bottom: 16px; transition: var(--transition); }
.capability-card h5 { font-size: 15px; color: var(--primary); margin-bottom: 8px; transition: var(--transition); }
.capability-card p { font-size: 13px; color: var(--text-muted); margin: 0; transition: var(--transition); }

/* ── Process Page ── */
.process-tab-card { background: #fff; border-radius: 12px; box-shadow: var(--card-shadow); padding: 40px; }
.nav-tabs.process-tabs { border: none; gap: 10px; margin-bottom: 30px; }
.process-tabs .nav-link { background: var(--light-bg); border: 2px solid transparent; border-radius: 8px; color: var(--primary); font-family: 'Poppins', sans-serif; font-weight: 600; padding: 12px 24px; transition: var(--transition); }
.process-tabs .nav-link.active, .process-tabs .nav-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.process-tabs .nav-link.active { border-color: var(--accent); }

/* ── Contact Page ── */
.contact-form-wrapper { background: #fff; border-radius: 16px; box-shadow: var(--card-shadow); padding: 40px; }
.contact-info-card { background: var(--primary); color: #fff; border-radius: 16px; padding: 40px; height: 100%; }
.contact-info-card h3 { color: #fff; margin-bottom: 8px; }
.contact-info-card p { color: rgba(255,255,255,0.75); margin-bottom: 30px; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.contact-info-item .ci-icon { width: 44px; height: 44px; min-width: 44px; background: rgba(245,166,35,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 16px; }
.contact-info-item h6 { color: #fff; font-size: 14px; margin-bottom: 2px; }
.contact-info-item p { color: rgba(255,255,255,0.7); font-size: 13.5px; margin: 0; }
.contact-info-item a { color: rgba(255,255,255,0.7); }
.contact-info-item a:hover { color: var(--accent); }

.form-control, .form-select { border: 2px solid var(--border); border-radius: 8px; padding: 12px 16px; font-size: 15px; transition: var(--transition); }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 0.2rem rgba(245,166,35,0.15); }

/* ── Insights ── */
.insight-card { background: #fff; border-radius: 12px; box-shadow: var(--card-shadow); overflow: hidden; height: 100%; transition: var(--transition); }
.insight-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(11,31,58,0.15); }
.insight-card-image { height: 200px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.insight-card-image i { font-size: 3rem; color: rgba(255,255,255,0.25); }
.insight-card-body { padding: 24px; }
.insight-meta { font-size: 12.5px; color: var(--text-muted); margin-bottom: 10px; }
.insight-card-body h5 { font-size: 17px; color: var(--primary); margin-bottom: 10px; line-height: 1.4; }
.insight-card-body p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.insight-tag { display: inline-block; background: var(--light-blue); color: var(--primary); font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }

/* ── Service Detail ── */
.service-detail-section { padding: 80px 0; }
.service-icon-large { width: 80px; height: 80px; background: var(--light-blue); border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 36px; color: var(--primary); margin-bottom: 20px; }
.service-benefit { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.service-benefit i { color: var(--accent); font-size: 16px; margin-top: 3px; }
.service-benefit p { font-size: 14.5px; color: var(--text-dark); margin: 0; }

/* ── Quick Quote ── */
.quote-form-wrapper { background: #fff; border-radius: 16px; box-shadow: var(--card-shadow); padding: 50px; }

/* ── Testimonials ── */
.testimonials-section { padding: 80px 0; background: var(--light-bg); }
.testimonial-card { background: #fff; border-radius: 12px; padding: 30px; box-shadow: var(--card-shadow); height: 100%; }
.testimonial-card .stars { color: var(--accent); margin-bottom: 12px; }
.testimonial-card p { color: var(--text-dark); font-style: italic; margin-bottom: 20px; }
.testimonial-card .author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 44px; height: 44px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Poppins', sans-serif; font-weight: 700; color: #fff; font-size: 16px; }
.author-info h6 { font-size: 14px; color: var(--primary); margin: 0; }
.author-info small { color: var(--text-muted); font-size: 12.5px; }

/* ── Clients Logos ── */
.clients-section { padding: 50px 0; background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.clients-section h6 { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 30px; }
.client-logo-item { opacity: 0.45; filter: grayscale(1); transition: var(--transition); display: flex; align-items: center; justify-content: center; height: 50px; }
.client-logo-item:hover { opacity: 1; filter: none; }
.client-logo-text { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 18px; color: var(--primary); }

/* ── Alert ── */
.alert-success { background: #d4edda; border: none; border-left: 4px solid #28a745; border-radius: 8px; color: #155724; }

/* ── Footer ── */
.main-footer { background: var(--primary); }

.footer-top { padding: 70px 0 40px; }

.footer-logo { font-family: 'Poppins', sans-serif; font-size: 26px; font-weight: 800; letter-spacing: -1px; }
.main-footer .brand-sign { color: #fff; }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 14px; margin-top: 16px; }

.footer-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-right: 8px;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); color: var(--primary); }

.footer-heading { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer-heading::after { content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 3px; background: var(--accent); border-radius: 2px; }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 14px; display: flex; align-items: center; gap: 6px; }
.footer-links a::before { content: '\f054'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 10px; color: var(--accent); }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }

.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; color: rgba(255,255,255,0.65); font-size: 14px; align-items: flex-start; }
.footer-contact li i { color: var(--accent); font-size: 15px; margin-top: 2px; min-width: 16px; }
.footer-contact a { color: rgba(255,255,255,0.65); }
.footer-contact a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    color: rgba(255,255,255,0.5);
    font-size: 13.5px;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--accent); }

/* ── Responsive ── */

/* ── Tablet / Navbar collapse (≤991px) ── */
@media (max-width: 991px) {
    .hero-title    { font-size: 2rem; }
    .hero-title-kicker { font-size: 0.9rem; }
    .section-title { font-size: 1.6rem; }
    .process-connector { display: none; }

    /* ─ Navbar ─
     * No overflow:hidden here — that would clip the dropdown panel.
     */
    .main-navbar {
        z-index: 1030;
        background: #fff !important;
        overflow: visible !important;   /* must be visible so dropdown can escape */
    }

    /* Collapse menu panel — overflow scroll only inside the collapse div */
    #navbarNav {
        background: #fff;
        border-top: 1px solid rgba(11,31,58,.07);
        padding: 4px 0 14px;
        max-height: calc(100dvh - 64px);
        overflow-y: auto;
        overflow-x: hidden;             /* safe here: collapse never has abs children */
        -webkit-overflow-scrolling: touch;
    }

    /* Nav links inside collapse */
    .main-navbar .nav-link {
        padding: 11px 16px !important;
        border-bottom: 1px solid rgba(11,31,58,.04);
    }
    .main-navbar .nav-link::after { display: none; }

    /* Services item: link + caret on same row */
    #servicesNavItem {
        display: flex !important;
        flex-wrap: wrap;
        align-items: stretch;
    }
    #servicesNavItem > a.nav-link {
        flex: 1;
        min-width: 0;
        border-bottom: none;
    }
    .nav-mobile-caret {
        padding: 11px 16px;
        border-bottom: 1px solid rgba(11,31,58,.04);
        border-left: 1px solid rgba(11,31,58,.07);
    }

    /* Mega menu inside collapse: no absolute positioning */
    .services-mega-menu.show {
        position: static !important;
        float: none !important;
        transform: none !important;
        box-shadow: none !important;
        border: none;
        border-radius: 0;
        margin: 0;
        width: 100%;
        padding: 0;
        background: var(--light-bg);
        animation: none !important;
    }
    .mega-top-bar {
        border-radius: 0;
        padding: 10px 16px;
    }
    .mega-grid {
        grid-template-columns: 1fr;
        padding: 4px 0;
    }
    .mega-item {
        padding: 9px 16px;
        font-size: 13px;
        border-left: none;
        border-bottom: 1px solid rgba(11,31,58,.05);
    }
}

/* ── Mobile (≤767px) ── */
@media (max-width: 767px) {
    .hero-section   { padding: 60px 0 50px; min-height: auto; }
    .hero-title     { font-size: 1.75rem; }
    .hero-title-kicker { font-size: 0.85rem; }
    .hero-actions   { justify-content: center; }
    .hero-image-wrapper { margin-top: 40px; }
    .top-bar        { display: none; }
    .stats-banner .stat-card  { margin-bottom: 20px; }
    .contact-form-wrapper, .quote-form-wrapper { padding: 24px; }
    .process-tab-card  { padding: 24px; }
    .footer-top        { padding: 50px 0 30px; }

    /* Navbar toggler sizing */
    .main-navbar .container { position: relative; }
    .navbar-toggler { padding: 6px 10px; z-index: 10; }

    /* Collapse panel — NO negative margins, keep within viewport */
    #navbarNav {
        margin: 0;
        padding: 4px 0 14px;
        width: 100%;
        max-width: 100%;
    }

    /* Page-hero: tighter padding on mobile */
    .page-hero { padding: 48px 0 36px; }
    .page-hero h1 { font-size: 1.75rem; }
    .section-padding { padding: 52px 0; }

    /* About – Our Values cards: prevent overflow on narrow screens */
    .values-card {
        flex-direction: column;
        align-items: flex-start !important;
    }
    .values-card .val-icon { margin-bottom: 10px; }
}

/* ── Small mobile (≤575px) ── */
@media (max-width: 575px) {
    .hero-title     { font-size: 1.5rem; }
    .hero-title-kicker { font-size: 0.8rem; }
    .section-title  { font-size: 1.4rem; }
    .cta-section h2 { font-size: 1.65rem; }
    .page-hero h1   { font-size: 1.8rem; }

    /* Stack CTA buttons on very small screens */
    .hero-actions,
    .cta-section .d-flex { flex-direction: column; align-items: center; }
    .btn-primary-gold,
    .btn-outline-navy,
    .btn-outline-white { width: 100%; max-width: 280px; text-align: center; }

    /* Values grid: full-width cards on xs */
    .values-grid-col { flex: 0 0 100%; max-width: 100%; }
}

/* ── Animations ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up { animation: fadeInUp 0.6s ease forwards; }

.section-padding { padding: 80px 0; }
.bg-light-gray { background: var(--light-bg); }

/* ═══════════════════════════════════════════
   GALLERY SECTION
═══════════════════════════════════════════ */
.gallery-section {
    padding: 80px 0;
    background: var(--light-bg);
}

/* Masonry-style CSS grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 12px;
}

/* Make every 5th item span 2 columns for variety */
.gallery-item:nth-child(5n+1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(7n+3) { grid-column: span 2; }

.gallery-item {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-thumb {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: var(--primary);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.gallery-item:hover .gallery-thumb img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 31, 58, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.35s ease;
}

.gallery-item:hover .gallery-overlay {
    background: rgba(11, 31, 58, 0.55);
}

.gallery-zoom {
    width: 52px;
    height: 52px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-zoom {
    opacity: 1;
    transform: scale(1);
}

/* Responsive gallery */
@media (max-width: 1199px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 200px;
    }
}

@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px;
        gap: 8px;
    }
    /* Remove span overrides on mobile so all cards are uniform */
    .gallery-item:nth-child(5n+1),
    .gallery-item:nth-child(7n+3) {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 479px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 130px;
    }
}

