/* ==========================================================================
   Q-Soft Denovo — site styles (redesign, Nov 2026)
   Brand: royal blue + gold from the logo, sky blue accent, deep navy.
   ========================================================================== */

:root {
    --blue: #0b4aa8;          /* logo royal blue */
    --blue-600: #083d8c;
    --sky: #06a3da;           /* existing site accent */
    --gold: #f6c21c;          /* logo ring */
    --navy: #071b3a;
    --navy-800: #0a2550;
    --ink: #0f1f3a;           /* headings */
    --text: #44506a;          /* body copy */
    --muted: #6b7690;
    --line: #e3e9f3;
    --bg: #ffffff;
    --bg-soft: #f4f8fd;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 2px 10px rgba(7, 27, 58, .06);
    --shadow: 0 14px 40px rgba(7, 27, 58, .10);
    --shadow-lg: 0 30px 70px rgba(7, 27, 58, .18);
    --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
    --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
    --wrap: 1180px;
    --nav-h: 76px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--sky); }
p { margin: 0 0 1em; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.15;
    margin: 0 0 .5em;
    letter-spacing: -.02em;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--navy); color: #c5d2ea; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 14px;
}
.eyebrow::before {
    content: "";
    width: 28px;
    height: 3px;
    border-radius: 3px;
    background: var(--gold);
}
.section--dark .eyebrow { color: #8fd6f5; }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head p { font-size: 1.08rem; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .98rem;
    padding: 14px 26px;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(11, 74, 168, .35); }
.btn--primary:hover { background: var(--blue-600); color: #fff; }
.btn--gold { background: var(--gold); color: var(--navy); box-shadow: 0 10px 24px rgba(246, 194, 28, .35); }
.btn--gold:hover { background: #ffd23f; color: var(--navy); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); color: #fff; }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- Header / nav ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled, .site-header.is-open {
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    backdrop-filter: saturate(160%) blur(16px);
    box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 14px; color: #fff; }
.brand:hover { color: #fff; }
.brand__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.12rem;
    letter-spacing: -.01em;
    line-height: 1.1;
}
.brand__name small {
    display: block;
    font-family: var(--font-body);
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .75;
}
.is-scrolled .brand, .is-open .brand { color: var(--ink); }

.nav__links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
    display: block;
    padding: 9px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    color: rgba(255, 255, 255, .88);
    transition: background .2s ease, color .2s ease;
}
.nav__links a:hover, .nav__links a.is-active { color: #fff; background: rgba(255, 255, 255, .14); }
.is-scrolled .nav__links a, .is-open .nav__links a { color: var(--ink); }
.is-scrolled .nav__links a:hover, .is-scrolled .nav__links a.is-active,
.is-open .nav__links a:hover, .is-open .nav__links a.is-active { color: var(--blue); background: rgba(11, 74, 168, .08); }
.nav__links .btn { padding: 11px 22px; margin-left: 8px; color: var(--navy); }
.nav__links .btn:hover { color: var(--navy); background: #ffd23f; }

.nav__toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, .14);
    cursor: pointer;
    padding: 0;
}
.nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    border-radius: 2px;
    background: #fff;
    transition: transform .25s ease, opacity .25s ease;
}
.is-scrolled .nav__toggle, .is-open .nav__toggle { background: rgba(11, 74, 168, .08); }
.is-scrolled .nav__toggle span, .is-open .nav__toggle span { background: var(--ink); }
.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 3D spinning logo card ----------
   The logo has no background of its own. It turns once in 3D,
   then rests face-on so the name can be read, then turns again. */
.coin {
    --h: 64px;
    --w: calc(var(--h) * 1.5);
    --thick: 1px;
    width: var(--w);
    height: var(--h);
    flex: none;
    perspective: 700px;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .28));
}
.coin__body {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: coin-spin 12s infinite;
}
.coin__face {
    position: absolute;
    inset: 0;
    border-radius: 10px;
}
.coin__face {
    background: url("../img/logo-qsd-white.png") center / contain no-repeat;   /* white lettering for dark backgrounds */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    overflow: hidden;
}
.coin__face::after {            /* light sweep while the logo rests */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .7) 50%, transparent 60%) no-repeat;
    background-size: 300% 100%;
    background-position: 100% 0;
    -webkit-mask: url("../img/logo-qsd-white.png") center / contain no-repeat;   /* shine only on the logo itself */
    mask: url("../img/logo-qsd-white.png") center / contain no-repeat;
    animation: coin-shine 12s linear infinite;
}
/* On the white header bar (after scrolling, or with the phone menu open) use the original blue lettering */
.is-scrolled .coin__face, .is-open .coin__face { background-image: url("../img/logo-qsd-clear.png"); }
.coin__face--front { transform: translateZ(calc(var(--thick) / 2)); }
.coin__face--back { transform: rotateY(180deg) translateZ(calc(var(--thick) / 2)); }
@keyframes coin-spin {
    0%   { transform: rotateX(-6deg) rotateY(0deg); animation-timing-function: cubic-bezier(.45, 0, .2, 1); }
    28%  { transform: rotateX(-6deg) rotateY(360deg); }
    100% { transform: rotateX(-6deg) rotateY(360deg); }
}
@keyframes coin-shine {
    0%, 34% { background-position: 100% 0; }
    48%, 100% { background-position: 0% 0; }
}
.coin--lg { --h: 104px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: calc(var(--nav-h) + clamp(48px, 7vw, 96px)) 0 clamp(120px, 14vw, 170px);
    color: #c9d6ee;
    background:
        radial-gradient(900px 520px at 85% -10%, rgba(6, 163, 218, .38), transparent 60%),
        radial-gradient(700px 480px at -5% 30%, rgba(11, 74, 168, .65), transparent 62%),
        linear-gradient(180deg, #061633 0%, var(--navy) 55%, #0a2a5e 100%);
    overflow: hidden;
}
.hero::before {                 /* fine grid texture */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 72%);
    mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 72%);
    pointer-events: none;
}
.hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}
.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .07);
    color: #e7efff;
    font-size: .86rem;
    font-weight: 600;
    margin-bottom: 26px;
}
.pill b {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: .08em;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--navy);
}
.hero h1 {
    color: #fff;
    margin-bottom: 22px;
    font-family: "Oswald", "Bebas Neue", "Arial Narrow", sans-serif;   /* same lettering family as the new logo */
    font-weight: 700;
    font-size: clamp(3.6rem, 9vw, 7.2rem);
    line-height: .98;
    letter-spacing: .01em;
    text-transform: uppercase;
}
.hero h1 em {
    font-style: normal;   /* colour marks this line */
    font-weight: 700;
    padding-right: .02em;
    background: linear-gradient(90deg, #7fd8ff, var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); max-width: 560px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .92rem; color: #a9bbdb; list-style: none; margin: 0; padding: 0; }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust i { color: var(--gold); }

.hero__media { position: relative; }
.hero__media img {
    width: 100%;
    aspect-ratio: 4 / 4.4;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: var(--shadow-lg);
}
.hero__media::before {          /* gold offset frame */
    content: "";
    position: absolute;
    inset: 22px -18px -18px 22px;
    border-radius: 26px;
    border: 2px solid rgba(246, 194, 28, .7);
    z-index: 0;
}
.hero__media img { position: relative; z-index: 1; }
.float-card {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    color: var(--ink);
    font-size: .86rem;
    line-height: 1.3;
    animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.float-card i {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(11, 74, 168, .1);
    color: var(--blue);
}
.float-card--a { left: -28px; bottom: 48px; }
.float-card--b { right: -14px; top: 40px; animation-delay: -3s; }
.float-card--b i { background: rgba(246, 194, 28, .2); color: #a87c00; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 0 rgba(229, 72, 77, .6); animation: rec 1.8s ease-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes rec { to { box-shadow: 0 0 0 12px rgba(229, 72, 77, 0); } }

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 2; margin-top: clamp(-96px, -8vw, -70px); }
.stats__card {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border-radius: 22px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    overflow: hidden;
}
.stat { padding: 30px 24px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    letter-spacing: -.03em;
    line-height: 1;
    color: var(--blue);
    margin: 0 0 8px;
}
.stat__label { font-size: .92rem; font-weight: 600; color: var(--muted); margin: 0; }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__media {
    position: relative;
    border-radius: 26px;
    padding: 28px;
    background: linear-gradient(145deg, #eaf3ff, #ffffff 60%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.about__media img { width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 22px 0 0; padding: 0; }
.chips li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 600;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}
.chips i { color: var(--sky); }
.label-sm { font-family: var(--font-display); font-weight: 600; color: var(--ink); margin: 28px 0 0; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px;
    box-shadow: var(--shadow-sm);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(11, 74, 168, .28); }
.card p { margin: 0; font-size: .98rem; }
.card__icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    margin-bottom: 20px;
    font-size: 1.25rem;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--sky));
    box-shadow: 0 10px 20px rgba(11, 74, 168, .28);
}
.card__num {
    position: absolute;
    top: 22px;
    right: 24px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    color: #d5deec;
}

/* ---------- Video ---------- */
.video {
    position: relative;
    background:
        radial-gradient(700px 400px at 100% 0%, rgba(6, 163, 218, .28), transparent 60%),
        var(--navy);
}
.video__frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, .12);
    background: #000;
}
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ticks { list-style: none; margin: 24px 0 30px; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks i { color: var(--gold); margin-top: 6px; }

/* ---------- Testimonials ---------- */
.quote {
    position: relative;
    max-width: 880px;
    margin-inline: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: var(--shadow);
    padding: clamp(32px, 5vw, 56px);
    text-align: center;
}
.quote::before {
    content: "\201C";
    position: absolute;
    top: -6px;
    left: 30px;
    font-family: Georgia, serif;
    font-size: 8rem;
    line-height: 1;
    color: rgba(11, 74, 168, .12);
}
.quote__text {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.08rem, 1.9vw, 1.42rem);
    line-height: 1.6;
    letter-spacing: -.01em;
    color: var(--ink);
    margin: 0 0 30px;
    min-height: 6.4em;
    display: flex;
    align-items: center;
    justify-content: center;
}
.quote__person { display: inline-flex; align-items: center; gap: 14px; text-align: left; }
.quote__person img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--gold);
}
.quote__name { font-family: var(--font-display); font-weight: 700; color: var(--ink); margin: 0; line-height: 1.3; }
.quote__role { font-size: .9rem; color: var(--muted); margin: 0; }
.quote__nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; }
.round-btn {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.round-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-2px); }
.dots { display: flex; gap: 8px; }
.dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #cfd9ea;
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}
.dots button.is-active { width: 28px; background: var(--blue); }
.quote.is-fading .quote__text, .quote.is-fading .quote__person { opacity: 0; transform: translateY(8px); }
.quote__text, .quote__person { transition: opacity .25s ease, transform .25s ease; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 14px; }
.faq details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] { border-color: rgba(11, 74, 168, .35); box-shadow: var(--shadow); }
.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.06rem;
    color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(11, 74, 168, .08);
    color: var(--blue);
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1;
    transition: transform .25s ease, background .25s ease, color .25s ease;
}
.faq details[open] summary::after { content: "\2212"; background: var(--blue); color: #fff; transform: rotate(180deg); }
.faq__body { padding: 0 24px 22px; }
.faq__body ol { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; }
.faq__body p { margin: 0; }

/* ---------- News ---------- */
.news-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.news-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: #e9f0fa; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.news-card:hover .news-card__img img { transform: scale(1.06); }
.news-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.news-card__date { font-size: .84rem; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.news-card__date i { color: var(--sky); }
.news-card h3 { font-size: 1.08rem; line-height: 1.4; margin: 0; flex: 1; }
.link-arrow { font-family: var(--font-display); font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: 8px; }
.link-arrow i { transition: transform .2s ease; }
.link-arrow:hover i { transform: translateX(4px); }
.news-more { display: none !important; }
.center { text-align: center; margin-top: 40px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact__list { list-style: none; margin: 28px 0; padding: 0; display: grid; gap: 16px; }
.contact__list li { display: flex; align-items: center; gap: 16px; }
.contact__list i {
    display: grid;
    place-items: center;
    flex: none;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    color: var(--gold);
}
.contact__list span { display: block; font-size: .84rem; color: #9db0d2; }
.contact__list a, .contact__list strong { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: #fff; }
.contact__list a:hover { color: var(--gold); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); height: 260px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.form-card {
    background: #fff;
    border-radius: 24px;
    padding: clamp(24px, 4vw, 40px);
    box-shadow: var(--shadow-lg);
    color: var(--text);
}
.form-card h3 { font-size: 1.5rem; margin-bottom: 6px; color: var(--ink); }
.form-card > p { margin-bottom: 24px; font-size: .96rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .88rem; color: var(--ink); }
.field input, .field select, .field textarea, .subscribe input {
    width: 100%;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    padding: 13px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    background: var(--bg-soft);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus, .subscribe input:focus {
    outline: 0;
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(11, 74, 168, .12);
}
.form-card .btn { width: 100%; margin-top: 4px; }
.form-note { font-size: .82rem; color: var(--muted); text-align: center; margin: 14px 0 0; }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; border-radius: 12px; padding: 12px 16px; font-weight: 600; font-size: .95rem; }
.form-status.is-ok { display: block; background: #e6f6ec; color: #14602f; }
.form-status.is-error { display: block; background: #fdeaea; color: #8f1d1d; }

/* ---------- Footer ---------- */
.site-footer { background: #05132b; color: #9db0d2; padding: clamp(56px, 7vw, 88px) 0 0; font-size: .96rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(28px, 5vw, 64px); padding-bottom: 48px; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.site-footer a { color: #c5d2ea; }
.site-footer a:hover { color: var(--gold); }
.footer__brand { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.footer__brand .brand__name { color: #fff; font-size: 1.3rem; }
.subscribe { display: flex; gap: 8px; margin-top: 18px; }
.subscribe input { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #fff; min-width: 0; }
.subscribe input::placeholder { color: #8195b8; }
.subscribe input:focus { background: rgba(255, 255, 255, .1); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(246, 194, 28, .16); }
.subscribe .btn { flex: none; padding: 12px 22px; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer__list li { display: flex; gap: 12px; align-items: flex-start; }
.footer__list i { color: var(--gold); margin-top: 6px; width: 16px; text-align: center; flex: none; }
.footer__list .stack { display: grid; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    transition: background .2s ease, transform .2s ease, color .2s ease;
}
.socials a:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }
.footer__bar {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 22px 72px 22px 0;   /* right gap keeps text clear of the back-to-top button */
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    justify-content: space-between;
    font-size: .88rem;
}
.footer__bar p { margin: 0; }

.to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    box-shadow: 0 10px 24px rgba(11, 74, 168, .4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold); color: var(--navy); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .hero__grid, .split, .contact { grid-template-columns: 1fr; }
    .hero__media { max-width: 520px; margin-inline: auto; width: 100%; }
    .float-card--a { left: -8px; }
    .float-card--b { right: -8px; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__grid > :first-child { grid-column: 1 / -1; }
    .about__media { max-width: 520px; margin-inline: auto; }
}

@media (max-width: 900px) {
    .nav__toggle { display: block; }
    .nav__links {
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 14px 20px 22px;
        background: rgba(255, 255, 255, .97);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
        box-shadow: 0 24px 40px rgba(7, 27, 58, .16);
        border-top: 1px solid var(--line);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    }
    .is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
    .nav__links a { padding: 13px 16px; border-radius: 12px; font-size: 1.02rem; }
    .nav__links .btn { margin: 8px 0 0; padding: 14px 22px; }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .stats__card { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 620px) {
    body { font-size: 16px; }
    :root { --nav-h: 68px; }
    .coin { --h: 56px; }
    .coin--lg { --h: 96px; }
    .grid--4, .grid--3 { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .hero__actions .btn { flex: 1 1 100%; }
    .float-card { padding: 10px 14px; font-size: .8rem; }
    .float-card--a { left: 8px; bottom: 16px; }
    .float-card--b { right: 8px; top: 16px; }
    .hero__media::before { inset: 14px -8px -10px 14px; }
    .stat { padding: 22px 12px; }
    .subscribe { flex-direction: column; }
    .quote__text { min-height: 0; }
    .footer__bar { justify-content: center; text-align: center; padding: 22px 0 84px; }
    .pill { font-size: .8rem; }
    .pill b { white-space: nowrap; }
    .brand__name { white-space: nowrap; }
    .brand__name small { letter-spacing: .08em; }
}

@media (max-width: 360px) {
    .brand__name small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .coin__body, .coin__face::after, .float-card, .rec-dot { animation: none; }
    .coin__body { transform: rotateX(-6deg) rotateY(-14deg); }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .btn, .card { transition: none; }
}
