/* ==========================================================
   Ceautocars — site stylesheet
   Highway palette: deep navy, sky blue, coral-orange, mist
   ========================================================== */
:root {
    --night: #0b2545;
    --night-2: #123461;
    --night-3: #1a477f;
    --amber: #2f8fd1;
    --amber-dark: #1f74ac;
    --coral: #ff7a45;
    --sand: #f4f7fb;
    --sand-2: #e8eef7;
    --white: #ffffff;
    --ink: #0f2743;
    --text: #44586b;
    --muted: #70869b;
    --line: #d9e3f0;
    --r: 22px;
    --r-sm: 14px;
    --shadow: 0 24px 50px -28px rgba(11, 37, 69, .45);
    --head: 'Sora', system-ui, sans-serif;
    --body: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.75; color: var(--text); background: var(--sand); -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--amber-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--night); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
.hl { color: var(--amber); }
.hl-coral { color: var(--coral); }

.wrap { width: 100%; max-width: 1260px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }
.bg-white { background: var(--white); }
.bg-night { background: var(--night); color: #c3d6e8; }
.bg-night h2, .bg-night h3, .bg-night h4 { color: var(--white); }
.center { text-align: center; }

.tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(47, 143, 209, .16); color: var(--amber-dark); font-family: var(--head); font-weight: 600; font-size: .82rem; padding: 7px 14px; border-radius: 999px; margin-bottom: 18px; }
.bg-night .tag { color: var(--amber); }
.sec-head { max-width: 700px; margin: 0 auto 56px; text-align: center; }
.sec-head p { color: var(--muted); font-size: 1.08rem; }
.bg-night .sec-head p { color: #a9c3dd; }
.sec-head.left { margin-left: 0; text-align: left; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--head); font-weight: 600; font-size: 1rem; padding: 14px 28px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: all .2s; }
.btn-amber { background: var(--amber); color: var(--white); }
.btn-amber:hover { background: var(--amber-dark); color: var(--white); transform: translateY(-2px); }
.btn-night { background: var(--night); color: var(--white); }
.btn-night:hover { background: var(--night-3); color: var(--white); transform: translateY(-2px); }
.btn-outline { border-color: rgba(255, 255, 255, .5); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--night); }
.btn-outline-dark { border-color: var(--night); color: var(--night); }
.btn-outline-dark:hover { background: var(--night); color: var(--white); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 70; padding: 14px 0; transition: padding .25s; }
.header-inner { background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border-radius: 999px; height: 74px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 28px; box-shadow: 0 10px 30px -18px rgba(11, 37, 69, .4); max-width: 1212px; }
.site-header.scrolled { padding: 8px 0; }
.brand img { height: 38px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a:not(.btn) { font-family: var(--head); font-weight: 500; color: var(--ink); padding: 10px 16px; border-radius: 999px; transition: background .2s, color .2s; }
.main-nav a:not(.btn):hover { background: var(--sand-2); color: var(--ink); }
.main-nav a.current:not(.btn) { background: var(--night); color: var(--white); }
.nav-cta { margin-left: 8px; padding: 12px 24px; }
.nav-toggle { display: none; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--night); color: var(--white); font-size: 1.15rem; cursor: pointer; }
.nav-toggle.active i::before { content: "\f00d"; }

/* Hero bento */
.hero { padding: 20px 0 60px; }
.bento { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 300px 300px; gap: 18px; }
.tile { position: relative; border-radius: var(--r); overflow: hidden; background: var(--night) center / cover no-repeat; color: var(--white); display: flex; flex-direction: column; justify-content: flex-end; padding: 34px; }
.tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 37, 69, .05) 20%, rgba(11, 37, 69, .85)); }
.tile > * { position: relative; }
.tile.main { grid-row: span 2; padding: 56px; }
.tile.main::before { background: linear-gradient(100deg, rgba(11, 37, 69, .92) 10%, rgba(11, 37, 69, .35) 70%); }
.tile.main h1 { color: var(--white); max-width: 620px; }
.tile.main p { font-size: 1.15rem; max-width: 500px; color: #dfeaf8; }
.tile h3 { color: var(--white); margin-bottom: 6px; }
.tile p { margin: 0; color: #d8e6f5; font-size: .96rem; }
.tile .chip { align-self: flex-start; background: var(--amber); color: var(--white); font-family: var(--head); font-weight: 700; font-size: .78rem; border-radius: 999px; padding: 5px 12px; margin-bottom: 12px; }
.tile .chip.coral { background: var(--coral); color: var(--white); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 18px; }
.trust-row div { background: var(--white); border-radius: var(--r-sm); padding: 18px 22px; display: flex; align-items: center; gap: 14px; font-family: var(--head); font-weight: 600; color: var(--ink); border: 1px solid var(--line); }
.trust-row i { width: 42px; height: 42px; border-radius: 12px; background: var(--sand-2); color: var(--coral); display: grid; place-items: center; }

/* About split */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--r); width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.about-media .quote-card { position: absolute; right: -30px; bottom: -30px; max-width: 280px; background: var(--night); color: var(--white); padding: 24px; border-radius: var(--r-sm); font-family: var(--head); font-size: 1.05rem; line-height: 1.4; box-shadow: var(--shadow); }
.about-media .quote-card i { color: var(--amber); display: block; margin-bottom: 8px; }
.lead { font-size: 1.1rem; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: var(--night-2); border-radius: var(--r); padding: 36px; border: 1px solid rgba(255, 255, 255, .06); position: relative; overflow: hidden; }
.feature .num { position: absolute; right: 24px; top: 14px; font-family: var(--head); font-weight: 800; font-size: 4.4rem; color: rgba(255, 255, 255, .05); }
.feature .ico { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 24px; background: var(--amber); color: var(--white); }
.feature:nth-child(2) .ico { background: var(--coral); color: var(--white); }
.feature:nth-child(3) .ico { background: #7fb8e0; color: var(--night); }
.feature p { margin: 0; color: #a9c3dd; }

/* Coverage + commitment */
.duo { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
.panel { background: var(--white); border-radius: var(--r); padding: 44px; border: 1px solid var(--line); }
.panel.warm { background: linear-gradient(145deg, var(--amber), var(--coral)); border: 0; color: var(--white); }
.panel.warm h3 { color: var(--white); font-size: 1.8rem; }
.panel.warm p { color: #eaf2fb; }
.panel h3 { font-size: 1.7rem; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: center; font-weight: 600; color: var(--ink); }
.ticks li i { width: 30px; height: 30px; border-radius: 50%; background: var(--sand-2); color: var(--coral); display: grid; place-items: center; font-size: .8rem; flex: 0 0 30px; }

/* Services preview */
.svc-rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.svc-card { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 4; display: flex; align-items: flex-end; padding: 22px; color: var(--white); }
.svc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.svc-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(11, 37, 69, .9)); }
.svc-card span { position: relative; z-index: 1; font-family: var(--head); font-weight: 600; font-size: 1.1rem; line-height: 1.25; }
.svc-card:hover img { transform: scale(1.07); }
.svc-card:hover { color: var(--amber); }

/* Promise pair */
.promise { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.promise-card { border-radius: var(--r); padding: 44px; background: var(--white); border: 1px solid var(--line); }
.promise-card .ico { font-size: 1.8rem; color: var(--coral); margin-bottom: 18px; display: block; }
.promise-card:last-child .ico { color: var(--amber-dark); }

/* CTA */
.cta { background: var(--night) url("../images/hero-coastal.png") center / cover; border-radius: 32px; padding: 90px 40px; text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(11, 37, 69, .82); }
.cta > * { position: relative; }
.cta h2 { color: var(--white); }
.cta p { color: #d8e6f5; max-width: 620px; margin: 0 auto 30px; font-size: 1.1rem; }

/* Page hero */
.page-hero { padding: 20px 0 0; }
.page-hero .inner { border-radius: 32px; background: var(--night) center / cover; padding: 110px 60px 90px; position: relative; overflow: hidden; }
.page-hero .inner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11, 37, 69, .95) 25%, rgba(11, 37, 69, .5)); }
.page-hero .inner > * { position: relative; }
.page-hero h1 { color: var(--white); max-width: 760px; }
.page-hero p { color: #d8e6f5; font-size: 1.15rem; max-width: 600px; margin: 0; }
.crumbs { font-family: var(--head); font-size: .9rem; color: #a9c3dd; margin-bottom: 16px; }
.crumbs a { color: var(--amber); }
.crumbs span { margin: 0 8px; }

/* About page */
.mission { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-radius: var(--r); overflow: hidden; }
.mission div { padding: 44px 36px; background: var(--white); border-right: 1px solid var(--line); }
.mission div:last-child { border-right: 0; }
.mission .n { font-family: var(--head); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--amber); display: block; margin-bottom: 14px; }
.mission div:nth-child(2) .n { color: var(--coral); }
.mission div:nth-child(3) .n { color: var(--night-3); }
.mission p { margin: 0; color: var(--muted); }
.approach { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.approach > div { background: var(--night-2); border-radius: var(--r-sm); padding: 30px; display: grid; grid-template-columns: 50px 1fr; gap: 18px; }
.approach i { width: 50px; height: 50px; border-radius: 14px; background: rgba(47, 143, 209, .15); color: var(--amber); display: grid; place-items: center; font-size: 1.2rem; }
.approach p { margin: 0; color: #a9c3dd; }
.values-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.values-pills span { display: inline-flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 14px 28px 14px 16px; font-family: var(--head); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.values-pills i { width: 42px; height: 42px; border-radius: 50%; background: var(--amber); color: var(--white); display: grid; place-items: center; }
.values-pills span:nth-child(2) i { background: var(--coral); color: var(--white); }
.values-pills span:nth-child(3) i { background: #7fb8e0; }
.values-pills span:nth-child(4) i { background: var(--night); color: var(--white); }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--white); border-radius: var(--r-sm); padding: 32px; border: 1px solid var(--line); }
.card .ico { color: var(--coral); font-size: 1.5rem; margin-bottom: 14px; display: block; }
.card p { margin: 0; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* Services page */
.svc-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--white); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.svc-detail + .svc-detail { margin-top: 28px; }
.svc-detail img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.svc-detail.flip img { order: 2; }
.svc-detail .body { padding: 50px; display: flex; flex-direction: column; justify-content: center; }
.svc-detail .idx { font-family: var(--head); font-weight: 700; color: var(--coral); font-size: .95rem; margin-bottom: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.pills span { background: var(--sand-2); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.pills span i { color: var(--coral); margin-right: 6px; }

/* Forms */
.form-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 30px; align-items: start; }
.form-side { background: var(--night); border-radius: var(--r); padding: 44px; color: #c3d6e8; position: sticky; top: 120px; }
.form-side h2, .form-side h3 { color: var(--white); }
.contact-tile { display: flex; gap: 16px; align-items: center; background: var(--night-2); border-radius: var(--r-sm); padding: 18px; margin-top: 14px; }
.contact-tile i { width: 48px; height: 48px; border-radius: 14px; background: var(--amber); color: var(--white); display: grid; place-items: center; flex: 0 0 48px; }
.contact-tile a, .contact-tile strong { color: var(--white); font-family: var(--head); font-weight: 600; }
.contact-tile small { display: block; color: #a9c3dd; }
.form-box { background: var(--white); border-radius: var(--r); padding: 48px; border: 1px solid var(--line); }
.form-box.slim { max-width: 520px; margin: 0 auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--head); font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 6px; }
.field input { width: 100%; padding: 15px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--sand); font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(47, 143, 209, .2); background: var(--white); }
.consent { display: grid; gap: 12px; margin: 8px 0 0; font-size: .87rem; line-height: 1.6; color: var(--muted); }
.consent label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.consent input { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--coral); }
.consent .fine { background: var(--sand); border-left: 3px solid var(--amber); padding: 14px 16px; border-radius: 0 12px 12px 0; margin: 0; }
.consent a { color: var(--coral); font-weight: 700; text-decoration: underline; }
#form-message { display: none; margin: 16px 0 0; font-weight: 600; }
.form-box .btn { width: 100%; margin-top: 22px; }
.form-links { display: flex; justify-content: space-between; font-size: .92rem; font-weight: 600; }

/* Legal */
/* .legal { display: grid; grid-template-columns: 1fr 290px; gap: 40px; align-items: start; } */
.legal-body { background: var(--white); border-radius: var(--r); padding: 56px; border: 1px solid var(--line); }
.legal-body h2 { font-size: 1.5rem; margin-top: 1.9em; scroll-margin-top: 120px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body li { margin-bottom: .5em; }
.legal-body li::marker { color: var(--coral); }
.legal-nav { position: sticky; top: 120px; background: var(--night); border-radius: var(--r); padding: 28px; max-height: calc(100vh - 150px); overflow: auto; }
.legal-nav h4 { color: var(--amber); font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; }
.legal-nav a { display: block; color: #d6e4f2; font-size: .9rem; line-height: 1.4; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.legal-nav a:hover { color: var(--amber); }

/* Footer */
.site-footer { background: var(--night); color: #a9c3dd; padding: 80px 0 30px; margin-top: 100px; border-radius: 40px 40px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 42px; width: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 340px; }
.footer-contact a { display: flex; gap: 10px; align-items: center; color: var(--white); margin-top: 8px; font-weight: 600; }
.footer-contact i { color: var(--amber); }
.site-footer h4 { color: var(--white); margin-bottom: 18px; }
.site-footer .footer-grid > div:not(.footer-brand) a { display: block; color: #a9c3dd; margin-bottom: 10px; }
.site-footer a:hover { color: var(--amber) !important; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom p { margin: 0; }
.to-top { width: 46px; height: 46px; border-radius: 50%; background: var(--amber); color: var(--white) !important; display: grid; place-items: center; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }

/* Responsive */
@media (max-width: 1100px) {
    .svc-rail { grid-template-columns: repeat(3, 1fr); }
    .trust-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
    .nav-toggle { display: block; }
    .header-inner { padding-right: 12px; }
    .main-nav { position: fixed; top: 100px; left: 16px; right: 16px; flex-direction: column; align-items: stretch; background: var(--white); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all .25s; }
    .main-nav.open { opacity: 1; visibility: visible; transform: none; }
    .main-nav a:not(.btn) { padding: 14px 18px; font-size: 1.05rem; }
    .nav-cta { margin: 10px 0 0; }
    .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto 260px; }
    .tile.main { grid-column: 1 / -1; grid-row: auto; padding: 40px 30px; min-height: 520px; }
    .about-split, .duo, .promise, .form-wrap, .legal, .svc-detail, .two { grid-template-columns: 1fr; }
    .svc-detail.flip img { order: 0; }
    .svc-detail img { min-height: 260px; }
    .about-media .quote-card { right: 16px; }
    .features, .three, .mission { grid-template-columns: 1fr 1fr; }
    .mission div { border-bottom: 1px solid var(--line); }
    .form-side, .legal-nav { position: static; max-height: none; }
    .legal-nav { order: -1; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .page-hero .inner { padding: 80px 32px 60px; }
}
@media (max-width: 640px) {
    .wrap { padding: 0 16px; }
    .section { padding: 70px 0; }
    .site-header { padding-left: 12px; padding-right: 12px; }
    .header-inner { height: 64px; padding-left: 20px; }
    .trust-row { grid-template-columns: 1fr 1fr !important; gap: 10px; }
    .trust-row div { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; font-size: .92rem; }
    .brand img { height: 32px; }
    .bento { grid-template-columns: 1fr; grid-template-rows: auto; }
    .tile { min-height: 240px; }
    .trust-row, .features, .three, .mission, .approach, .grid-2, .svc-rail, .footer-grid { grid-template-columns: 1fr; }
    .svc-card { aspect-ratio: 16 / 10; }
    .about-media .quote-card { position: static; margin-top: -40px; margin-left: 16px; margin-right: 16px; }
    .panel, .promise-card, .form-box, .form-side, .legal-body, .svc-detail .body { padding: 30px 22px; }
    .cta { padding: 60px 22px; border-radius: 24px; }
    .page-hero .inner { padding: 60px 22px 44px; border-radius: 24px; }
    .footer-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
}
