/* ================================================================
   247 Glazing London – Main Stylesheet
   Author: 247 Glazing London
   ================================================================ */

/* ─── CSS Custom Properties ─────────────────────────────────────── */
:root {
    --blue-primary: #1a4fd6;
    --blue-dark: #1238a8;
    --blue-light: #e8effe;
    --blue-xlight: #f0f4ff;
    --navy: #0d1b3e;
    --navy-light: #1a2f5e;
    --text-dark: #0d1b3e;
    --text-body: #374151;
    --text-muted: #6b7280;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --green-star: #f4a81d;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .08);
    --shadow-md: 0 6px 24px rgba(0, 0, 0, .10);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, .14);
    --shadow-blue: 0 8px 32px rgba(26, 79, 214, .22);
    --transition: 0.28s cubic-bezier(.4, 0, .2, 1);
    --header-h: 90px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ─── Reset / Base ──────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    color: var(--text-body);
    background: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ─── Container ─────────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 40px);
}

/* ─── Typography ────────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5 {
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

h3 {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
}

p {
    color: var(--text-body);
}

/* ─── Utility Buttons ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: .97rem;
    transition: var(--transition);
    white-space: nowrap;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--blue-primary);
    color: var(--white);
    border-color: var(--blue-primary);
    box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(26, 79, 214, .32);
}

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

.btn-outline:hover {
    background: var(--white);
    color: var(--blue-primary);
    transform: translateY(-2px);
}

.btn-outline-blue {
    background: transparent;
    color: var(--blue-primary);
    border-color: var(--blue-primary);
}

.btn-outline-blue:hover {
    background: var(--blue-primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--blue-primary);
    border-color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    background: var(--blue-light);
    transform: translateY(-2px);
}

.btn i {
    font-size: .95em;
}

/* ─── Section Labels ────────────────────────────────────────────── */
.section-label {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--blue-primary);
    margin-bottom: 10px;
}

.section-title {
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 48px;
}

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

/* ─── Section Spacing ───────────────────────────────────────────── */
section {
    padding: 80px 0;
}

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

/* Nav */
.main-nav {
    margin-left: auto;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-size: .93rem;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue-primary);
    background: var(--blue-xlight);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--blue-primary);
    border-radius: 2px;
}

.nav-chevron {
    font-size: .7em;
    transition: transform var(--transition);
}

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

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

.dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    border: 1px solid var(--gray-200);
    z-index: 100;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: .9rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.dropdown-menu a i {
    color: var(--blue-primary);
    width: 16px;
    text-align: center;
}

.dropdown-menu a:hover {
    background: var(--blue-xlight);
    color: var(--blue-primary);
    padding-left: 26px;
}

/* Header CTA */
.header-cta {
    margin-left: 12px;
    padding: 10px 22px;
    font-size: .9rem;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    margin-left: auto;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.hamburger:hover {
    background: var(--blue-xlight);
}

.bar {
    width: 24px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 4px;
    transition: var(--transition);
    display: block;
}

.hamburger.is-active .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger.is-active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.is-active .bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 998;
    opacity: 0;
    transition: opacity var(--transition);
}

.mobile-overlay.active {
    opacity: 1;
    display: block;
}

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero {
    padding: 0;
    background: var(--white);
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(135deg, #e8effe 0%, #dce7ff 100%);
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 80px 0;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-content {
    padding-right: 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue-light);
    color: var(--blue-primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(26, 79, 214, .15);
}

.hero-badge i {
    color: #f4a81d;
}

.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.12;
    margin-bottom: 18px;
    color: var(--text-dark);
}

.hero-title span {
    color: var(--blue-primary);
    display: block;
}

.hero-subtitle {
    font-size: 1.08rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 480px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.btn-call {
    background: var(--white);
    color: var(--text-dark);
    border-color: var(--gray-300);
    box-shadow: var(--shadow-sm);
}

.btn-call:hover {
    border-color: var(--blue-primary);
    color: var(--blue-primary);
    transform: translateY(-2px);
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-stars {
    display: flex;
    gap: 2px;
}

.trust-stars i {
    color: var(--green-star);
    font-size: .95rem;
}

.trust-label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-dark);
}

.trust-sub {
    font-size: .73rem;
    color: var(--text-muted);
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-300);
}

.google-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.google-badge img {
    height: 28px;
    width: auto;
}

.google-text {
    font-size: .78rem;
    color: var(--text-muted);
}

.google-text strong {
    display: block;
    color: var(--text-dark);
}

/* Hero Image */
.hero-image-wrap {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3.2;
}

.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 6s ease;
}

.hero-image-wrap:hover img {
    transform: scale(1.04);
}

.hero-image-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
}

.hero-image-badge .badge-icon {
    width: 42px;
    height: 42px;
    background: var(--blue-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
}

.badge-text strong {
    display: block;
    font-size: .95rem;
    color: var(--text-dark);
    font-weight: 700;
}

.badge-text span {
    font-size: .78rem;
    color: var(--text-muted);
}

/* Floating pulse ring */
.pulse-ring {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--blue-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    animation: pulse-anim 2.5s infinite;
}

@keyframes pulse-anim {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(26, 79, 214, .45);
    }

    50% {
        box-shadow: 0 0 0 16px rgba(26, 79, 214, 0);
    }
}

/* ================================================================
   FEATURE STRIP
   ================================================================ */
.feature-strip {
    padding: 0;
    background: var(--white);
    margin-top: -1px;
}

.feature-strip-inner {
    background: var(--navy);
    border-radius: var(--radius-xl);
    margin: 0 0 0 0;
    padding: 36px 48px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
    overflow: hidden;
}

.feature-strip-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 79, 214, .15) 0%, transparent 60%);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.feature-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: rgba(26, 79, 214, .25);
    border: 1px solid rgba(26, 79, 214, .4);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #60a5fa;
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    background: var(--blue-primary);
    color: var(--white);
    transform: scale(1.08);
}

.feature-text h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 4px;
}

.feature-text p {
    color: rgba(255, 255, 255, .65);
    font-size: .85rem;
    line-height: 1.5;
}

.feature-divider {
    width: 1px;
    background: rgba(255, 255, 255, .12);
    align-self: stretch;
}

/* ================================================================
   SERVICES SECTION
   ================================================================ */
.services {
    background: var(--gray-100);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

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

.service-card-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

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

.service-icon-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    background: var(--blue-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    box-shadow: var(--shadow-blue);
}

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

.service-card-body h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.service-card-body p {
    font-size: .85rem;
    color: var(--text-muted);
    flex: 1;
}

.learn-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue-primary);
    font-size: .87rem;
    font-weight: 600;
    margin-top: 14px;
    transition: var(--transition);
}

.learn-more i {
    font-size: .8em;
    transition: transform var(--transition);
}

.learn-more:hover {
    gap: 10px;
}

.learn-more:hover i {
    transform: translateX(4px);
}

/* ================================================================
   WHY CHOOSE US
   ================================================================ */
.why-us {
    background: var(--white);
}

.why-us-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.why-us-img {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.why-us-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.why-stat-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--blue-primary);
    color: var(--white);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    text-align: center;
    box-shadow: var(--shadow-blue);
}

.why-stat-badge .stat-num {
    font-size: 1.8rem;
    font-weight: 900;
    display: block;
}

.why-stat-badge .stat-label {
    font-size: .75rem;
    opacity: .9;
}

.why-us-content .section-label {
    margin-bottom: 10px;
}

.checklist {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.check-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: var(--blue-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: .75rem;
    margin-top: 1px;
}

.checklist-item p {
    font-size: .96rem;
    color: var(--text-body);
}

.why-us-cta {
    margin-top: 36px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ================================================================
   TESTIMONIALS
   ================================================================ */
.testimonials {
    background: var(--gray-100);
}

.testimonials-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonials-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    flex: 1;
    overflow: hidden;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

.testi-stars {
    display: flex;
    gap: 3px;
}

.testi-stars i {
    color: var(--green-star);
    font-size: .95rem;
}

.testi-quote {
    font-size: .94rem;
    color: var(--text-body);
    line-height: 1.7;
    font-style: italic;
}

.testi-author {
    font-size: .9rem;
    font-weight: 700;
    color: var(--text-dark);
}

.testi-role {
    font-size: .8rem;
    color: var(--text-muted);
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-dark);
    flex-shrink: 0;
    transition: var(--transition);
    cursor: pointer;
}

.carousel-btn:hover {
    background: var(--blue-primary);
    border-color: var(--blue-primary);
    color: var(--white);
    box-shadow: var(--shadow-blue);
}

/* ================================================================
   EMERGENCY CTA BAND
   ================================================================ */
.emergency-band {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--blue-primary) 0%, #0c3cc4 60%, var(--navy) 100%);
    position: relative;
    overflow: hidden;
}

.emergency-band::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
}

.emergency-band::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .04);
}

.emergency-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.emergency-text h2 {
    color: var(--white);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    margin-bottom: 8px;
}

.emergency-text p {
    color: rgba(255, 255, 255, .8);
    font-size: 1rem;
}

.emergency-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, .12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, .25);
    flex-shrink: 0;
}

.emergency-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.emergency-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.emergency-actions .btn-call {
    background: rgba(255, 255, 255, .12);
    color: var(--white);
    border-color: rgba(255, 255, 255, .35);
}

.emergency-actions .btn-call:hover {
    background: var(--white);
    color: var(--blue-primary);
    border-color: var(--white);
}

/* ================================================================
   ABOUT PAGE
   ================================================================ */
.about-hero {
    background: var(--navy);
    padding: 80px 0;
    text-align: center;
}

.about-hero h1 {
    color: var(--white);
}

.about-hero p {
    color: rgba(255, 255, 255, .75);
    font-size: 1.1rem;
    margin-top: 12px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.breadcrumb a,
.breadcrumb span {
    font-size: .85rem;
    color: rgba(255, 255, 255, .6);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb i {
    font-size: .6rem;
    color: rgba(255, 255, 255, .4);
}

.about-section {
    padding: 80px 0;
}

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

.about-img {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 60px 0 0;
}

.stat-item {
    background: var(--white);
    text-align: center;
    padding: 32px 16px;
}

.stat-item .stat-num {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--blue-primary);
    display: block;
}

.stat-item .stat-label {
    font-size: .85rem;
    color: var(--text-muted);
}

/* ================================================================
   SERVICES PAGE
   ================================================================ */
.services-page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 80px 0;
    text-align: center;
}

.services-page-hero h1 {
    color: var(--white);
}

.services-page-hero p {
    color: rgba(255, 255, 255, .75);
}

.service-detail {
    padding: 80px 0;
}

.service-detail:nth-child(even) {
    background: var(--gray-100);
}

.service-detail-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.service-detail:nth-child(even) .service-detail-inner {
    direction: rtl;
}

.service-detail:nth-child(even) .service-detail-inner>* {
    direction: ltr;
}

.service-detail-img {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.service-detail-img img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

/* ================================================================
   EMERGENCY REPAIRS PAGE
   ================================================================ */
.emergency-hero {
    background: linear-gradient(135deg, var(--navy) 0%, #0f2460 50%, var(--blue-primary) 100%);
    padding: 80px 0;
}

.emergency-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.emergency-hero h1 {
    color: var(--white);
}

.emergency-hero p {
    color: rgba(255, 255, 255, .8);
    margin-top: 12px;
}

.emergency-cta-box {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--radius-xl);
    padding: 36px;
    backdrop-filter: blur(10px);
}

.emergency-cta-box h3 {
    color: var(--white);
    margin-bottom: 8px;
}

.emergency-cta-box p {
    color: rgba(255, 255, 255, .85);
    margin-bottom: 20px;
    font-size: .9rem;
}

.step-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.step-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.step-num {
    width: 32px;
    height: 32px;
    background: var(--blue-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: .82rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-item h4 {
    color: #ffffff;
    font-size: .97rem;
    margin-bottom: 4px;
}

.step-item p {
    font-size: .85rem;
    color: rgba(255, 255, 255, .8);
    line-height: 1.55;
}

/* ================================================================
   GALLERY PAGE
   ================================================================ */
.gallery-hero {
    background: var(--navy);
    padding: 80px 0;
    text-align: center;
}

.gallery-hero h1 {
    color: var(--white);
}

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

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 27, 62, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 2rem;
}

/* ================================================================
   CONTACT PAGE
   ================================================================ */
.contact-page {
    padding: 80px 0;
}

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

.contact-info-card {
    background: var(--navy);
    border-radius: var(--radius-xl);
    padding: 44px;
    color: var(--white);
}

.contact-info-card h3 {
    color: var(--white);
    margin-bottom: 24px;
}

.contact-detail-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, .1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #60a5fa;
    flex-shrink: 0;
}

.contact-detail-item h4 {
    color: var(--white);
    font-size: .95rem;
    margin-bottom: 4px;
}

.contact-detail-item a,
.contact-detail-item p {
    color: rgba(255, 255, 255, .7);
    font-size: .9rem;
}

.contact-detail-item a:hover {
    color: var(--white);
}

/* ================================================================
   QUOTE / CONTACT FORM
   ================================================================ */
.quote-form-wrap {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 44px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.quote-form-wrap h3 {
    margin-bottom: 6px;
}

.quote-form-wrap .form-subtitle {
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: 28px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-label {
    font-size: .86rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-label span {
    color: #e74c3c;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: .93rem;
    font-family: var(--font);
    color: var(--text-dark);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--blue-primary);
    box-shadow: 0 0 0 3px rgba(26, 79, 214, .12);
}

.form-control::placeholder {
    color: #9ca3af;
}

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

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}

.form-submit {
    margin-top: 8px;
}

.form-submit .btn {
    width: 100%;
    justify-content: center;
    padding: 15px 28px;
    font-size: 1rem;
}

.form-message {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: .92rem;
    font-weight: 500;
    margin-top: 16px;
    display: none;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    display: block;
}

/* ================================================================
   PAGE HERO (generic)
   ================================================================ */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 72px 0;
    text-align: center;
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: 12px;
}

.page-hero p {
    color: rgba(255, 255, 255, .72);
    font-size: 1.05rem;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
    background: var(--navy);
    color: var(--white);
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
}

.footer-logo img {
    height: 70px;
    width: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    color: rgba(255, 255, 255, .6);
    font-size: .88rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .7);
    font-size: .9rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--blue-primary);
    border-color: var(--blue-primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-heading {
    color: var(--white);
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-links li+li {
    margin-top: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, .6);
    font-size: .88rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-6px);
    transition: var(--transition);
    font-size: .8em;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.footer-contact i {
    color: #60a5fa;
    font-size: .95rem;
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.footer-contact a,
.footer-contact span {
    color: rgba(255, 255, 255, .65);
    font-size: .88rem;
    line-height: 1.5;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: 56px;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, .45);
    font-size: .83rem;
}

/* ================================================================
   WHATSAPP FLOAT
   ================================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 58px;
    height: 58px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--white);
    box-shadow: 0 6px 24px rgba(37, 211, 102, .45);
    z-index: 999;
    transition: var(--transition);
    animation: wa-bounce 2.8s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.12);
    background: #1da851;
}

@keyframes wa-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* ================================================================
   SCROLL TO TOP
   ================================================================ */
.scroll-top {
    position: fixed;
    bottom: 96px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: var(--blue-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    box-shadow: var(--shadow-blue);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: none;
    z-index: 998;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
    background: var(--blue-dark);
}

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp .6s ease forwards;
}

.delay-1 {
    animation-delay: .1s;
}

.delay-2 {
    animation-delay: .2s;
}

.delay-3 {
    animation-delay: .3s;
}

.delay-4 {
    animation-delay: .4s;
}

/* ================================================================
   RESPONSIVE – TABLET (≤1024px)
   ================================================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .feature-strip-inner {
        grid-template-columns: repeat(2, 1fr);
        padding: 28px 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .why-us-inner,
    .about-grid {
        gap: 40px;
    }

    .hero-title {
        font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    }

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

    .contact-info-card {
        order: 2;
    }

    .quote-form-wrap {
        order: 1;
    }

    /* Header Mobile / Tablet — collapse nav into hamburger panel */
    .main-nav {
        position: fixed;
        top: var(--header-h);
        right: 0;
        width: 300px;
        height: calc(100vh - var(--header-h));
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 20px;
        box-shadow: -8px 0 40px rgba(0, 0, 0, .18);
        transform: translateX(100%);
        transition: transform var(--transition);
        z-index: 999;
        overflow-y: auto;
        margin-left: 0;
    }

    .main-nav.is-open {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 4px;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: var(--radius-md);
    }

    .nav-link.active::after {
        display: none;
    }

    .has-dropdown:hover .dropdown-menu {
        display: none;
        transform: none;
        opacity: 0;
        visibility: hidden;
    }

    .dropdown-menu {
        position: static;
        left: auto;
        transform: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        padding: 0 0 0 16px;
        border: none;
        display: none;
        background: var(--blue-xlight);
        border-radius: var(--radius-md);
        margin-top: 4px;
        width: 100%;
        min-width: 0;
    }

    .has-dropdown.expanded .dropdown-menu {
        display: block;
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    .hamburger {
        display: flex;
    }

    .header-cta {
        display: none;
    }
}

/* ================================================================
   RESPONSIVE – MOBILE (≤768px)
   ================================================================ */
@media (max-width: 768px) {
    :root {
        --header-h: 75px;
    }

    section {
        padding: 56px 0;
    }

    /* Hero Mobile */
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 48px 0;
    }

    .hero::before {
        display: none;
    }

    .hero-content {
        padding-right: 0;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-image-wrap {
        border-radius: var(--radius-lg);
    }

    /* Feature strip */
    .feature-strip-inner {
        grid-template-columns: 1fr 1fr;
        padding: 24px 20px;
        gap: 20px;
        border-radius: var(--radius-lg);
    }

    .feature-divider {
        display: none;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Why Us */
    .why-us-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    /* Testimonials */
    .testimonials-track {
        grid-template-columns: 1fr;
    }

    .testimonial-card:not(:first-child) {
        display: none;
    }

    /* Emergency */
    .emergency-inner {
        flex-direction: column;
        text-align: center;
    }

    .emergency-left {
        flex-direction: column;
    }

    .emergency-actions {
        justify-content: center;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .form-group.full {
        grid-column: 1;
    }

    /* About/Service grids */
    .about-grid,
    .service-detail-inner,
    .emergency-hero-inner {
        grid-template-columns: 1fr;
    }

    .service-detail:nth-child(even) .service-detail-inner {
        direction: ltr;
    }

    .stats-bar {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
    }

    .scroll-top {
        bottom: 84px;
        right: 20px;
    }
}

/* ================================================================
   RESPONSIVE – SMALL MOBILE (≤480px)
   ================================================================ */
@media (max-width: 480px) {
    .feature-strip-inner {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        grid-template-columns: 1fr 1fr;
    }

    .emergency-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .emergency-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ================================================================
   AREAS WE COVER (borough internal links)
   ================================================================ */
.areas-covered {
    background: var(--blue-xlight);
    padding: 56px 0;
    text-align: center;
    border-top: 1px solid var(--gray-200);
}

.areas-title {
    font-size: 1.6rem;
    color: var(--text-dark);
}

.areas-sub {
    margin: 10px 0 28px;
    color: var(--text-muted);
}

.areas-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 920px;
    margin: 0 auto;
}

.areas-list a {
    display: inline-block;
    padding: 9px 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    font-size: .88rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
}

.areas-list a:hover {
    background: var(--blue-primary);
    color: var(--white);
    border-color: var(--blue-primary);
    transform: translateY(-2px);
}