/* ==========================================================================
   athanasiadi.gr — modern stylesheet
   Single design-system file. Palette stays grey-dominant (as the original),
   with one restrained steel-blue accent. Everything is tweakable via the
   custom properties in :root.
   ========================================================================== */

:root {
  /* Greys (carried over from the original look) */
  --ink:        #2c2a2a;   /* headings */
  --body:       #5a5858;   /* body text */
  --muted:      #8a8a86;   /* secondary text */
  --line:       #e6e3e1;   /* hairlines / borders */
  --surface:    #ffffff;   /* page background */
  --surface-2:  #f6f5f4;   /* alternate section background */
  --surface-3:  #efedeb;

  /* Single accent — gunmetal/graphite, matching the metallic silver logo. Recolour here. */
  --accent:        #3d4146;
  --accent-strong: #25282c;
  --accent-tint:   rgba(61, 65, 70, 0.08);

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;

  /* Shape & motion */
  --radius:    14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 20, 0.05), 0 1px 3px rgba(20, 20, 20, 0.06);
  --shadow-md: 0 6px 16px rgba(20, 20, 20, 0.08), 0 2px 6px rgba(20, 20, 20, 0.06);
  --shadow-lg: 0 18px 40px rgba(20, 20, 20, 0.14), 0 6px 14px rgba(20, 20, 20, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --container: 1180px;
  --header-h: 96px;
}

/* ---------- Reset ---------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--accent-strong); }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout helpers ------------------------------------------------ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 84px 0; }
.section--alt { background: var(--surface-2); }

.section__head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section__title { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem); }
.section__title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
  margin: 18px auto 0;
}

/* ---------- Header / nav -------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-title { margin: 0; padding: 0; font-size: 0; line-height: 0; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 350px; height: 71px; max-width: 100%; }

.nav { display: flex; align-items: center; gap: 8px; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
}
.nav__link {
  position: relative;
  display: inline-block;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--body);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover { color: var(--ink); background: var(--accent-tint); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--ink); }

/* Language switch (segmented control) */
.lang {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.lang__btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: 999px;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
  text-decoration: none;
}
.lang__btn:hover { color: var(--ink); }
.lang__btn.is-active {
  background: var(--accent);
  color: #fff;
}

/* Hamburger */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateX(-50%) rotate(45deg); top: 0; }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateX(-50%) rotate(-45deg); top: 0; }

/* ---------- Hero / slideshow --------------------------------------------- */

.hero { padding: 28px 0 8px; }

.slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--surface-3);
}
.slider__track {
  display: flex;
  transition: transform 0.6s var(--ease);
  will-change: transform;
}
.slide {
  position: relative;
  min-width: 100%;
  aspect-ratio: 3 / 2;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  font-size: 20px;
  line-height: 1;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.slider__btn:hover { background: #fff; }
.slider__btn--prev { left: 16px; }
.slider__btn--next { right: 16px; }

.slider__dots {
  position: absolute;
  left: 0; right: 0; bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.slider__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.slider__dot.is-active { background: #fff; transform: scale(1.25); }

/* ---------- About --------------------------------------------------------- */

.about__body { max-width: 760px; margin: 0 auto; text-align: center; }
.about__body p { font-size: 1.075rem; color: var(--body); }
.about__body p + p { margin-top: 20px; }

/* ---------- Dealerships (centerpiece) ------------------------------------- */

.deal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.deal-card { position: relative; display: block; border-radius: var(--radius); color: inherit; }
.deal-card__open {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: inherit;
  text-decoration: none;
  cursor: pointer;
}

/* The visual card; this is the element that tilts in 3D under the pointer. */
.deal-card__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transform: perspective(900px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
              border-color 0.45s var(--ease);
  will-change: transform;
}
/* While hovered, rotation tracks the pointer instantly (no transform easing). */
.deal-card.is-hover .deal-card__inner {
  transform: perspective(900px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg))
             translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  transition: box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}

.deal-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-3);
  overflow: hidden;
}
.deal-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.deal-card.is-hover .deal-card__media img,
.deal-card:hover .deal-card__media img { transform: scale(1.08); }

.deal-card__body {
  position: relative;
  z-index: 2;
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.deal-card__name {
  position: relative;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 14px;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
.deal-card__name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 2px;
  width: 0;
  border-radius: 2px;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}
.deal-card.is-hover .deal-card__name::after,
.deal-card:hover .deal-card__name::after { width: 36px; }

.deal-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}
.deal-card__cta .arrow { transition: transform 0.3s var(--ease); }
.deal-card.is-hover .deal-card__cta .arrow,
.deal-card:hover .deal-card__cta .arrow { transform: translateX(5px); }

/* ---------- Contact ------------------------------------------------------- */

.contact__map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  margin-bottom: 48px;
}
.contact__map iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

/* While JS hasn't injected the embed yet: neutral surface with a spinner,
   then the map fades in (see initMapLoader in modern.js). */
.js .contact__map { background: var(--surface-3); }
.js .contact__map::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: map-spin 0.9s linear infinite;
}
.js .contact__map.is-loaded::before { content: none; }
.js .contact__map iframe {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.js .contact__map.is-loaded iframe { opacity: 1; }
@keyframes map-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .js .contact__map::before { animation: none; }
}
/* JS off: the <noscript> iframe takes over; hide the empty JS-managed one. */
html:not(.js) .contact__map iframe[data-src] { display: none; }

/* "Directions" pill — opens the location in Google Maps (the app on phones). */
.contact__map-cta {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: var(--shadow-md);
  transition: background-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.contact__map-cta:hover { background: var(--accent-strong); color: #fff; transform: translateY(-1px); }

/* Full-map tap target — only on touch devices, so desktop keeps the
   interactive (pan/zoom) map. Tapping opens the Maps app. */
.contact__map-link { display: none; }
@media (hover: none) and (pointer: coarse) {
  .contact__map-link { display: block; position: absolute; inset: 0; z-index: 3; }
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
}

.subhead {
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 22px;
}

/* Form */
.form { display: grid; gap: 16px; }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form__field { display: block; }
.form input,
.form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form input::placeholder,
.form textarea::placeholder { color: var(--muted); }
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.form textarea { resize: vertical; min-height: 130px; }

/* Inline field validation: a green tick when valid, a message when not. */
.field { position: relative; }
.field--valid input { padding-right: 40px; }
.field--valid input,
.field--valid textarea { border-color: #1f9d55; }
.field--valid input:focus,
.field--valid textarea:focus { box-shadow: 0 0 0 3px rgba(31, 157, 85, 0.18); }
.field--error input,
.field--error textarea { border-color: #d05950; }
.field--error input:focus,
.field--error textarea:focus { box-shadow: 0 0 0 3px rgba(208, 89, 80, 0.18); }
.field--valid::after {
  content: "✓";
  position: absolute;
  right: 14px;
  top: 23px;
  color: #1f9d55;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  pointer-events: none;
}
.field--area.field--valid::after { top: 16px; }
.field__msg {
  display: none;
  margin-top: 5px;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #c0392b;
}
.field--error .field__msg { display: block; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  padding: 13px 30px;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s var(--ease), transform 0.15s var(--ease),
              box-shadow 0.2s var(--ease);
}
.btn:hover { background: var(--accent-strong); color: #fff; box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(1px); }
.btn--full { width: 100%; }

/* Contact info */
.contact-info p { font-size: 1.02rem; line-height: 1.9; }
.contact-info .name { color: var(--ink); font-weight: 600; }

/* ---------- Notice (form success) ---------------------------------------- */

.notice {
  max-width: var(--container);
  margin: 16px auto 0;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: var(--accent-tint);
  border: 1px solid var(--accent);
  color: var(--accent-strong);
  font-weight: 500;
}
.notice--error {
  background: rgba(180, 48, 46, 0.08);
  border-color: #b4302e;
  color: #8f2422;
}

/* ---------- Footer -------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  padding: 36px 0;
  text-align: center;
}
.site-footer p { font-size: 0.92rem; color: var(--muted); }
.site-footer a { font-weight: 600; }

/* ---------- Back to top --------------------------------------------------- */

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
              visibility 0.25s var(--ease), background-color 0.2s var(--ease);
  z-index: 900;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent-strong); color: #fff; }

/* ---------- Responsive ---------------------------------------------------- */

@media (max-width: 1024px) {
  .deal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --header-h: 80px; }

  .brand img { width: 260px; height: auto; }

  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 12px 16px 20px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
                visibility 0.25s var(--ease);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .nav__link { padding: 12px 14px; border-radius: var(--radius-sm); }

  .lang { margin: 12px 0 0; align-self: flex-start; }

  .contact__grid { grid-template-columns: 1fr; gap: 36px; }
  .deal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

  .section { padding: 64px 0; }
}

@media (max-width: 520px) {
  :root { --header-h: 76px; }
  .brand img { width: 260px; max-width: calc(100vw - 96px); height: auto; }
  .container { padding-inline: 18px; }
  .form__row { grid-template-columns: 1fr; }
  .deal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .slider__btn { width: 38px; height: 38px; font-size: 17px; }
}

/* ---------- Motion: utilities, reveal, progress, slide effect ------------- */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* Skip-to-content link: off-screen until focused (keyboard users), then a
   visible pill at the top-left so they can jump past the header/nav. */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 2000;
  transform: translateY(-150%);
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform 0.18s var(--ease);
}
.skip-link:focus { transform: translateY(0); outline: 2px solid var(--accent); outline-offset: 2px; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent), #6f7a82);
  z-index: 1100;
  pointer-events: none;
  will-change: transform;
}

/* Reveal-on-scroll (only active once JS adds .js to <html>) */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
  will-change: opacity, transform;
}
.js .reveal.in-view { opacity: 1; transform: none; }

.reveal--zoom { transform: translateY(26px) scale(0.985); }
.js .reveal--zoom.in-view { transform: none; }

/* Section titles get an animated underline draw-in on reveal */
.section__title::after { transition: width 0.6s var(--ease) 0.15s; }
.js .reveal .section__title::after,
.js .section__head.reveal .section__title::after { width: 0; }
.js .reveal.in-view .section__title::after,
.js .section__head.reveal.in-view .section__title::after { width: 56px; }

/* Subtle Ken-Burns drift on the active hero slide */
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}
.slide.is-current img { animation: kenburns 6s ease-out forwards; }

/* Button sheen on hover */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s var(--ease);
}
.btn:hover::after { left: 140%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .slide.is-current img { animation: none; }
}

/* ==========================================================================
   Liquid-glass material pass (June 2026).
   Same palette, type, spacing and layout — only the surface MATERIAL changes:
   frosted translucent panels with backdrop blur ("Apple Glass"). Appended at
   the end so the cascade overrides the flat values above; remove this block
   to return to the flat look. Logo and colours are untouched.
   ========================================================================== */

/* Ambient colour wash behind everything (page's own gunmetal/slate tones) so
   frosted surfaces have something to refract. Sits behind all content.
   Percent-based geometry so phones get the same wash as desktops. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 42% at 10% -6%, rgba(61, 65, 70, 0.20), transparent 62%),
    radial-gradient(48% 38% at 100% 12%, rgba(111, 122, 130, 0.20), transparent 64%),
    radial-gradient(42% 36% at 16% 58%, rgba(111, 122, 130, 0.13), transparent 62%),
    radial-gradient(36% 30% at 86% 66%, rgba(61, 65, 70, 0.12), transparent 64%),
    radial-gradient(60% 46% at 52% 112%, rgba(61, 65, 70, 0.17), transparent 66%),
    linear-gradient(118deg, transparent 30%, rgba(96, 104, 112, 0.10) 46%, transparent 62%);
}

/* Alternate sections become translucent so the ambient wash glows through. */
.section--alt { background: rgba(246, 245, 244, 0.42); }
.site-footer  { background: rgba(246, 245, 244, 0.42); }

/* Header: stronger frost (it already blurred — push it to full glass). */
.site-header {
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
}
.site-header.is-stuck { border-bottom-color: rgba(255, 255, 255, 0.55); }

/* Language switch + hamburger: glass pills. */
.lang {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: var(--shadow-sm);
}
.nav-toggle {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}

/* Mobile dropdown menu: frosted sheet. */
@media (max-width: 860px) {
  .nav {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    border-bottom-color: rgba(255, 255, 255, 0.6);
  }
}

/* Slider arrows + dots: glass discs over the photos. */
.slider__btn {
  background-color: rgba(255, 255, 255, 0.20);
  background-image: linear-gradient(rgba(255, 255, 255, 0.40), rgba(255, 255, 255, 0.06) 50%,
                                    rgba(255, 255, 255, 0.16));
  backdrop-filter: blur(6px) saturate(190%);
  -webkit-backdrop-filter: blur(6px) saturate(190%);
  box-shadow: 0 2px 12px rgba(20, 20, 20, 0.18),
              inset 0 0 8px rgba(255, 255, 255, 0.30),
              inset 0 1px 1px rgba(255, 255, 255, 0.90),
              inset 0 -1px 1px rgba(255, 255, 255, 0.35);
}
.slider__btn:hover { background-color: rgba(255, 255, 255, 0.45); }

/* Dealership cards: same liquid-glass material as the buttons — clear body,
   dome highlight, bright rims; the wash and section background show through
   around the logo plate. Tilt + glare stay as-is (they're the Apple motion). */
.deal-card__inner {
  background-color: rgba(255, 255, 255, 0.16);
  background-image: linear-gradient(rgba(255, 255, 255, 0.40), rgba(255, 255, 255, 0.08) 42%,
                                    rgba(255, 255, 255, 0.02) 56%, rgba(255, 255, 255, 0.18));
  border-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(7px) saturate(190%);
  -webkit-backdrop-filter: blur(7px) saturate(190%);
  box-shadow: 0 8px 26px rgba(20, 20, 20, 0.10),
              0 0 0 1px rgba(31, 41, 55, 0.05),
              inset 0 0 14px rgba(255, 255, 255, 0.30),
              inset 0 1px 1px rgba(255, 255, 255, 0.90),
              inset 0 -1px 1px rgba(255, 255, 255, 0.35);
}
.deal-card.is-hover .deal-card__inner {
  background-color: rgba(255, 255, 255, 0.30);
  box-shadow: var(--shadow-lg),
              inset 0 0 14px rgba(255, 255, 255, 0.35),
              inset 0 1px 1px rgba(255, 255, 255, 0.90);
  border-color: rgba(255, 255, 255, 0.90);
}
/* Logos are stored with transparent backgrounds (matte removed on upload):
   show the whole mark floating on the glass instead of a cropped plate.
   The drop-shadow halo hugs the alpha shape and keeps even white or pale
   marks legible on the light glass. */
.deal-card__media { background: transparent; }
.deal-card__media img {
  object-fit: contain;
  padding: 14px;
  filter: drop-shadow(0 0 1px rgba(24, 28, 33, 0.55))
          drop-shadow(0 2px 8px rgba(24, 28, 33, 0.30));
}

/* Contact: map frame + form fields in glass. */
.contact__map { border-color: rgba(255, 255, 255, 0.72); }
.form input,
.form textarea {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(31, 41, 55, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.form input:focus,
.form textarea:focus { background: rgba(255, 255, 255, 0.85); }

/* Notices: frosted banners (same tint colours). */
.notice {
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(61, 65, 70, 0.07);
}
.notice--error { background: rgba(180, 48, 46, 0.08); }

/* CTA buttons / language pill / back-to-top: TRUE liquid glass — the page
   shows through the control. Nearly-clear fill, a light blur + saturation
   boost of whatever sits behind it, a curved-dome highlight across the top
   half and bright rim edges; labels in ink (the glass itself is clear, not
   tinted). Chromium additionally BENDS the backdrop at the rim through the
   SVG lens filter — html.lg-lens, set by JS when the browser supports
   url() inside backdrop-filter (see include/glass.inc.php). */
.btn,
.to-top,
.lang__btn.is-active,
.contact__map-cta {
  /* Smoked, not pure-clear: on featureless white there is nothing to
     refract, so the surface itself must read as glass — a faint slate body,
     a strong dome highlight, crisp specular rims and a hairline so the
     lozenge has an edge on white. Where real detail passes behind (map,
     photos, text sliding under a floating control) the blur smears it
     visibly through the surface. */
  background-color: rgba(148, 153, 159, 0.13);
  background-image: linear-gradient(rgba(255, 255, 255, 0.50), rgba(255, 255, 255, 0.10) 46%,
                                    rgba(255, 255, 255, 0.02) 55%, rgba(255, 255, 255, 0.26));
  backdrop-filter: blur(7px) saturate(200%);
  -webkit-backdrop-filter: blur(7px) saturate(200%);
  color: var(--ink);
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 26px rgba(20, 20, 20, 0.20),
              0 0 0 1px rgba(31, 41, 55, 0.08),
              inset 0 0 12px rgba(255, 255, 255, 0.38),
              inset 0 1px 1px rgba(255, 255, 255, 0.95),
              inset 0 -1px 1px rgba(255, 255, 255, 0.42),
              inset 1px 0 1px rgba(255, 255, 255, 0.55),
              inset -1px 0 1px rgba(255, 255, 255, 0.55);
}
html.lg-lens .btn,
html.lg-lens .to-top,
html.lg-lens .lang__btn.is-active,
html.lg-lens .contact__map-cta,
html.lg-lens .slider__btn,
html.lg-lens .deal-card__inner {
  backdrop-filter: url(#lg-lens) blur(4px) saturate(200%);
  -webkit-backdrop-filter: url(#lg-lens) blur(4px) saturate(200%);
}
.btn:hover,
.to-top:hover,
.lang__btn.is-active:hover,
.contact__map-cta:hover {
  background-color: rgba(255, 255, 255, 0.34);
  color: var(--ink);
}
/* The map CTA floats over satellite imagery — extra frost for legibility. */
.contact__map-cta { background-color: rgba(255, 255, 255, 0.42); }

/* Fallback: browsers without backdrop-filter get near-opaque surfaces so
   text never floats on an unblurred busy background. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: rgba(255, 255, 255, 0.95); }
  .deal-card__inner, .lang, .nav-toggle, .slider__btn,
  .form input, .form textarea { background: rgba(255, 255, 255, 0.96); background-image: none; }
  .btn, .to-top, .lang__btn.is-active, .contact__map-cta { background: rgba(255, 255, 255, 0.95); background-image: none; color: var(--ink); border: 1px solid var(--line); text-shadow: none; }
  @media (max-width: 860px) { .nav { background: #fff; } }
}

/* Respect users who ask for less transparency. */
@media (prefers-reduced-transparency: reduce) {
  body::before { display: none; }
  .site-header, .deal-card__inner, .lang, .nav-toggle,
  .form input, .form textarea { background: #fff; }
  .btn, .to-top, .lang__btn.is-active, .contact__map-cta { background: rgba(255, 255, 255, 0.95); background-image: none; color: var(--ink); border: 1px solid var(--line); text-shadow: none; }
  .section--alt, .site-footer { background: var(--surface-2); }
}

/* ---------- Rich (admin-authored) section bodies --------------------------- */
.rich-body { text-align: left; }
.rich-body p { margin: 0 0 18px; }
.rich-body p:last-child { margin-bottom: 0; }
.rich-body h3, .rich-body h4 { color: var(--ink); margin: 26px 0 12px; }
.rich-body h3 { font-size: 1.25rem; }
.rich-body h4 { font-size: 1.05rem; }
.rich-body ul, .rich-body ol { margin: 0 0 18px; padding-left: 26px; color: var(--body); }
.rich-body li { margin-bottom: 8px; font-size: 1.075rem; }
.rich-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.rich-body a:hover { color: var(--accent-strong); }
.rich-body blockquote { margin: 0 0 18px; padding: 12px 20px; border-left: 3px solid var(--accent); background: var(--accent-tint); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
/* The original About block stays centered; other rich sections read left-aligned. */
#about .rich-body { text-align: center; }
#about .rich-body ul, #about .rich-body ol { text-align: left; }
.rich-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 6px auto 18px; }

/* ---------- FAQ + split (admin-authored section layouts) ------------------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq__q {
  padding: 16px 44px 16px 20px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--accent);
}
.faq__item[open] .faq__q::after { content: "−"; }
.faq__a { padding: 0 20px 16px; color: var(--body); }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}
.split--left .split__media { order: -1; }
.split__media { margin: 0; }
.split__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.split .rich-body { text-align: left; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 26px; }
  .split--left .split__media { order: 0; }
}

/* ==========================================================================
   Liquid-glass interaction layer (June 2026).
   Apple-style MOTION for the glass controls, not just the material:
     - a specular highlight that follows the pointer (JS sets --gx/--gy on
       the control — see initGlassGlint in modern.js)
     - springy press with an overshoot release (jelly feel)
     - bouncy pop-in for the back-to-top button
     - a shaded lower lip on the dark glass (refraction depth cue)
   Pure progressive enhancement: touch devices keep the spring, pointers add
   the glint, and the global reduced-motion block collapses all of it.
   ========================================================================== */

/* The glint overlay. All these are already positioned except .lang. */
.lang { position: relative; }
.btn, .slider__btn, .to-top, .lang, .nav-toggle, .contact__map-cta { overflow: hidden; }
.btn::before, .slider__btn::before, .to-top::before,
.lang::before, .nav-toggle::before, .contact__map-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  background: radial-gradient(120px circle at var(--gx, 50%) var(--gy, 40%),
              rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 65%);
}
.glass-lit::before { opacity: 1; }

/* Liquid Glass motion, the way Apple's actually behaves:
     - MAGNETIC HOVER: the control eases a few px toward the pointer and
       lags it on a spring (set via --tx/--ty from JS).
     - PRESS: the glass SWELLS (scales UP, never shrinks) and blooms
       brighter from the exact contact point.
     - RELEASE: a gel settle — asymmetric squash & stretch wobble.
   Transforms are composed from registered custom properties so springs and
   keyframes layer over each element's own base transform. */
@property --tx  { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --ty  { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --sx  { syntax: "<number>"; inherits: false; initial-value: 1; }
@property --sy  { syntax: "<number>"; inherits: false; initial-value: 1; }
@property --off { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --vis { syntax: "<number>"; inherits: false; initial-value: 1; }

.btn, .lang__btn, .nav-toggle, .contact__map-cta {
  transform: translate(var(--tx), var(--ty)) scale(var(--sx), var(--sy));
  transition: --tx 0.5s cubic-bezier(0.3, 1.45, 0.5, 1),
              --ty 0.5s cubic-bezier(0.3, 1.45, 0.5, 1),
              --sx 0.38s cubic-bezier(0.3, 1.6, 0.5, 1),
              --sy 0.38s cubic-bezier(0.3, 1.6, 0.5, 1),
              background-color 0.25s var(--ease), color 0.2s var(--ease),
              box-shadow 0.25s var(--ease);
}
.slider__btn {
  transform: translateY(-50%) translate(var(--tx), var(--ty)) scale(var(--sx), var(--sy));
  transition: --tx 0.5s cubic-bezier(0.3, 1.45, 0.5, 1),
              --ty 0.5s cubic-bezier(0.3, 1.45, 0.5, 1),
              --sx 0.38s cubic-bezier(0.3, 1.6, 0.5, 1),
              --sy 0.38s cubic-bezier(0.3, 1.6, 0.5, 1),
              background-color 0.25s var(--ease);
}
.slider__btn:hover { --sx: 1.06; --sy: 1.06; }

/* Back-to-top keeps its bouncy pop-in, expressed in the same var system. */
.to-top, .to-top.is-visible {
  transform: translate(var(--tx), calc(var(--ty) + var(--off)))
             scale(calc(var(--sx) * var(--vis)), calc(var(--sy) * var(--vis)));
}
.to-top {
  --off: 18px; --vis: 0.6;
  transition: --tx 0.5s cubic-bezier(0.3, 1.45, 0.5, 1),
              --ty 0.5s cubic-bezier(0.3, 1.45, 0.5, 1),
              --sx 0.38s cubic-bezier(0.3, 1.6, 0.5, 1),
              --sy 0.38s cubic-bezier(0.3, 1.6, 0.5, 1),
              --off 0.55s cubic-bezier(0.3, 1.5, 0.5, 1),
              --vis 0.55s cubic-bezier(0.3, 1.5, 0.5, 1),
              opacity 0.3s var(--ease), visibility 0.3s var(--ease),
              background-color 0.25s var(--ease);
}
.to-top.is-visible { --off: 0px; --vis: 1; }

/* Press: swell + luminance bloom radiating from the contact point. */
.glass-press {
  --sx: 1.07; --sy: 1.07;
  background-color: rgba(255, 255, 255, 0.44);
  transition-duration: 0.16s;
}
.glass-press::before {
  opacity: 1;
  background: radial-gradient(170px circle at var(--gx, 50%) var(--gy, 45%),
              rgba(255, 255, 255, 0.70), rgba(255, 255, 255, 0.14) 72%);
}
/* Release: the gel wobble. */
.glass-pop { animation: lg-jelly 0.62s cubic-bezier(0.34, 1.2, 0.5, 1) both; }
@keyframes lg-jelly {
  0%   { --sx: 1.07;  --sy: 1.07;  }
  32%  { --sx: 0.962; --sy: 1.028; }
  58%  { --sx: 1.024; --sy: 0.978; }
  80%  { --sx: 0.992; --sy: 1.008; }
  100% { --sx: 1;     --sy: 1;     }
}
/* No-JS fallback: pressing still swells. */
.btn:active, .slider__btn:active, .to-top:active,
.lang__btn:active, .nav-toggle:active, .contact__map-cta:active { --sx: 1.07; --sy: 1.07; }

/* ---------- Contact toast (liquid glass) ----------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(440px, calc(100vw - 32px));
  padding: 16px 18px;
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.55);
  background-image: linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.12) 50%,
                                    rgba(255, 255, 255, 0.28));
  backdrop-filter: blur(14px) saturate(190%);
  -webkit-backdrop-filter: blur(14px) saturate(190%);
  box-shadow: 0 18px 44px rgba(20, 20, 20, 0.22),
              0 0 0 1px rgba(31, 41, 55, 0.08),
              inset 0 1px 1px rgba(255, 255, 255, 0.95),
              inset 0 0 12px rgba(255, 255, 255, 0.35);
  overflow: hidden;
}
.toast__icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
}
.toast__icon svg { width: 20px; height: 20px; }
.toast--ok  .toast__icon { background: linear-gradient(180deg, #2fa05a, #1f7a43); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 4px 10px rgba(31,122,67,.35); }
.toast--err .toast__icon { background: linear-gradient(180deg, #d05950, #b3362c); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 4px 10px rgba(179,54,44,.35); }
.toast__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.toast__body strong { color: var(--ink); font-size: 0.98rem; }
.toast__body span { color: var(--body); font-size: 0.86rem; line-height: 1.45; }
.toast__close {
  flex: 0 0 auto;
  margin-left: auto;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(31, 41, 55, 0.07);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}
.toast__close:hover { background: rgba(31, 41, 55, 0.14); color: var(--ink); }
.toast__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transform-origin: left;
}
.toast--err .toast__bar { background: linear-gradient(90deg, #d05950, #b3362c); }

/* Entrance + auto-dismiss countdown (JS adds .is-on; removes after) */
.js .toast { opacity: 0; transform: translateX(-50%) translateY(24px) scale(0.92); }
.js .toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  transition: opacity 0.4s var(--ease), transform 0.55s cubic-bezier(0.3, 1.45, 0.5, 1);
}
.js .toast.is-on .toast__bar { animation: toast-count 7s linear forwards; }
.js .toast.is-off {
  opacity: 0;
  transform: translateX(-50%) translateY(18px) scale(0.95);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
@keyframes toast-count { from { transform: scaleX(1); } to { transform: scaleX(0); } }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .toast { background: rgba(255, 255, 255, 0.97); }
}
@media (prefers-reduced-transparency: reduce) {
  .toast { background: #fff; }
}

/* ---------- Dealership brand modal ---------------------------------------- */
.brand-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 20px;
}
/* The base rule sets display:grid, which would otherwise override the
   browser's [hidden]{display:none}; keep a hidden modal truly out of the
   way so its full-screen overlay can't eat clicks across the whole page. */
.brand-modal[hidden] { display: none; }
.brand-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 22, 25, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.brand-modal__card {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 40px 44px 36px;
  border-radius: 24px;
  background-color: rgba(255, 255, 255, 0.7);
  background-image: linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.18) 55%, rgba(255,255,255,0.3));
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  box-shadow: 0 30px 70px rgba(20,20,20,0.3),
              0 0 0 1px rgba(31,41,55,0.08),
              inset 0 1px 1px rgba(255,255,255,0.95);
  opacity: 0;
  transform: translateY(20px) scale(0.94);
  transition: opacity 0.35s var(--ease), transform 0.5s cubic-bezier(0.3,1.4,0.5,1);
}
.brand-modal.is-on .brand-modal__backdrop { opacity: 1; }
.brand-modal.is-on .brand-modal__card { opacity: 1; transform: translateY(0) scale(1); }
.brand-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(31,41,55,0.06);
  color: var(--body);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.brand-modal__close:hover { background: rgba(31,41,55,0.13); color: var(--ink); }
.brand-modal__head { display: flex; align-items: center; gap: 22px; margin-bottom: 22px; padding-right: 30px; }
.brand-modal__logo {
  width: 96px; height: 96px; flex: 0 0 96px; object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(24,28,33,0.25));
}
.brand-modal__name { font-size: 1.6rem; color: var(--ink); margin: 0 0 4px; }
.brand-modal__country { font-size: 1rem; color: var(--muted); margin: 0; }
.brand-modal__clbl { font-weight: 600; color: var(--body); }
.brand-modal__desc { font-size: 1.08rem; line-height: 1.7; color: var(--body); margin: 0 0 26px; }
.brand-modal__visit { width: 100%; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .brand-modal__card { background: #fff; }
  .brand-modal__backdrop { background: rgba(20,22,25,0.6); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-modal__backdrop, .brand-modal__card { transition: none; }
}

/* Brand-page contact modal — reuses the .brand-modal overlay/card visuals,
   with a narrower card sized for the contact form. */
.cmodal__card { width: min(560px, 100%); padding: 36px 38px 30px; }
.cmodal__title { font-size: 1.5rem; color: var(--ink); margin: 0 0 6px; padding-right: 30px; }
.cmodal__intro { font-size: 1rem; line-height: 1.6; color: var(--body); margin: 0 0 22px; }
.cmodal .form { margin: 0; }
@media (max-width: 640px) {
  .cmodal__card { padding: 30px 22px 26px; }
}

/* ---------- Brand landing pages ------------------------------------------- */
.brand-page { padding-top: 40px; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 28px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

.brand-hero { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: center; }
.brand-hero__logo {
  margin: 0; aspect-ratio: 1; display: grid; place-items: center; padding: 26px;
  border-radius: var(--radius);
  background-color: rgba(255, 255, 255, 0.16);
  background-image: linear-gradient(rgba(255,255,255,0.40), rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.18));
  backdrop-filter: blur(7px) saturate(190%); -webkit-backdrop-filter: blur(7px) saturate(190%);
  box-shadow: 0 8px 26px rgba(20,20,20,0.10), 0 0 0 1px rgba(31,41,55,0.05),
              inset 0 1px 1px rgba(255,255,255,0.9);
}
.brand-hero__logo img { width: 100%; height: auto; filter: drop-shadow(0 1px 2px rgba(24,28,33,0.25)); }
.brand-hero__name { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); margin: 0 0 10px; }
.brand-hero__country { font-size: 1rem; color: var(--muted); margin: 0 0 16px; }
.brand-hero__country span { font-weight: 600; color: var(--body); }
.brand-hero__desc { font-size: 1.1rem; line-height: 1.7; color: var(--body); margin: 0 0 22px; }
.brand-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

.brand-cta { margin: 56px 0; padding: 32px; border-radius: var(--radius); text-align: center;
  background: var(--surface-2); }
.brand-cta h2 { font-size: 1.4rem; margin: 0 0 10px; }
.brand-cta p { color: var(--body); max-width: 560px; margin: 0 auto 20px; }

.brand-also__title { font-size: 1.15rem; margin: 0 0 18px; text-align: center; }
.brand-also__grid { list-style: none; padding: 0; margin: 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 14px; }
.brand-also__grid a { display: grid; place-items: center; padding: 14px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.5); border: 1px solid var(--line); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.brand-also__grid a:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.brand-also__grid img { width: 100%; height: auto; }

.brand-modal__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.brand-modal__actions .btn { flex: 1 1 auto; }

@media (max-width: 640px) {
  .brand-hero { grid-template-columns: 1fr; gap: 22px; text-align: center; }
  .brand-hero__logo { width: 180px; margin: 0 auto; }
  .brand-hero__actions { justify-content: center; }
}

/* ---------- Cookie consent banner (GDPR) ---------------------------------- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 1200;
  width: min(1080px, calc(100% - 32px));
  padding: 18px 22px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.74);
  background-image: linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.22) 60%, rgba(255,255,255,0.32));
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  box-shadow: 0 18px 50px rgba(20,20,20,0.22),
              0 0 0 1px rgba(31,41,55,0.07),
              inset 0 1px 1px rgba(255,255,255,0.92);
  animation: cookieUp 0.5s cubic-bezier(0.3,1.2,0.5,1) both;
}
.cookie-banner[hidden] { display: none; }
@keyframes cookieUp { from { opacity: 0; transform: translate(-50%, 22px); } to { opacity: 1; transform: translate(-50%, 0); } }
.cookie-banner__inner { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.cookie-banner__text { flex: 1 1 440px; min-width: 0; }
.cookie-banner__title { display: block; color: var(--ink); font-size: 1.02rem; margin-bottom: 4px; }
.cookie-banner__text p { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--body); }
.cookie-banner__text a { color: var(--accent); }
.cookie-banner__actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-banner__actions .btn { white-space: nowrap; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .cookie-banner { background: #fff; }
}
@media (prefers-reduced-motion: reduce) { .cookie-banner { animation: none; } }
@media (max-width: 720px) {
  .cookie-banner { bottom: 0; width: 100%; border-radius: 18px 18px 0 0; padding: 16px 18px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; }
}

/* Google Maps consent placeholder (shown until cookies accepted) */
.contact__map-consent {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  color: var(--body);
  background: rgba(241, 244, 248, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.contact__map-consent[hidden] { display: none; }
.contact__map-consent svg { color: var(--accent); opacity: 0.92; }
.contact__map-consent p { margin: 0; max-width: 440px; font-size: 0.95rem; line-height: 1.5; }

/* ---------- Legal / policy pages ----------------------------------------- */
.legal { padding-top: 36px; }
.legal__title { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.4rem); margin: 0 0 6px; }
.legal__meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 28px; }
.legal h2 { font-size: 1.25rem; color: var(--ink); margin: 30px 0 10px; }
.legal p, .legal li { color: var(--body); line-height: 1.7; }
.legal ul { padding-left: 20px; margin: 0 0 14px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); }
.legal__table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 0.92rem; }
.legal__table th, .legal__table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(31,41,55,0.1); vertical-align: top; }
.legal__table th { color: var(--ink); font-weight: 600; }
.legal__table code { background: rgba(31,41,55,0.06); padding: 1px 6px; border-radius: 6px; font-size: 0.88em; }
@media (max-width: 600px) {
  .legal__table, .legal__table tbody, .legal__table tr, .legal__table td { display: block; }
  .legal__table thead { display: none; }
  .legal__table td { border: 0; padding: 2px 0; }
  .legal__table tr { padding: 10px 0; border-bottom: 1px solid rgba(31,41,55,0.1); }
  .legal__table td:first-child { font-weight: 600; color: var(--ink); }
}

/* Footer legal links */
.site-footer__links { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 8px; font-size: 0.88rem; }
.site-footer__links a { color: inherit; opacity: 0.85; text-decoration: none; }
.site-footer__links a:hover { opacity: 1; text-decoration: underline; }
