/* ===================================
   Hussam Bakhsh Law Firm
   Navy + Gold Premium Redesign
   =================================== */

:root {
    /* Navy palette */
    --navy-900: #0d1b2a;
    --navy-800: #1b2d45;
    --navy-700: #274060;
    --navy-600: #3d5a80;

    /* Gold palette */
    --gold: #c9a84c;
    --gold-light: #ddc174;
    --gold-dark: #b89a3e;

    /* Neutrals */
    --cream: #f8f7f4;
    --cream-dark: #e8e6e1;
    --muted: #9a9790;
    --ink: #2c2c2c;
    --ink-soft: #5c5a56;

    --white: #ffffff;
    --whatsapp: #25d366;
    --whatsapp-dark: #1fb45a;

    /* Shadows — layered for realism */
    --shadow-sm: 0 1px 2px rgba(13, 27, 42, 0.06), 0 4px 12px rgba(13, 27, 42, 0.08);
    --shadow-md: 0 2px 4px rgba(13, 27, 42, 0.06), 0 12px 32px rgba(13, 27, 42, 0.10);
    --shadow-lg: 0 4px 8px rgba(13, 27, 42, 0.06), 0 24px 64px rgba(13, 27, 42, 0.12);

    /* Radii — tight and authoritative */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Layout */
    --container-max-width: 1200px;
    --nav-height: 72px;

    /* Type */
    --font-body: "IBM Plex Sans Arabic", sans-serif;
    --font-display: "Noto Kufi Arabic", sans-serif;

    /* Motion */
    --transition-base: 200ms ease;
    --transition-slow: 400ms ease;
}

/* ===== Reset ===== */

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

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

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    line-height: 1.8;
    overflow-x: hidden;
    min-height: 100vh;
    text-align: start;
}

body.menu-open {
    overflow: hidden;
}

::selection {
    background: rgba(201, 168, 76, 0.25);
    color: var(--navy-900);
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base), background-color var(--transition-base),
        border-color var(--transition-base), transform var(--transition-base),
        box-shadow var(--transition-base), opacity var(--transition-base);
}

ul {
    list-style: none;
}

button {
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

/* ===== Layout ===== */

.container {
    width: min(100%, var(--container-max-width));
    margin: 0 auto;
    padding-inline: 24px;
}

.section {
    position: relative;
    padding: clamp(5rem, 9vw, 7.5rem) 0;
    scroll-margin-top: var(--nav-height);
}

/* ===== Section Headers ===== */

.section-header {
    max-width: 700px;
    margin: 0 auto clamp(2.5rem, 5vw, 4rem);
    text-align: center;
}

.section-header-light .section-title,
.section-header-light .section-subtitle {
    color: var(--white);
}

.section-header-light .section-subtitle {
    opacity: 0.75;
}

.section-kicker {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    margin-bottom: 1rem;
    border: 1px solid var(--gold);
    color: var(--gold-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.section-header-light .section-kicker {
    border-color: rgba(201, 168, 76, 0.5);
    color: var(--gold-light);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.3;
    color: var(--navy-900);
    margin-bottom: 1rem;
    text-wrap: balance;
}

.section-subtitle {
    font-size: clamp(1rem, 1.6vw, 1.12rem);
    color: var(--ink-soft);
    line-height: 1.9;
}

/* ===== Buttons ===== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid transparent;
}

.btn-large {
    padding: 1rem 1.8rem;
    font-size: 1rem;
}

.btn-primary {
    color: var(--navy-900);
    background: var(--gold);
    border-color: var(--gold-dark);
    box-shadow: 0 2px 4px rgba(201, 168, 76, 0.2), 0 8px 24px rgba(201, 168, 76, 0.18);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(201, 168, 76, 0.25), 0 12px 32px rgba(201, 168, 76, 0.22);
}

.btn-secondary {
    color: var(--navy-900);
    border-color: var(--cream-dark);
    background: var(--white);
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
    transform: translateY(-1px);
}

.btn-whatsapp {
    color: var(--white);
    background: var(--whatsapp);
    border-color: var(--whatsapp-dark);
    box-shadow: 0 2px 4px rgba(37, 211, 102, 0.15), 0 8px 24px rgba(37, 211, 102, 0.18);
}

.btn-whatsapp:hover {
    background: var(--whatsapp-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.2), 0 12px 32px rgba(37, 211, 102, 0.22);
}

/* ===== Navbar ===== */

.navbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    transition: background-color var(--transition-base), box-shadow var(--transition-base),
        border-color var(--transition-base);
}

.navbar:not(.scrolled) {
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--cream-dark);
    box-shadow: 0 1px 3px rgba(13, 27, 42, 0.06);
}

.navbar .container {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    padding: 0.15rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    color: var(--navy-900);
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 1.3;
}

.brand-subtitle {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--muted);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.nav-link {
    position: relative;
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 0.92rem;
    padding-bottom: 0.25rem;
}

.nav-link::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition-base);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1.5px solid var(--gold);
    border-radius: var(--radius-sm);
    color: var(--gold-dark);
    font-weight: 700;
    font-size: 0.88rem;
    transition: background var(--transition-base), color var(--transition-base);
}

.btn-nav-cta:hover {
    background: var(--gold);
    color: var(--navy-900);
}

/* Mobile menu toggle — 2-line minimal hamburger */
.mobile-menu-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    border-radius: var(--radius-sm);
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--navy-900);
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
}

/* ===== Hero ===== */

.hero {
    position: relative;
    min-height: 100vh;
    padding-top: calc(var(--nav-height) + 4rem);
    padding-bottom: 4rem;
    overflow: hidden;
    background: var(--cream);
    scroll-margin-top: 0;
}

/* Diagonal gold accent line */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-end: -10%;
    width: 1px;
    height: 140%;
    background: linear-gradient(180deg, transparent 0%, var(--gold) 30%, var(--gold) 70%, transparent 100%);
    transform: rotate(-12deg);
    transform-origin: top center;
    opacity: 0.25;
    pointer-events: none;
}

/* Islamic geometric pattern overlay */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23b89a3e' stroke-width='1.8'%3E%3Crect x='15' y='15' width='70' height='70' transform='rotate(45 50 50)'/%3E%3Ccircle cx='50' cy='50' r='24'/%3E%3Cline x1='50' y1='0' x2='50' y2='100'/%3E%3Cline x1='0' y1='50' x2='100' y2='50'/%3E%3Cline x1='0' y1='0' x2='100' y2='100'/%3E%3Cline x1='100' y1='0' x2='0' y2='100'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 100px 100px;
    opacity: 0.07;
    pointer-events: none;
}

.hero-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 55% 1fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
}

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

.hero-eyebrow {
    display: inline-block;
    padding: 0.4rem 0;
    margin-bottom: 1.2rem;
    color: var(--gold-dark);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1.08;
    color: var(--navy-900);
    margin-bottom: 0.5rem;
    text-wrap: balance;
}

.hero-subtitle {
    color: var(--gold-dark);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Gold decorative line under subtitle */
.hero-subtitle::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin-top: 1rem;
}

.hero-description {
    max-width: 30rem;
    font-size: clamp(1rem, 1.6vw, 1.12rem);
    color: var(--ink-soft);
    margin-bottom: 2rem;
    line-height: 1.95;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

/* Hero tags — inline text with gold dot separators */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.hero-tags li {
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-tags li + li::before {
    content: "\00B7";
    display: inline-block;
    margin-inline: 0.6rem;
    color: var(--gold);
    font-weight: 900;
    font-size: 1.2rem;
    vertical-align: middle;
}

/* Hero media — clean photo + info */
.hero-media {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 420px;
    width: 100%;
}

.hero-portrait {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 0.88;
    background: var(--cream-dark);
}

.hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 24%;
}

.hero-portrait-fallback {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 4rem;
}

.hero-plaque {
    display: grid;
    gap: 0.4rem;
    padding: 1rem 1.2rem;
    border-radius: var(--radius-md);
    background: var(--navy-900);
    color: var(--white);
}

.plaque-label {
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero-plaque strong {
    font-size: 0.95rem;
    line-height: 1.8;
    font-weight: 500;
}

.hero-details {
    display: grid;
    gap: 0.5rem;
}

.hero-detail {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid var(--cream-dark);
}

.hero-detail dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.hero-detail dd {
    color: var(--navy-900);
    font-size: 0.92rem;
    font-weight: 600;
}

.hero-detail dd a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hero-detail dd a:hover {
    color: var(--gold-500);
}

.hero-detail dd a i {
    font-size: 0.8em;
    margin-inline-start: 0.25rem;
    opacity: 0.6;
}

/* ===== About ===== */

.about-section {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: start;
}

.about-story {
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.about-lead {
    font-size: clamp(1.12rem, 1.8vw, 1.3rem);
    color: var(--navy-900);
    line-height: 2;
    margin-bottom: 1rem;
}

.about-description {
    color: var(--ink-soft);
    line-height: 1.9;
}

.credential-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--navy-900);
    font-weight: 600;
    font-size: 0.92rem;
}

.credential-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--gold);
}

.about-principles {
    display: grid;
    gap: 0;
}

.principle-card {
    padding: 1.25rem 1.4rem;
    border-inline-end: 3px solid var(--gold);
    transition: background var(--transition-base);
}

.principle-card:hover {
    background: var(--cream);
}

.principle-number {
    display: inline-block;
    margin-bottom: 0.6rem;
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
}

.principle-card h3 {
    font-family: var(--font-display);
    font-size: 1.02rem;
    color: var(--navy-900);
    margin-bottom: 0.4rem;
}

.principle-card p {
    color: var(--ink-soft);
    font-size: 0.93rem;
    line-height: 1.8;
}

/* ===== Services ===== */

.services-section {
    background: var(--cream);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.service-card {
    position: relative;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid var(--cream-dark);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base),
        border-color var(--transition-base);
}

/* Gold left-border on hover (RTL = right side visually) */
.service-card::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 0;
    background: var(--gold);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    transition: width var(--transition-base);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(201, 168, 76, 0.3);
}

.service-card:hover::before {
    width: 4px;
}

.service-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 50%;
    color: var(--white);
    background: var(--navy-900);
    font-size: 1.05rem;
    transition: background var(--transition-base);
}

.service-card:hover .service-icon {
    background: var(--gold);
    color: var(--navy-900);
}

.service-title {
    font-family: var(--font-display);
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--navy-900);
    margin-bottom: 0.6rem;
}

.service-description {
    color: var(--ink-soft);
    font-size: 0.93rem;
    line-height: 1.8;
}

/* ===== Workflow ===== */

.workflow-section {
    color: var(--white);
    background: var(--navy-900);
    overflow: hidden;
}

.workflow-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* Horizontal dotted gold connector line */
.workflow-grid::before {
    content: "";
    position: absolute;
    top: 22px;
    inset-inline: 60px;
    height: 0;
    border-top: 2px dashed rgba(201, 168, 76, 0.35);
    z-index: 0;
}

.workflow-card {
    position: relative;
    z-index: 1;
    text-align: center;
}

.workflow-step {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: var(--navy-900);
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
}

.workflow-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.workflow-card p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.92rem;
    line-height: 1.8;
}

/* ===== Contact ===== */

.contact-section {
    background: var(--white);
}

.contact-shell {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2.5rem;
    align-items: start;
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    line-height: 1.4;
    color: var(--navy-900);
    margin-bottom: 1rem;
    text-wrap: balance;
}

.contact-description {
    max-width: 30rem;
    color: var(--ink-soft);
    margin-bottom: 1.5rem;
    line-height: 1.9;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.contact-panel {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--cream);
    border: 1px solid var(--cream-dark);
}

.contact-note {
    margin-bottom: 1.25rem;
    padding: 1.15rem;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid var(--cream-dark);
}

.contact-note h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--navy-900);
    margin-bottom: 0.8rem;
}

.contact-checklist {
    display: grid;
    gap: 0.6rem;
}

.contact-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: var(--ink-soft);
    font-size: 0.93rem;
}

.contact-checklist li::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    margin-top: 0.6rem;
    border-radius: 50%;
    background: var(--gold);
}

.contact-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.contact-detail-card {
    display: grid;
    gap: 0.4rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--cream-dark);
    transition: transform var(--transition-base);
}

.contact-detail-card:hover {
    transform: translateY(-2px);
}

.contact-detail-card span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.contact-detail-card strong {
    line-height: 1.7;
    font-size: 0.93rem;
    color: var(--navy-900);
}

.contact-map-card {
    display: grid;
    gap: 1rem;
    grid-column: 1 / -1;
    padding: 1.15rem;
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--cream-dark);
    box-shadow: var(--shadow-sm);
}

.contact-map-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.contact-map-copy {
    display: grid;
    gap: 0.3rem;
}

.contact-map-copy span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.contact-map-copy strong {
    line-height: 1.7;
    font-size: 1rem;
    color: var(--navy-900);
}

.contact-map-copy p {
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.8;
}

.contact-map-frame {
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid var(--cream-dark);
    min-height: 380px;
    background: var(--cream-dark);
}

.contact-map-frame iframe {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
    display: block;
}

.contact-map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    min-height: 44px;
    padding: 0.7rem 1.1rem;
    border-radius: var(--radius-sm);
    color: var(--white);
    font-weight: 700;
    font-size: 0.88rem;
    background: var(--navy-900);
    transition: background var(--transition-base), transform var(--transition-base);
}

.contact-map-link:hover {
    background: var(--navy-800);
    transform: translateY(-1px);
    color: var(--white);
}

/* ===== Footer ===== */

.footer {
    padding: 2.5rem 0 1.2rem;
    color: rgba(255, 255, 255, 0.75);
    background: var(--navy-900);
}

.footer-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
}

.footer-brand h3 {
    font-family: var(--font-display);
    color: var(--white);
    margin-bottom: 0.3rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.55);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.4rem;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--gold);
}

.footer-contact {
    display: grid;
    justify-items: end;
    gap: 0.3rem;
    text-align: end;
}

.footer-bottom {
    padding-top: 1.2rem;
    border-top: 1px solid var(--gold);
    border-image: linear-gradient(to left, transparent, var(--gold), transparent) 1;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.88rem;
}

/* ===== Floating elements ===== */

.floating-whatsapp,
.scroll-to-top {
    position: fixed;
    bottom: 24px;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 950;
}

.floating-whatsapp {
    inset-inline-end: 24px;
    color: var(--white);
    background: var(--whatsapp);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.floating-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.floating-whatsapp i {
    font-size: 1.6rem;
}

.scroll-to-top {
    inset-inline-start: 24px;
    color: var(--navy-900);
    background: var(--white);
    border: 1px solid var(--cream-dark);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--transition-base), visibility var(--transition-base),
        transform var(--transition-base);
}

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

.scroll-to-top:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
}

/* ===== Reveal animations ===== */

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
[data-reveal-stagger] > [data-reveal] {
    transition-delay: calc(var(--reveal-i, 0) * 80ms);
}

/* WhatsApp pulse */
@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3); }
    50% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3), 0 0 0 8px rgba(37, 211, 102, 0.12); }
}

.floating-whatsapp.pulse {
    animation: wa-pulse 2.5s ease-in-out infinite;
}

/* ===== Keyboard a11y ===== */

.keyboard-navigation :focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* ===== Responsive ===== */

@media (max-width: 1080px) {
    .hero-shell {
        grid-template-columns: 1fr;
    }

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

    .hero-media {
        max-width: 500px;
    }

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

    .workflow-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .workflow-grid::before {
        display: none;
    }

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

@media (max-width: 920px) {
    .mobile-menu-toggle {
        display: inline-flex;
        z-index: 1100;
    }

    /* Full-screen mobile menu overlay — positioned on body via portal-like z-index */
    .nav-menu {
        position: fixed;
        inset: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        padding-bottom: 5rem;
        background: var(--navy-900);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1050;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-menu .nav-link {
        color: rgba(255, 255, 255, 0.75);
        font-size: 1.4rem;
        padding: 0.3rem 0;
    }

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

    .nav-menu .nav-link::after {
        background: var(--gold);
    }

    .nav-menu .btn-nav-cta {
        border-color: var(--gold);
        color: var(--navy-900);
        background: var(--gold);
        font-size: 1.15rem;
        padding: 0.85rem 2rem;
        margin-top: 0.5rem;
    }

    .nav-menu .btn-nav-cta:hover {
        background: var(--gold-light);
    }

    /* Staggered fade-in */
    .nav-menu li {
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu.active li:nth-child(1) { transition-delay: 0.05s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.15s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.25s; }

    .mobile-menu-toggle.active span {
        background: var(--white);
    }

    /* Mobile sticky CTA bar */
    .mobile-cta-bar {
        display: flex;
    }
}

/* ===== Mobile sticky CTA bar ===== */

.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    z-index: 940;
    padding: 0.65rem 1rem;
    padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
    background: var(--white);
    border-top: 1px solid var(--cream-dark);
    box-shadow: 0 -2px 12px rgba(13, 27, 42, 0.08);
    gap: 0.5rem;
}

.mobile-cta-bar .cta-wa {
    flex: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--whatsapp);
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
}

.mobile-cta-bar .cta-call {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--navy-900);
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
}

@media (max-width: 720px) {
    .hero {
        min-height: auto;
        padding-top: calc(var(--nav-height) + 2.5rem);
    }

    .hero::before {
        display: none;
    }

    .hero-portrait {
        min-height: 340px;
    }

    .credential-list,
    .contact-details-grid,
    .services-grid,
    .workflow-grid {
        grid-template-columns: 1fr;
    }

    .workflow-grid::before {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-map-header {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-map-link {
        justify-content: center;
        width: 100%;
    }

    .contact-map-frame,
    .contact-map-frame iframe {
        min-height: 300px;
    }

    .footer-contact {
        justify-items: start;
        text-align: start;
    }
}

@media (max-width: 640px) {
    .container {
        padding-inline: 18px;
    }

    .hero-buttons,
    .contact-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn,
    .btn-large {
        width: 100%;
    }

    .hero-tags {
        gap: 0;
    }

    /* Hide standalone floating WA — replaced by sticky CTA bar */
    .floating-whatsapp {
        display: none;
    }

    .scroll-to-top {
        width: 46px;
        height: 46px;
        bottom: calc(70px + env(safe-area-inset-bottom, 0px));
        inset-inline-start: 14px;
    }

    /* Add bottom padding so footer isn't hidden behind sticky bar */
    .footer {
        padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
    }
}

/* ===== Language-specific overrides ===== */

html[lang="en"], html[lang="id"], html[lang="tr"], html[lang="fr"], html[lang="tl"] {
    --font-body: "Inter", sans-serif;
    --font-display: "Inter", sans-serif;
}

html[lang="bn"] {
    --font-body: "Noto Sans Bengali", sans-serif;
    --font-display: "Noto Sans Bengali", sans-serif;
}

html[lang="hi"] {
    --font-body: "Noto Sans Devanagari", sans-serif;
    --font-display: "Noto Sans Devanagari", sans-serif;
}

html[lang="ur"] {
    --font-body: "Noto Nastaliq Urdu", serif;
    --font-display: "Noto Nastaliq Urdu", serif;
    line-height: 2.2;
}

/* ===== Language Switcher ===== */

.lang-switcher {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.lang-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 32px;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink-soft);
    border: 1px solid transparent;
    transition: color var(--transition-base), border-color var(--transition-base), background var(--transition-base);
}

.lang-link:hover {
    color: var(--navy-900);
    border-color: var(--cream-dark);
}

.lang-link[aria-current="page"] {
    color: var(--gold-dark);
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.08);
}

@media (max-width: 920px) {
    .lang-switcher {
        order: -1;
    }

    .nav-menu.active ~ .lang-switcher .lang-link,
    .nav-menu.active + .lang-switcher .lang-link {
        color: rgba(255, 255, 255, 0.75);
    }

    .nav-menu.active ~ .lang-switcher .lang-link[aria-current="page"],
    .nav-menu.active + .lang-switcher .lang-link[aria-current="page"] {
        color: var(--gold);
        border-color: var(--gold);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0ms !important;
        scroll-behavior: auto !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
