:root {
    color-scheme: light;
    --navy: #10264a;
    --navy-deep: #0a1b36;
    --blue: #2868d7;
    --blue-bright: #3f7ff0;
    --sky: #dfeaff;
    --ink: #142440;
    --muted: #69758a;
    --paper: #f6f8fc;
    --white: #fff;
    --line: #e5eaf2;
    --radius-lg: 28px;
    --container: 1160px;
    --ease: cubic-bezier(.22, .8, .24, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: "DM Sans", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.container {
    width: min(var(--container), calc(100% - 56px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    transform: translateY(-150%);
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--white);
    color: var(--navy);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: fixed;
    z-index: 20;
    inset: 0 0 auto;
    color: var(--white);
    background: rgba(10, 27, 54, .5);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 8px 30px rgba(7, 21, 44, .14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 92px;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

.brand-name {
    display: grid;
    gap: 1px;
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
}

.brand-name span {
    font-family: "DM Sans", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    opacity: .76;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 36px;
    font-size: 13px;
    font-weight: 600;
}

.site-nav > a:not(.nav-cta) {
    transition: opacity .2s ease;
}

.site-nav > a:not(.nav-cta):hover {
    opacity: .7;
}

.nav-cta {
    padding: 13px 18px;
    border: 1px solid rgba(255, 255, 255, .48);
    border-radius: 999px;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.nav-cta:hover {
    border-color: var(--white);
    background: var(--white);
    color: var(--navy);
}

.nav-cta span {
    margin-left: 9px;
}

.whatsapp-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.whatsapp-cta svg {
    width: 18px;
    height: 18px;
    flex: none;
    fill: currentColor;
}

.menu-toggle {
    display: none;
}

.hero {
    position: relative;
    display: flex;
    min-height: min(800px, 100svh);
    align-items: center;
    overflow: hidden;
    background: var(--navy-deep);
    color: var(--white);
}

.hero-image,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-image {
    background-image: url("https://www.ivosdrivingacademy.pt/img/carousel-1.jpg");
    background-position: center 43%;
    background-size: cover;
    transform: scale(1.035);
    animation: hero-image-in 1.2s var(--ease) both;
}

.hero-shade {
    background: linear-gradient(90deg, rgba(7, 21, 44, .88), rgba(7, 21, 44, .72) 40%, rgba(7, 21, 44, .21)), linear-gradient(0deg, rgba(7, 21, 44, .48), transparent 55%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 115px;
    padding-bottom: 90px;
    animation: hero-content-in .8s .12s var(--ease) both;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 22px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.eyebrow-light {
    color: rgba(255, 255, 255, .8);
}

.eyebrow-line {
    display: inline-block;
    width: 26px;
    height: 1px;
    background: currentColor;
}

.hero h1,
.section-heading h2,
.intro h2,
.path h2,
.partner h2,
.contact h2 {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    letter-spacing: -.065em;
    line-height: 1.08;
}

.hero h1 {
    max-width: 720px;
    font-size: clamp(54px, 7.1vw, 94px);
}

.hero h1 span,
.path h2 span,
.contact h2 span {
    color: #8cb4ff;
}

.hero-copy {
    max-width: 450px;
    margin: 25px 0 0;
    color: rgba(255, 255, 255, .8);
    font-size: 17px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    transition: transform .25s var(--ease), background .25s ease, color .25s ease, border-color .25s ease;
}

.button:hover {
    transform: translateY(-3px);
}

.button-primary {
    background: var(--blue);
    color: var(--white);
}

.button-primary:hover {
    background: var(--blue-bright);
}

.button-quiet {
    color: var(--white);
}

.button-quiet:hover {
    color: #a9c6ff;
}

.play-icon {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 50%;
    font-size: 15px;
}

.hero-proof {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 61px;
    color: rgba(255, 255, 255, .76);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
}

.proof-mark {
    color: var(--white);
    font-family: "Manrope", sans-serif;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -.08em;
}

.proof-mark span {
    color: #8cb4ff;
    font-size: 20px;
    vertical-align: top;
}

.proof-divider {
    width: 1px;
    height: 30px;
    margin-inline: 10px;
    background: rgba(255, 255, 255, .35);
}

.proof-location {
    display: flex;
    align-items: center;
    gap: 7px;
}

.pin {
    color: #a9c6ff;
    font-size: 20px;
}

.hero-scroll {
    position: absolute;
    z-index: 1;
    bottom: 33px;
    left: 50%;
    display: grid;
    width: 32px;
    height: 45px;
    place-items: start center;
    padding-top: 8px;
    border: 1px solid rgba(255, 255, 255, .44);
    border-radius: 99px;
}

.hero-scroll span {
    width: 3px;
    height: 8px;
    border-radius: 9px;
    background: var(--white);
    animation: scroll-dot 1.6s ease-in-out infinite;
}

.hero-note {
    position: absolute;
    right: max(28px, calc((100vw - var(--container)) / 2));
    bottom: 44px;
    color: rgba(255, 255, 255, .63);
    font-size: 10px;
    letter-spacing: .04em;
}

.hero-note span {
    color: var(--white);
    font-weight: 700;
}

.section-pad {
    padding-block: 120px;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr .9fr;
    align-items: center;
    column-gap: 8%;
    row-gap: 62px;
}

.intro h2,
.section-heading h2,
.partner h2 {
    font-size: clamp(38px, 4.5vw, 58px);
}

.intro h2 span,
.section-heading h2 span,
.partner h2 span {
    color: var(--blue);
}

.intro-copy {
    max-width: 520px;
    padding-top: 0;
}

.intro-copy > p:not(.eyebrow):not(.lead) {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.9;
}

.intro-copy .lead {
    margin: 24px 0 14px;
    color: var(--ink);
    font-family: "Manrope", sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.55;
}

.intro-photo {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin: 0;
    border-radius: var(--radius-lg);
    background: #e7edf6;
    box-shadow: 0 24px 64px rgba(16, 38, 74, .12);
}

.intro-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 23% center;
}

.intro-photo figcaption {
    position: absolute;
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: fit-content;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(10, 27, 54, .74);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(12px);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
}

.text-link span {
    transition: transform .2s ease;
}

.text-link:hover span {
    transform: translate(3px, -3px);
}

.intro-stats {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
}

.stat-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    column-gap: 14px;
    align-items: center;
    padding: 27px 22px;
    border-right: 1px solid var(--line);
}

.stat-card:first-child {
    padding-left: 0;
}

.stat-card:last-child {
    border-right: 0;
}

.stat-icon {
    display: grid;
    grid-row: span 2;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: var(--sky);
    color: var(--blue);
    font-size: 19px;
}

.stat-card strong {
    font-family: "Manrope", sans-serif;
    font-size: 18px;
}

.stat-card > span:last-child {
    color: var(--muted);
    font-size: 16px;
}

.training {
    background: var(--paper);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 45px;
}

.section-heading-copy {
    max-width: 350px;
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.training-card {
    position: relative;
    display: flex;
    min-height: 520px;
    flex-direction: column;
    overflow: hidden;
    padding: 25px 25px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    transition: transform .35s var(--ease), box-shadow .35s ease;
}

.training-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 55px rgba(24, 48, 85, .11);
}

.training-card-featured {
    border-color: #d4e1f7;
    background: #edf3ff;
}

.training-card-dark {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
}

.card-topline {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-tag {
    padding: 8px 12px;
    border: 1px solid rgba(40, 104, 215, .22);
    border-radius: 99px;
    color: var(--blue);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.training-card-dark .category-tag {
    border-color: rgba(255, 255, 255, .28);
    color: #c3d5f6;
}

.card-arrow {
    color: var(--blue);
    font-size: 19px;
}

.training-card-dark .card-arrow {
    color: #a9c6ff;
}

.vehicle-art {
    position: relative;
    display: grid;
    min-height: 160px;
    place-items: center;
    overflow: hidden;
    margin: 12px -10px 0;
}

.vehicle-art svg {
    position: relative;
    z-index: 1;
    width: min(94%, 290px);
    fill: none;
    stroke: var(--navy);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    transition: transform .45s var(--ease);
}

.training-card:hover .vehicle-art svg {
    transform: translateX(8px) scale(1.025);
}

.training-card-dark .vehicle-art svg {
    stroke: #c8d9f5;
}

.art-circle {
    position: absolute;
    width: 155px;
    height: 155px;
    border-radius: 50%;
    background: rgba(40, 104, 215, .11);
    filter: blur(1px);
}

.training-card-dark .art-circle {
    background: rgba(137, 176, 243, .13);
}

.car-art svg,
.heavy-art svg {
    width: 100%;
}

.card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.card-kicker {
    margin: 0 0 8px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.training-card-dark .card-kicker {
    color: #a9c6ff;
}

.card-content h3 {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -.05em;
    line-height: 1.2;
}

.card-content > p:not(.card-kicker) {
    max-width: 290px;
    margin: 13px 0 25px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.training-card-dark .card-content > p:not(.card-kicker) {
    color: rgba(255, 255, 255, .67);
}

.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 11px;
}

.training-card-dark .card-bottom {
    border-color: rgba(255, 255, 255, .18);
}

.card-bottom > span {
    color: var(--muted);
}

.training-card-dark .card-bottom > span {
    color: rgba(255, 255, 255, .62);
}

.card-bottom strong {
    color: var(--ink);
    font-family: "Manrope", sans-serif;
    font-size: 19px;
    font-weight: 800;
}

.training-card-dark .card-bottom strong {
    color: var(--white);
}

.card-bottom a {
    color: var(--blue);
    font-weight: 700;
}

.training-card-dark .card-bottom a {
    color: #a9c6ff;
}

.card-bottom a span {
    margin-left: 7px;
}

.price-note {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.path {
    overflow: hidden;
    background: radial-gradient(ellipse at 91% 2%, rgba(75, 128, 221, .16), transparent 38%), var(--navy);
    color: var(--white);
}

.path-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    align-items: center;
    gap: 10%;
}

.path h2 {
    font-size: clamp(39px, 4.5vw, 60px);
}

.path-copy > p:not(.eyebrow) {
    max-width: 450px;
    margin: 25px 0 28px;
    color: rgba(255, 255, 255, .7);
    font-size: 15px;
    line-height: 1.85;
}

.button-light {
    background: var(--white);
    color: var(--navy);
}

.button-light:hover {
    background: #e7efff;
}

.path-steps {
    border-top: 1px solid rgba(255, 255, 255, .2);
}

.path-step {
    display: grid;
    grid-template-columns: 54px 1fr 20px;
    align-items: start;
    gap: 18px;
    padding: 25px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.step-number {
    padding-top: 3px;
    color: #8cb4ff;
    font-family: "Manrope", sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.path-step h3 {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: 18px;
    font-weight: 600;
}

.path-step p {
    margin: 7px 0 0;
    color: rgba(255, 255, 255, .63);
    font-size: 16px;
}

.step-check {
    color: #8cb4ff;
    font-size: 16px;
}

.partner {
    padding-block: 96px;
    background: var(--paper);
}

.partner-panel {
    position: relative;
    display: grid;
    grid-template-columns: 118px 1fr auto;
    align-items: center;
    gap: 32px;
    padding: 54px;
    border: 1px solid #e0e8f5;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 20px 60px rgba(16, 38, 74, .045);
}

.partner-symbol {
    position: relative;
    display: grid;
    width: 108px;
    height: 108px;
    place-items: center;
    border: 1px solid #d7e3f6;
    border-radius: 50%;
    color: var(--blue);
    font-family: "Manrope", sans-serif;
    font-size: 25px;
    font-weight: 800;
}

.partner-symbol::before {
    position: absolute;
    inset: 8px;
    border: 1px dashed #b7c9e8;
    border-radius: inherit;
    content: "";
}

.partner-symbol i {
    position: absolute;
    top: 8px;
    right: 11px;
    width: 11px;
    height: 11px;
    border: 3px solid var(--white);
    border-radius: 50%;
    background: #56a6f5;
}

.partner-copy .eyebrow {
    margin-bottom: 13px;
}

.partner h2 {
    font-size: clamp(31px, 3.4vw, 43px);
}

.partner-copy > p:last-child {
    max-width: 490px;
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.button-outline {
    align-self: end;
    border-color: #d9e2f0;
    color: var(--navy);
    white-space: nowrap;
}

.button-outline:hover {
    border-color: var(--blue);
    background: var(--blue);
    color: var(--white);
}

.contact {
    position: relative;
    overflow: hidden;
    background: var(--navy-deep);
    color: var(--white);
}

.contact-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.contact-inner > .eyebrow {
    justify-content: center;
}

.contact h2 {
    font-size: clamp(55px, 7vw, 82px);
}

.contact-inner > p:not(.eyebrow) {
    max-width: 440px;
    margin: 22px auto 28px;
    color: rgba(255, 255, 255, .72);
    font-size: 16px;
    line-height: 1.8;
}

.contact-orbit {
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(140, 180, 255, .12);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbit-one {
    width: 440px;
    height: 440px;
}

.orbit-two {
    width: 650px;
    height: 650px;
}

.site-footer {
    background: #08172f;
    color: var(--white);
}

.footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 126px;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.brand-footer .brand-mark {
    width: 43px;
    height: 43px;
}

.brand-footer .brand-name {
    font-size: 13px;
}

.footer-main > p {
    color: rgba(255, 255, 255, .58);
    font-size: 13px;
}

.footer-partner {
    display: grid;
    gap: 5px;
    text-align: right;
}

.footer-partner > span {
    color: rgba(255, 255, 255, .54);
    font-size: 10px;
}

.footer-partner strong {
    font-size: 12px;
}

.footer-partner strong span {
    color: #8cb4ff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-block: 20px;
    color: rgba(255, 255, 255, .48);
    font-size: 10px;
}

.footer-bottom a {
    transition: color .2s ease;
}

.footer-bottom a:hover {
    color: var(--white);
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.training-grid .reveal:nth-child(2) {
    transition-delay: .09s;
}

.training-grid .reveal:nth-child(3) {
    transition-delay: .18s;
}

@keyframes hero-content-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-image-in {
    from { transform: scale(1.075); }
    to { transform: scale(1.035); }
}

@keyframes scroll-dot {
    0%, 100% { transform: translateY(0); opacity: 1; }
    75% { transform: translateY(13px); opacity: .2; }
}

@media (max-width: 900px) {
    .container { width: min(100% - 42px, var(--container)); }
    .site-nav { gap: 22px; }
    .section-pad { padding-block: 92px; }
    .training-grid { gap: 12px; }
    .training-card { min-height: 505px; padding: 20px 17px; }
    .card-content h3 { font-size: 22px; }
    .partner-panel { grid-template-columns: 88px 1fr; gap: 26px; padding: 38px; }
    .partner-symbol { width: 84px; height: 84px; font-size: 21px; }
    .partner-panel > .button { grid-column: 2; justify-self: start; }
}

@media (max-width: 680px) {
    html { scroll-padding-top: 72px; }
    .container { width: calc(100% - 38px); }
    .header-inner { min-height: 74px; }
    .brand-mark { width: 43px; height: 43px; }
    .brand-name { font-size: 13px; }
    .brand-name span { font-size: 9px; }
    .menu-toggle {
        position: relative;
        z-index: 22;
        display: grid;
        width: 44px;
        height: 44px;
        align-content: center;
        justify-items: center;
        gap: 6px;
        border: 1px solid rgba(255, 255, 255, .48);
        border-radius: 50%;
        background: transparent;
        cursor: pointer;
    }
    .menu-toggle span { width: 17px; height: 1.5px; background: var(--white); transition: transform .2s ease; }
    .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
    body.menu-open::before {
        position: fixed;
        z-index: 19;
        inset: 0;
        background: rgba(4, 12, 27, .56);
        content: "";
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }
    body.menu-open .site-header {
        background: var(--navy);
        border-bottom-color: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .site-nav {
        position: fixed;
        z-index: 21;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        display: flex;
        width: min(88vw, 380px);
        height: 100vh;
        height: 100dvh;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        overflow-y: auto;
        padding: 112px 28px 30px;
        background: var(--navy);
        box-shadow: -24px 0 60px rgba(0, 0, 0, .32);
        font-family: "Manrope", sans-serif;
        font-size: 20px;
        opacity: 0;
        pointer-events: none;
        transform: translateX(105%);
        transition: opacity .25s ease, transform .3s ease;
    }
    .site-nav.is-open { opacity: 1; pointer-events: auto; transform: translateX(0); }
    .site-nav > a:not(.nav-cta) { padding: 16px 2px; border-bottom: 1px solid rgba(255, 255, 255, .16); font-size: 19px; }
    .site-nav .nav-cta { align-self: flex-start; margin-top: 24px; padding: 13px 17px; font-family: "DM Sans", sans-serif; font-size: 14px; }
    .site-nav .whatsapp-cta { display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
    .hero { min-height: 760px; min-height: 100svh; align-items: center; }
    .hero-image { background-position: 58% center; }
    .hero-shade { background: linear-gradient(90deg, rgba(7, 21, 44, .8), rgba(7, 21, 44, .28)), linear-gradient(0deg, rgba(7, 21, 44, .82), transparent 80%); }
    .hero-content { padding-top: 112px; padding-bottom: 80px; }
    .hero h1 { font-size: clamp(49px, 13vw, 72px); }
    .hero-copy { max-width: 350px; font-size: 14px; }
    .hero-actions { gap: 11px; margin-top: 25px; }
    .button { min-height: 49px; padding-inline: 17px; font-size: 12px; }
    .hero-proof { margin-top: 46px; }
    .hero-note { display: none; }
    .hero-scroll { bottom: 21px; }
    .section-pad { padding-block: 76px; }
    .intro-grid { grid-template-columns: 1fr; row-gap: 24px; }
    .intro h2, .section-heading h2 { font-size: 42px; }
    .intro-copy { padding-top: 0; }
    .intro-copy .lead { font-size: 18px; }
    .intro-stats { grid-template-columns: 1fr; margin-top: 22px; }
    .stat-card, .stat-card:first-child { padding: 17px 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .stat-card:last-child { border-bottom: 0; }
    .section-heading { display: block; margin-bottom: 30px; }
    .section-heading-copy { margin-top: 20px; }
    .training-grid { grid-template-columns: 1fr; gap: 14px; }
    .training-card { min-height: 490px; padding: 22px; }
    .vehicle-art { min-height: 175px; }
    .card-content h3 { font-size: 27px; }
    .path-grid { grid-template-columns: 1fr; gap: 45px; }
    .path h2 { font-size: 42px; }
    .path-step { grid-template-columns: 37px 1fr 20px; gap: 11px; }
    .partner { padding-block: 68px; }
    .partner-panel { grid-template-columns: 1fr; gap: 22px; padding: 28px 23px; }
    .partner-symbol { width: 70px; height: 70px; font-size: 18px; }
    .partner h2 { font-size: 34px; }
    .partner-panel > .button { grid-column: auto; }
    .contact h2 { font-size: 57px; }
    .orbit-one { width: 340px; height: 340px; }
    .orbit-two { width: 520px; height: 520px; }
    .footer-main { align-items: flex-start; flex-direction: column; gap: 16px; padding-block: 30px; }
    .footer-main > p { margin: 0; }
    .footer-partner { text-align: left; }
    .footer-bottom { gap: 15px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

.partner-logo {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    object-fit: cover;
}

.contact-page {
    min-height: 100vh;
    background: var(--paper);
}

.contact-hero {
    position: relative;
    overflow: hidden;
    padding: 175px 0 76px;
    background: linear-gradient(90deg, rgba(7, 21, 44, .88), rgba(7, 21, 44, .58) 58%, rgba(7, 21, 44, .34)), linear-gradient(0deg, rgba(7, 21, 44, .42), transparent 70%), url("https://www.ivosdrivingacademy.pt/img/carousel-2.jpg") center 44% / cover, var(--navy);
    color: var(--white);
}

.contact-hero h1 {
    max-width: 750px;
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: clamp(48px, 7vw, 78px);
    font-weight: 700;
    letter-spacing: -.065em;
    line-height: 1.05;
}

.contact-hero h1 span {
    color: #8cb4ff;
}

.contact-hero-copy {
    max-width: 510px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, .75);
    font-size: 17px;
    line-height: 1.8;
}

.contact-content {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 24px;
    padding-top: 56px;
    padding-bottom: 90px;
}

.contact-info-card,
.contact-form-card {
    border: 1px solid #e1e8f3;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 20px 60px rgba(16, 38, 74, .05);
}

.contact-info-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    padding: 32px;
}

.contact-info-card > div:last-child {
    margin-top: 16px;
}

.contact-info-card h2,
.contact-form-card h2 {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: 25px;
    letter-spacing: -.045em;
}

.contact-info-card > p,
.contact-form-card > p {
    margin: 12px 0 28px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.contact-info-card > div:first-child > p:not(.eyebrow) {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.location-panel {
    position: relative;
    display: flex;
    min-height: 235px;
    flex-direction: column;
    justify-content: end;
    overflow: hidden;
    padding: 22px;
    border-radius: 20px;
    background: radial-gradient(circle at 70% 25%, rgba(140, 180, 255, .3), transparent 25%), linear-gradient(145deg, #1b3c70, #0a1b36);
    color: var(--white);
}

.location-panel::before {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(145deg, transparent 0 28px, rgba(255, 255, 255, .055) 29px 31px, transparent 32px 60px);
    content: "";
    pointer-events: none;
    transform: scale(1.5);
}

.location-pin {
    position: absolute;
    top: 32px;
    left: 50%;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 8px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    background: var(--blue-bright);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, .09);
    font-size: 18px;
    transform: translateX(-50%);
}

.location-panel strong,
.location-panel > span,
.location-panel a {
    position: relative;
    z-index: 1;
}

.location-panel strong {
    font-family: "Manrope", sans-serif;
    font-size: 18px;
}

.location-panel > span {
    margin-top: 6px;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    line-height: 1.6;
}

.map-link,
.whatsapp-link {
    color: var(--blue);
    font-size: 14px;
    font-weight: 700;
}

.map-link {
    display: inline-flex;
    align-self: start;
    gap: 9px;
    margin-top: 15px;
    color: #b9d0ff;
    font-size: 13px;
}

.direct-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 23px;
    padding-top: 21px;
    border-top: 1px solid var(--line);
}

.direct-contact > span {
    color: var(--muted);
    font-size: 14px;
}

.whatsapp-link {
    white-space: nowrap;
}

.contact-form-card {
    padding: 36px;
}

.contact-form-card > p {
    margin: 10px 0 26px;
}

.map-embed {
    width: 100%;
    height: 315px;
    overflow: hidden;
    border-radius: 20px;
    background: #e8edf5;
}

.map-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-form {
    display: grid;
    gap: 17px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label {
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 50px;
    padding: 13px 14px;
    border: 1px solid #dce4f0;
    border-radius: 12px;
    outline: 0;
    background: #fbfcfe;
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-field textarea {
    min-height: 135px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(40, 104, 215, .12);
}

.form-footnote {
    margin: -3px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.form-status {
    min-height: 20px;
    margin: 0;
    color: var(--blue);
    font-size: 14px;
}

.contact-form .button {
    justify-self: start;
    cursor: pointer;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.form-actions .button {
    min-height: 50px;
    gap: 10px;
    padding-inline: 17px;
}

.form-actions svg {
    width: 18px;
    height: 18px;
    flex: none;
    fill: currentColor;
}

.button-whatsapp {
    margin-left: auto;
    background: #22c55e;
    color: #fff;
}

.button-whatsapp:hover {
    background: #16a34a;
}

.footer-partner {
    display: grid;
    grid-template-columns: 34px auto;
    align-items: center;
}

.footer-partner-logo {
    width: 34px;
    height: 34px;
    grid-row: 1 / span 2;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 900px) {
    .partner-logo { width: 84px; height: 84px; }
    .contact-content { grid-template-columns: 1fr 1fr; gap: 15px; }
    .contact-info-card, .contact-form-card { padding: 24px; }
}

@media (max-width: 680px) {
    .partner-logo { width: 70px; height: 70px; }
    .contact-hero { padding: 130px 0 58px; background-position: 58% center; }
    .contact-hero h1 { font-size: clamp(43px, 12vw, 60px); }
    .contact-hero-copy { font-size: 15px; }
    .contact-content { grid-template-columns: 1fr; gap: 15px; padding-top: 25px; padding-bottom: 60px; }
    .contact-info-card, .contact-form-card { padding: 23px; }
    .contact-info-card h2, .contact-form-card h2 { font-size: 23px; }
    .form-row { grid-template-columns: 1fr; }
    .map-embed { height: 280px; }
    .form-actions { align-items: flex-start; flex-direction: column; }
    .form-actions .button { justify-content: center; }
    .form-actions .button-primary { align-self: flex-start; }
    .form-actions .button-whatsapp { align-self: flex-end; }
    .direct-contact { align-items: flex-start; flex-direction: column; }
    .footer-partner { grid-template-columns: 34px auto; }
}



