/* HBZ & Rosetta Stone – page styles (2026 refresh) */
:root {
    --blue: #004678;
    --blue-deep: #0b3357;
    --navy: #091c30;
    --orange: #ff8b00;
    --orange-dark: #e07a00;
    --bg: #f4f7fb;
    --surface: #ffffff;
    --text: #1d2a38;
    --muted: #5d6b7b;
    --border: #e1e8f0;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(9, 28, 48, 0.08);
    --shadow-lg: 0 24px 60px rgba(9, 28, 48, 0.16);
    --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--surface);
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font); line-height: 1.2; margin: 0 0 .5em; color: var(--blue); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tint { background: var(--bg); }
.section-head { max-width: 760px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--orange);
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font: 600 .95rem/1 var(--font);
    letter-spacing: .01em;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
    text-decoration: none !important;
    background: var(--orange); color: #fff;
    box-shadow: 0 8px 20px rgba(255, 139, 0, .28);
}
.btn:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(255, 139, 0, .34); color: #fff; }
.btn:disabled { opacity: .7; cursor: default; transform: none; }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; box-shadow: none; }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; box-shadow: none; }
.btn--outline { background: transparent; border-color: var(--blue); color: var(--blue); box-shadow: none; }
.btn--outline:hover { background: var(--blue); color: #fff; box-shadow: none; }
.btn--sm { padding: 10px 20px; font-size: .85rem; }
.btn img { width: 16px; height: 16px; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.88);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid rgba(225,232,240,.8);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.site-header .logo img { height: 40px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: inline-flex; background: var(--bg); border-radius: 999px; padding: 4px; border: 1px solid var(--border); }
.lang-switch a {
    padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--muted);
    text-decoration: none !important; transition: background .15s, color .15s;
}
.lang-switch a:hover { color: var(--blue); }
.lang-switch a.is-active { background: var(--blue); color: #fff; }

/* Hero */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: min(88vh, 760px);
    display: grid; place-items: center;
    background: var(--navy) url("../images/bg.jpg") center/cover no-repeat;
    color: #fff; text-align: center;
    padding: clamp(80px, 12vw, 140px) 0;
}
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(9,28,48,.55) 0%, rgba(9,28,48,.78) 60%, rgba(9,28,48,.95) 100%);
}
.hero .eyebrow { color: #ffb15c; margin-bottom: 18px; }
.hero h1 { color: #fff; max-width: 820px; margin-inline: auto; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.hero p { max-width: 640px; margin: 18px auto 34px; font-size: 1.1rem; color: rgba(255,255,255,.85); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-stats {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px;
    margin-top: clamp(40px, 6vw, 64px); padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,.18);
}
.hero-stats div { text-align: center; }
.hero-stats strong { display: block; font-size: 1.6rem; font-weight: 700; color: #fff; line-height: 1.1; }
.hero-stats span { font-size: .85rem; color: rgba(255,255,255,.75); }

/* Intro */
.intro { max-width: 820px; margin: 0 auto; text-align: center; }
.intro p { font-size: 1.1rem; color: var(--muted); }
.intro p:first-of-type { font-size: 1.25rem; color: var(--text); font-weight: 500; }
.notice {
    margin-top: 32px; display: inline-flex; gap: 12px; align-items: flex-start; text-align: left; max-width: 760px;
    background: #fff6ea; border: 1px solid #ffd9ad; color: #7a4600;
    border-radius: 12px; padding: 14px 18px; font-size: .95rem;
}
.notice svg { flex: none; width: 20px; height: 20px; margin-top: 3px; }

/* Feature cards */
.features { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.feature {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px 24px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature .icon {
    width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(0,70,120,.12), rgba(0,70,120,.04)); color: var(--blue);
}
.feature .icon svg { width: 24px; height: 24px; }
.feature--accent .icon { background: linear-gradient(135deg, rgba(255,139,0,.18), rgba(255,139,0,.06)); color: var(--orange-dark); }
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Languages */
.lang-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 980px; margin: 0 auto; }
.lang-grid li {
    padding: 10px 18px; border-radius: 999px; font-weight: 500; font-size: .95rem;
    background: var(--surface); border: 1px solid var(--border); color: var(--blue);
    box-shadow: 0 2px 8px rgba(9,28,48,.04);
}

/* Learning paths */
.paths { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.path {
    position: relative; overflow: hidden;
    border-radius: var(--radius); padding: 36px 32px; color: #fff;
    background: linear-gradient(145deg, var(--blue) 0%, var(--blue-deep) 100%);
    box-shadow: var(--shadow-lg);
}
.path--advanced { background: linear-gradient(145deg, #0b3357 0%, var(--navy) 100%); }
.path::after {
    content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,139,0,.35), transparent 70%);
}
.path .level {
    display: inline-block; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
    font-size: .8rem; font-weight: 600; letter-spacing: .08em;
}
.path h3 { color: #fff; font-size: 1.35rem; margin-bottom: 14px; }
.path p { color: rgba(255,255,255,.85); }
.path .langs { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); font-size: .92rem; color: rgba(255,255,255,.8); }
.path .langs strong { display: block; color: #fff; margin-bottom: 6px; }

/* Licence section */
.licence { background: var(--bg); }
.licence-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; align-items: stretch; }
.card {
    background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border);
    box-shadow: var(--shadow); padding: clamp(28px, 4vw, 44px);
}
.card--info { background: linear-gradient(160deg, var(--blue) 0%, var(--navy) 100%); color: #fff; border: 0; display: flex; flex-direction: column; }
.card--info h3 { color: #fff; font-size: 1.4rem; }
.card--info p { color: rgba(255,255,255,.85); }
.card--info .btn { align-self: flex-start; margin: 8px 0 28px; }
.card--info .contact { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.card--info .contact svg { width: 22px; height: 22px; flex: none; color: #ffb15c; }
.card--info .contact span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.65); }
.card--info .contact a { color: #fff; font-weight: 600; }
.card--info .partner { margin-top: auto; padding-top: 32px; display: flex; align-items: center; gap: 14px; font-size: .85rem; color: rgba(255,255,255,.7); }
.card--info .partner img { width: 110px; }

/* Form (Angular template keeps its classes) */
.card--form h3 { margin-bottom: 4px; }
.card--form .lead { color: var(--muted); font-size: .95rem; margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group label b { font-weight: 600; }
.form-control {
    display: block; width: 100%; height: 50px; padding: 0 16px;
    font: 400 1rem/1.4 var(--font); color: var(--text);
    background: #fff; border: 1.5px solid var(--border); border-radius: 12px;
    transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.form-control::placeholder { color: #9aa7b5; }
.form-control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,70,120,.12); }
.custom-control { position: relative; display: flex; align-items: flex-start; gap: 10px; }
.custom-control-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.custom-control-label { position: relative; padding-left: 32px; font-size: .9rem; font-weight: 400 !important; color: var(--muted); cursor: pointer; line-height: 1.5; }
.custom-control-label::before {
    content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px;
    border: 1.5px solid #b9c5d2; border-radius: 6px; background: #fff; transition: all .15s;
}
.custom-control-label::after {
    content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 11px;
    border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .15s;
}
.custom-control-input:checked ~ .custom-control-label::before { background: var(--blue); border-color: var(--blue); }
.custom-control-input:checked ~ .custom-control-label::after { transform: rotate(45deg) scale(1); }
.custom-control-input:focus-visible ~ .custom-control-label::before { box-shadow: 0 0 0 4px rgba(0,70,120,.15); }
.card--form .btn { width: 100%; height: 52px; }
.card--form .widget-contact-form span[style] { color: var(--text) !important; }
.card--form .widget-contact-form > span { display: block; padding: 16px; border-radius: 12px; background: #eef7f0; border: 1px solid #c9e6d1; color: #1f5a30 !important; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 40px 0; font-size: .9rem; }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { color: #fff; }

/* Responsive */
@media (max-width: 900px) {
    .licence-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .site-header .container { height: 64px; }
    .site-header .logo img { height: 34px; }
    .header-cta { display: none; }
    .hero { min-height: 0; }
    .hero-actions .btn { width: 100%; }
    .hero-stats { gap: 18px 28px; }
    .path { padding: 28px 22px; }
    .section { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .feature, .btn { transition: none; }
}
