/* ============================================================
   RUBY SUPPLY GROUP LLC — Landing Page
   Palette derived from brand: deep sapphire + soft gold
   ============================================================ */

:root {
    --sapphire: #0A2342;
    /* official brand blue */
    --deep: #06182F;
    --navy-soft: #143257;
    --blue-bright: #3A6FB8;
    --gold: #C9A24B;
    --gold-soft: #E0C583;
    --bone: #FAFBFD;
    --gray: #EEF1F5;
    --gray-mid: #D7DEE8;
    --slate: #33435A;
    --slate-soft: #5A6B82;
    --white: #FFFFFF;
    --line: rgba(10, 35, 66, .12);
    --line-light: rgba(255, 255, 255, .14);

    --display: 'Sora', sans-serif;
    --body: 'Inter', sans-serif;
    --mono: 'JetBrains Mono', monospace;

    --maxw: 1180px;
    --radius: 14px;
    --radius-sm: 9px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    font-family: var(--body);
    color: var(--slate);
    background: var(--bone);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block
}

a {
    color: inherit;
    text-decoration: none
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 28px
}

/* language visibility */
.lang-en [data-es],
.lang-es [data-en] {
    display: none
}

/* ---------- typography helpers ---------- */
.eyebrow {
    font-family: var(--mono);
    font-size: .74rem;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.eyebrow::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold)
}

.eyebrow.gold {
    color: var(--gold-soft)
}

.eyebrow.gold::before {
    background: var(--gold-soft)
}

.section-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.6rem, 3.4vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: -.01em;
    color: var(--sapphire);
    max-width: 18ch;
}

.section-title.light {
    color: var(--white)
}

/* ---------- buttons ---------- */
.btn {
    font-family: var(--display);
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: .02em;
    padding: 15px 28px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}

.btn-sm {
    padding: 10px 18px;
    font-size: .82rem
}

.btn-block {
    width: 100%
}

.btn-gold {
    background: var(--gold);
    color: var(--sapphire);
    box-shadow: 0 12px 30px -12px rgba(201, 162, 75, .55)
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -14px rgba(201, 162, 75, .7)
}

.btn-outline {
    border-color: rgba(255, 255, 255, .4);
    color: var(--white)
}

.btn-outline:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .6)
}

.btn-navy {
    background: var(--sapphire);
    color: var(--white)
}

.btn-navy:hover {
    background: var(--navy-soft);
    transform: translateY(-2px)
}

/* ============ HEADER ============ */
.site-header {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: var(--maxw);
    z-index: 100;
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    box-shadow: 0 8px 32px -8px rgba(10, 35, 66, 0.12),
                0 1px 0 0 rgba(255,255,255,0.9) inset;
    transition: all .3s var(--ease);
}

.site-header.scrolled {
    top: 8px;
    background: rgba(255, 255, 255, 0.97);
    border-color: rgba(10, 35, 66, 0.10);
    box-shadow: 0 10px 32px -8px rgba(10, 35, 66, .15);
}

.site-header .container {
    padding: 5px 14px 5px 5px;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 8px 5px 5px;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    text-decoration: none;
    background: rgba(10, 35, 66, .07);
    border-radius: 999px;
    padding: 5px 14px 5px 5px;
    transition: background .2s;
}

.brand:hover {
    background: rgba(10, 35, 66, .12);
}

.brand-name {
    font-family: var(--display);
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: -.02em;
    color: var(--sapphire);
    line-height: 1;
    white-space: nowrap;
}

.header-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.logo-slot-dark {
    border-color: rgba(255, 255, 255, .2)
}

.logo-dim {
    font-family: var(--mono);
    font-size: .62rem;
    letter-spacing: .1em;
    color: var(--slate-soft)
}

.logo-slot-dark .logo-dim {
    color: rgba(255, 255, 255, .55)
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-links a {
    font-size: .79rem;
    font-weight: 500;
    letter-spacing: .02em;
    color: var(--slate);
    position: relative;
    padding: 4px 0;
    transition: color .2s;
    white-space: nowrap;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width .25s var(--ease);
    border-radius: 1px;
}

.nav-links a:hover {
    color: var(--sapphire)
}

.nav-links a:hover::after {
    width: 100%
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mobile lang toggle — hidden on desktop, shown inside dropdown on mobile */
.mobile-lang {
    display: none;
    gap: 8px;
    align-items: center;
}

.mobile-lang button {
    flex: 1;
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
    font-family: var(--mono);
    font-size: .78rem;
    letter-spacing: .04em;
    padding: 9px 14px;
    color: var(--slate);
    border-radius: 8px;
    transition: .2s;
}

.mobile-lang button.active {
    background: var(--sapphire);
    color: var(--white);
    border-color: var(--sapphire);
}

/* Desktop: lang toggle visible inline */
.lang-toggle {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
}

.lang-toggle button {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .04em;
    padding: 7px 13px;
    color: var(--slate);
    transition: .2s
}

.lang-toggle button.active {
    background: var(--sapphire);
    color: var(--white)
}

.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background .2s;
}

.nav-burger:hover {
    background: rgba(10, 35, 66, .06);
}

.nav-burger span {
    width: 24px;
    height: 2px;
    background: var(--sapphire);
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s
}

.nav-burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg)
}

.nav-burger.open span:nth-child(2) {
    opacity: 0
}

.nav-burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg)
}

/* ============ HERO ============ */
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
    background: radial-gradient(125% 130% at 78% -10%, #143257 0%, var(--sapphire) 52%, var(--deep) 100%);
    color: var(--white);
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden
}

/* signature: directional supply-flow lines */
.flow-lines {
    position: absolute;
    inset: -20% -10%;
    background-image: repeating-linear-gradient(115deg, transparent 0 38px, rgba(201, 162, 75, .05) 38px 39px),
        repeating-linear-gradient(115deg, transparent 0 130px, rgba(255, 255, 255, .03) 130px 131px);
    transform: translateX(0);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center
}

.hero-copy h1 {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(2.2rem, 5.2vw, 3.9rem);
    line-height: 1.04;
    letter-spacing: -.015em;
    max-width: 14ch
}

.hero-copy h1 .grad {
    background: linear-gradient(100deg, var(--gold) 0%, var(--gold-soft) 48%, #fff 62%, var(--gold-soft) 78%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .eyebrow {
    color: var(--gold-soft)
}

.hero .eyebrow::before {
    background: var(--gold-soft)
}

.hero-lead {
    margin-top: 24px;
    font-size: 1.06rem;
    color: rgba(255, 255, 255, .82);
    max-width: 48ch
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px
}

.hero-meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 34px;
    margin-top: 54px;
    padding-top: 28px;
    border-top: 1px solid var(--line-light)
}

.hero-meta li {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.hero-meta .k {
    font-family: var(--mono);
    font-size: .66rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-soft)
}

.hero-meta .v {
    font-family: var(--display);
    font-weight: 600;
    font-size: .98rem;
    color: var(--white)
}

/* image placeholder */
.img-slot {
    position: relative;
    background: var(--gray);
    border: 1px solid rgba(10, 35, 66, .05);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.section-dark .img-slot,
.hero .img-slot,
.feature-card .img-slot {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
}

.img-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    padding: 24px;
    color: var(--slate-soft)
}

.section-dark .img-info,
.hero .img-info {
    color: rgba(255, 255, 255, .7)
}

.img-info strong {
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .16em
}

.img-info em {
    font-style: normal;
    font-size: .82rem;
    max-width: 30ch;
    line-height: 1.5;
    opacity: .85
}

.img-dim {
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .08em;
    margin-top: 6px;
    color: var(--gold);
    background: rgba(201, 162, 75, .12);
    border: 1px solid rgba(201, 162, 75, .35);
    padding: 3px 10px;
    border-radius: 999px
}

.ratio-portrait {
    aspect-ratio: 4/5
}

.ratio-square {
    aspect-ratio: 1/1
}

.ratio-wide {
    aspect-ratio: 16/6
}

/* scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 24px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 7px
}

.scroll-hint span {
    width: 4px;
    height: 8px;
    border-radius: 2px;
    background: var(--gold-soft);
    animation: scrolldot 1.8s infinite
}

@keyframes scrolldot {
    0% {
        opacity: 0;
        transform: translateY(0)
    }

    40% {
        opacity: 1
    }

    80% {
        opacity: 0;
        transform: translateY(10px)
    }
}

/* ============ TRUST STRIP ============ */
.strip-trust {
    background: var(--sapphire);
    color: var(--white)
}

.strip-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    padding: 18px 28px
}

.strip-item {
    font-size: .86rem;
    color: rgba(255, 255, 255, .9)
}

.strip-item b {
    font-weight: 600
}

.strip-row .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold)
}

/* ============ SECTIONS ============ */
.section {
    padding: 80px 0;
    margin: 40px 20px;
    border-radius: 30px;
    background: var(--white);
    box-shadow: 0 15px 50px -15px rgba(10, 35, 66, 0.06);
    position: relative;
}

/* FAQ Section Styles */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.faq-item {
    background: var(--gray);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--gray-mid);
    transition: all .3s var(--ease);
}

.faq-item:hover {
    box-shadow: 0 10px 30px -10px rgba(10, 35, 66, 0.08);
    transform: translateY(-2px);
    border-color: var(--gold-soft);
}

.faq-item details {
    width: 100%;
}

.faq-item summary {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--sapphire);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: 400;
    transition: transform .3s var(--ease);
}

.faq-item details[open] summary::after {
    transform: rotate(45deg);
}

.faq-answer {
    margin-top: 16px;
    color: var(--slate-soft);
    line-height: 1.6;
    font-size: .98rem;
    animation: fadeIn .4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-head {
    margin-bottom: 54px;
    max-width: 680px
}

/* ABOUT */
.about-grid {
    display: grid;
    gap: 40px
}

.about-head {
    max-width: 680px
}

.about-body {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 54px;
    align-items: start
}

.about-text p {
    font-size: 1.04rem;
    margin-bottom: 16px
}

.about-aside {
    position: sticky;
    top: 100px
}

/* SERVICES */
.section-dark {
    background: linear-gradient(180deg, var(--sapphire), var(--deep));
    color: var(--white);
    box-shadow: 0 20px 60px -20px rgba(10, 35, 66, 0.25);
    border-radius: 30px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
}

.svc {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
    padding: 30px 26px;
    transition: transform .3s var(--ease), background .3s, border-color .3s;
}

.svc:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, .07);
    border-color: rgba(201, 162, 75, .4)
}

.svc-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(201, 162, 75, .14);
    color: var(--gold-soft);
    font-size: 1.2rem;
    margin-bottom: 18px;
    line-height: 1;
}

.svc h3 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.12rem;
    color: var(--white);
    margin-bottom: 8px
}

.svc p {
    font-size: .94rem;
    color: rgba(255, 255, 255, .74)
}

.services-img {
    margin-top: 36px
}

/* WHY US */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start
}

.why-head {
    position: sticky;
    top: 100px
}

.why-lead {
    margin-top: 18px;
    font-size: 1.02rem;
    color: var(--slate-soft);
    max-width: 42ch
}

.why-list {
    list-style: none;
    border-top: 1px solid var(--line)
}

.why-list li {
    position: relative;
    padding: 20px 0 20px 42px;
    border-bottom: 1px solid var(--line);
    font-family: var(--display);
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--sapphire);
}

.why-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: rgba(201, 162, 75, .14);
    border: 1px solid rgba(201, 162, 75, .45);
}

.why-list li::after {
    content: "↗";
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: .8rem;
    font-weight: 700;
}

/* PARTNERSHIP FEATURE */
.section-feature {
    padding: 60px 0 96px
}

.feature-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #143257, var(--deep));
    color: var(--white)
}

.feature-bg {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(115deg, transparent 0 60px, rgba(201, 162, 75, .05) 60px 61px);
    opacity: .8
}

.feature-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 48px;
    padding: 56px
}

.feature-copy p {
    color: rgba(255, 255, 255, .82);
    margin-top: 14px;
    font-size: 1rem
}

/* forms */
.form-flag {
    font-family: var(--mono);
    font-size: .66rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(201, 162, 75, .12);
    border: 1px solid rgba(201, 162, 75, .35);
    border-radius: 999px;
    padding: 5px 12px;
    display: inline-block;
    margin-bottom: 18px
}

.feature-form {
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
    padding: 28px
}

.field {
    margin-bottom: 14px
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}

label {
    display: block;
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .02em;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, .8)
}

.contact-form label {
    color: var(--slate)
}

input,
textarea,
select {
    width: 100%;
    font-family: var(--body);
    font-size: .92rem;
    color: var(--white);
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line-light);
    border-radius: 8px;
    padding: 11px 13px;
    transition: border-color .2s, background .2s;
    resize: vertical;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    color: var(--slate);
    background: var(--white);
    border: 1px solid var(--gray-mid)
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, .1)
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(201, 162, 75, .18)
}

input::placeholder {
    color: rgba(255, 255, 255, .4)
}

.contact-form input::placeholder {
    color: var(--slate-soft)
}

.feature-form .btn {
    margin-top: 8px
}

.form-note {
    margin-top: 12px;
    font-size: .84rem;
    min-height: 1.2em
}

.form-note.ok {
    color: var(--gold-soft)
}

.contact-form .form-note.ok {
    color: #2E8B57
}

.form-note.err {
    color: #E89BA3
}

.contact-form .form-note.err {
    color: #B23A48
}

.field.invalid input,
.field.invalid textarea {
    border-color: #E89BA3
}

.contact-form .field.invalid input,
.contact-form .field.invalid textarea {
    border-color: #B23A48
}

/* CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start
}

.contact-lead {
    margin-top: 14px;
    font-size: 1.04rem;
    color: var(--slate-soft)
}

.contact-cards {
    list-style: none;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px
}

.ccard {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color .2s, transform .2s
}

a.ccard:hover {
    border-color: var(--gold);
    transform: translateX(4px)
}

.ccard-ic {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(10, 35, 66, .06);
    color: var(--sapphire);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
}

.ccard-k {
    display: block;
    font-family: var(--mono);
    font-size: .62rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 2px
}

.ccard-v {
    font-family: var(--display);
    font-weight: 600;
    font-size: .96rem;
    color: var(--sapphire)
}

.contact-form {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: 0 20px 50px -30px rgba(10, 35, 66, .35)
}

.contact-form .form-flag {
    color: var(--slate-soft);
    background: var(--gray);
    border-color: var(--gray-mid)
}

/* ============ FOOTER ============ */
.site-footer {
    background: var(--deep);
    color: rgba(255, 255, 255, .7);
    padding: 72px 0 0;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    margin-top: 20px;
}

/* Footer layout: Brand block on top, 3 cols always side-by-side below */
.footer-brand-block {
    display: flex;
    flex-direction: column;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--line-light);
    margin-bottom: 40px;
}

.footer-cols-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--line-light);
    align-items: start;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

/* Col titles */
.footer-col-title {
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold-soft);
    margin-bottom: 18px;
}

/* Logo & brand */
.footer-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.footer-brand-name {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
    white-space: nowrap;
    letter-spacing: .01em;
}

.footer-tag {
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .4);
    margin-top: 14px;
}

.footer-desc {
    font-size: .84rem;
    color: rgba(255, 255, 255, .5);
    margin-top: 10px;
    line-height: 1.65;
}

/* Nav lists */
.footer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav-list a {
    font-size: .88rem;
    color: rgba(255, 255, 255, .65);
    transition: color .2s, padding-left .2s;
    width: fit-content;
}

.footer-nav-list a:hover {
    color: var(--gold-soft);
    padding-left: 4px;
}

/* Disabled links */
.footer-link-disabled {
    font-size: .88rem;
    color: rgba(255, 255, 255, .28);
    cursor: default;
    user-select: none;
}

/* Contact col */
.footer-contact-link {
    font-size: .88rem;
    color: rgba(255, 255, 255, .65);
    transition: color .2s;
    margin-bottom: 6px;
    display: block;
    width: fit-content;
}

a.footer-contact-link:hover {
    color: var(--gold-soft);
}

/* Social icons */
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.footer-social a {
    color: rgba(255, 255, 255, .55);
    transition: color .2s, transform .2s, background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    font-size: 1.1rem;
}

.footer-social a:hover {
    color: var(--gold-soft);
    background: rgba(201, 162, 75, .12);
    border-color: rgba(201, 162, 75, .3);
    transform: translateY(-3px);
}

/* Bottom bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 28px 0 60px;
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .35);
}

.watermark a {
    color: rgba(255, 255, 255, .5);
    font-weight: 600;
    transition: color .2s;
}

.watermark a:hover {
    color: var(--gold-soft);
}

/* ============ MODAL ============ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6, 24, 47, .7);
    backdrop-filter: blur(6px);
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.open {
    display: flex;
}

.modal-box {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 80px rgba(6, 24, 47, .4);
}

.modal-box h2 {
    font-family: var(--display);
    font-size: 1.5rem;
    color: var(--sapphire);
    margin-bottom: 20px;
}

.modal-body h3 {
    font-family: var(--display);
    font-size: 1rem;
    color: var(--sapphire);
    margin: 18px 0 6px;
}

.modal-body p {
    font-size: .9rem;
    color: var(--slate-soft);
    line-height: 1.65;
    margin-bottom: 8px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--slate-soft);
    transition: color .2s;
}

.modal-close:hover {
    color: var(--sapphire);
}

/* ============ BOT BUBBLE ============ */
.bot-bubble {
    position: fixed;
    bottom: 90px;
    right: 24px;
    background: var(--sapphire);
    color: var(--white);
    padding: 12px 18px;
    border-radius: 18px 18px 4px 18px;
    font-size: .88rem;
    font-family: var(--body);
    max-width: 230px;
    line-height: 1.4;
    box-shadow: 0 10px 30px rgba(10, 35, 66, .35);
    z-index: 998;
    opacity: 0;
    transform: translateY(10px) scale(.95);
    transition: opacity .4s var(--ease), transform .4s var(--ease);
    pointer-events: none;
}

.bot-bubble.visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.bot-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 14px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 0 solid transparent;
    border-top: 8px solid var(--sapphire);
}

.bot-bubble-close {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gold);
    color: var(--sapphire);
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: .7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ============ REVEAL ANIMATION ============ */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s var(--ease), transform .7s var(--ease)
}

.reveal.in {
    opacity: 1;
    transform: none
}

/* ============ RESPONSIVE ============ */

/* Medium screens — compact nav before full mobile switch */
@media(max-width:1100px) {
    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: .74rem;
    }

    .brand-name {
        font-size: .88rem;
    }

    .btn-sm {
        padding: 8px 14px;
        font-size: .76rem;
    }
}

@media(max-width:1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px
    }

    .hero-media {
        max-width: 420px
    }

    .about-body,
    .why-grid,
    .contact-grid,
    .feature-inner {
        grid-template-columns: 1fr
    }

    .about-aside,
    .why-head {
        position: static
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .feature-inner {
        padding: 40px 32px
    }

    .nav-cta {
        display: none
    }

    /* At 1024px hide nav links — show burger */
    .nav-links {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        width: 100%;
        border-radius: 20px;
        box-shadow: 0 12px 40px rgba(10, 35, 66, 0.14);
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid rgba(255, 255, 255, 0.6);
        padding: 10px 20px 20px;
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: transform .3s var(--ease), opacity .3s;
        z-index: 200;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        padding: 13px 4px;
        border-bottom: 1px solid rgba(10, 35, 66, 0.06);
        font-size: .9rem;
    }

    .nav-links a:last-of-type {
        border-bottom: none;
    }

    /* Lang toggle inside mobile menu */
    .nav-links .mobile-lang {
        display: flex;
        padding: 16px 4px 4px;
    }

    /* Hide desktop lang toggle on tablet/mobile */
    .lang-toggle {
        display: none !important;
    }

    .nav-burger {
        display: flex;
    }

    /* Footer cols remain 3-wide on tablet */
    .footer-cols-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media(max-width:680px) {
    .container {
        padding: 0 20px
    }

    .section {
        padding: 72px 0;
        margin: 24px 12px;
    }

    .hero {
        padding: 128px 0 72px
    }

    .services-grid {
        grid-template-columns: 1fr
    }

    .field-row {
        grid-template-columns: 1fr
    }

    .hero-meta {
        gap: 24px
    }

    /* Brand block stacks on mobile */
    .footer-brand-block {
        padding-bottom: 28px;
        margin-bottom: 28px;
    }

    /* 3 cols on mobile: keep them side by side but compact */
    .footer-cols-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .footer-col {
        align-items: flex-start;
        text-align: left;
    }

    .footer-nav-list {
        align-items: flex-start;
    }

    .footer-nav-list a,
    .footer-contact-link {
        width: auto;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        padding-bottom: 60px;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .site-footer {
        padding-top: 56px;
    }
}

/* Very small screens — keep brand readable */
@media(max-width:400px) {
    .footer-bottom {
        padding-bottom: 60px;
    }

    .site-header {
        width: calc(100% - 16px);
        top: 8px;
    }

    .brand-name {
        font-size: .8rem;
    }

    .header-logo {
        height: 38px;
    }

    .brand {
        padding: 4px 10px 4px 4px;
        gap: 5px;
    }
}

/* ============ ACCESSIBILITY ============ */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px
}

@media(prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important
    }

    .reveal {
        opacity: 1;
        transform: none
    }
}