/* ==========================================================================
   SHUBHAM INSURANCE & MULTI SERVICES - PREMIUM CSS DESIGN SYSTEM
   ========================================================================== */

/* ==========================================================================
   1. Brand Variables & Design Tokens
   ========================================================================== */
:root {
    /* Brand Palette */
    --primary-navy: #002366;       /* Deep Navy Blue */
    --navy-dark: #00133a;
    --navy-light: #1a3c7a;
    
    --slate-grey: #708090;         /* Slate Grey Accent */
    --slate-light: #eceff2;
    --slate-border: #dbe1e8;
    
    --bg-white: #ffffff;
    --bg-light: #d2e1f8;
    
    --text-dark: #1c2430;
    --text-muted: #53647b;
    --text-white: #ffffff;
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Spacing Constants (Timeless Scale) */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 48px;
    --space-xl: 96px;              /* Luxury Gap Spacing */
    
    /* Decoration & Animation Tokens */
    --border-radius: 4px;
    --border-radius-card: 12px;
    --box-shadow-premium: 0 20px 40px rgba(0, 35, 102, 0.04);
    --box-shadow-hover: 0 30px 60px rgba(0, 35, 102, 0.08);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   2. Global Resets & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.8;
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-navy);
    font-weight: 500;
    line-height: 1.35;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

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

/* ==========================================================================
   3. Common Components & Typography Helpers
   ========================================================================== */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--space-xl) auto;
}

.section-intro {
    text-align: center;
    max-width: 650px;
    margin: 0 auto var(--space-lg) auto;
}

.subtitle,
.section-subtitle {
    display: inline-block;
    color: var(--slate-grey);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: 2.6rem;
    margin-bottom: var(--space-md);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: var(--primary-navy);
}

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

/* Minimalist Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-navy);
    color: var(--text-white);
    border: none;
    box-shadow: 0 10px 25px rgba(0, 35, 102, 0.15);
}

.btn-primary:hover {
    background-color: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 35, 102, 0.25);
}

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

.btn-secondary:hover {
    background-color: var(--text-white);
    color: var(--primary-navy);
    border-color: var(--text-white);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.btn-cta {
    display: inline-block;
    background-color: var(--bg-white);
    color: var(--primary-navy);
    padding: 18px 44px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--border-radius);
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
}

.btn-cta:hover {
    background-color: var(--slate-light);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

/* Breadcrumbs (Sub-pages only) */
.breadcrumb {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-md);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

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

.breadcrumb .active {
    color: var(--slate-grey);
}

/* ==========================================================================
   4. Header & Navigation Menu
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #ffffff;
    padding: var(--space-md) 0;
    transition: var(--transition-smooth);
}

body.sub-page .main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.main-header.scrolled {
    background-color: #ffffff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.main-header.scrolled .logo-bold {
    color: var(--primary-navy);
}

.main-header.scrolled .nav-link {
    color: rgba(0, 35, 102, 0.85);
}

.main-header.scrolled .menu-toggle .bar {
    background-color: var(--primary-navy);
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.header-container .logo {
    position: absolute;
    left: var(--space-md);
}

.header-container .menu-toggle {
    position: absolute;
    right: var(--space-md);
}

/* Let's Connect CTA Button */
.btn-nav-connect {
    position: absolute;
    right: var(--space-md);
    display: inline-block;
    padding: 9px 22px;
    background-color: var(--primary-navy);
    color: var(--text-white);
    border: 1.5px solid var(--primary-navy);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.btn-nav-connect:hover {
    background-color: var(--navy-light);
    color: var(--text-white);
    border-color: var(--navy-light);
    transform: translateY(-1px);
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Logo image sizing */
.logo img {
    height: 72px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    display: block;
    transition: var(--transition-smooth);
}

/* Compact logo when header is scrolled or on sub-pages */
.main-header.scrolled .logo img,
body.sub-page .main-header .logo img {
    height: 56px;
}

.logo-bold {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary-navy);
}

.logo-light {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: var(--slate-grey);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
    margin-top: 2px;
}

.nav-menu ul {
    display: flex;
    gap: 36px;
    list-style: none;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(0, 35, 102, 0.85);
    padding: var(--space-xs) 0;
    position: relative;
}

.nav-link:hover, 
.nav-link.active {
    color: var(--);
}

/* Blue underline indicator for live nav tabs */
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 3px;
    width: 100%;
    background-color: var(--primary-navy);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: var(--primary-navy);
    transition: var(--transition-smooth);
}

/* Close button hidden on desktop */
.nav-close-btn {
    display: none;
}

/* ==========================================================================
   5. Hero Sections (Home & Sub-pages)
   ========================================================================== */
.hero-section {
    position: relative;
    background-color: var(--navy-dark);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Oval blob shapes in hero background */
.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

/* Large blob — top right */
.hero-section::before {
    width: 520px;
    height: 420px;
    top: -100px;
    right: -80px;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0) 70%);
}

/* Medium blob — bottom left */
.hero-section::after {
    width: 400px;
    height: 340px;
    bottom: -80px;
    left: 30%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 70%);
}

/* Blob divs for extra shapes */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

/* Blob 1 — large, top right */
.hero-blob-1 {
    width: 560px;
    height: 440px;
    top: -120px;
    right: -60px;
    background: radial-gradient(ellipse at center, rgba(163, 148, 148, 0.289) 5%, rgba(255,255,255,0) 70%);
}

/* Blob 2 — medium, center (behind cards) */
.hero-blob-2 {
    width: 360px;
    height: 300px;
    top: 30%;
    right: 18%;
    background: radial-gradient(ellipse at center, rgba(163, 148, 148, 0.289) 5%, rgba(255,255,255,0) 70%);
}

/* Blob 3 — small, bottom left */
.hero-blob-3 {
    width: 280px;
    height: 240px;
    bottom: -50px;
    left: 5%;
    background: radial-gradient(ellipse at center, rgba(163, 148, 148, 0.289) 5%, rgba(255,255,255,0) 70%);
}

/* Home Page Hero Customization */
body:not(.sub-page) .hero-section {
    background-image: none;
    background-color: var(--navy-dark);
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 80px;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--slate-light);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: var(--space-md);
    letter-spacing: 0.5px;
}

.hero-badge svg {
    stroke: var(--slate-light);
}

.hero-title {
    font-size: 3.4rem;
    color: #ffffff;
    margin-bottom: var(--space-md);
    font-weight: 800;
    line-height: 1.2;
}

.hero-title .hero-title-accent {
    color: rgba(255, 255, 255, 0.85);
    display: block;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
}

/* Sub-page Hero Customization */
body.sub-page .hero-section {
    background-image: none;
    background-color: var(--navy-dark);
    padding: var(--space-xl) 0;
    text-align: center;
    color: var(--text-white);
}

body.sub-page .hero-subtitle {
    max-width: 650px;
    margin: 0 auto;
}

body.sub-page .hero-title {
    color: #ffffff;
}

.hero-container {
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

body:not(.sub-page) .hero-container {
    padding-top: 0;
}

.hero-overlay,
.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 19, 58, 0.1);
    z-index: 1;
}

/* ------------------------------------------------------------------
   Hero Two-Column Layout
   ------------------------------------------------------------------ */
.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-xl);
}

/* ------------------------------------------------------------------
   Floating Glass Cards Area
   ------------------------------------------------------------------ */
.hero-cards-area {
    position: relative;
    height: 480px;
}

/* Base glass card */
.hero-float-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    padding: 20px 24px;
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    animation: floatCard 4s ease-in-out infinite alternate;
}

@keyframes floatCard {
    from { transform: translateY(0px); }
    to   { transform: translateY(-10px); }
}

/* Card positions */
.card-top-right {
    top: 0;
    right: 30px;
    width: 200px;
    animation-delay: 0s;
}

.card-center {
    top: 90px;
    left: 20px;
    width: 260px;
    animation-delay: 1s;
}

.card-bottom-left {
    bottom: -30px;
    right: 20px;
    width: 200px;
    animation-delay: 2s;
}

/* Card inner elements */
.hfc-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: #ffffff;
}

.hfc-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
}

.hfc-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-center .hfc-value {
    font-size: 1.9rem;
}

.hfc-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.4;
    margin: 0;
}

.hfc-row {
    display: flex;
    gap: 24px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hfc-meta-label {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.hfc-meta-val {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.hfc-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
}

.hfc-tag svg {
    color: #4ade80;
    flex-shrink: 0;
}

/* ------------------------------------------------------------------
   Responsive — collapse cards on mobile
   ------------------------------------------------------------------ */
@media (max-width: 900px) {
    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-cards-area {
        display: none;
    }
}

/* ==========================================================================
   6. Services Layouts (Grids & Service Cards)
   ========================================================================== */
.services-section {
    padding: var(--space-xl) 0;
    background-color: var(--bg-light);
}

.service-category {
    padding-bottom: var(--space-lg);
}

.category-title-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.category-icon {
    color: var(--slate-grey);
}

.category-heading {
    font-size: 1.7rem;
    font-weight: 500;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.services-grid.loans-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* Service Card Design */
.service-card {
    background-color: var(--bg-white);
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--border-radius-card);
    border: 1px solid rgba(0, 35, 102, 0.03);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-navy);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(0, 35, 102, 0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.card-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--slate-light);
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    transition: var(--transition-smooth);
}

.service-card:hover .card-icon-wrapper {
    background-color: var(--primary-navy);
    color: var(--text-white);
}

.service-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--primary-navy);
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.btn-card-view-more {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 16px;
    border: 1.5px solid var(--primary-navy);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-navy);
    text-align: center;
    transition: var(--transition-smooth);
    align-self: flex-start;
}

.service-card:hover .btn-card-view-more {
    background-color: var(--primary-navy);
    color: var(--text-white);
}

.card-image-wrapper {
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

/* ==========================================================================
   7. About Section Layouts (Home, About Page, Principles)
   ========================================================================= */
/* Index About Section */
.about-section {
    padding: var(--space-xl) 0;
    background-color: var(--bg-white);
    border-top: 1px solid var(--slate-light);
    border-bottom: 1px solid var(--slate-light);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-image {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&q=80&w=800');
    background-size: cover;
    background-position: center;
    height: 480px;
    border-radius: var(--border-radius-card);
    filter: grayscale(100%);
}

.about-visual-card {
    position: absolute;
    bottom: var(--space-md);
    right: var(--space-md);
    background-color: var(--primary-navy);
    color: var(--text-white);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    max-width: 260px;
    box-shadow: var(--box-shadow-hover);
}

.visual-decor {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--slate-grey);
    margin-bottom: 8px;
    font-weight: 600;
}

.about-visual-card h5 {
    color: var(--text-white);
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.about-visual-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
    line-height: 1.5;
}

.about-content .section-title {
    font-size: 2.2rem;
    text-align: left;
}

.about-content .section-title::after {
    left: 0;
    transform: none;
}

.about-text-lead {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    color: var(--primary-navy);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.about-content p {
    margin-bottom: var(--space-md);
}

.about-metrics {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-num {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 500;
    color: var(--primary-navy);
}

.metric-lbl {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--slate-grey);
}

/* About Detail Section (Sub-page) */
.about-detail-section {
    padding: var(--space-xl) 0;
    background-color: var(--bg-white);
}

.detail-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: var(--space-xl);
    align-items: start;
}

.detail-sidebar .subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--slate-grey);
    font-weight: 600;
    display: block;
    margin-bottom: 16px;
}

.detail-sidebar h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.detail-sidebar p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: var(--space-md);
}

.bio-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius-card);
    padding: var(--space-lg);
    box-shadow: var(--box-shadow-premium);
    border: 1px solid var(--slate-light);
}

.bio-label {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--slate-grey);
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 600;
}

.bio-card h3 {
    font-size: 1.8rem;
    margin-bottom: var(--space-md);
}

.bio-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.credentials-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background-color: var(--slate-light);
    border-radius: 50px;
    color: var(--primary-navy);
    font-weight: 500;
    font-size: 0.88rem;
}

/* Principles Grid (About Page) */
.principles-section {
    padding: var(--space-xl) 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--slate-light);
    border-bottom: 1px solid var(--slate-light);
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.principle-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-card);
    padding: var(--space-lg) var(--space-md);
    box-shadow: var(--box-shadow-premium);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid rgba(0, 35, 102, 0.03);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.principle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-navy);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.principle-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(0, 35, 102, 0.1);
}

.principle-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--slate-light);
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    transition: var(--transition-smooth);
}

.principle-card:hover .card-icon {
    background-color: var(--primary-navy);
    color: var(--text-white);
}

.principle-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.principle-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ==========================================================================
   8. Real Estate Portfolio Section
   ========================================================================== */
.real-estate-section {
    padding: var(--space-xl) 0;
    background-color: var(--bg-white);
    border-top: 1px solid var(--slate-light);
}

.estate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.estate-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius-card);
    padding: var(--space-lg) var(--space-md);
    border: 1px solid var(--slate-light);
    transition: var(--transition-smooth);
}

.estate-card:hover {
    background-color: var(--bg-white);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(0, 35, 102, 0.1);
}

.estate-card h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-md);
    color: var(--primary-navy);
}

.estate-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    list-style: none;
}

.estate-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
}

.estate-list li svg {
    color: var(--primary-navy);
    flex-shrink: 0;
    margin-top: 4px;
}

.estate-list li strong {
    display: block;
    color: var(--primary-navy);
}

.estate-list li p {
    font-size: 0.85rem;
    margin-top: 4px;
}

.estate-card.highlight-trust {
    border: 1.5px solid rgba(0, 35, 102, 0.1);
    background-color: rgba(0, 35, 102, 0.01);
}

/* ==========================================================================
   9. Benefits Horizontal Section (Loan & Insurance Pages)
   ========================================================================== */
.benefits-section {
    padding: var(--space-xl) 0;
    background-color: var(--bg-white);
}

.benefits-layout {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.benefits-sidebar {
    width: 100%;
    margin-bottom: var(--space-xs);
    text-align: center;
}

.benefits-sidebar h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.benefits-sidebar p {
    font-size: 1.05rem;
    margin-bottom: var(--space-md);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.sidebar-feature-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px var(--space-lg);
    margin-top: var(--space-xs);
    justify-content: center;
}

.sidebar-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
    font-weight: 500;
}

.sidebar-feature svg {
    color: var(--primary-navy);
    flex-shrink: 0;
}

.benefits-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    width: 100%;
}

.benefit-card {
    background-color: var(--bg-light);
    border: 1px solid var(--slate-border);
    border-radius: var(--border-radius-card);
    padding: var(--space-lg);
    box-shadow: var(--box-shadow-premium);
    position: relative;
    transition: var(--transition-smooth);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(0, 35, 102, 0.1);
    background-color: var(--bg-white);
}

.card-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(0, 35, 102, 0.08);
    position: absolute;
    top: 12px;
    right: 24px;
    line-height: 1;
}

.benefit-card h3 {
    font-size: 1.45rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--primary-navy);
}

.benefit-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ==========================================================================
   10. Parameter Specifications Tables
   ========================================================================== */
.specs-section {
    padding: var(--space-xl) 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--slate-light);
    border-bottom: 1px solid var(--slate-light);
}

.table-wrapper {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-card);
    overflow: hidden;
    box-shadow: var(--box-shadow-premium);
    border: 1px solid var(--slate-border);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.specs-table th {
    background-color: var(--primary-navy);
    color: var(--text-white);
    font-family: var(--font-body);
    font-weight: 500;
    padding: 18px 24px;
    letter-spacing: 0.5px;
}

.specs-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--slate-border);
    color: var(--text-muted);
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table tbody tr {
    transition: var(--transition-smooth);
}

.specs-table tbody tr:hover {
    background-color: rgba(0, 35, 102, 0.02);
}

.specs-table td strong {
    color: var(--primary-navy);
}

/* ==========================================================================
   11. Timeline Pathways Section
   ========================================================================== */
.timeline-section {
    padding: var(--space-xl) 0;
    background-color: var(--bg-white);
}

.timeline-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    position: relative;
}

.step-item {
    position: relative;
    padding-top: var(--space-md);
}

.step-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--slate-grey);
    margin-bottom: var(--space-sm);
    line-height: 1;
}

.step-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.step-item p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==========================================================================
   12. Contact Form & Maps Layouts
   ========================================================================== */
.contact-section {
    padding: var(--space-xl) 0;
    background-color: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 0.95fr;
    gap: var(--space-xl);
    align-items: start;
}

/* Centered layout — used when form is removed */
.contact-wrapper--centered {
    display: flex;
    justify-content: center;
}

.contact-info-card--wide {
    max-width: 760px;
    width: 100%;
}

.contact-info-card--wide .info-list {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: var(--space-xl);
    justify-content: space-between;
    align-items: flex-start;
}

.contact-info-card--wide .info-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.contact-info-card--wide .info-column:last-child {
    margin-top: 120px;
}

.contact-info-card--wide .info-item {
    flex: none;
}

.contact-section-icon {
    position: absolute;
    top: 100px;
    right: 150px;
    max-width: 120px;
    height: auto;
    display: block;
}

/* Info Column */
.contact-info-card {
    background-color: var(--primary-navy);
    color: var(--text-white);
    padding: var(--space-lg);
    border-radius: var(--border-radius-card);
    box-shadow: var(--box-shadow-hover);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.info-card-header h4 {
    color: var(--text-white);
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.advisor-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--slate-grey);
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-icon {
    color: var(--slate-grey);
    flex-shrink: 0;
    margin-top: 4px;
}

.info-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
    font-weight: 500;
}

.info-value {
    display: block;
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 4px;
}

.info-value a {
    color: var(--text-white);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.info-value a:hover {
    color: var(--slate-light);
}

/* Form Column */
.contact-form-card {
    background-color: var(--bg-white);
    padding: var(--space-lg);
    border-radius: var(--border-radius-card);
    box-shadow: var(--box-shadow-premium);
    border: 1px solid var(--slate-border);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

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

.form-group label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--primary-navy);
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    border-radius: 4px;
    border: 1px solid var(--slate-border);
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-dark);
    background-color: var(--bg-white);
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-navy);
    outline: none;
    background-color: var(--bg-white);
}

.form-status {
    font-size: 0.9rem;
    margin-top: 12px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-status.success {
    display: block;
    color: #2e7d32;
    background-color: #e8f5e9;
    padding: 12px;
    border-radius: var(--border-radius);
}

.form-status.error {
    display: block;
    color: #c62828;
    background-color: #ffebee;
    padding: 12px;
    border-radius: var(--border-radius);
}

/* Map Section Styling */
.map-section {
    padding: var(--space-xl) 0;
    background-color: var(--bg-white);
    border-top: 1px solid var(--slate-light);
}

.map-wrapper {
    border-radius: var(--border-radius-card);
    overflow: hidden;
    border: 1px solid var(--slate-border);
    box-shadow: var(--box-shadow-premium);
    transition: var(--transition-smooth);
}

.map-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-hover);
}

.map-wrapper iframe {
    display: block;
    width: 100%;
}

/* ==========================================================================
   13. Consultation CTA Section
   ========================================================================== */
.cta-section {
    padding: var(--space-xl) 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--slate-light);
}

body.sub-page .cta-section {
    background-color: var(--bg-white);
}

.cta-card {
    background-color: var(--primary-navy);
    color: var(--text-white);
    border-radius: var(--border-radius-card);
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    max-width: 960px;
    margin: 0 auto;
    box-shadow: var(--box-shadow-hover);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-card h2 {
    font-size: 2.6rem;
    margin-bottom: var(--space-md);
    color: var(--text-white);
}

.cta-card p {
    font-size: 1.15rem;
    max-width: 620px;
    margin: 0 auto var(--space-lg) auto;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 300;
}

/* ==========================================================================
   14. Footers (Main & Sub Footers)
   ========================================================================== */
.footer {
    background-color: var(--navy-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-lg) 0 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand .logo {
    margin-bottom: var(--space-sm);
}

/* Footer logo image */
.footer-brand .logo img {
    height: 48px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

.footer-brand .logo-bold {
    color: var(--text-white);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    max-width: 320px;
}

.footer-links h5 {
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

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

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 500;
}

.footer-contact-heading {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

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

.footer-bottom {
    padding: var(--space-md) 0;
    background-color: #000c1e;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
}

/* Sub-page minimalist footer */
.sub-footer {
    background-color: var(--navy-dark);
    padding: 36px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   15. Consolidated Media Queries (Responsive Adaptations)
   ========================================================================== */

/* --------------------------------------------------------------------------
   LARGE TABLET / SMALL LAPTOP  (≤1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {

    /* Service grids → 2 columns */
    .services-grid,
    .services-grid.loans-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .header-container {
        min-height: 40px;
    }

    .header-container .logo,
    .header-container .menu-toggle {
        top: 25%;
        transform: translateY(-50%);
    }
    /* About two-col → single col */
    .about-container {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .about-image {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
        height: 380px;
    }

    /* Contact two-col → single col */
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    /* About detail layout → single col */
    .detail-layout {
        grid-template-columns: 1fr !important;
        gap: var(--space-lg) !important;
    }

    .detail-sidebar {
        position: static !important;
    }

    /* Benefits cards → 2 cols */
    .benefits-stack {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Estate & principles grids → 2 cols */
    .estate-grid,
    .principles-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Timeline → 2 cols */
    .timeline-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Hero text */
    .hero-title {
        font-size: 2.8rem;
    }

    /* About metrics wrap */
    .about-metrics {
        flex-wrap: wrap;
        gap: var(--space-md);
    }

    /* Specs table — horizontal scroll instead of overflow */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Let's Connect slightly smaller */
    .btn-nav-connect {
        font-size: 0.78rem;
        padding: 7px 16px;
    }

    /* Logo image */
    .logo img {
        height: 48px;
    }

    /* Category section margin reduce */
    .service-category[style*="margin-top: 6rem"] {
        margin-top: 4rem !important;
    }
}

/* --------------------------------------------------------------------------
   TABLET  (≤768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    :root {
        --space-xl: 56px;
        --space-lg: 32px;
    }
    .header-container {
        min-height: 40px;
    }

    .header-container .logo,
    .header-container .menu-toggle {
        top: 25%;
        transform: translateY(-50%);
    }
    /* ── Typography ── */
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .benefits-sidebar h2 {
        font-size: 1.9rem;
    }

    .cta-card h2 {
        font-size: 1.9rem;
    }

    .category-heading {
        font-size: 1.35rem;
    }

    .detail-sidebar h2 {
        font-size: 2rem;
    }

    /* ── Header & Navigation ── */
    .menu-toggle {
        display: flex;
    }

    .btn-nav-connect {
        display: none;
    }

    .main-header,
    body.sub-page .main-header,
    .main-header.scrolled {
        padding-top: 28px !important;
        padding-bottom: 14px !important;
    }

    .logo img {
        height: 42px;
        max-width: 160px;
    }

    body.sub-page .main-header .logo img,
    .main-header.scrolled .logo img {
        height: 36px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        width: 50%;
        min-width: 260px;
        height: 100vh;
        background-color: var(--primary-navy);
        padding: 72px var(--space-md) var(--space-lg);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        transform: translateX(100%);
        z-index: 999;
        overflow-y: auto;
        overflow-x: hidden;
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.3);
        display: block;
        visibility: hidden;
    }

    .nav-menu.active {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-menu ul {
        display: flex;
        flex-direction: column;
        gap: var(--space-md);
        align-items: center;
    }

    .nav-link {
        font-size: 1.2rem;
        display: block;
        padding: 8px 0;
        color: #ffffff !important;
    }

    .nav-link:hover,
    .nav-link.active {
        color: rgba(255, 255, 255, 0.75) !important;
    }

    /* Close (×) button inside mobile nav */
    .nav-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 20px;
        right: 20px;
        width: 36px;
        height: 36px;
        background: rgba(255,255,255,0.1);
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 50%;
        cursor: pointer;
        color: var(--text-white);
        font-size: 1.4rem;
        line-height: 1;
        transition: var(--transition-smooth);
    }

    .nav-close-btn:hover {
        background: rgba(255,255,255,0.25);
    }

    /* Dim overlay behind the nav drawer */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 998;
    }

    .nav-overlay.active {
        display: block;
    }

    /* Hamburger → X animation */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* ── Hero ── */
    body:not(.sub-page) .hero-section {
        min-height: auto;
        padding-top: 110px;
        padding-bottom: 60px;
    }

    body.sub-page .hero-section {
        padding: 110px 0 56px;
    }

    .hero-container {
        padding-top: 0;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 12px;
    }

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

    .hero-content {
        max-width: 100%;
    }

    /* ── All grids → single column ── */
    .services-grid,
    .services-grid.loans-grid,
    .estate-grid,
    .principles-grid,
    .timeline-steps,
    .benefits-stack {
        grid-template-columns: 1fr !important;
    }

    .timeline-steps {
        gap: var(--space-md);
    }

    /* ── Sidebar features ── */
    .sidebar-feature-list {
        flex-direction: column !important;
        gap: 14px !important;
        align-items: flex-start;
    }

    /* ── About section ── */
    .about-image {
        height: 260px;
    }

    .about-visual-card {
        position: static;
        margin: var(--space-md) auto 0 auto;
        max-width: 100%;
    }

    .about-metrics {
        flex-wrap: wrap;
        gap: var(--space-md);
    }

    .about-content .section-title {
        font-size: 1.8rem;
        text-align: center;
    }

    .about-content .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* ── Contact form ── */
    .form-row {
        grid-template-columns: 1fr !important;
    }

    /* ── Specs table ── */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .specs-table {
        min-width: 520px;
    }

    .specs-table th,
    .specs-table td {
        padding: 12px 14px;
        font-size: 0.87rem;
    }

    /* ── CTA ── */
    .cta-card {
        padding: var(--space-lg) var(--space-md);
    }

    .cta-card p {
        font-size: 1rem;
    }

    /* ── Footer ── */
    .footer-container {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
        max-width: 100%;
    }

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

    .footer-links ul {
        align-items: center;
    }

    .footer-bottom-container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    /* ── Section intro ── */
    .section-intro {
        padding: 0 var(--space-sm);
    }

    /* ── Service category spacing ── */
    .service-category[style*="margin-top: 6rem"] {
        margin-top: 3rem !important;
    }

    /* ── Breadcrumb ── */
    .breadcrumb {
        font-size: 0.8rem;
        word-break: break-word;
        text-align: center;
    }

    /* ── Section header ── */
    .section-header {
        padding: 0 var(--space-sm);
    }

    /* ── Card image heights ── */
    .card-image-wrapper {
        height: 180px !important;
    }

    /* ── Contact Info Card ── */
    .contact-info-card--wide .info-list {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .contact-info-card--wide .info-column {
        flex: none;
        margin-top: 0 !important;
    }

    .contact-info-card--wide .info-item {
        flex: none;
    }

    .contact-section-icon {
        position: static;
        margin-bottom: var(--space-md);
    }
}

/* --------------------------------------------------------------------------
   MOBILE  (≤480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    :root {
        --space-xl: 44px;
        --space-lg: 28px;
        --space-md: 18px;
        --space-sm: 14px;
    }

    html {
        font-size: 15px;
    }

    /* ── Container ── */
    .container {
        padding: 0 16px;
    }

    /* ── Typography ── */
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.93rem;
    }

    body.sub-page .hero-section {
        padding: 95px 0 44px;
    }

    .section-title {
        font-size: 1.65rem;
    }

    .benefits-sidebar h2 {
        font-size: 1.65rem;
    }

    .cta-card h2 {
        font-size: 1.65rem;
    }

    .benefit-card h3 {
        font-size: 1.15rem;
    }

    .service-card h4 {
        font-size: 1.1rem;
    }

    .category-heading {
        font-size: 1.25rem;
    }

    /* ── Logo ── */
    .logo img {
        height: 36px;
        max-width: 140px;
    }

    body.sub-page .main-header .logo img,
    .main-header.scrolled .logo img {
        height: 30px;
    }

    /* Add slight top spacing so logo/hamburger don't stick to viewport edge */
     .header-container {
        min-height: 40px;
    }

    .header-container .logo,
    .header-container .menu-toggle {
        top: 25%;
        transform: translateY(-50%);
    }
    
    .main-header,
    body.sub-page .main-header,
    .main-header.scrolled {
        padding-top: 24px !important;
        padding-bottom: 12px !important;
    }

    /* ── Card padding ── */
    .service-card,
    .benefit-card,
    .estate-card,
    .principle-card {
        padding: 20px 16px;
    }

    /* ── Card image heights ── */
    .card-image-wrapper {
        height: 150px !important;
    }

    /* ── Specs table ── */
    .specs-table {
        min-width: 480px;
    }

    .specs-table th,
    .specs-table td {
        padding: 10px 12px;
        font-size: 0.82rem;
    }

    /* ── Step items ── */
    .step-num {
        font-size: 1.75rem;
    }

    .step-item h4 {
        font-size: 1.05rem;
    }

    /* ── About metrics ── */
    .about-metrics {
        flex-direction: column;
        gap: 14px;
    }

    .metric-num {
        font-size: 1.9rem;
    }

    /* ── CTA button full width ── */
    .btn-cta {
        display: block;
        width: 100%;
        text-align: center;
        padding: 15px 20px;
        font-size: 0.88rem;
    }

    /* ── CTA card ── */
    .cta-card {
        padding: var(--space-lg) 16px;
    }

    .cta-card p {
        font-size: 0.93rem;
    }

    /* ── Contact info ── */
    .info-list {
        gap: 22px;
    }

    .info-value {
        font-size: 0.95rem;
    }

    /* ── Bio card ── */
    .bio-card {
        padding: 20px 16px;
    }

    .bio-card h3 {
        font-size: 1.45rem;
    }

    /* ── Hero actions ── */
    .hero-actions {
        gap: 10px;
    }

    .hero-actions .btn {
        padding: 14px 24px;
        font-size: 0.88rem;
    }

    /* ── Category title ── */
    .category-title-wrapper {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* ── Footer brand ── */
    .footer-links h5 {
        margin-top: 8px;
    }

    /* ── About image ── */
    .about-image {
        height: 220px;
    }

    /* ── Section intro ── */
    .section-intro {
        padding: 0;
    }

    /* ── Principles card icon ── */
    .card-icon {
        width: 48px;
        height: 48px;
    }

    /* ── Benefits sidebar p ── */
    .benefits-sidebar p {
        font-size: 0.95rem;
    }

    /* ── Form inputs ── */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    /* ── Submit button ── */
    .btn.btn-primary.btn-block {
        padding: 14px;
        font-size: 0.9rem;
    }
}

/* --------------------------------------------------------------------------
   VERY SMALL MOBILE  (≤360px)
   -------------------------------------------------------------------------- */
@media (max-width: 360px) {
    html {
        font-size: 14px;
    }
    .header-container {
        min-height: 40px;
    }

    .header-container .logo,
    .header-container .menu-toggle {
        top: 25%;
        transform: translateY(-50%);
    }
    :root {
        --space-xl: 36px;
        --space-lg: 24px;
        --space-md: 16px;
    }

    .container {
        padding: 0 12px;
    }

    .hero-title {
        font-size: 1.55rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .benefits-sidebar h2,
    .cta-card h2 {
        font-size: 1.5rem;
    }

    .logo img {
        height: 30px;
        max-width: 110px;
    }

    .specs-table th,
    .specs-table td {
        padding: 8px 10px;
        font-size: 0.76rem;
    }

    .btn-cta {
        font-size: 0.82rem;
        padding: 13px 14px;
    }

    .metric-num {
        font-size: 1.65rem;
    }

    .card-image-wrapper {
        height: 130px !important;
    }

    .service-card,
    .benefit-card {
        padding: 16px 14px;
    }

    /* Hide logo tagline text on very small screens */
    .logo-light {
        display: none;
    }

    /* Very small screens — keep a small top gap for header elements */
    .main-header,
    body.sub-page .main-header,
    .main-header.scrolled {
        padding-top: 20px !important;
        padding-bottom: 10px !important;
    }

    .hero-actions .btn {
        padding: 12px 16px;
        font-size: 0.85rem;
    }

    .nav-link {
        font-size: 1.05rem;
    }

    .footer-container {
        gap: 16px;
    }
}
