/* ==========================================================================
   Ultra Digital Finance - Core Design System
   Palette derived from the UDF logo: crimson, gold and ink on cream.
   ========================================================================== */

:root {
    /* Brand */
    --crimson: #a01020;
    --crimson-dark: #7a0c18;
    --crimson-deep: #5c0812;
    --crimson-light: #c41e33;
    --crimson-soft: #fdf3f4;
    --gold: #c09050;
    --gold-dark: #9a7038;
    --gold-light: #dcb677;
    --gold-soft: #faf5ec;
    --ink: #1c1c1c;
    --ink-soft: #2b2b2b;
    --cream: #fcf8f4;
    --surface: #ffffff;
    --line: #ece6df;
    --line-strong: #ddd4c9;

    /* Text */
    --text-primary: #1f2328;
    --text-secondary: #55606e;
    --text-muted: #7b8794;
    --text-invert: #ffffff;

    /* Semantic */
    --success: #1f8a4c;
    --error: #c0392b;
    --warning: #b7791f;
    --info: #2b6cb0;

    /* Legacy aliases kept for compatibility */
    --primary-blue: #a01020;
    --primary-purple: #a01020;
    --accent-gold: #c09050;
    --accent-gold-hover: #9a7038;
    --accent-gold-light: #dcb677;
    --accent-purple: #c09050;
    --accent-purple-hover: #9a7038;
    --accent-purple-light: #dcb677;
    --light-gray: #f6f3ef;
    --dark-gray: #3f3f46;
    --white: #ffffff;

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.65;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 5.5rem;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 26px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(28, 28, 28, 0.08);
    --shadow-md: 0 6px 18px rgba(28, 28, 28, 0.08);
    --shadow-lg: 0 16px 40px rgba(28, 28, 28, 0.12);
    --shadow-xl: 0 28px 60px rgba(28, 28, 28, 0.18);
    --shadow-crimson: 0 10px 28px rgba(160, 16, 32, 0.24);
    --shadow-gold: 0 10px 28px rgba(192, 144, 80, 0.28);
}

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

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-padding-top: 120px;
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    overflow-x: hidden;
    background: var(--cream);
    min-height: 100vh;
}

img,
video {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--crimson);
    transition: color 0.2s ease;
}

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

h1,
h2,
h3,
h4,
h5 {
    line-height: 1.22;
    letter-spacing: -0.02em;
    color: var(--ink);
    font-weight: 800;
}

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

/* Accessibility */
.skip-link {
    position: absolute;
    top: -60px;
    left: 1rem;
    background: var(--crimson);
    color: #fff;
    padding: 0.7rem 1.1rem;
    text-decoration: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 2000;
    font-weight: 600;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--crimson);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: var(--crimson);
    color: #fff;
}

.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;
}

/* ==========================================================================
   Top utility bar
   ========================================================================== */
.topbar {
    background: linear-gradient(90deg, var(--ink) 0%, #3a1216 60%, var(--crimson-dark) 100%);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.8rem;
    position: relative;
    z-index: 1001;
}

.topbar-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0.45rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.topbar a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.topbar a:hover {
    color: var(--gold-light);
}

.topbar-contacts,
.topbar-links {
    display: flex;
    align-items: center;
    gap: 1.3rem;
    flex-wrap: wrap;
}

.topbar i {
    color: var(--gold);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
nav.site-nav {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(252, 248, 244, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    z-index: 1000;
    padding: 0.55rem 0;
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

nav.site-nav.scrolled {
    box-shadow: 0 10px 30px rgba(28, 28, 28, 0.1);
    background: rgba(255, 255, 255, 0.98);
}

.nav-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    height: 54px;
    width: auto;
}

.logo-text {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.logo-text span {
    color: var(--crimson);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.15rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.92rem;
    position: relative;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.28rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--crimson), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

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

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

.online-banking-btn {
    background: linear-gradient(120deg, var(--crimson) 0%, var(--crimson-light) 100%);
    color: #fff !important;
    padding: 0.68rem 1.35rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.6rem;
    box-shadow: var(--shadow-crimson);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.online-banking-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(160, 16, 32, 0.34);
    color: #fff !important;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: var(--ink);
    border: none;
    cursor: pointer;
    padding: 0.75rem 0.8rem;
    border-radius: 10px;
    position: relative;
    z-index: 1100;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    width: 22px;
    height: 2px;
    background: #fff;
    display: block;
    position: relative;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::before {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::after {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    padding: 0.95rem 2rem;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-family: inherit;
    line-height: 1.2;
}

.btn-primary {
    background: linear-gradient(120deg, var(--crimson) 0%, var(--crimson-light) 100%);
    color: #fff;
    box-shadow: var(--shadow-crimson);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(160, 16, 32, 0.34);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--line-strong);
    background: #fff;
}

.btn-secondary:hover {
    border-color: var(--crimson);
    color: var(--crimson);
    transform: translateY(-2px);
}

.btn-gold {
    background: linear-gradient(120deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #fff;
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(192, 144, 80, 0.36);
    color: #fff;
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(6px);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1.1rem 2.4rem;
    font-size: 1.05rem;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.section.alt-bg {
    background: linear-gradient(180deg, #ffffff 0%, var(--cream) 100%);
}

.section.ink-bg {
    background: linear-gradient(135deg, var(--ink) 0%, #2e1318 60%, var(--crimson-dark) 100%);
    color: #fff;
}

.section.ink-bg h2,
.section.ink-bg h3,
.section.ink-bg h4 {
    color: #fff;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--crimson);
    margin-bottom: 0.9rem;
}

.section.ink-bg .section-eyebrow {
    color: var(--gold-light);
}

.section-title {
    text-align: center;
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 0.7rem;
}

.section-title.left {
    text-align: left;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto 2.8rem;
    line-height: 1.7;
}

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

/* ==========================================================================
   Page header (inner pages)
   ========================================================================== */
.page-header {
    position: relative;
    background: linear-gradient(135deg, var(--ink) 0%, #3a1216 55%, var(--crimson-deep) 100%);
    color: #fff;
    padding: 4.5rem 0 4rem;
    text-align: center;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(192, 144, 80, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(196, 30, 51, 0.28) 0%, transparent 50%);
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: #fff;
    font-size: clamp(2.1rem, 4.4vw, 3.1rem);
    margin-bottom: 0.8rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.12rem;
    max-width: 720px;
    margin: 0 auto;
    font-weight: 300;
}

.page-header .breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1rem;
}

.page-header .breadcrumb a {
    color: var(--gold-light);
    text-decoration: none;
}

/* ==========================================================================
   Hero (homepage)
   ========================================================================== */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6rem 0 5rem;
}

.hero-video-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.42) saturate(0.9);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(155deg, rgba(28, 28, 28, 0.82) 0%, rgba(92, 8, 18, 0.78) 55%, rgba(28, 28, 28, 0.88) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    max-width: 940px;
    padding: 0 1.5rem;
    animation: fadeInUp 0.9s ease both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    padding: 0.5rem 1.2rem;
    font-size: 0.83rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #f4e3c8;
    margin-bottom: 1.6rem;
}

.hero-badge i {
    color: var(--gold);
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.3rem, 5.6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.3rem;
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.hero h1 .gold-text {
    background: linear-gradient(100deg, var(--gold-light) 0%, var(--gold) 50%, #e9cf9f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline;
}

.hero p {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 1.7vw, 1.22rem);
    font-weight: 300;
    max-width: 680px;
    margin: 0 auto 2.4rem;
    line-height: 1.75;
}

.hero .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    max-width: 880px;
    margin: 0 auto;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    padding: 1.1rem 0.8rem;
    text-align: center;
}

.hero-stat strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold-light);
    letter-spacing: -0.02em;
}

.hero-stat span {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 500;
}

.scroll-indicator {
    position: absolute;
    bottom: 1.6rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2.2s infinite;
}

.scroll-indicator a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.4rem;
    text-decoration: none;
}

.scroll-indicator a:hover {
    color: var(--gold-light);
}

/* ==========================================================================
   Trust strip
   ========================================================================== */
.trust-bar {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 1rem 0;
}

.trust-bar-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: center;
    gap: 2.6rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-secondary);
    font-size: 0.86rem;
    font-weight: 600;
}

.trust-item i {
    color: var(--crimson);
    font-size: 0.98rem;
}

/* ==========================================================================
   Cards & grids
   ========================================================================== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem 1.8rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--crimson), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(160, 16, 32, 0.18);
}

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

.card-icon {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--crimson-soft), var(--gold-soft));
    color: var(--crimson);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

.card h3 {
    font-size: 1.22rem;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.card .card-link {
    color: var(--crimson);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.card .card-link i {
    transition: transform 0.2s ease;
}

.card .card-link:hover i {
    transform: translateX(4px);
}

.feature-list {
    list-style: none;
    margin: 0.6rem 0 1.2rem;
}

.feature-list li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.55rem;
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.6;
}

.feature-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.15rem;
    font-size: 0.75rem;
    color: var(--crimson);
}

.badge-rate {
    display: inline-block;
    background: linear-gradient(120deg, var(--crimson-soft), #fff);
    border: 1px solid rgba(160, 16, 32, 0.18);
    color: var(--crimson);
    border-radius: 999px;
    padding: 0.32rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.badge-rate.gold {
    background: var(--gold-soft);
    border-color: rgba(192, 144, 80, 0.35);
    color: var(--gold-dark);
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
}

.stat-item {
    text-align: center;
    padding: 1.9rem 1rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    transition: transform 0.25s ease, background 0.25s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.stat-number {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--gold-light);
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 0.86rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    margin-top: 0.2rem;
}

/* Split feature */
.split {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.split img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.split-media {
    position: relative;
}

.split-media::after {
    content: '';
    position: absolute;
    inset: 1.1rem -1.1rem -1.1rem 1.1rem;
    border: 2px solid rgba(160, 16, 32, 0.22);
    border-radius: var(--radius-lg);
    z-index: -1;
}

/* Tables */
.table-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.table-scroll {
    overflow-x: auto;
}

table.rate-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 560px;
}

table.rate-table thead th {
    background: linear-gradient(120deg, var(--ink), #40191f);
    color: #fff;
    text-align: left;
    padding: 1rem 1.3rem;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

table.rate-table thead th:last-child {
    text-align: right;
}

table.rate-table tbody td {
    padding: 0.95rem 1.3rem;
    border-bottom: 1px solid var(--line);
    color: var(--text-secondary);
}

table.rate-table tbody td:last-child {
    text-align: right;
}

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

table.rate-table tbody tr:hover td {
    background: var(--gold-soft);
}

table.rate-table .rate-value {
    font-weight: 800;
    color: var(--crimson);
}

.table-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 1.3rem;
    font-style: italic;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

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

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--crimson);
    box-shadow: 0 0 0 4px rgba(160, 16, 32, 0.12);
}

textarea.form-control {
    resize: vertical;
    min-height: 130px;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    display: block;
}

/* Locations */
.location-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.location-card .region-tag {
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-dark);
    background: var(--gold-soft);
    border: 1px solid rgba(192, 144, 80, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

.location-card h3 {
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.location-card h3 i {
    color: var(--crimson);
}

.location-card address {
    font-style: normal;
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.7;
}

.location-card .loc-meta {
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.location-card .loc-meta i {
    color: var(--crimson);
    margin-top: 0.2rem;
}

.location-card a {
    text-decoration: none;
}

.location-filters {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.filter-btn {
    border: 1.5px solid var(--line-strong);
    background: #fff;
    color: var(--text-secondary);
    border-radius: 999px;
    padding: 0.55rem 1.3rem;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--crimson);
    border-color: var(--crimson);
    color: #fff;
}

/* Alerts */
.alert {
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    font-size: 0.92rem;
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    margin-bottom: 1.2rem;
}

.alert-success {
    background: #e9f7ef;
    border: 1px solid #bfe6cd;
    color: #16653a;
}

.alert-error {
    background: #fdecec;
    border: 1px solid #f3c2c2;
    color: #8f1f1f;
}

.alert-info {
    background: #eef4fb;
    border: 1px solid #c9dcf2;
    color: #274b7a;
}

/* CTA band */
.cta-band {
    background: linear-gradient(120deg, var(--ink) 0%, #3a1216 55%, var(--crimson-dark) 100%);
    border-radius: var(--radius-xl);
    padding: 3.2rem 2.5rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    box-shadow: var(--shadow-xl);
}

.cta-band h2 {
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 0.5rem;
}

.cta-band p {
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    max-width: 520px;
}

.cta-band .actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

/* Testimonial / quote */
.quote-card {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--crimson);
    border-radius: var(--radius-md);
    padding: 1.6rem 1.7rem;
    box-shadow: var(--shadow-sm);
}

.quote-card blockquote {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.75;
    font-style: italic;
    margin-bottom: 0.9rem;
}

.quote-card .who {
    font-weight: 700;
    color: var(--ink);
    font-size: 0.9rem;
}

.quote-card .who span {
    display: block;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Footer */
footer.site-footer {
    background: linear-gradient(160deg, #161616 0%, #2b1216 55%, var(--crimson-deep) 100%);
    color: rgba(255, 255, 255, 0.85);
    margin-top: 5rem;
}

.footer-main {
    max-width: 1240px;
    margin: 0 auto;
    padding: 4rem 1.5rem 2.5rem;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-brand img {
    height: 58px;
    margin-bottom: 1.1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
    line-height: 1.75;
    margin-bottom: 1.2rem;
    max-width: 340px;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.1rem;
    letter-spacing: 0.03em;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.6rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.89rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-col a:hover {
    color: var(--gold-light);
    padding-left: 4px;
}

.social-links {
    display: flex;
    gap: 0.6rem;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.social-links a:hover {
    background: var(--crimson);
    border-color: var(--crimson);
    transform: translateY(-3px);
    color: #fff;
}

.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.8rem 1.5rem 2.4rem;
    max-width: 1240px;
    margin: 0 auto;
}

.footer-legal p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.footer-legal .copyright {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.85rem;
}

/* Modal (calculators, etc.) */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(18, 18, 18, 0.72);
    z-index: 3000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 1rem;
    overflow-y: auto;
}

.modal-box {
    background: #fff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 780px;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.25s ease;
    overflow: hidden;
}

.modal-head {
    background: linear-gradient(120deg, var(--ink), var(--crimson-dark));
    color: #fff;
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-head h3 {
    color: #fff;
    font-size: 1.05rem;
}

.modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 1.6rem 1.7rem 2rem;
}

/* Calculator result tiles */
.calc-result {
    background: var(--gold-soft);
    border: 1px solid rgba(192, 144, 80, 0.35);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.4rem;
    margin-top: 1.2rem;
}

.calc-result .value {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--crimson);
}

.calc-result .label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(26px);
    }

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

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-12px);
    }

    60% {
        transform: translateX(-50%) translateY(-6px);
    }
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}

body.js-loaded .fade-in {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body.js-loaded .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Accordion (FAQ) */
.faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    padding: 1.1rem 1.3rem;
    font-weight: 700;
    color: var(--ink);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '\002B';
    font-size: 1.3rem;
    color: var(--crimson);
    font-weight: 400;
}

.faq-item[open] summary::after {
    content: '\2212';
}

.faq-item .faq-body {
    padding: 0 1.3rem 1.2rem;
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.75;
}

/* Print */
@media print {

    nav.site-nav,
    .topbar,
    footer.site-footer,
    .hero-video-container,
    .scroll-indicator {
        display: none;
    }

    body {
        background: #fff;
        color: #000;
    }

    .hero-content {
        color: #000;
    }
}
