/* registeryourcar.es — design system
   Palette: paper / navy ink / stamp red / teal, built around the
   "official paperwork, done for you" idea — plates, stamps, dossiers. */

:root {
  --paper: #EDEAE1;
  --paper-alt: #E2DDCE;
  --ink: #1E2A33;
  --ink-soft: #47555F;
  --navy: #1B3A4B;
  --navy-deep: #122633;
  --stamp: #A63A24;
  --stamp-soft: #C9744F;
  --teal: #3E6E73;
  --line: #C7BFAC;
  --paper-card: #F5F2E9;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-deep);
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; max-width: 62ch; color: var(--ink-soft); }
a { color: var(--navy); }
img { max-width: 100%; display: block; border-radius: 2px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
.section-alt { background: var(--paper-alt); }
.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* Header / nav */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  gap: 24px;
}
.wordmark {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.28rem;
  color: var(--navy-deep);
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.wordmark span { color: var(--stamp); }
.logo-img { height: 144px; width: auto; display: block; border-radius: 0; }
nav.primary-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
nav.primary-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.96rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
}
nav.primary-nav a:hover,
nav.primary-nav a[aria-current="page"] {
  color: var(--navy-deep);
  border-bottom-color: var(--stamp);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.lang-switch a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.86rem;
  padding: 2px 4px;
}
.lang-switch a[aria-current="true"] {
  color: var(--navy-deep);
  font-weight: 600;
  text-decoration: underline;
}

/* Mobile nav toggle (pure CSS, no JS) */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label {
  display: none;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--navy-deep);
  cursor: pointer;
  order: 2;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 3px;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--stamp);
  color: #fff;
}
.btn-primary:hover { background: #8f2f1c; }
.btn-secondary {
  background: transparent;
  color: var(--navy-deep);
  border-color: var(--navy-deep);
}
.btn-secondary:hover { background: var(--navy-deep); color: #fff; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* Hero */
.hero {
  padding: 84px 0 64px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero p.lede {
  font-size: 1.1rem;
  max-width: 46ch;
}
.hero-photo {
  border: 1px solid var(--line);
  aspect-ratio: 4/5;
  width: 100%;
  object-fit: cover;
  background: var(--paper-card);
}
.hero-media { position: relative; }
.hero-media .stamp-badge {
  position: absolute;
  bottom: -22px;
  right: -18px;
  background: var(--paper);
}
.contact-photo {
  aspect-ratio: 3/2;
  width: 100%;
  max-width: 640px;
  object-fit: cover;
  border: 1px solid var(--line);
  margin-top: 28px;
}

/* Stamp badge — signature motif */
.stamp-badge {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 2px solid var(--stamp);
  outline: 1px solid var(--stamp);
  outline-offset: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(-9deg);
  color: var(--stamp);
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  line-height: 1.35;
  flex-shrink: 0;
}

/* Two-column feature rows */
.feature-list {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 32px;
}
.feature-item {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.feature-item h3 { margin-bottom: 6px; font-size: 1.08rem; }
.feature-item p { margin: 0; font-size: 0.97rem; }

/* Numbered process — genuinely sequential, so numbers are earned here */
.process-list {
  counter-reset: step;
  margin-top: 36px;
  display: grid;
  gap: 0;
}
.process-item {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.process-item:last-child { border-bottom: 1px solid var(--line); }
.process-item::before {
  content: counter(step);
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--stamp);
}
.process-item h3 { margin-bottom: 4px; }
.process-item p { margin: 0; }

/* Document / FAQ list — plain, not accordion, keeps it scannable */
.doc-list, .faq-list {
  margin-top: 28px;
  display: grid;
  gap: 0;
}
.doc-item, .faq-item {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.doc-list .doc-item:last-child,
.faq-list .faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.faq-item p { margin: 0; }

/* Pricing table */
table.pricing {
  width: 100%;
  border-collapse: collapse;
  margin-top: 28px;
  font-size: 0.98rem;
}
table.pricing th, table.pricing td {
  text-align: left;
  padding: 16px 12px;
  border-top: 1px solid var(--line);
}
table.pricing thead th {
  border-top: none;
  border-bottom: 2px solid var(--navy-deep);
  color: var(--navy-deep);
  font-family: var(--font-head);
  font-weight: 600;
}
table.pricing tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.pricing-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Pricing highlight blocks */
.pricing-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}
.price-block {
  border: 1px solid var(--line);
  background: var(--paper-card);
  padding: 26px 24px;
}
.price-block.featured { border-color: var(--stamp); }
.price-block h3 { margin-bottom: 8px; font-size: 1rem; }
.price-figure {
  font-family: var(--font-head);
  font-size: 1.9rem;
  color: var(--navy-deep);
  margin: 0 0 12px;
}
.price-block p:last-child { margin: 0; font-size: 0.94rem; }

/* Trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 28px;
}
.trust-strip span {
  font-size: 0.92rem;
  color: var(--navy-deep);
  padding-left: 16px;
  position: relative;
}
.trust-strip span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  background: var(--stamp);
  border-radius: 50%;
}

/* Blog */
.post-list { display: grid; gap: 0; margin-top: 32px; }
.post-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.post-card:last-child { border-bottom: 1px solid var(--line); }
.post-thumb {
  aspect-ratio: 4/3;
  width: 100%;
  object-fit: cover;
  background: var(--paper-card);
  border: 1px solid var(--line);
}
.post-meta {
  font-size: 0.82rem;
  color: var(--teal);
  text-transform: none;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}
.post-card h3 { margin-bottom: 6px; }
.post-card p { margin: 0; font-size: 0.96rem; }

article.post-body {
  max-width: 68ch;
  margin: 40px auto 0;
}
article.post-body h2 { margin-top: 1.4em; }
article.post-body img { margin: 24px 0; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 32px;
}
.contact-card {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.contact-card h3 { font-size: 1rem; margin-bottom: 8px; }
.map-frame {
  border: 1px solid var(--line);
  width: 100%;
  aspect-ratio: 16/9;
}

/* Footer */
footer.site-footer {
  background: var(--navy-deep);
  color: #D9DEE1;
  padding: 56px 0 28px;
  margin-top: 40px;
}
footer.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
}
footer.site-footer h4 {
  color: #fff;
  font-size: 0.92rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 12px;
}
footer.site-footer a {
  color: #B9C2C7;
  text-decoration: none;
  display: block;
  font-size: 0.92rem;
  margin-bottom: 8px;
}
footer.site-footer a:hover { color: #fff; }
footer.site-footer p { color: #9BA7AC; font-size: 0.86rem; max-width: 40ch; }
.footer-bottom {
  max-width: var(--maxw);
  margin: 32px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid #2A414E;
  font-size: 0.8rem;
  color: #7E8B90;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Responsive */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .pricing-highlight { grid-template-columns: 1fr; }
  footer.site-footer .wrap { grid-template-columns: 1fr; }
  .post-card { grid-template-columns: 120px 1fr; }
}
@media (max-width: 700px) {
  .nav-row { flex-wrap: wrap; }
  .logo-img { height: 78px; }
  .nav-toggle-label { display: flex; }
  .nav-right { order: 3; margin-left: auto; }
  nav.primary-nav {
    display: none;
    flex-direction: column;
    gap: 2px;
    flex-basis: 100%;
    order: 4;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }
  nav.primary-nav a { padding: 10px 2px; }
  .nav-toggle:checked ~ nav.primary-nav { display: flex; }
}
@media (max-width: 560px) {
  section { padding: 52px 0; }
  .post-card { grid-template-columns: 1fr; }
  .post-thumb { aspect-ratio: 16/9; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--stamp);
  outline-offset: 2px;
}

/* Floating WhatsApp button */
.float-whatsapp {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.28);
  transition: transform 0.15s ease;
}
.float-whatsapp:hover { transform: scale(1.07); }
.float-whatsapp svg { width: 28px; height: 28px; fill: #fff; }
@media (max-width: 560px) {
  .float-whatsapp { width: 52px; height: 52px; bottom: 16px; right: 16px; }
  .float-whatsapp svg { width: 25px; height: 25px; }
}
