/* ===================================
   Modern Mortgage Website Styles
   Clean, Professional, Responsive
   =================================== */

/* ========== CSS Variables ========== */
:root {
    /* Colors - Professional Dark Maroon Theme */
    --primary-color: #6B0F1A;
    --primary-dark: #4A0A0F;
    --primary-light: #8B2635;
    --secondary-color: #D4AF37;
    --accent-color: #C19A6B;
    
    /* Text Colors - Enhanced Contrast for Readability */
    --text-primary: #212121;
    --text-secondary: #424242;
    --text-light: #616161;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f9f6f6;
    --bg-alt: #fdf9f9;
    --bg-dark: #2a1114;
    
    /* Border & Shadows */
    --border-color: #e5e5e5;
    --border-light: #f0f0f0;
    --shadow-sm: 0 2px 8px rgba(107, 15, 26, 0.08);
    --shadow-md: 0 4px 16px rgba(107, 15, 26, 0.1);
    --shadow-lg: 0 8px 32px rgba(107, 15, 26, 0.12);
    
    /* Typography - Improved Sizes */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    
    --font-size-xs: 0.8125rem;    /* 13px */
    --font-size-sm: 0.9375rem;    /* 15px */
    --font-size-base: 1.0625rem;  /* 17px - More readable */
    --font-size-lg: 1.1875rem;    /* 19px */
    --font-size-xl: 1.375rem;     /* 22px */
    --font-size-2xl: 1.625rem;    /* 26px */
    --font-size-3xl: 2rem;        /* 32px */
    --font-size-4xl: 2.5rem;      /* 40px */
    --font-size-5xl: 3.25rem;     /* 52px */
    
    /* Spacing - Consistent */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;
    
    /* Layout */
    --container-width: 1200px;
    --border-radius-sm: 6px;
    --border-radius-md: 10px;
    --border-radius-lg: 14px;
    --border-radius-xl: 18px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Header */
    --header-height: 80px;
}

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

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

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    opacity: 0;
    animation: bodyPageIn 0.55s ease 0.05s forwards;
}

@keyframes bodyPageIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

h1 { 
    font-size: var(--font-size-5xl);
    line-height: 1.2;
}
h2 { 
    font-size: var(--font-size-4xl);
    line-height: 1.25;
}
h3 { 
    font-size: var(--font-size-3xl);
}
h4 { 
    font-size: var(--font-size-2xl);
}
h5 { 
    font-size: var(--font-size-xl);
}
h6 { 
    font-size: var(--font-size-lg);
}

p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    image-rendering: -webkit-optimize-contrast;
}

::selection {
    background-color: var(--primary-color);
    color: #ffffff;
}

:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--spacing-md);
    z-index: 10000;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    transition: top var(--transition-base);
}

.skip-link:focus {
    top: var(--spacing-md);
}

/* Responsive Image Containers */
.about-image,
.team__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

ul {
    list-style: none;
}

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

/* ========== Utility Classes ========== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.section {
    padding: var(--spacing-4xl) 0;
}

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

.section__header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto var(--spacing-3xl);
}

.section__title {
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 100%;
    border-radius: 2px;
    animation: sectionTitleUnderline 10s ease-in-out infinite;
}

.section__subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-top: var(--spacing-md);
}

.section__description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    white-space: nowrap;
    border: none;
    line-height: 1.5;
    box-sizing: border-box;
}

.btn--primary {
    background: var(--primary-color);
    color: #ffffff !important;
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left var(--transition-slow);
}

.btn--primary:hover::before {
    left: 100%;
}

.btn--primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: #ffffff !important;
}

.btn--secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.btn--secondary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff !important;
    box-shadow: var(--shadow-sm);
}

.btn--large {
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: var(--font-size-lg);
    font-weight: 600;
}

/* ========== Header & Navigation ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(107, 15, 26, 0.08);
    z-index: 1000;
    transition: all var(--transition-base);
    border-bottom: 1px solid rgba(107, 15, 26, 0.05);
}

.header.scroll-header {
    box-shadow: 0 6px 28px rgba(42, 17, 20, 0.14);
    border-bottom-color: transparent;
}

.header.scroll-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.65), transparent);
    pointer-events: none;
}

.header.scroll-header .nav {
    height: 65px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    transition: height var(--transition-base);
}

.nav__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(42, 17, 20, 0.55);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.nav__overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

@media screen and (max-width: 768px) {
    .nav__overlay {
        display: block;
    }
}

.nav__logo-text {
    font-family: var(--font-heading);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-color);
}

.nav__logo-img {
    height: 60px;
    width: auto;
    display: block;
    transition: transform var(--transition-base);
}

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

@media screen and (max-width: 768px) {
    .nav__logo-img {
        height: 45px;
    }
}

.nav__list {
    display: flex;
    align-items: center;
    gap: var(--spacing-2xl);
}

.nav__link {
    font-weight: 500;
    color: var(--text-primary);
    padding: var(--spacing-sm) 0;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link.active {
    color: var(--primary-color);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 0.75rem;
    z-index: 999;
}

.nav__link--dropdown {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav__chevron {
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.dropdown:hover .nav__chevron {
    transform: rotate(180deg);
}

.dropdown__menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-sm);
    padding-top: calc(var(--spacing-sm) + 0.25rem);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base);
    margin-top: 0;
}

.dropdown__menu::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 0;
    right: 0;
    height: 0.5rem;
}

.dropdown:hover .dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown__menu li {
    margin: 0;
}

.dropdown__menu a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-primary);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
    font-size: var(--font-size-sm);
}

.dropdown__menu a:hover {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
    padding-left: calc(var(--spacing-md) + 4px);
}

/* Nav Actions */
.nav__actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav__phone {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    font-weight: 600;
    color: var(--text-primary);
    transition: all var(--transition-base);
}

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

.nav__phone svg {
    color: var(--primary-color);
}

.nav__phone:hover svg {
    color: white;
}

.nav__toggle,
.nav__close {
    display: none;
    cursor: pointer;
    color: var(--text-primary);
    background: none;
    padding: var(--spacing-xs);
    border-radius: var(--border-radius-sm);
}

@keyframes sectionTitleUnderline {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ========== Hero Section ========== */
.hero {
    margin-top: var(--header-height);
    padding: var(--spacing-3xl) 0 var(--spacing-2xl);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #0d0506;
    color: #fff;
}

.hero__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero__photo {
    position: absolute;
    inset: -12%;
    width: 124%;
    height: 124%;
    object-fit: cover;
    object-position: 58% 42%;
    z-index: 0;
    animation: heroKenBurns 32s ease-in-out infinite alternate;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 55% center;
    z-index: 1;
    opacity: 0;
    transition: opacity 1.4s ease;
}

.hero__video.hero__video--ready {
    opacity: 1;
}

.hero__video.hero__video--hidden,
.hero__video.hero__video--off {
    display: none;
}

.hero__backdrop-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(105deg, rgba(18, 6, 8, 0.91) 0%, rgba(42, 17, 20, 0.72) 42%, rgba(13, 5, 6, 0.88) 100%),
        linear-gradient(180deg, rgba(13, 5, 6, 0.2) 0%, rgba(13, 5, 6, 0.65) 100%);
    pointer-events: none;
}

@keyframes heroKenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.07) translate(-1.2%, -0.8%);
    }
}

.hero__backdrop:has(.hero__video--ready) .hero__photo {
    animation: none;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
}

.hero__bg-pattern {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.12;
    background-image:
        linear-gradient(30deg, rgba(255, 255, 255, 0.06) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.06) 87.5%, rgba(255, 255, 255, 0.06) 100%),
        linear-gradient(150deg, rgba(255, 255, 255, 0.06) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.06) 87.5%, rgba(255, 255, 255, 0.06) 100%),
        linear-gradient(30deg, rgba(255, 255, 255, 0.04) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.04) 87.5%, rgba(255, 255, 255, 0.04) 100%),
        linear-gradient(150deg, rgba(255, 255, 255, 0.04) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.04) 87.5%, rgba(255, 255, 255, 0.04) 100%);
    background-size: 48px 84px;
    pointer-events: none;
}

.hero__bg-svg {
    position: absolute;
    right: -4%;
    top: 50%;
    width: min(52vw, 520px);
    max-height: 85%;
    opacity: 0.14;
    color: var(--secondary-color);
    pointer-events: none;
    z-index: 1;
    animation: heroSvgDrift 22s ease-in-out infinite alternate;
}

@keyframes heroSvgDrift {
    0% {
        transform: translateY(-50%) translateX(0);
    }
    100% {
        transform: translateY(-50%) translateX(-18px);
    }
}

.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: heroGlowFloat 8s ease-in-out infinite;
    z-index: 1;
}

.hero__glow--1 {
    width: min(42vw, 340px);
    height: min(42vw, 340px);
    top: 10%;
    right: 8%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.45) 0%, transparent 70%);
}

.hero__glow--2 {
    width: min(28vw, 220px);
    height: min(28vw, 220px);
    bottom: 18%;
    left: 5%;
    background: radial-gradient(circle, rgba(193, 154, 107, 0.35) 0%, transparent 70%);
    animation-delay: -4s;
}

@keyframes heroGlowFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(12px, -18px) scale(1.06);
    }
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-3xl);
}

.hero__title {
    margin-bottom: var(--spacing-lg);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.12;
    color: #ffffff;
}

.hero__title-accent {
    background: linear-gradient(135deg, #f5e6a8 0%, var(--secondary-color) 45%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.hero__title-animate {
    display: inline-block;
    opacity: 0;
    transform: translateX(-36px);
    animation: heroTitleIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__title-animate--2 {
    animation-delay: 0.12s;
}

@keyframes heroTitleIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes heroTitleInMobile {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__description {
    font-size: var(--font-size-xl);
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.7;
    opacity: 0;
    animation: heroFadeIn 0.7s ease 0.35s forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
    }
}

.hero__buttons {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.hero__buttons .btn {
    opacity: 0;
    transform: translateY(22px);
    animation: heroBtnUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__buttons .btn:nth-child(1) {
    animation-delay: 0.5s;
}

.hero__buttons .btn:nth-child(2) {
    animation-delay: 0.62s;
}

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

.hero .btn--secondary {
    border-color: rgba(255, 255, 255, 0.85);
    color: #fff !important;
}

.hero .btn--secondary:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff !important;
}

.hero__features {
    display: flex;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    opacity: 0;
    animation: heroFadeIn 0.5s ease forwards;
}

.feature:nth-child(1) {
    animation-delay: 0.75s;
}

.feature:nth-child(2) {
    animation-delay: 0.88s;
}

.feature:nth-child(3) {
    animation-delay: 1s;
}

.feature svg {
    color: var(--secondary-color);
    flex-shrink: 0;
}

.hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.hero__illustration {
    width: 100%;
    max-width: 420px;
    height: auto;
    color: rgba(255, 255, 255, 0.92);
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.35));
    animation: heroIllustrationBreathe 5.5s ease-in-out infinite;
}

@keyframes heroIllustrationBreathe {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

.hero__scroll {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero__scroll svg {
    animation: heroScrollBounce 1.6s ease-in-out infinite;
}

@keyframes heroScrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

.hero__scroll:hover {
    color: var(--secondary-color);
}

/* Inner pages — same backdrop treatment, compact height, centered copy */
.hero.hero--inner {
    min-height: clamp(320px, 48vh, 540px);
    padding: var(--spacing-3xl) 0 var(--spacing-2xl);
    justify-content: center;
}

.hero--inner .hero__container {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

.hero--inner .hero__content {
    max-width: 840px;
}

.hero--inner .hero__title {
    margin-bottom: var(--spacing-lg);
    font-size: clamp(2.15rem, 4.5vw, 3.1rem);
}

.hero--inner .hero__description {
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
    max-width: 640px;
}

.hero--inner .hero__buttons {
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-2xl);
    margin-bottom: 0;
}

.hero--inner .hero__bg-svg {
    width: min(58vw, 400px);
    opacity: 0.11;
    right: -8%;
}

.hero--inner .hero__scroll {
    bottom: var(--spacing-sm);
}

/* Per-route hero art: focal point + light layout/mood differences */
.hero--about .hero__photo,
.hero--about .hero__video {
    object-position: 50% 32%;
}

.hero--calculator .hero__photo,
.hero--calculator .hero__video {
    object-position: 48% 42%;
}

.hero--calculator .hero__bg-svg {
    right: -10%;
    opacity: 0.1;
}

.hero--contact .hero__photo,
.hero--contact .hero__video {
    object-position: 52% center;
}

.hero--team .hero__photo,
.hero--team .hero__video {
    object-position: 50% 22%;
}

.hero--team .hero__bg-svg {
    width: min(64vw, 460px);
}

.hero--loan-options .hero__photo,
.hero--loan-options .hero__video {
    object-position: 50% 36%;
}

.hero--conventional .hero__photo,
.hero--conventional .hero__video {
    object-position: 50% 48%;
}

.hero--fha .hero__photo,
.hero--fha .hero__video {
    object-position: 50% 38%;
}

.hero--va .hero__photo,
.hero--va .hero__video {
    object-position: 55% 52%;
}

.hero--fixed-rate .hero__photo,
.hero--fixed-rate .hero__video {
    object-position: 50% 46%;
}

.hero--arm .hero__photo,
.hero--arm .hero__video {
    object-position: 50% 30%;
}

.hero--arm .hero__backdrop-overlay {
    background:
        linear-gradient(112deg, rgba(14, 12, 22, 0.9) 0%, rgba(42, 17, 20, 0.74) 44%, rgba(13, 5, 6, 0.9) 100%),
        linear-gradient(180deg, rgba(13, 5, 6, 0.15) 0%, rgba(13, 5, 6, 0.68) 100%);
}

.hero--arm .hero__bg-svg {
    opacity: 0.09;
    color: rgba(255, 255, 255, 0.85);
}

/* ========== Trust badges ========== */
.trust-badges {
    padding: var(--spacing-xl) 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
}

.trust-badges__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2xl) var(--spacing-3xl);
}

.trust-badges__item {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-md);
    color: var(--text-primary);
    font-weight: 600;
    font-size: var(--font-size-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    margin: calc(-1 * var(--spacing-sm)) calc(-1 * var(--spacing-md));
    border-radius: var(--border-radius-md);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), color 0.25s ease;
}

.trust-badges__item:hover {
    transform: translateY(-4px);
    color: var(--primary-color);
}

.trust-badges__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-md);
    background: linear-gradient(135deg, rgba(107, 15, 26, 0.08), rgba(212, 175, 55, 0.12));
    color: var(--primary-color);
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.trust-badges__item:hover .trust-badges__icon {
    transform: scale(1.08);
    box-shadow: 0 10px 28px rgba(107, 15, 26, 0.14);
}

.trust-badges__icon svg {
    width: 24px;
    height: 24px;
}

/* ========== Testimonials ========== */
.testimonials {
    background-color: var(--bg-primary);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.testimonial__card {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--secondary-color);
    position: relative;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

.testimonial__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(107, 15, 26, 0.12);
}

.testimonial__quote-icon {
    color: rgba(107, 15, 26, 0.15);
    margin-bottom: var(--spacing-md);
}

.testimonial__quote-icon svg {
    width: 48px;
    height: 48px;
}

.testimonial__text {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-base);
}

.testimonial__stars {
    display: flex;
    gap: 4px;
    margin-bottom: var(--spacing-md);
    color: var(--secondary-color);
}

.testimonial__stars svg {
    width: 18px;
    height: 18px;
}

.testimonial__name {
    font-family: var(--font-primary);
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.testimonial__role {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin: 0;
}

/* ========== Services Section ========== */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}

.service__card {
    background-color: var(--bg-primary);
    padding: var(--spacing-2xl) var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: background-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform var(--transition-base);
    transform-origin: left;
}

.service__card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(107, 15, 26, 0.06) 0%, transparent 55%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.service__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(107, 15, 26, 0.15);
    border-color: rgba(107, 15, 26, 0.2);
    background: linear-gradient(180deg, rgba(107, 15, 26, 0.04) 0%, var(--bg-primary) 38%);
}

.service__card:hover::before {
    transform: scaleX(1);
}

.service__card:hover::after {
    opacity: 1;
}

.service__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
    transition: transform var(--transition-base);
}

.service__card:hover .service__icon {
    transform: scale(1.08) rotate(-4deg);
}

.service__title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-md);
}

.service__description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.service__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--primary-color);
    font-weight: 600;
    transition: color var(--transition-base), gap var(--transition-base), transform var(--transition-base);
    position: relative;
    z-index: 1;
    margin-top: auto;
}

.service__link:hover {
    color: var(--primary-dark);
    gap: 0.55rem;
    transform: translateX(4px);
}

/* ========== Why Choose Us Section ========== */
.why-choose__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    align-items: center;
}

.why-choose__intro {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.7;
}

.benefits__list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.benefits__item {
    display: flex;
    gap: var(--spacing-lg);
}

.benefits__item svg {
    flex-shrink: 0;
    color: var(--secondary-color);
    margin-top: 4px;
}

.benefits__item h4 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-primary);
}

.benefits__item p {
    color: var(--text-secondary);
}

.why-choose__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
}

.stat__card {
    background: linear-gradient(135deg, #ffffff 0%, #faf7f7 100%);
    padding: var(--spacing-2xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-base);
    border: 1px solid rgba(107, 15, 26, 0.08);
    position: relative;
    overflow: hidden;
}

.stat__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.stat__card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 35px rgba(107, 15, 26, 0.15);
    border-color: rgba(212, 175, 55, 0.3);
}

.stat__number {
    font-size: var(--font-size-4xl);
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.stat__label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========== Process Section ========== */
.process {
    background-color: var(--bg-secondary);
}

.process__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-3xl);
    position: relative;
}

.process__grid::before {
    content: '';
    position: absolute;
    top: calc(40px + var(--spacing-lg));
    left: 12%;
    right: 12%;
    height: 0;
    border-top: 2px dashed rgba(107, 15, 26, 0.2);
    z-index: 0;
    pointer-events: none;
}

.process__grid::after {
    content: '';
    position: absolute;
    top: calc(40px + var(--spacing-lg));
    left: 12%;
    width: 76%;
    height: 0;
    border-top: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color)) 1;
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

.process__step {
    text-align: center;
    padding: var(--spacing-2xl);
    background-color: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
    position: relative;
    z-index: 1;
}

.process__step:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(107, 15, 26, 0.15);
}

.process__number {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-4xl);
    font-weight: 700;
    font-family: var(--font-heading);
    box-shadow: 0 4px 20px rgba(107, 15, 26, 0.2);
    position: relative;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.process__number::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.35) 0%, transparent 70%);
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-base);
}

.process__step:hover .process__number::after {
    opacity: 1;
}

.process__number--pulse {
    animation: processNumberPulse 0.9s ease-out 1;
}

@keyframes processNumberPulse {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

.process__step h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.process__step p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

@media screen and (max-width: 768px) {
    .process__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
}

/* ========== CTA Section ========== */
.cta {
    background: linear-gradient(135deg, #6B0F1A 0%, #4A0A0F 50%, #2a0508 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta__content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta__title {
    color: white;
    margin-bottom: var(--spacing-lg);
}

.cta__description {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-2xl);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    font-weight: 400;
}

.cta__buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
}

.cta .btn--primary {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-primary) !important;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.cta .btn--primary:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-primary) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(193, 154, 107, 0.5);
}

.cta .btn--secondary {
    border-color: var(--bg-primary);
    color: var(--bg-primary) !important;
    background-color: transparent;
    font-weight: 600;
}

.cta .btn--secondary:hover {
    background-color: var(--bg-primary);
    color: var(--primary-color) !important;
    border-color: var(--bg-primary);
}

.cta--split .cta__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--spacing-3xl);
    align-items: center;
    max-width: none;
    margin: 0;
    position: relative;
    z-index: 1;
}

.cta--split .cta__copy {
    text-align: left;
}

.cta--split .cta__buttons {
    justify-content: flex-start;
}

.cta__figure {
    margin: 0;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.cta__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ========== Inline content imagery ========== */
.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.content-split__figure {
    margin: 0;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
}

.content-split__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.content-split__eyebrow {
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.content-split__body .section__title {
    text-align: left;
    display: block;
}

.content-split__body .section__title::after {
    left: 0;
    transform: none;
}

.content-split__text {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-lg);
}

.content-split__text:last-child {
    margin-bottom: 0;
}

.content-split--reverse .content-split__figure {
    order: 2;
}

.content-split--reverse .content-split__body {
    order: 1;
}

.content-band {
    width: 100%;
    margin: 0 auto var(--spacing-3xl);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 21 / 8;
    min-height: 160px;
    max-height: 320px;
}

.content-band img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    display: block;
}

.service__card-thumb {
    height: 152px;
    margin: calc(-1 * var(--spacing-2xl)) calc(-1 * var(--spacing-xl)) var(--spacing-lg);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    overflow: hidden;
}

.service__card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.service__card:hover .service__card-thumb img {
    transform: scale(1.06);
}

/* ========== Footer ========== */
.footer {
    background: linear-gradient(180deg, #2a1114 0%, #1a0a0c 100%);
    color: #c4b5b7;
    padding: var(--spacing-4xl) 0 var(--spacing-xl);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-3xl) var(--spacing-4xl);
    margin-bottom: var(--spacing-3xl);
}

.footer__brand {
    margin-bottom: var(--spacing-md);
}

.footer__logo-link {
    display: inline-block;
    line-height: 0;
}

.footer__logo-img {
    height: 56px;
    width: auto;
    display: block;
}

.footer__logo {
    font-family: var(--font-heading);
    font-size: var(--font-size-2xl);
    color: white;
    margin-bottom: var(--spacing-md);
}

.footer__logo--sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.footer__description {
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.footer__phone {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: white;
    font-weight: 600;
    font-size: var(--font-size-lg);
    transition: color var(--transition-base);
}

.footer__phone:hover {
    color: var(--primary-light);
}

.footer__email {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: white;
    font-weight: 600;
    font-size: var(--font-size-base);
    margin-top: var(--spacing-md);
    word-break: break-word;
}

.footer__email:hover {
    color: var(--secondary-color);
}

.footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #c4b5b7;
    transition: background var(--transition-base), color var(--transition-base), transform var(--transition-base);
}

.footer__social a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.footer__social svg {
    width: 20px;
    height: 20px;
}

.footer__compliance {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    align-items: center;
    justify-content: space-between;
    font-size: var(--font-size-sm);
    color: #909090;
}

.footer__eh {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer__eh svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: var(--secondary-color);
}

.footer__title {
    color: white;
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-primary);
    font-weight: 600;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer__links a {
    color: #b0b0b0;
    transition: all var(--transition-base);
    display: inline-block;
}

.footer__links a:hover {
    color: white;
    padding-left: 4px;
}

.footer__bottom {
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__copyright {
    color: #808080;
}

.footer__legal {
    display: flex;
    gap: var(--spacing-xl);
}

.footer__legal a {
    color: #808080;
    font-size: var(--font-size-sm);
}

.footer__legal a:hover {
    color: white;
}

/* ========== Responsive Design ========== */
@media screen and (max-width: 1024px) {
    :root {
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
    }
    
    .hero__container {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .hero__image {
        order: -1;
    }
    
    .why-choose__content {
        grid-template-columns: 1fr;
    }
    
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    :root {
        --header-height: 70px;
        --spacing-4xl: 4rem;
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
    }
    
    .container {
        padding: 0 var(--spacing-lg);
    }
    
    .section {
        padding: var(--spacing-3xl) 0;
    }
    
    /* Mobile Navigation */
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 350px;
        height: 100vh;
        background-color: white;
        padding: var(--spacing-3xl) var(--spacing-xl);
        box-shadow: var(--shadow-lg);
        transition: right var(--transition-slow);
        z-index: 1001;
    }
    
    .nav__menu.show {
        right: 0;
    }
    
    .nav__list {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: flex-start;
    }
    
    .nav__link {
        font-size: var(--font-size-lg);
    }
    
    .nav__close {
        display: block;
        position: absolute;
        top: var(--spacing-lg);
        right: var(--spacing-lg);
    }
    
    .nav__toggle {
        display: block;
    }
    
    .nav__phone span {
        display: none;
    }
    
    .dropdown__menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 var(--spacing-lg);
        margin-top: 0;
        display: block;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
    }
    
    .dropdown.active .dropdown__menu {
        max-height: 560px;
        padding: var(--spacing-sm) 0 var(--spacing-sm) var(--spacing-lg);
    }
    
    /* Hero */
    .hero__buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero__buttons .btn {
        width: 100%;
    }
    
    .hero__features {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    /* Services */
    .services__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    /* Stats */
    .why-choose__stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    /* CTA */
    .cta__buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta__buttons .btn {
        width: 100%;
    }
    
    /* Footer */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
}

@media screen and (max-width: 480px) {
    :root {
        --font-size-5xl: 2rem;
        --font-size-4xl: 1.75rem;
        --font-size-3xl: 1.5rem;
        --font-size-base: 1rem;
        --spacing-4xl: 3rem;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .section {
        padding: var(--spacing-2xl) 0;
    }
    
    .btn {
        width: 100%;
        font-size: var(--font-size-sm);
        padding: var(--spacing-md) var(--spacing-lg);
    }
    
    .nav__logo-text {
        font-size: var(--font-size-xl);
    }
    
}

/* ========== Scroll reveal ========== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal--left {
    transform: translateX(-32px);
}

.reveal--right {
    transform: translateX(32px);
}

.reveal--up {
    transform: translateY(28px);
}

.reveal--scale {
    transform: scale(0.96);
}

.reveal.reveal--visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* ========== Back to top ========== */
.back-to-top {
    position: fixed;
    right: var(--spacing-lg);
    bottom: var(--spacing-lg);
    z-index: 998;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    box-shadow: var(--shadow-lg);
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

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

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 12px 32px rgba(107, 15, 26, 0.35);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ========== Print Styles ========== */
@media print {
    .header,
    .nav__toggle,
    .footer,
    .cta,
    .back-to-top {
        display: none;
    }
}

@media screen and (max-width: 1024px) {
    .process__grid::before,
    .process__grid::after {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .testimonials__grid {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: var(--spacing-lg);
        overflow-x: auto;
        padding-bottom: var(--spacing-sm);
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .testimonial__card {
        flex: 0 0 min(88vw, 340px);
        scroll-snap-align: start;
    }

    .why-choose__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
}

@media screen and (max-width: 900px) {
    .content-split,
    .content-split.content-split--reverse {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .content-split--reverse .content-split__figure,
    .content-split--reverse .content-split__body {
        order: unset;
    }

    .content-split__body .section__title {
        text-align: center;
    }

    .content-split__body .section__title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .content-band {
        aspect-ratio: 16 / 9;
        min-height: 140px;
        max-height: 260px;
    }

    .cta--split .cta__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta--split .cta__copy {
        text-align: center;
    }

    .cta--split .cta__buttons {
        justify-content: center;
    }

    .cta--split .cta__figure {
        order: -1;
        max-width: 440px;
        margin: 0 auto;
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero--inner .hero__container {
        padding-top: var(--spacing-lg);
        padding-bottom: var(--spacing-lg);
    }

    .hero__content {
        order: 1;
    }

    .hero__visual {
        order: 0;
        min-height: 200px;
    }

    .hero__buttons {
        flex-direction: column;
        width: 100%;
    }

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

    .hero__features {
        justify-content: center;
    }

    .hero__title-animate {
        animation-name: heroTitleInMobile;
        transform: translateY(14px);
    }
}

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

    body {
        animation: none;
        opacity: 1;
    }

    .hero__photo {
        animation: none !important;
        inset: 0;
        width: 100%;
        height: 100%;
        transform: none;
    }

    .hero__bg-svg {
        animation: none !important;
        transform: translateY(-50%);
    }

    .section__title::after {
        animation: none !important;
        background-position: 50% 50%;
    }

    .trust-badges__item,
    .trust-badges__icon,
    .testimonial__card {
        transition: none !important;
    }

    .trust-badges__item:hover,
    .testimonial__card:hover {
        transform: none;
    }

    .trust-badges__item:hover .trust-badges__icon {
        transform: none;
        box-shadow: none;
    }

    .service__card:hover .service__card-thumb img {
        transform: none;
    }

    .hero__title-animate,
    .hero__description,
    .hero__buttons .btn,
    .feature,
    .hero__illustration,
    .hero__glow,
    .hero__scroll svg,
    .reveal {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .reveal {
        transition: none !important;
    }

    .reveal.reveal--visible {
        opacity: 1 !important;
        transform: none !important;
    }

    .back-to-top {
        transition: none;
    }

    .back-to-top.show {
        transform: none;
    }

    .process__number--pulse {
        animation: none;
    }
}

