/* ===================================
   DESIGN SYSTEM — ADVOCATE PRAVESH KUMAR YADAV
   Premium Indian Advocate Business Profile
   =================================== */

:root {
    /* Colors - Deep Law Firm Palette */
    --color-bg-primary: #070b10;
    --color-bg-secondary: #0c1118;
    --color-bg-tertiary: #111923;
    --color-bg-card: #131c28;
    --color-bg-card-hover: #182535;
    --color-gold: #c9a84c;
    --color-gold-light: #e2c872;
    --color-gold-dark: #9a7c2e;
    --color-gold-glow: rgba(201, 168, 76, 0.15);
    --color-gold-border: rgba(201, 168, 76, 0.25);
    --color-text: #c8cdd4;
    --color-text-muted: #7a8494;
    --color-text-bright: #e8ecf2;
    --color-white: #f0f2f5;
    --color-whatsapp: #25D366;
    --color-accent: #1a4b8c;

    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    --font-hindi: 'Noto Sans Devanagari', sans-serif;

    /* Spacing */
    --section-padding: clamp(56px, 10vw, 120px);

    /* Layout offsets — used for sticky-header scroll compensation */
    --navbar-height: 74px;
    --scroll-offset: 90px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s var(--ease-out);
    --transition: 0.35s var(--ease-out);
    --transition-slow: 0.6s var(--ease-out);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 4px 20px rgba(201, 168, 76, 0.2);

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ===================================
   RESET & BASE
   =================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Keeps hash-link targets clear of the sticky navbar */
    scroll-padding-top: var(--scroll-offset);
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(201, 168, 76, 0.18);
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-primary);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll lock while the mobile menu is open — position:fixed would lose
   the scroll position, so the offset is restored from JS instead. */
body.menu-open {
    overflow: hidden;
    touch-action: none;
}

/* Anchor targets sit below the sticky navbar */
section[id],
article[id] {
    scroll-margin-top: var(--scroll-offset);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* <picture> wraps the images for WebP fallback; it must not introduce
   an inline box between the flex parent and the <img>. */
picture {
    display: contents;
}

a {
    text-decoration: none;
    color: var(--color-gold);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-gold-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-white);
    font-weight: 700;
    line-height: 1.3;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Accessibility */
/* Keyboard focus must stay visible — the reset removes no outline,
   but the gold ring reads better against the dark surfaces. */
:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* Visible to crawlers and screen readers, not on screen. Used where the
   heading outline needs a level the design does not show. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--color-gold);
    color: var(--color-bg-primary);
    padding: 12px 24px;
    z-index: 10000;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.skip-link:focus {
    top: 16px;
}

/* ===================================
   SECTION UTILITIES
   =================================== */
.section-padding {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 20px;
    background: var(--color-gold-glow);
    border: 1px solid var(--color-gold-border);
    border-radius: 50px;
    color: var(--color-gold);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.section-subtitle {
    color: var(--color-gold);
    font-family: var(--font-hindi);
    font-size: 1rem;
    font-style: italic;
    opacity: 0.85;
}

.divider {
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--color-gold);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-gold {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-bg-primary) !important;
    border-color: var(--color-gold);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
    color: var(--color-bg-primary) !important;
}

.btn-outline {
    background: transparent;
    color: var(--color-gold) !important;
}

.btn-outline:hover {
    background: var(--color-gold);
    color: var(--color-bg-primary) !important;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: var(--color-whatsapp);
    color: #fff !important;
    border-color: var(--color-whatsapp);
}

.btn-whatsapp:hover {
    background: #1da851;
    border-color: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    color: #fff !important;
}

.btn small {
    font-size: 0.7rem;
    opacity: 0.8;
    text-transform: none;
}

/* ===================================
   TOP BAR
   =================================== */
.top-bar {
    background: var(--color-bg-secondary);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    padding: 8px 0;
    font-size: 0.82rem;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 24px;
}

.top-bar-left a,
.top-bar-right span {
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    min-height: 28px;
}

.top-bar-left a:hover {
    color: var(--color-gold);
}

.top-bar-left i,
.top-bar-right i {
    color: var(--color-gold);
    font-size: 0.75rem;
}

/* ===================================
   NAVBAR
   =================================== */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(7, 11, 16, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-gold-border);
    transition: padding var(--transition), box-shadow var(--transition);
}

/* Fallback for browsers without backdrop-filter (older Android WebView) */
@supports not ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
    .navbar {
        background: rgba(7, 11, 16, 0.98);
    }
}

.navbar.scrolled {
    padding: 8px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 0;
    flex-shrink: 1;
}

.logo-emblem {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--color-gold-border);
    object-fit: cover;
    transition: var(--transition);
}

.logo:hover .logo-emblem {
    border-color: var(--color-gold);
    box-shadow: 0 0 15px var(--color-gold-glow);
}

.logo-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.logo-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-white);
    letter-spacing: 0.5px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo-title {
    font-size: 0.7rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 500;
    white-space: nowrap;
}

.navbar-inner > nav {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--color-text) !important;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-gold) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.btn-consult {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark)) !important;
    color: var(--color-bg-primary) !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
}

.btn-consult::after {
    display: none !important;
}

.btn-consult:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    /* 44x44 minimum touch target */
    width: 44px;
    height: 44px;
    padding: 0;
    margin-right: -8px;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    z-index: 1201;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.hamburger:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

.hamburger-line {
    width: 26px;
    height: 2px;
    background: var(--color-gold);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    /* svh avoids the mobile URL-bar resize jump */
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 100px 0 60px;
    background:
        linear-gradient(135deg, rgba(7,11,16,0.97) 0%, rgba(12,17,24,0.92) 40%, rgba(7,11,16,0.85) 100%),
        url('images/hero-bg.jpg') center/cover no-repeat;
}

/* WebP is ~30% smaller again; image-set lets the browser choose and
   falls back to the JPEG rule above where it is unsupported. */
@supports (background-image: image-set(url('images/hero-bg.webp') type('image/webp'))) {
    .hero {
        background:
            linear-gradient(135deg, rgba(7,11,16,0.97) 0%, rgba(12,17,24,0.92) 40%, rgba(7,11,16,0.85) 100%),
            image-set(url('images/hero-bg.webp') type('image/webp')) center/cover no-repeat;
    }
}

@supports (background-image: -webkit-image-set(url('images/hero-bg.webp') type('image/webp'))) {
    .hero {
        background:
            linear-gradient(135deg, rgba(7,11,16,0.97) 0%, rgba(12,17,24,0.92) 40%, rgba(7,11,16,0.85) 100%),
            -webkit-image-set(url('images/hero-bg.webp') type('image/webp')) center/cover no-repeat;
    }
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(201, 168, 76, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(201, 168, 76, 0.06) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Floating elements */
.hero-floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    color: var(--color-gold);
    opacity: 0.06;
    font-size: 3rem;
}

.floating-1 {
    top: 15%;
    left: 5%;
    animation: float-slow 8s ease-in-out infinite;
}

.floating-2 {
    top: 60%;
    right: 8%;
    animation: float-slow 10s ease-in-out infinite reverse;
    font-size: 2.5rem;
}

.floating-3 {
    bottom: 20%;
    left: 15%;
    animation: float-slow 12s ease-in-out infinite;
    font-size: 2rem;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.hero-text,
.hero-image-wrapper {
    min-width: 0;
}

/* Hero Text */
.hero-text {
    flex: 1;
    max-width: 620px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: var(--color-gold-glow);
    border: 1px solid var(--color-gold-border);
    border-radius: 50px;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s var(--ease-out) both;
}

.badge-emblem {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.hero-badge span {
    color: var(--color-gold);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-tagline {
    margin-bottom: 16px;
    animation: fadeInUp 0.6s var(--ease-out) 0.1s both;
}

.tagline-hindi {
    font-family: var(--font-hindi);
    color: var(--color-gold-light);
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 500;
    display: block;
    line-height: 1.5;
}

.hero-text h1 {
    margin-bottom: 16px;
    animation: fadeInUp 0.6s var(--ease-out) 0.2s both;
}

.hero-greeting {
    display: block;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--color-gold);
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.hero-name {
    display: block;
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: 1.1;
    overflow-wrap: break-word;
    background: linear-gradient(135deg, #f0f2f5 0%, var(--color-gold) 50%, #f0f2f5 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.hero-name-hindi {
    display: block;
    font-family: var(--font-hindi);
    font-size: clamp(0.95rem, 2vw, 1.3rem);
    overflow-wrap: break-word;
    color: var(--color-gold);
    opacity: 0.7;
    font-weight: 500;
    margin-top: 8px;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--color-text);
    margin-bottom: 16px;
    font-weight: 300;
    animation: fadeInUp 0.6s var(--ease-out) 0.3s both;
}

.hero-subtitle strong {
    color: var(--color-white);
}

.hero-description {
    color: var(--color-text-muted);
    font-size: 0.98rem;
    margin-bottom: 32px;
    animation: fadeInUp 0.6s var(--ease-out) 0.35s both;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 36px;
    padding: 20px 28px;
    background: rgba(201, 168, 76, 0.05);
    border: 1px solid var(--color-gold-border);
    border-radius: var(--radius-md);
    animation: fadeInUp 0.6s var(--ease-out) 0.4s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-gold-border);
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    animation: fadeInUp 0.6s var(--ease-out) 0.5s both;
}

.hero-buttons .btn {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 14px 24px;
    min-height: 48px;
    justify-content: center;
}

.hero-buttons .btn span {
    font-size: 0.85rem;
}

/* Hero Image */
.hero-image-wrapper {
    flex: 0 0 auto;
    position: relative;
    animation: fadeInRight 0.8s var(--ease-out) 0.4s both;
}

/* The portrait frame sits above the decorative badge/glow layers */
.hero-image-frame {
    z-index: 1;
}

.hero-image-frame {
    position: relative;
    width: clamp(280px, 30vw, 400px);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.hero-image-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    transition: var(--transition-slow);
}

.image-glow {
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-gold-border);
    pointer-events: none;
    transition: var(--transition);
}

.hero-image-frame:hover .image-glow {
    border-color: var(--color-gold);
    box-shadow: 0 0 30px var(--color-gold-glow), inset 0 0 30px rgba(201, 168, 76, 0.05);
}

/* Frame corners */
.frame-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    z-index: 3;
}

.frame-tl {
    top: -4px;
    left: -4px;
    border-top: 3px solid var(--color-gold);
    border-left: 3px solid var(--color-gold);
}

.frame-tr {
    top: -4px;
    right: -4px;
    border-top: 3px solid var(--color-gold);
    border-right: 3px solid var(--color-gold);
}

.frame-bl {
    bottom: -4px;
    left: -4px;
    border-bottom: 3px solid var(--color-gold);
    border-left: 3px solid var(--color-gold);
}

.frame-br {
    bottom: -4px;
    right: -4px;
    border-bottom: 3px solid var(--color-gold);
    border-right: 3px solid var(--color-gold);
}

.hero-image-badge {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-bg-primary);
    padding: 8px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    box-shadow: var(--shadow-gold);
    z-index: 4;
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInUp 0.6s var(--ease-out) 1s both;
}

.scroll-arrow {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ===================================
   TRUST BAR
   =================================== */
.trust-bar {
    background: var(--color-bg-secondary);
    padding: 50px 0;
    border-top: 1px solid rgba(201, 168, 76, 0.08);
    border-bottom: 1px solid rgba(201, 168, 76, 0.08);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition);
}

.trust-item:hover {
    border-color: var(--color-gold-border);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.trust-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gold-glow);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    border: 1px solid var(--color-gold-border);
}

.trust-icon i {
    font-size: 1.2rem;
    color: var(--color-gold);
}

.trust-text h3 {
    font-size: 1rem;
    margin-bottom: 4px;
    font-family: var(--font-body);
    font-weight: 600;
}

.trust-text p {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about {
    background: var(--color-bg-primary);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: min(400px, 70vw);
    height: min(400px, 70vw);
    background: radial-gradient(circle, var(--color-gold-glow), transparent 70%);
    pointer-events: none;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.about-image-col {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.about-card-display {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-gold-border);
}

.about-card-display img {
    width: 100%;
    border-radius: var(--radius-lg);
    transition: var(--transition-slow);
}

.about-card-display:hover img {
    transform: scale(1.02);
}

.card-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.08) 50%, transparent 60%);
    background-size: 200% 200%;
    animation: card-shine 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes card-shine {
    0%, 100% { background-position: 200% 200%; }
    50% { background-position: -200% -200%; }
}

.about-emblem {
    text-align: center;
    padding: 24px;
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-gold-border);
}

.about-emblem img {
    width: 100px;
    height: 100px;
    margin: 0 auto 12px;
    border-radius: 50%;
    border: 2px solid var(--color-gold-border);
}

.emblem-motto {
    font-family: var(--font-hindi);
    color: var(--color-gold);
    font-size: 1.1rem;
    font-weight: 600;
}

.emblem-motto-en {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 4px;
}

.about-text-col {
    position: relative;
}

.about-intro {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--color-gold-light);
    font-family: var(--font-body);
    font-weight: 600;
    line-height: 1.5;
}

.about-text-col > p {
    color: var(--color-text);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.about-highlights {
    margin: 28px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--color-gold);
    transition: var(--transition);
}

.highlight-item:hover {
    background: var(--color-bg-card-hover);
    transform: translateX(4px);
}

.highlight-item i {
    color: var(--color-gold);
    font-size: 1.1rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.highlight-item strong {
    display: block;
    color: var(--color-white);
    font-size: 0.88rem;
    margin-bottom: 2px;
}

.highlight-item span {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.about-values {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.value-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--color-gold-glow);
    border: 1px solid var(--color-gold-border);
    border-radius: 50px;
    font-size: 0.82rem;
    color: var(--color-text-bright);
    transition: var(--transition-fast);
}

.value-tag i {
    color: var(--color-gold);
    font-size: 0.7rem;
}

.value-tag:hover {
    border-color: var(--color-gold);
    background: rgba(201, 168, 76, 0.12);
}

/* ===================================
   PRACTICE AREAS
   =================================== */
.practice-areas {
    background: var(--color-bg-secondary);
    position: relative;
    overflow: hidden;
}

.practice-areas::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: min(300px, 60vw);
    height: min(300px, 60vw);
    background: radial-gradient(circle, rgba(201, 168, 76, 0.05), transparent 70%);
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    background: var(--color-bg-card);
    padding: 40px 28px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
    transition: var(--transition);
    overflow: hidden;
    cursor: default;
}

.service-card:hover {
    border-color: var(--color-gold-border);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.service-card-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover .service-card-glow {
    opacity: 1;
    width: 100%;
}

.service-icon-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-gold-glow), rgba(201, 168, 76, 0.08));
    border-radius: 50%;
    border: 2px solid var(--color-gold-border);
    transition: var(--transition);
}

.service-card:hover .service-icon-wrap {
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.2), rgba(201, 168, 76, 0.12));
    border-color: var(--color-gold);
    transform: scale(1.08);
}

.service-icon-wrap i {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    font-family: var(--font-body);
    font-weight: 700;
}

.service-hindi {
    font-family: var(--font-hindi);
    color: var(--color-gold);
    font-size: 0.85rem;
    margin-bottom: 12px;
    opacity: 0.8;
}

.service-desc {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ===================================
   WHY CHOOSE SECTION
   =================================== */
.why-choose {
    background: var(--color-bg-primary);
    position: relative;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.why-card {
    padding: 36px;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--color-gold);
    transition: height var(--transition-slow);
}

.why-card:hover::before {
    height: 100%;
}

.why-card:hover {
    border-color: var(--color-gold-border);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.why-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-gold);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 16px;
}

.why-card:hover .why-number {
    opacity: 0.5;
}

.why-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    font-family: var(--font-body);
    font-weight: 700;
}

.why-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Constitution Quote */
.constitution-quote {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 36px 40px;
    background: linear-gradient(135deg, var(--color-bg-card), var(--color-bg-tertiary));
    border: 1px solid var(--color-gold-border);
    border-radius: var(--radius-lg);
    position: relative;
}

.quote-mark {
    color: var(--color-gold);
    font-size: 2rem;
    opacity: 0.4;
    flex-shrink: 0;
}

.constitution-quote blockquote {
    flex: 1;
}

.constitution-quote blockquote p {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-text-bright);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 8px;
}

.constitution-quote cite {
    color: var(--color-gold);
    font-size: 0.88rem;
    font-style: normal;
}

.quote-emblem img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    opacity: 0.5;
    border: 1px solid var(--color-gold-border);
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact {
    background: var(--color-bg-secondary);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
}

.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--color-gold-border);
    transform: translateX(4px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gold-glow);
    border: 1px solid var(--color-gold-border);
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--color-gold);
    font-size: 1.1rem;
}

.whatsapp-icon {
    background: rgba(37, 211, 102, 0.1);
    border-color: rgba(37, 211, 102, 0.3);
}

.whatsapp-icon i {
    color: var(--color-whatsapp);
}

.contact-details h3 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    font-family: var(--font-body);
    font-weight: 600;
}

.contact-details p,
.contact-details a {
    color: var(--color-text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    overflow-wrap: break-word;
}

.contact-details a {
    display: inline-block;
    min-height: 28px;
}

.contact-details {
    min-width: 0;
}

.contact-details a:hover {
    color: var(--color-gold);
}

.contact-note {
    font-size: 0.78rem !important;
    opacity: 0.6;
    margin-top: 4px;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--color-bg-card);
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gold-border);
    box-shadow: var(--shadow-md);
}

.contact-form-wrapper h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-family: var(--font-body);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-form-wrapper h3 i {
    color: var(--color-gold);
}

.form-subtitle {
    color: var(--color-text-muted);
    font-size: 0.88rem;
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-bright);
    margin-bottom: 6px;
}

.required {
    color: #ef4444;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    max-width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.5;
    transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

/* iOS Safari zooms the viewport when focusing a field below 16px.
   Bump to 16px wherever touch is the primary input. */
@media (pointer: coarse) {
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px;
    }
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23c9a84c' d='M6 8.5L1 3.5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group select option {
    background: var(--color-bg-card);
    color: var(--color-text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-gold);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px var(--color-gold-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
    opacity: 0.6;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.form-disclaimer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.form-disclaimer i {
    color: var(--color-gold);
}

/* ===================================
   WHATSAPP FLOAT
   =================================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: var(--color-whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float i {
    font-size: 1.8rem;
    color: #fff;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-tooltip {
    position: absolute;
    right: 72px;
    background: var(--color-bg-card);
    color: var(--color-text);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition-fast);
    pointer-events: none;
    border: 1px solid var(--color-gold-border);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes pulse-whatsapp {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1); }
}

/* ===================================
   FOOTER
   =================================== */
footer {
    background: var(--color-bg-primary);
    border-top: 1px solid var(--color-gold-border);
}

.footer-top {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--color-gold-border);
}

.footer-name {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-white);
}

.footer-title {
    display: block;
    font-size: 0.7rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-desc {
    color: var(--color-text-muted);
    font-size: 0.88rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--color-gold);
    color: var(--color-bg-primary);
    border-color: var(--color-gold);
    transform: translateY(-2px);
}

.footer-links h4,
.footer-contact-info h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.footer-links h4::after,
.footer-contact-info h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-gold);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.88rem;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 32px;
}

.footer-links a::before {
    content: '›';
    color: var(--color-gold);
    font-size: 1.1rem;
    opacity: 0;
    transform: translateX(-6px);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-gold);
    transform: translateX(4px);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact-info address {
    font-style: normal;
}

.footer-contact-info p {
    color: var(--color-text-muted);
    font-size: 0.88rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact-info i {
    color: var(--color-gold);
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
}

.footer-contact-info a {
    color: var(--color-text-muted);
}

.footer-contact-info a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 20px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.footer-disclaimer {
    font-size: 0.72rem !important;
    opacity: 0.6;
    max-width: 500px;
    text-align: right;
}

/* ===================================
   NOTIFICATION TOAST
   =================================== */
.notification-toast {
    position: fixed;
    top: calc(var(--navbar-height) + 16px);
    right: 16px;
    left: auto;
    width: min(400px, calc(100vw - 32px));
    padding: 16px 18px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-gold-border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    color: var(--color-text-bright);
    z-index: 10000;
    animation: toast-in 0.4s var(--ease-out) both;
}

.notification-toast.is-leaving {
    animation: toast-out 0.3s var(--ease-out) both;
}

.notification-success {
    border-color: var(--color-gold);
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notification-content > i {
    color: var(--color-gold);
    font-size: 1.3rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.notification-content > div {
    flex: 1;
    min-width: 0;
}

.notification-toast strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.notification-toast p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.notification-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    /* 44px tap target without inflating the visual box */
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.notification-close:hover {
    color: var(--color-gold);
    background: rgba(255, 255, 255, 0.05);
}

@keyframes toast-in {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes toast-out {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(24px); }
}

@keyframes toast-in-mobile {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out-mobile {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(16px); }
}

/* On a narrow screen the toast spans the width above the WhatsApp
   button and slides up rather than in from the right. */
@media (max-width: 480px) {
    .notification-toast {
        top: auto;
        bottom: 80px;
        right: 12px;
        left: 12px;
        width: auto;
        animation-name: toast-in-mobile;
    }

    .notification-toast.is-leaving {
        animation-name: toast-out-mobile;
    }
}

/* Inline form validation feedback */
.form-group input.has-error,
.form-group textarea.has-error,
.form-group select.has-error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.06);
}

.field-error {
    display: block;
    color: #f87171;
    font-size: 0.75rem;
    margin-top: 6px;
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Intersection Observer animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   RESPONSIVE — LARGE TABLET / SMALL LAPTOP (max-width: 1100px)
   The desktop nav runs out of room before the layout does, so the
   link row tightens up here rather than colliding with the logo.
   =================================== */
@media (max-width: 1100px) {
    .nav-links {
        gap: 2px;
    }

    .nav-link {
        padding: 8px 10px;
        font-size: 0.82rem;
    }

    .btn-consult {
        padding: 10px 14px !important;
    }

    .logo-name {
        font-size: 1.05rem;
    }
}

/* ===================================
   RESPONSIVE — TABLET (max-width: 1024px)
   =================================== */
@media (max-width: 1024px) {
    :root {
        --scroll-offset: 84px;
    }

    .hero {
        min-height: auto;
        padding: 72px 0 56px;
    }

    .hero-content {
        gap: 40px;
    }

    .hero-image-frame {
        width: clamp(240px, 30vw, 320px);
    }

    .hero-stats {
        gap: 16px;
        padding: 18px 20px;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* On one column the card + emblem read better side by side */
    .about-image-col {
        flex-direction: row;
        align-items: stretch;
        gap: 24px;
    }

    .about-card-display {
        flex: 1 1 60%;
        min-width: 0;
    }

    .about-emblem {
        flex: 0 0 200px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* ===================================
   RESPONSIVE — TABLET PORTRAIT & BELOW (max-width: 900px)
   Hamburger takes over here: five full-size links plus a CTA no
   longer fit beside the logo below this width.
   =================================== */
@media (max-width: 900px) {
    /* 900px-wide hero file: ~59KB vs ~124KB for the desktop one.
       Declared for both the JPEG and WebP paths. */
    .hero {
        background-image:
            linear-gradient(135deg, rgba(7,11,16,0.97) 0%, rgba(12,17,24,0.92) 40%, rgba(7,11,16,0.85) 100%),
            url('images/hero-bg-mobile.jpg');
    }

    @supports (background-image: image-set(url('images/hero-bg-mobile.webp') type('image/webp'))) {
        .hero {
            background-image:
                linear-gradient(135deg, rgba(7,11,16,0.97) 0%, rgba(12,17,24,0.92) 40%, rgba(7,11,16,0.85) 100%),
                image-set(url('images/hero-bg-mobile.webp') type('image/webp'));
        }
    }

    .hamburger {
        display: flex;
    }

    /* Full-screen menu overlay. Sits above the navbar (z-index 1000)
       so the sticky bar cannot cover the top of the panel. */
    .nav-links {
        display: flex;
        position: fixed;
        inset: 0;
        background: rgba(7, 11, 16, 0.985);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 6px;
        z-index: 1200;
        padding: max(96px, calc(env(safe-area-inset-top) + 96px)) 24px
                 max(32px, calc(env(safe-area-inset-bottom) + 32px));
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;

        /* Hidden by default without display:none, so it can animate
           and stay reachable to assistive tech ordering. */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links li {
        width: 100%;
        max-width: 420px;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 16px 24px;
        width: 100%;
        min-height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        border-bottom: 1px solid rgba(201, 168, 76, 0.08);
        border-radius: 0;
    }

    .nav-link::after {
        display: none;
    }

    .nav-links li:last-child .nav-link {
        border-bottom: none;
    }

    .btn-consult {
        margin-top: 20px;
        width: 100%;
        text-align: center;
        justify-content: center;
        display: flex !important;
        border-radius: var(--radius-sm) !important;
    }

    /* The logo stays visible and tappable above the open overlay so
       there is always a way back to the top of the page. */
    .navbar-inner .logo {
        position: relative;
        z-index: 1201;
    }

    /* Tighter section rhythm once the layout is single-column */
    .why-grid {
        gap: 16px;
    }

    .services-grid {
        gap: 18px;
    }

    .constitution-quote {
        padding: 30px 28px;
        gap: 18px;
    }
}

/* ===================================
   RESPONSIVE — MOBILE (max-width: 768px)
   =================================== */
@media (max-width: 768px) {
    :root {
        --scroll-offset: 76px;
    }

    /* Contact details move into the hero/contact cards on mobile,
       so the top bar is redundant here. */
    .top-bar {
        display: none;
    }

    .navbar {
        padding: 10px 0;
    }

    .logo-name {
        font-size: 1rem;
    }

    .logo-title {
        font-size: 0.6rem;
        letter-spacing: 1.5px;
    }

    .logo-emblem {
        width: 40px;
        height: 40px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    /* Hero */
    .hero {
        padding: 56px 0 40px;
        min-height: auto;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .hero-text {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-badge {
        padding: 7px 14px;
    }

    .hero-badge span {
        font-size: 0.7rem;
    }

    /* Three columns collapse unevenly with flex-wrap, so the stats
       become an even grid instead. */
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 16px 12px;
        width: 100%;
    }

    .stat-divider {
        display: none;
    }

    .stat-number {
        font-size: 1.15rem;
    }

    .stat-label {
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }

    .hero-buttons {
        justify-content: center;
        width: 100%;
        gap: 10px;
    }

    /* Call + WhatsApp share the first row, the consult CTA spans below */
    .hero-buttons .btn {
        flex: 1 1 calc(50% - 5px);
        min-width: 0;
        padding: 12px 14px;
    }

    .hero-buttons .btn-outline {
        flex-basis: 100%;
    }

    .hero-image-wrapper {
        order: -1;
        /* The desktop slide-in shifts horizontally, which reads as a
           layout jump on a narrow screen. Fade only. */
        animation: fadeInUp 0.6s var(--ease-out) 0.2s both;
        width: 100%;
    }

    .hero-image-frame {
        width: min(220px, 60vw);
        margin: 0 auto;
    }

    .hero-image-badge {
        font-size: 0.62rem;
        padding: 6px 12px;
        letter-spacing: 0.5px;
        max-width: 92vw;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .hero-floating-elements {
        display: none;
    }

    /* Trust Grid */
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .trust-item {
        padding: 18px;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Revert the tablet side-by-side card + emblem */
    .about-image-col {
        flex-direction: column;
        gap: 24px;
    }

    .about-emblem {
        flex: 1 1 auto;
    }

    .about-emblem img {
        width: 80px;
        height: 80px;
    }

    .about-intro {
        font-size: 1.15rem;
    }

    .about-highlights {
        margin: 24px 0;
        gap: 12px;
    }

    .constitution-quote blockquote p {
        font-size: 1.05rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 28px 20px 24px;
    }

    /* Why Choose */
    .why-grid {
        grid-template-columns: 1fr;
    }

    .constitution-quote {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }

    .quote-emblem {
        display: none;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    /* Footer */
    .footer-top {
        padding: 44px 0 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-links h4,
    .footer-contact-info h4 {
        margin-bottom: 14px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-disclaimer {
        text-align: center;
        max-width: 100%;
    }

    /* Keep the last footer line clear of the fixed WhatsApp button */
    .footer-bottom {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }

    /* WhatsApp Float */
    .whatsapp-float {
        bottom: max(16px, env(safe-area-inset-bottom));
        right: 16px;
        width: 52px;
        height: 52px;
    }

    .whatsapp-float i {
        font-size: 1.5rem;
    }

    .whatsapp-tooltip {
        display: none;
    }
}

/* ===================================
   RESPONSIVE — SMALL MOBILE (max-width: 480px)
   =================================== */
@media (max-width: 480px) {
    :root {
        --section-padding: 48px;
    }

    .container {
        padding: 0 16px;
    }

    .section-badge {
        font-size: 0.7rem;
        letter-spacing: 1.5px;
        padding: 5px 16px;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        flex: 1 1 auto;
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        width: 100%;
    }

    /* The phone number duplicates the label in a stacked layout */
    .hero-buttons .btn small {
        display: none;
    }

    /* Two columns read better than three cramped ones */
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 8px;
        text-align: center;
    }

    /* Third stat spans the full row */
    .hero-stats .stat-item:last-child {
        grid-column: 1 / -1;
    }

    .hero-image-frame {
        width: min(180px, 55vw);
    }

    .hero-badge {
        max-width: 100%;
    }

    .hero-badge span {
        font-size: 0.65rem;
        line-height: 1.4;
    }

    .highlight-item {
        padding: 12px 14px;
        gap: 12px;
    }

    .service-icon-wrap {
        width: 60px;
        height: 60px;
    }

    .service-icon-wrap i {
        font-size: 1.4rem;
    }

    .service-card {
        padding: 24px 18px 22px;
    }

    .why-card {
        padding: 24px 20px;
    }

    .why-number {
        font-size: 2rem;
    }

    .contact-card {
        padding: 16px;
        gap: 12px;
    }

    .contact-icon {
        width: 42px;
        height: 42px;
    }

    .contact-form-wrapper {
        padding: 20px 16px;
    }

    .contact-form-wrapper h3 {
        font-size: 1.2rem;
    }

    .constitution-quote {
        padding: 24px 18px;
    }

    .value-tag {
        font-size: 0.76rem;
        padding: 7px 13px;
    }

    /* Long email addresses must not force a horizontal scrollbar */
    .footer-contact-info p,
    .footer-contact-info a {
        overflow-wrap: break-word;
        min-width: 0;
    }

    .footer-contact-info p {
        align-items: flex-start;
    }

    .footer-contact-info i {
        margin-top: 6px;
    }
}

/* ===================================
   RESPONSIVE — VERY SMALL (max-width: 360px)
   =================================== */
@media (max-width: 360px) {
    .logo-emblem {
        width: 36px;
        height: 36px;
    }

    .logo-name {
        font-size: 0.9rem;
    }

    .logo-title {
        font-size: 0.55rem;
        letter-spacing: 1px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-stats .stat-item:last-child {
        grid-column: auto;
    }

    .btn {
        padding: 12px 18px;
        font-size: 0.82rem;
    }
}

/* ===================================
   LANDSCAPE PHONES
   A 100vh hero leaves no room in landscape, and the fixed
   overlay menu needs to scroll rather than centre.
   =================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 48px 0 32px;
    }

    .hero-content {
        flex-direction: row;
        text-align: left;
        gap: 28px;
    }

    .hero-text {
        align-items: flex-start;
    }

    .hero-image-wrapper {
        order: 0;
        width: auto;
    }

    .hero-image-frame {
        width: min(160px, 26vw);
    }

    /* Back to a single row — there is horizontal room in landscape
       even though the viewport is short. */
    .hero-stats {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 18px;
        padding: 14px 18px;
    }

    .hero-scroll-indicator,
    .hero-image-badge {
        display: none;
    }

    .nav-links {
        justify-content: flex-start;
        padding-top: 76px;
        padding-bottom: 24px;
    }

    .nav-link {
        min-height: 44px;
        padding: 10px 20px;
        font-size: 1rem;
    }

    .btn-consult {
        margin-top: 12px;
    }
}

/* ===================================
   REDUCED MOTION
   Several decorative animations loop forever; honour the OS setting.
   =================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }

    .hero-name {
        /* The shimmer relies on animation to reveal the gradient */
        background: none;
        -webkit-text-fill-color: var(--color-white);
        color: var(--color-white);
    }
}

/* ===================================
   HOVER-CAPABLE DEVICES ONLY
   Touch devices fire :hover on tap and leave the state stuck,
   so lift/translate effects are limited to real pointers.
   =================================== */
@media (hover: none) {
    .trust-item:hover,
    .service-card:hover,
    .why-card:hover,
    .contact-card:hover,
    .highlight-item:hover,
    .btn:hover,
    .footer-links a:hover,
    .footer-social a:hover,
    .whatsapp-float:hover {
        transform: none;
    }

    .about-card-display:hover img {
        transform: none;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .navbar,
    .top-bar,
    .whatsapp-float,
    .hero-floating-elements,
    .hero-scroll-indicator {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .hero {
        min-height: auto;
        padding: 40px 0;
    }
}
