/* ====================================================================
   EMK CONSTRUCTION - CORE DESIGN SYSTEM & STYLESHEET
   Location: Jaffna, Sri Lanka
   ==================================================================== */

:root {
    /* Brand Color Palette */
    --color-primary: #0a4da2;
    --color-primary-hover: #073a7c;
    --color-primary-light: #e9f2fc;
    --color-primary-dark: #062b5c;

    /* Logo Accent Gold / Yellow */
    --color-accent: #f59e0b;
    --color-accent-hover: #d97706;
    --color-accent-light: #fef3c7;

    /* Deep Navy */
    --color-navy: #0b1a30;
    --color-navy-card: #11233f;
    --color-navy-muted: #1e355b;

    /* Backgrounds & Surfaces */
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-bg-subtle: #f1f5f9;

    /* Text & Neutral Hierarchy */
    --color-text: #1e293b;
    --color-text-muted: #475569;
    --color-text-light: #64748b;
    --color-text-white: #ffffff;

    /* Borders & Shadows */
    --color-border: #e2e8f0;
    --color-border-dark: #cbd5e1;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.06);

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Layout & Radii */
    --container-max: 1440px;
    --header-height: 115px;
    --scroll-offset: 125px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: var(--scroll-offset, 125px);
    -webkit-text-size-adjust: 100%;
}

:target,
[id],
section[id],
article[id] {
    scroll-margin-top: var(--scroll-offset, 125px);
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

/* Accessibility Focus & Skip Link */
:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    top: -50px;
    left: 1rem;
    background: var(--color-navy);
    color: var(--color-text-white);
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    z-index: 99999;
    border-radius: var(--radius-sm);
    transition: top var(--transition-fast);
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

/* Visually Hidden Helper (Screen Readers Only) */
.visually-hidden,
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Responsive Images & Media */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    color: var(--color-primary-hover);
}

ul, ol {
    list-style: none;
}

/* Typography Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-weight: 700;
    line-height: 1.25;
}

.h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); }
.h2 { font-size: clamp(1.75rem, 3vw + 0.5rem, 2.35rem); }
.h3 { font-size: clamp(1.25rem, 2vw + 0.25rem, 1.6rem); }
.h4 { font-size: 1.2rem; }

/* Container & Layout - Consistent 1440px layout across all pages */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    box-sizing: border-box;
    padding-inline: 32px;
}

.section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.section-bg-alt {
    background-color: var(--color-bg-alt);
}

.section-bg-navy {
    background-color: var(--color-navy);
    color: var(--color-text-white);
}

.section-bg-navy h2,
.section-bg-navy h3,
.section-bg-navy h4 {
    color: var(--color-text-white);
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3.5rem auto;
}

.section-header-left {
    text-align: left;
    margin-left: 0;
}

.section-tag {
    display: inline-block;
    font-size: 0.825rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    background-color: var(--color-primary-light);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
}

.section-tag-gold {
    color: #92400e;
    background-color: var(--color-accent-light);
}

.section-tag-navy {
    color: var(--color-accent);
    background-color: var(--color-navy-muted);
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.section-bg-navy .section-subtitle {
    color: #cbd5e1;
}

/* Icon Utilities */
.icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.icon-sm { width: 16px; height: 16px; }
.icon-xs { width: 14px; height: 14px; }
.icon-lg { width: 28px; height: 28px; }
.icon-xl { width: 40px; height: 40px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.975rem;
    font-weight: 600;
    padding: 0.75rem 1.65rem;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1.25;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    color: var(--color-text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--color-text-white);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

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

.btn-accent {
    background-color: var(--color-accent);
    color: #1a1a1a;
    font-weight: 700;
}

.btn-accent:hover {
    background-color: var(--color-accent-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-whatsapp {
    background-color: #25D366;
    color: #ffffff;
    border-color: #25D366;
    font-weight: 700;
}

.btn-whatsapp:hover {
    background-color: #1ebc57;
    color: #ffffff;
    border-color: #1ebc57;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--color-text-white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: var(--color-text-white);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 0.95rem 2.2rem;
    font-size: 1.05rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ====================================================================
   HEADER & TOPBAR
   ==================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-bg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-fast);
}

.header-topbar {
    background-color: var(--color-navy);
    color: #cbd5e1;
    font-size: 0.85rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.topbar-location {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.topbar-contacts {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
}

.topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #e2e8f0;
    text-decoration: none;
    white-space: nowrap;
}

.topbar-link span {
    white-space: nowrap;
}

.topbar-link:hover {
    color: var(--color-accent);
}

.topbar-divider {
    color: rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

/* Ensure both phone numbers and separator are visible on desktop (>= 768px) */
@media (min-width: 768px) {
    .header-topbar a[href="tel:+94768260636"],
    .header-topbar a[href*="94768260636"],
    .header-topbar .topbar-phone-secondary {
        display: inline-flex !important;
    }
    .header-topbar .topbar-divider-secondary,
    .header-topbar a[href="tel:+94768260636"] + .topbar-divider {
        display: inline !important;
    }
}

.header-main {
    padding: 0.75rem 0;
    background-color: var(--color-bg);
    transition: all var(--transition-base);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Logo Presentation (Unaltered Original Image) */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-image {
    width: auto;
    height: 54px;
    object-fit: contain;
    aspect-ratio: auto;
    transition: transform var(--transition-fast);
}

.logo-text-block {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-navy);
    line-height: 1;
    letter-spacing: -0.02em;
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary);
    line-height: 1.2;
}

.logo-tagline {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    font-style: italic;
    line-height: 1.2;
}

/* Desktop Navigation */
.site-nav {
    display: block;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    position: relative;
    padding: 0.6rem 0.95rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-primary);
    background-color: var(--color-primary-light);
}

.nav-link.is-active {
    color: var(--color-primary);
    background-color: var(--color-primary-light);
}

.nav-link.is-active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0.95rem;
    right: 0.95rem;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-navy);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* Mobile Navigation Drawer */
.mobile-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 26, 48, 0.6);
    z-index: 10000;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85%;
    height: 100%;
    background: var(--color-bg);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-base);
    overflow-y: auto;
}

.mobile-nav-drawer.is-open {
    right: 0;
}

.mobile-nav-backdrop.is-open {
    display: block;
    opacity: 1;
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid var(--color-border);
}

.mobile-drawer-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-navy);
}

.mobile-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.25rem;
}

.mobile-nav-list {
    padding: 1rem 0;
}

.mobile-nav-link {
    display: block;
    padding: 0.85rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    border-left-color: var(--color-primary);
}

.mobile-drawer-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
    background-color: var(--color-bg-alt);
}

.mobile-contact-info {
    margin-top: 1.25rem;
    font-size: 0.9rem;
}

.mobile-phone-link {
    display: block;
    color: var(--color-primary);
    font-weight: 600;
    margin-top: 0.25rem;
}

/* ====================================================================
   HERO SECTION
   ==================================================================== */
.hero {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    background-color: var(--color-navy);
    color: var(--color-text-white);
    padding: 6rem 0 5rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Directional gradient: Deep navy on the left for maximum text contrast, smoothly fading to transparent on the right so the architectural house, palm trees, and sky shine in full natural color */
    background: 
        linear-gradient(90deg, 
            rgba(11, 26, 48, 0.94) 0%, 
            rgba(11, 26, 48, 0.88) 36%, 
            rgba(11, 26, 48, 0.55) 62%, 
            rgba(11, 26, 48, 0.15) 82%, 
            transparent 100%
        ),
        linear-gradient(180deg, 
            rgba(11, 26, 48, 0.45) 0%, 
            transparent 25%, 
            transparent 65%, 
            rgba(11, 26, 48, 0.8) 100%
        );
    z-index: 2;
}

.hero-inner {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(11, 26, 48, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-accent);
}

.hero-title {
    color: #ffffff;
    font-size: clamp(2.25rem, 3.8vw + 0.8rem, 3.5rem);
    font-weight: 800;
    line-height: 1.16;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-description {
    font-size: clamp(1.05rem, 1.2vw + 0.4rem, 1.2rem);
    color: #f1f5f9;
    margin-bottom: 2.25rem;
    line-height: 1.65;
    max-width: 640px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.15rem;
}

.hero-actions .btn-accent {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.hero-actions .btn-accent:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.hero-actions .btn-outline-light {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    color: #ffffff;
}

.hero-actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* Highlight Badges as Frosted Glass Cards */
.hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 3.5rem;
    max-width: 900px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: rgba(11, 26, 48, 0.68);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-md);
    padding: 1.15rem 1.25rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.highlight-item:hover {
    background: rgba(11, 26, 48, 0.85);
    transform: translateY(-3px);
    border-color: rgba(245, 158, 11, 0.5);
}

.highlight-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(245, 158, 11, 0.22);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.highlight-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.highlight-text p {
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.45;
    margin: 0;
}

/* ====================================================================
   PAGE BANNER (SUBPAGES)
   ==================================================================== */
.page-banner {
    background: linear-gradient(135deg, var(--color-navy) 0%, #153e75 100%);
    color: var(--color-text-white);
    padding: 3.5rem 0 3.25rem;
    text-align: center;
    position: relative;
}

.page-banner-inner {
    max-width: 800px;
    margin: 0 auto;
}

.page-banner-title {
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.page-banner-subtitle {
    font-size: 1.125rem;
    color: #cbd5e1;
    line-height: 1.5;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #94a3b8;
    margin-top: 1.25rem;
}

.breadcrumbs a {
    color: #e2e8f0;
}

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

.breadcrumbs .current {
    color: var(--color-accent);
    font-weight: 500;
}

/* ====================================================================
   ABOUT INTRO & FEATURE GRID
   ==================================================================== */
.intro-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
}

.intro-content p {
    margin-bottom: 1.25rem;
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.intro-media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.intro-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro-media-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    background: rgba(11, 26, 48, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    color: #ffffff;
}

.intro-media-badge h4 {
    color: var(--color-accent);
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.intro-media-badge p {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin: 0;
}

/* ====================================================================
   SERVICES GRID (CARDS)
   ==================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary-light);
}

.service-card-media {
    position: relative;
    height: 190px;
    background-color: var(--color-bg-alt);
    overflow: hidden;
}

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

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

.service-card-icon {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--color-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.service-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card-title {
    font-size: 1.1rem;
    line-height: 1.35;
    margin-bottom: 0.65rem;
    color: var(--color-navy);
}

.service-card-text {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
    flex-grow: 1;
    line-height: 1.55;
}

.service-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.service-learn-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.service-learn-link:hover {
    color: var(--color-accent);
}

/* ====================================================================
   PROCESS / WORKFLOW SECTION
   ==================================================================== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}

.process-step {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base);
}

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

.process-num {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.process-step-title {
    font-size: 1.15rem;
    margin-bottom: 0.65rem;
    color: var(--color-navy);
}

.process-step-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ====================================================================
   REASONS TO CHOOSE EMK
   ==================================================================== */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.reason-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-sm);
}

.reason-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.reason-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--color-navy);
}

.reason-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ====================================================================
   FEATURED PROJECTS & PORTFOLIO NOTICE
   ==================================================================== */
.portfolio-notice-box {
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, #edf4fc 100%);
    border: 2px dashed #93c5fd;
    border-radius: var(--radius-lg);
    padding: 3.5rem 2rem;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.portfolio-notice-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-notice-title {
    font-size: 1.75rem;
    color: var(--color-navy);
    margin-bottom: 0.85rem;
}

.portfolio-notice-text {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 620px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}

/* Projects Section Spacing (No Heading) */
.projects-section {
    padding-top: 3.25rem;
    padding-bottom: 5rem;
}

/* Projects Filter Tabs */
.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.filter-btn {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.55rem 1.25rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    background-color: var(--color-bg);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.filter-btn.is-active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

/* Project Gallery Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-item {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

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

.project-thumb {
    position: relative;
    height: 240px;
    overflow: hidden;
    cursor: pointer;
}

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

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 26, 48, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
    color: #ffffff;
}

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

.project-info {
    padding: 1.5rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.project-category {
    color: var(--color-primary);
    font-weight: 600;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-navy);
}

.project-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.55;
}

.portfolio-view-all {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
}

@media (max-width: 640px) {
    .portfolio-view-all {
        margin-top: 2rem;
    }
    .portfolio-view-all .btn {
        width: 100%;
    }
}

/* ====================================================================
   CALL TO ACTION STRIP
   ==================================================================== */
.cta-strip {
    background: linear-gradient(135deg, var(--color-navy) 0%, #0a4da2 100%);
    color: #ffffff;
    padding: 4.5rem 0;
    text-align: center;
}

.cta-strip-inner {
    max-width: 760px;
    margin: 0 auto;
}

.cta-strip-title {
    color: #ffffff;
    margin-bottom: 1rem;
}

.cta-strip-text {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-strip-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ====================================================================
   SERVICES PAGE DETAIL SECTIONS
   ==================================================================== */
.service-detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.service-detail-row:last-child {
    border-bottom: none;
}

/* Modern CSS grid order instead of direction: rtl */
.service-detail-row.is-reversed .service-detail-media {
    order: 2;
}

.service-detail-row.is-reversed .service-detail-content {
    order: 1;
}

.service-detail-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(10, 77, 162, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    border: 1px solid var(--color-border);
    position: relative;
    background: var(--color-bg-subtle);
    aspect-ratio: 16 / 11;
    width: 100%;
}

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

.service-detail-row:hover .service-detail-img {
    transform: scale(1.03);
}

.service-detail-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-detail-content .section-tag {
    margin-bottom: 0.75rem;
    align-self: flex-start;
}

.service-detail-content h2 {
    font-size: clamp(1.5rem, 2.2vw, 1.95rem);
    color: var(--color-navy);
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

.service-detail-tagline {
    font-size: 1rem;
    color: var(--color-primary);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.85rem;
}

.service-detail-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.15rem;
}

.service-benefits-title {
    font-size: 0.825rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-navy);
    margin-bottom: 0.65rem;
}

.service-features-list {
    list-style: none;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-features-list li {
    position: relative;
    padding-left: 1.75rem;
    color: var(--color-text);
    font-size: 0.925rem;
    line-height: 1.45;
}

.service-features-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.15rem;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: var(--radius-full);
    background-color: var(--color-primary-light);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a4da2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px 11px;
    flex-shrink: 0;
}

.service-detail-action {
    margin-top: 0.25rem;
}

/* ====================================================================
   ABOUT US PAGE LAYOUTS
   ==================================================================== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.75rem;
}

.value-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-sm);
}

.value-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.value-card-title {
    font-size: 1.2rem;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.value-card-text {
    font-size: 0.925rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ====================================================================
   CONTACT US PAGE & FORM
   ==================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 3.5rem;
    width: 100%;
    max-width: 100%;
}

.contact-info-column,
.contact-form-column {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.contact-title {
    font-size: clamp(1.4rem, 3vw + 0.5rem, 1.85rem);
    color: var(--color-navy);
    margin-bottom: 1.25rem;
    line-height: 1.25;
}

.contact-intro {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-size: clamp(0.95rem, 1.5vw + 0.5rem, 1.05rem);
    line-height: 1.6;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.contact-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.contact-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card-body {
    min-width: 0;
    flex: 1 1 0%;
    overflow-wrap: break-word;
    word-break: break-word;
}

.contact-card-body h4 {
    font-size: 1.05rem;
    color: var(--color-navy);
    margin-bottom: 0.35rem;
    overflow-wrap: break-word;
    word-break: break-word;
}

.contact-card-body p,
.contact-card-body a {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    overflow-wrap: break-word;
    word-break: break-word;
}

.contact-card-body a:hover {
    color: var(--color-primary);
}

.contact-social-wrap {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    width: 100%;
}

.contact-card-body .contact-social-wrap .social-btn,
.contact-social-wrap .social-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
    border: none;
    outline: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), filter var(--transition-fast);
}

.contact-social-wrap .social-btn svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* Base states with strong specificity to defeat .contact-card-body a */
.contact-card-body .contact-social-wrap .social-btn-whatsapp,
.contact-card-body .contact-social-wrap .social-btn-whatsapp:visited {
    background-color: #25D366 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
}

.contact-card-body .contact-social-wrap .social-btn-facebook,
.contact-card-body .contact-social-wrap .social-btn-facebook:visited {
    background-color: #1877F2 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(24, 119, 242, 0.25);
}

.contact-card-body .contact-social-wrap .social-btn-tiktok,
.contact-card-body .contact-social-wrap .social-btn-tiktok:visited {
    background-color: #000000 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Hover and Focus States */
.contact-card-body .contact-social-wrap .social-btn-whatsapp:hover,
.contact-card-body .contact-social-wrap .social-btn-whatsapp:focus-visible {
    background-color: #1da851 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(37, 211, 102, 0.4) !important;
}

.contact-card-body .contact-social-wrap .social-btn-facebook:hover,
.contact-card-body .contact-social-wrap .social-btn-facebook:focus-visible {
    background-color: #0d65d9 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(24, 119, 242, 0.4) !important;
}

.contact-card-body .contact-social-wrap .social-btn-tiktok:hover,
.contact-card-body .contact-social-wrap .social-btn-tiktok:focus-visible {
    background-color: #1e1e1e !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4) !important;
}

/* Active / Pressed States */
.contact-card-body .contact-social-wrap .social-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.contact-map-card {
    margin-top: 1.5rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.map-frame {
    width: 100%;
    max-width: 100%;
    height: 280px;
    border: none;
    display: block;
}

.map-action-bar {
    padding: 0.75rem 1rem;
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    width: 100%;
    box-sizing: border-box;
}

.map-action-bar .btn {
    min-height: 44px;
}

/* Contact Enquiry Form */
.enquiry-form-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-title {
    font-size: clamp(1.35rem, 2.5vw + 0.5rem, 1.6rem);
    color: var(--color-navy);
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.form-subtitle {
    font-size: clamp(0.875rem, 1.5vw + 0.4rem, 0.95rem);
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1.35rem;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    width: 100%;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.4rem;
}

.form-label .req {
    color: #dc2626;
}

.form-control {
    width: 100%;
    max-width: 100%;
    font-family: var(--font-body);
    font-size: 1rem; /* 16px prevents iOS Safari auto-zoom */
    min-height: 48px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-bg);
    color: var(--color-text);
    box-sizing: border-box;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(10, 77, 162, 0.15);
    outline: none;
}

.form-control.is-invalid {
    border-color: #dc2626;
    background-color: #fef2f2;
}

.form-error-msg {
    display: none;
    font-size: 0.825rem;
    color: #dc2626;
    margin-top: 0.35rem;
}

.form-error-msg.is-visible {
    display: block;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    padding-top: 0.75rem;
}

select.form-control {
    background-color: var(--color-bg);
    cursor: pointer;
}

.btn-whatsapp.btn-lg {
    min-height: 52px;
    font-size: 1.05rem;
    padding: 0.85rem 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
}

/* Honeypot hidden field */
.website-field-hp {
    display: none !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Form Status Alerts */
.form-alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: none;
}

.form-alert.is-visible {
    display: block;
}

.form-alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.form-alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.form-alert-warning {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.privacy-notice-box {
    margin-top: 1.25rem;
    font-size: 0.825rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* ====================================================================
   LIGHTBOX MODAL FOR PROJECTS
   ==================================================================== */
.lightbox-modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(11, 26, 48, 0.95);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-modal.is-active {
    display: flex;
}

.lightbox-container {
    position: relative;
    max-width: 1000px;
    width: 100%;
    text-align: center;
}

.lightbox-image-wrap {
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xl);
}

.lightbox-caption {
    margin-top: 1rem;
    color: #ffffff;
}

.lightbox-counter {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
}

.project-photo-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(11, 26, 48, 0.85);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.project-item:hover .project-photo-badge {
    transform: translateY(-2px);
    background: var(--color-primary);
}

.lightbox-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.lightbox-desc {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-top: 0.25rem;
}

.lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.5rem;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.35);
}

.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

/* Floating Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background-color: var(--color-primary);
    color: #ffffff;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base), background-color var(--transition-fast);
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.back-to-top:hover {
    background-color: var(--color-primary-hover);
    color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.back-to-top:focus-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ====================================================================
   FOOTER
   ==================================================================== */
.site-footer {
    background-color: var(--color-navy);
    color: #cbd5e1;
}

.footer-main {
    padding: 4.5rem 0 3.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.25fr 1.25fr;
    gap: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 600;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 0.825rem;
    font-weight: 600;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.social-btn:hover {
    background: var(--color-primary);
    color: #ffffff;
}

.footer-heading {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

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

.footer-menu li {
    margin-bottom: 0.65rem;
}

.footer-menu a {
    color: #94a3b8;
    font-size: 0.9rem;
    transition: color var(--transition-fast), transform var(--transition-fast);
    display: inline-block;
}

.footer-menu a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.contact-details-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.contact-details-list a {
    color: #cbd5e1;
}

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

.footer-map-action {
    margin-top: 1.25rem;
}

.footer-bottom {
    padding: 1.5rem 0;
    font-size: 0.85rem;
    color: #64748b;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-bottom-links a {
    color: #94a3b8;
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

/* 404 Page Helper */
.error-badge {
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-primary);
    opacity: 0.9;
}

/* ====================================================================
   RESPONSIVE BREAKPOINTS
   ==================================================================== */
@media (max-width: 1024px) {
    .container {
        padding-inline: 24px;
    }
    .header-topbar {
        font-size: 0.8rem;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .service-detail-row {
        gap: 2rem;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .enquiry-form-card {
        padding: 2rem;
    }
}

@media (max-width: 860px) {
    :root {
        --header-height: 80px;
        --scroll-offset: 90px;
    }
    html {
        scroll-padding-top: var(--scroll-offset, 90px);
    }
    :target,
    [id],
    section[id],
    article[id] {
        scroll-margin-top: var(--scroll-offset, 90px);
    }
    .site-nav {
        display: none;
    }
    .btn-header-quote {
        display: none;
    }
    .mobile-toggle {
        display: flex;
    }
    .topbar-location {
        display: none;
    }
    .topbar-inner {
        justify-content: center;
    }
    .service-detail-row,
    .service-detail-row.is-reversed {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .service-detail-row.is-reversed .service-detail-media {
        order: 1;
    }
    .service-detail-row.is-reversed .service-detail-content {
        order: 2;
    }
    .service-detail-media {
        aspect-ratio: 16 / 10;
        max-height: 340px;
    }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .hero-highlights {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 0.85rem;
    }
    .hero-overlay {
        background: linear-gradient(180deg, 
            rgba(11, 26, 48, 0.86) 0%, 
            rgba(11, 26, 48, 0.92) 100%
        );
    }
}

@media (max-width: 768px) {
    /* Header Topbar: Hide second phone link, separator & empty spacing below 768px */
    .header-topbar {
        padding: 0.35rem 0;
        font-size: 0.8rem;
    }
    .header-topbar .container,
    .header-topbar .topbar-inner {
        padding-inline: 14px;
        justify-content: center;
        width: 100%;
        max-width: 100%;
    }
    .header-topbar .topbar-location {
        display: none !important;
    }
    .header-topbar .topbar-contacts {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        gap: 0.65rem;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
    }
    /* Hide second phone link in header only */
    .header-topbar a[href="tel:+94768260636"],
    .header-topbar a[href*="94768260636"],
    .site-header a[href="tel:+94768260636"],
    .topbar-contacts a[href="tel:+94768260636"],
    .header-topbar .topbar-phone-secondary {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        pointer-events: none !important;
    }
    /* Hide second phone separator & empty spacing in header only */
    .header-topbar a[href="tel:+94768260636"] + .topbar-divider,
    .header-topbar a[href*="94768260636"] + .topbar-divider,
    .site-header a[href="tel:+94768260636"] + .topbar-divider,
    .topbar-contacts a[href="tel:+94768260636"] + .topbar-divider,
    .header-topbar .topbar-divider-secondary {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        pointer-events: none !important;
    }
    /* Display +94 77 830 2190 and email each on one line */
    .header-topbar .topbar-link {
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.35rem;
        font-size: 0.785rem;
        line-height: 1.2;
        white-space: nowrap !important;
        flex-shrink: 0;
    }
    .header-topbar .topbar-link span {
        white-space: nowrap !important;
        display: inline-block;
    }
    .header-topbar .topbar-link .icon {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }
    .header-topbar .topbar-divider {
        margin: 0 0.2rem;
        opacity: 0.45;
        flex-shrink: 0;
    }

    .contact-grid {
        gap: 2rem;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.15rem;
    }
    .enquiry-form-card {
        padding: 1.85rem 1.5rem;
    }
}

@media (max-width: 640px) {
    .header-topbar .container,
    .header-topbar .topbar-inner {
        padding-inline: 12px;
    }
    .header-topbar .topbar-contacts {
        gap: 0.5rem;
    }
    .header-topbar .topbar-link {
        font-size: 0.76rem;
        gap: 0.28rem;
    }
    .header-topbar .topbar-link .icon {
        width: 13px;
        height: 13px;
    }
    .header-topbar .topbar-divider {
        margin: 0 0.15rem;
    }
    .container {
        padding-inline: 16px;
    }
    .section {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
    .projects-section {
        padding-top: 2.25rem;
        padding-bottom: 3.5rem;
    }
    .project-filters {
        margin-bottom: 1.5rem;
        gap: 0.45rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .process-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero {
        min-height: auto;
        padding: 3.5rem 0;
    }
    .hero-highlights {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .enquiry-form-card {
        padding: 1.5rem 1.25rem;
    }
    .contact-card {
        padding: 1.25rem 1rem;
        gap: 0.85rem;
    }
    .map-frame {
        height: 240px;
    }
    .map-action-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 0.75rem;
        padding: 0.85rem;
    }
    .map-action-bar .btn {
        width: 100%;
        min-height: 46px;
        justify-content: center;
    }
    .contact-social-wrap {
        gap: 0.5rem;
    }
    .contact-social-wrap .social-btn {
        flex: 1 1 calc(50% - 0.5rem);
        min-height: 44px;
        justify-content: center;
    }
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
    .back-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .contact-social-wrap .social-btn {
        flex: 1 1 100%;
        width: 100%;
    }
}

@media (max-width: 425px) {
    .header-topbar {
        padding: 0.32rem 0;
    }
    .header-topbar .container,
    .header-topbar .topbar-inner {
        padding-inline: 10px;
    }
    .header-topbar .topbar-contacts {
        gap: 0.4rem;
    }
    .header-topbar .topbar-link {
        font-size: 0.74rem;
        gap: 0.24rem;
    }
    .header-topbar .topbar-link .icon {
        width: 12px;
        height: 12px;
    }
    .header-topbar .topbar-divider {
        margin: 0 0.1rem;
    }
}

@media (max-width: 375px) {
    .header-topbar {
        padding: 0.3rem 0;
    }
    .header-topbar .container,
    .header-topbar .topbar-inner {
        padding-inline: 8px;
    }
    .header-topbar .topbar-contacts {
        gap: 0.35rem;
    }
    .header-topbar .topbar-link {
        font-size: 0.71rem;
        gap: 0.2rem;
    }
    .header-topbar .topbar-link .icon {
        width: 12px;
        height: 12px;
    }
    .header-topbar .topbar-divider {
        margin: 0 0.08rem;
    }
    .container {
        padding-inline: 14px;
    }
    .enquiry-form-card {
        padding: 1.25rem 0.875rem;
        border-radius: var(--radius-md);
    }
    .contact-card {
        padding: 1rem 0.75rem;
        gap: 0.75rem;
        border-radius: var(--radius-sm);
    }
    .contact-card-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }
    .contact-card-icon .icon {
        width: 18px;
        height: 18px;
    }
    .contact-card-body h4 {
        font-size: 0.975rem;
    }
    .contact-card-body p,
    .contact-card-body a {
        font-size: 0.875rem;
    }
    .form-control {
        font-size: 0.95rem;
        min-height: 46px;
        padding: 0.65rem 0.75rem;
    }
    .form-label {
        font-size: 0.85rem;
    }
    .map-frame {
        height: 210px;
    }
    .btn-whatsapp.btn-lg {
        font-size: 0.95rem;
        min-height: 48px;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 320px) {
    .header-topbar {
        padding: 0.25rem 0;
    }
    .header-topbar .container,
    .header-topbar .topbar-inner {
        padding-inline: 4px;
    }
    .header-topbar .topbar-contacts {
        gap: 0.22rem;
    }
    .header-topbar .topbar-link {
        font-size: 0.665rem;
        gap: 0.18rem;
    }
    .header-topbar .topbar-link .icon {
        width: 11px;
        height: 11px;
    }
    .header-topbar .topbar-divider {
        margin: 0 0.05rem;
    }
    .container {
        padding-inline: 10px;
    }
    .enquiry-form-card {
        padding: 1rem 0.65rem;
    }
    .contact-card {
        padding: 0.85rem 0.6rem;
        gap: 0.6rem;
    }
    .contact-card-icon {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }
    .contact-card-icon .icon {
        width: 16px;
        height: 16px;
    }
    .contact-card-body h4 {
        font-size: 0.925rem;
    }
    .contact-card-body p,
    .contact-card-body a {
        font-size: 0.825rem;
    }
    .form-control {
        padding: 0.55rem 0.65rem;
        font-size: 0.9rem;
    }
    .form-subtitle {
        font-size: 0.825rem;
        margin-bottom: 1.25rem;
    }
    .filter-btn {
        padding: 0.45rem 0.85rem;
        font-size: 0.8rem;
    }
}

/* ====================================================================
   VIEWPORT REVEAL & STAGGERED CARD ANIMATIONS
   Progressive enhancement: 100% visible by default if JS is disabled
   ==================================================================== */

/* Default state: visible without JS */
.reveal-section,
.reveal-card {
    opacity: 1;
    transform: none;
}

/* Enabled strictly when JavaScript confirms IntersectionObserver support */
.js-reveal-active .reveal-section {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.js-reveal-active .reveal-section.is-revealed {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

/* Staggered cards initial state */
.js-reveal-active .reveal-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.js-reveal-active .reveal-card.is-revealed {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

/* Mobile-friendly: slightly reduced translation distance for responsive feel */
@media (max-width: 768px) {
    .js-reveal-active .reveal-section {
        transform: translateY(16px);
        transition-duration: 0.55s;
    }
    .js-reveal-active .reveal-card {
        transform: translateY(12px);
        transition-duration: 0.5s;
    }
}

/* Reduced Motion Mode Override */
@media (prefers-reduced-motion: reduce) {
    .reveal-section,
    .reveal-card,
    .js-reveal-active .reveal-section,
    .js-reveal-active .reveal-section.is-revealed,
    .js-reveal-active .reveal-card,
    .js-reveal-active .reveal-card.is-revealed {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}

/* Reduced Motion Mode */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .back-to-top {
        transition: none !important;
    }
}
