/* Additions for the Evrauto home page. Loaded after styles.css. */

/* Logo in the header and footer */
.site-logo { display: block; width: auto; height: 40px; }
.footer-section .site-logo { height: 44px; }
@media (max-width: 479px) {
  .site-logo { height: 34px; }
  .footer-section .brand-link { display: flex; justify-content: center; }
}

section[id], div[id="top"] { scroll-margin-top: 5rem; }
.hero-actions { flex-wrap: wrap; gap: 20px; }

/* Moving strip of services (replaces the logo strip) */
.service-strip { width: 100%; overflow: hidden; padding-block: 3rem; }
.service-track { display: flex; width: max-content; animation: strip-move 30s linear infinite; }
.service-track ul { display: flex; flex: none; gap: 5rem; margin: 0; padding: 0 5rem 0 0; list-style: none; }
.service-track li { color: var(--muted); font-size: 1.375rem; font-weight: 700; white-space: nowrap; opacity: .6; }
@keyframes strip-move { to { transform: translateX(-50%); } }

/* Keep the decorative rings behind text at every width */
.hero-section .item-2, .cta-section .item-2 { z-index: -1; }

.service-grid { gap: 3rem 2rem; }
.service-grid p { margin: 0; }

.step-grid { align-items: stretch; }
.step-grid h3 { margin-top: 8px; }
.step-grid p { margin: 0; }

.faq-answer > p { margin-bottom: 12px; }
.faq-answer > :last-child { margin-bottom: 1.75rem; }
.faq-answer .check-list { margin-top: 0; }
.cta-actions { gap: 1.5rem; }

.section-intro { max-width: 720px; }
.section-intro .subtitle + h2 { margin-bottom: 12px; }
.faq-section .text-align-center .subtitle + h2 { margin-bottom: 12px; }

/* Check lists */
.check-list { margin: 8px 0 0; }
.check-list li { position: relative; margin-bottom: 8px; padding-left: 28px; }
.check-list li::before { content: ""; position: absolute; top: 7px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--coral) url("../assets/images/verifier.svg") center / 8px no-repeat; }

/* Core idea photo fills the taller text column */
.tall-photo { height: 100% !important; }

/* Coverage groups */
.coverage-group { display: grid; grid-template-columns: .75fr 1.5fr; gap: 24px 50px; padding-block: 2.5rem; border-top: 1px solid var(--line-strong); }
.coverage-group:last-child { padding-bottom: 0; }
.coverage-group h3 { margin-top: 0; }
.coverage-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.coverage-card, .change-card { padding: 1.5rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.coverage-card.wide { grid-column: 1 / -1; }
.coverage-card h4, .change-card h4 { margin-top: 0; font-size: 1.125rem; line-height: 26px; }
.coverage-card p, .change-card p { margin: 0; font-size: 1rem; line-height: 26px; }

.coverage-tag { margin-bottom: 8px; color: var(--coral); font-size: .8125rem; font-weight: 700; line-height: 18px; letter-spacing: 1px; text-transform: uppercase; }

/* Moments to send a change */
.change-grid { align-items: stretch; }
.change-card { border-top: 4px solid var(--coral); }
.change-card:nth-child(even) { border-top-color: var(--yellow); }

/* Discount check */
.inline-button { display: inline-flex; margin-top: 1.25rem; }

/* After an accident */
.accident-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.accident-steps li { padding: 2rem; border-radius: 10px; background: #fff; counter-increment: step; }
.accident-steps li::before { content: counter(step); display: flex; justify-content: center; align-items: center; width: 40px; height: 40px; margin-bottom: 1rem; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 700; }
.accident-steps h4 { margin-top: 0; }
.accident-steps p { margin: 0; font-size: 1rem; line-height: 26px; }
.accident-section .subtitle { color: #fff; }

.footer-tagline { margin-top: 8px; color: var(--muted); }

/* Glossary */
.glossary-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 50px; margin: 0; }
.glossary-list > div { padding-block: 1.25rem; border-top: 1px solid var(--line-strong); }
.glossary-list dt { margin-bottom: 4px; font-size: 1.25rem; font-weight: 700; line-height: 28px; }
.glossary-list dd { margin: 0; color: var(--muted); font-size: 1rem; line-height: 26px; }
.glossary-list dd.road-note { margin-top: 12px; padding: 10px 14px; border-left: 3px solid var(--yellow); border-radius: 0 8px 8px 0; background: var(--soft); font-size: .938rem; line-height: 24px; }
.road-note strong { color: var(--ink); }

/* Renewal route: a road line with mile markers */
.route-line { margin: 0; padding: 0; list-style: none; counter-reset: mile; }
.route-line li { position: relative; padding: 0 0 2rem 64px; counter-increment: mile; }
.route-line li:last-child { padding-bottom: 0; }
.route-line li::before { content: counter(mile); position: absolute; top: 0; left: 0; z-index: 1; display: flex; justify-content: center; align-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--coral); color: #fff; font-weight: 700; }
.route-line li:not(:last-child)::after { content: ""; position: absolute; top: 44px; bottom: 4px; left: 19px; border-left: 2px dashed var(--yellow); }
.route-line h4 { margin: 0 0 6px; padding-top: 6px; }
.route-line p { margin: 0; font-size: 1rem; line-height: 26px; }

/* Documents */
.document-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.document-grid p { margin: 0; font-size: 1rem; line-height: 26px; }

@media (max-width: 1279px) {
  .step-grid, .change-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px) and (min-width: 992px) {
  .navbar-menu .navbar-link { padding-inline: .5rem; font-size: 1rem; }
  .navbar-menu .button { padding-inline: 24px; }
}

@media (max-width: 991px) {
  .coverage-group { grid-template-columns: 1fr; }
  .document-grid { grid-template-columns: 1fr; }
  .accident-steps { grid-template-columns: 1fr 1fr; }
  .tall-photo { height: auto !important; }
}

@media (max-width: 639px) {
  .coverage-cards, .accident-steps, .glossary-list { grid-template-columns: 1fr; }
}

@media (max-width: 479px) {
  .step-grid, .change-grid { grid-template-columns: 1fr; }
  .accident-steps li { padding: 1.5rem; }
}

/* Added detail in cards and sections */
.coverage-card p.example, .change-card p.example { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-strong); font-size: .938rem; line-height: 24px; }
.side-card { margin-top: 2rem; }
.side-card .check-list li { font-size: 1rem; line-height: 26px; }
.accident-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.accident-notes > div { padding: 2rem; border-radius: 10px; background: #fff; }
.accident-notes h4 { margin-top: 0; }
.accident-notes .check-list li { font-size: 1rem; line-height: 26px; }
.document-extra { margin-top: 3rem; }
.document-extra h3 { margin-top: 0; }
.start-grid { margin-bottom: 5rem; }

@media (max-width: 1279px) {
  .start-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 639px) {
  .accident-notes { grid-template-columns: 1fr; }
  .accident-notes > div { padding: 1.5rem; }
}

@media (max-width: 479px) {
  .start-grid { grid-template-columns: 1fr; }
  .start-grid { margin-bottom: 3.5rem; }
}

/* About page */
.card-style .example { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-strong); font-size: .938rem; line-height: 24px; }
.route-line p.step-extra { margin-top: 8px; }
.change-card .example strong { display: block; color: var(--ink); }
.change-card div.example { margin-top: 12px; padding-top: 4px; border-top: 1px dashed var(--line-strong); }
.change-card .check-list li { font-size: .938rem; line-height: 24px; }
.shared-section .check-list li { font-size: 1rem; line-height: 26px; }

/* Coverages page */
.min-height-hero { min-height: 90vh; }
.hero-section .background-image { background-image: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url("../assets/images/car-evening-highway-1024.jpg"); }
.coverage-tabs [role="tablist"] { flex-wrap: wrap; }
.coverage-tabs .tab-link-style { margin-inline: 4px; padding: 18px 16px; }
.tab-entry { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.tab-entry h4 { margin: 0 0 4px; font-size: 1.125rem; line-height: 26px; }
.tab-entry p, .small-copy { margin: 0; font-size: 1rem; line-height: 26px; }
.coverage-tabs .full-size.fit-cover.border-10px { height: 100%; max-height: 520px; min-height: 320px; }
.moment-card > img { width: 100%; height: 420px; }
.button-light, .button-light:hover { background: #fff; color: var(--coral); }
.cta-section a.text-color-white:not(.button) { color: #fff; }

@media (max-width: 991px) {
  .coverage-tabs .full-size.fit-cover.border-10px { height: 320px; }
}

/* Coverages page detail */
.tab-entry p.group-intro, .group-intro { margin: 8px 0 0; font-size: 1rem; line-height: 26px; }
.tab-entry p.tab-note { margin-top: 8px; font-size: .938rem; line-height: 24px; }
.tab-note strong { color: var(--ink); }
.moment-text { margin: 1rem 0 0; font-size: 1rem; line-height: 26px; }

/* Contact page and form */
.contact-grid { padding-bottom: 3rem; }
.claim-note { margin-top: 2rem; padding: 1.25rem 1.5rem; border-left: 4px solid var(--yellow); border-radius: 0 10px 10px 0; background: var(--soft); }
.claim-note h3 { margin-top: 0; }
.claim-note p { margin: 0; font-size: 1rem; line-height: 26px; }
.form-card { scroll-margin-top: 7rem; }
.form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-block: 1.5rem; }
.form-control { width: 100%; min-width: 0; height: 54px; padding: 12px 20px; border: 1px solid var(--line-strong); border-radius: 100px; background: #fff; font-size: 16px; }
.form-control:focus { border-color: var(--coral); outline: 2px solid rgba(255, 105, 105, .25); }
.consent { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; color: var(--muted); font-size: .8125rem; line-height: 20px; cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--coral); }
.consent a { font-size: inherit; line-height: inherit; }
.lead-form button { width: 100%; margin-top: 8px; border: 0; font-family: var(--font); cursor: pointer; }
.lead-form button:disabled { opacity: .6; cursor: default; }
.form-message { margin-top: 15px; font-size: 14px; }
.form-message.error { color: red; }
.form-message.success { color: green; }
.error-field { border: 1px solid red !important; }

@media (max-width: 479px) {
  .form-fields { grid-template-columns: 1fr; }
}

/* Legal pages */
.legal-page { padding-block: 8rem 3rem; border-bottom: 2px solid var(--line); }
.legal h1 { margin-top: 0; }
.legal h2 { margin: 2.5rem 0 .75rem; font-size: 1.5rem; line-height: 34px; scroll-margin-top: 7rem; }
.legal p, .legal ul { font-size: 1rem; line-height: 28px; }
.legal ul { padding-left: 22px; }
.legal a { font-size: inherit; line-height: inherit; overflow-wrap: anywhere; }
.legal strong { color: var(--ink); }
.legal-table { overflow-x: auto; margin: 1.5rem 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: .938rem; line-height: 24px; }
.legal th, .legal td { padding: 10px 14px; border: 1px solid var(--line-strong); text-align: left; vertical-align: top; }
.legal th { background: var(--soft); }
.legal td { color: var(--muted); }

@media (max-width: 991px) {
  .legal.container-70 { max-width: 88%; }
  .legal-page { padding-top: 7rem; }
}

@media (max-width: 479px) {
  .legal h1 { font-size: 2rem; line-height: 42px; }
  .legal th, .legal td { padding: 8px; }
}

/* Keep the subject in view when a photo is cropped narrow */
img[src*="car-keys-handover"] { object-position: 64% center; }
img[src*="car-paperwork-signing"] { object-position: 66% center; }
img[src*="car-pen-notes"] { object-position: 62% center; }

.legal-links { display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
.footer-simple { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }

@media (max-width: 479px) {
  .hero-actions { flex-direction: column; }
  .service-grid { text-align: center; }
  .service-grid img { margin-inline: auto; }
  .footer-simple { flex-direction: column; text-align: center; }
  .legal-links { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .service-track { animation: none; }
}

/* Nine services: three across on wide screens */
@media (min-width: 992px) { .grid.service-grid { grid-template-columns: repeat(3, 1fr); } }
