/* =====================================================================
   Auto Energjia — homepage refresh (2026-10-29)
   Minimal, editorial look: sharp image tiles, condensed uppercase
   headings (Oswald), thin borders, no heavy shadows.
   Loaded last on index.html; remove this file + its <link> to undo.
   ===================================================================== */

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/oswald-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/oswald-latin-700-normal.woff2") format("woff2");
}

:root {
  --hr-display: "Oswald", "Arial Narrow", Arial, sans-serif;
  --hr-ink: #0b0f17;
  --hr-muted: #5b6676;
  --hr-line: #e5e8ee;
  --hr-surface: #f5f6f8;
  --hr-blue: #0057ff;
  --hr-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Shared section headings ---------- */
#ballina .choice-head h1,
#byd-models .byd-notify-copy h2,
#byd-models .byd-registration-intro h2,
#byd-models .byd-offer-benefits h2,
#home-adapter-title,
#pse-ne .why-content h2,
#partneret .partners-head h2,
.location-section .location-card h3,
.location-section .service-contact-card h3 {
  font-family: var(--hr-display) !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.005em !important;
  line-height: 1.06 !important;
  color: var(--hr-ink);
}

/* ======================= 1. TOP TILES ======================= */
#ballina.choice-section { padding-top: 44px; padding-bottom: 8px; }
#ballina .choice-head { margin-bottom: 22px; }
#ballina .choice-head h1 { font-size: clamp(34px, 4.4vw, 60px) !important; margin: 0 !important; }

#ballina .choice-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

#ballina .choice-card {
  position: relative;
  display: block;
  min-height: 440px !important;
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  transform: none !important;
  opacity: 1 !important;
  transition: none !important;
}
#ballina .choice-card:hover { transform: none !important; box-shadow: none !important; }

#ballina .card-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.08) brightness(0.78);
  transform: scale(1.02) !important;
  animation: none !important;
  will-change: auto !important;
  transition: transform 900ms var(--hr-ease) !important;
}
#ballina .choice-card:hover .card-bg { transform: scale(1.07) !important; }

/* Dark fade so the white text always reads */
#ballina .card-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.05) 35%, rgba(0,0,0,0.70) 100%) !important;
}

/* BYD tile: blue duotone (keeps the photo's light and shadow) */
#ballina .byd-card .card-bg { filter: grayscale(1) contrast(1.05) brightness(1.08); }
#ballina .byd-card .card-overlay {
  background: #1f55e0 !important;
  mix-blend-mode: multiply;
  opacity: 0.9;
}
#ballina .byd-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,20,90,0.25) 0%, rgba(0,20,90,0) 35%, rgba(0,16,70,0.55) 100%);
  pointer-events: none;
}

#ballina .card-content {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  height: 100%;
  min-height: 440px !important;
  padding: 26px 28px 28px !important;
}

#ballina .card-number {
  width: auto !important;
  height: auto !important;
  display: block !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: #fff !important;
  font: 700 clamp(52px, 5.4vw, 76px)/0.9 var(--hr-display) !important;
  letter-spacing: 0.01em;
}

#ballina .card-content > div { margin-top: auto; }

#ballina .choice-card h2 {
  margin: 0 0 12px !important;
  color: #fff !important;
  font: 700 clamp(30px, 3.1vw, 44px)/0.95 var(--hr-display) !important;
  text-transform: uppercase;
  letter-spacing: 0.005em !important;
}

#ballina .choice-card p {
  max-width: 300px !important;
  margin: 0 !important;
  color: rgba(255,255,255,0.86) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
}

/* Link text becomes a long arrow (text stays for screen readers) */
#ballina .choice-card strong {
  position: relative;
  display: block;
  width: 46px;
  height: 18px;
  margin-top: 22px;
  overflow: hidden;
  color: transparent !important;
  font-size: 0 !important;
  transition: transform 450ms var(--hr-ease);
}
#ballina .choice-card strong::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 44px;
  height: 2px;
  margin-top: -1px;
  background: #fff;
}
#ballina .choice-card strong::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -6px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
}
#ballina .choice-card:hover strong { transform: translateX(8px); }
#ballina .choice-card:focus-visible { outline: 3px solid var(--hr-blue); outline-offset: 3px; }

@media (max-width: 1080px) {
  #ballina .choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  #ballina .sales-card { grid-column: auto !important; }
  #ballina .choice-card,
  #ballina .card-content { min-height: 380px !important; }
  #ballina .card-content { padding: 22px !important; }
}

@media (max-width: 760px) {
  #ballina.choice-section { padding-top: 28px; }
  #ballina .choice-head { margin-bottom: 16px; }
  #ballina .choice-grid { grid-template-columns: 1fr !important; gap: 8px !important; }
  #ballina .choice-card,
  #ballina .card-content { min-height: 250px !important; }
  #ballina .card-content { padding: 20px 20px 22px !important; }
  #ballina .card-number { font-size: 46px !important; }
  #ballina .choice-card h2 { font-size: 32px !important; margin-bottom: 8px !important; }
  #ballina .choice-card p { font-size: 13.5px !important; max-width: 340px !important; }
  #ballina .choice-card strong { margin-top: 14px; }
}

/* ======================= 2. BYD SECTION ======================= */
#byd-models { margin-top: 56px; padding-bottom: 40px; }
#byd-models .byd-notify-hero { background: transparent; overflow: visible; }
#byd-models .byd-notify-inner {
  min-height: 380px;
  padding: 56px 60px;
  border-radius: 0;
  overflow: clip;
  isolation: isolate;
  background: linear-gradient(115deg, #f6f7f9 0%, #eef0f4 60%, #e8ebf0 100%);
}
#byd-models .byd-notify-photo {
  width: 860px;
  right: -90px;
  top: -60px;
  z-index: -1;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 26%);
          mask-image: linear-gradient(to right, transparent 0%, #000 26%);
}
#byd-models .byd-notify-copy { max-width: 46%; }
#byd-models .byd-notify-labels { gap: 8px; margin-bottom: 20px; }
#byd-models .byd-notify-labels span {
  padding: 6px 10px;
  border-radius: 2px;
  background: var(--hr-ink);
  color: #fff;
  font: 700 11px/1.2 Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#byd-models .byd-notify-labels span:last-child {
  padding: 6px 10px;
  background: #fde8eb;
  color: #c8102e;
}
#byd-models .byd-notify-labels span:last-child::before { margin-right: 6px; }
#byd-models .byd-notify-copy h2 { font-size: clamp(32px, 3.2vw, 44px) !important; margin: 0 0 16px !important; }
#byd-models .byd-notify-copy p { font-size: 17px; line-height: 1.55; color: var(--hr-muted) !important; }

#byd-models .byd-registration-layout {
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 36px;
}
#byd-models .byd-registration-intro { padding-top: 0; }
#byd-models .byd-registration-intro::before { width: 40px; height: 3px; margin-bottom: 20px; background: var(--hr-blue); }
#byd-models .byd-registration-intro h2 { font-size: clamp(32px, 3.2vw, 44px) !important; }
#byd-models .byd-registration-intro h2 br { display: none; }
#byd-models .byd-registration-intro p { max-width: 340px; font-size: 16px; line-height: 1.6; color: var(--hr-muted) !important; }

#byd-home-registration .byd-waitlist {
  padding: 32px;
  border: 1px solid var(--hr-line);
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
}
#byd-home-registration .byd-waitlist h2 {
  font-family: var(--hr-display) !important;
  font-weight: 600 !important;
  font-size: 24px !important;
  text-transform: uppercase;
  letter-spacing: 0.01em !important;
}
#byd-home-registration .byd-waitlist label { font-weight: 700; color: #1f2937; }
#byd-home-registration .byd-waitlist input:not([type=checkbox]) {
  height: 50px;
  min-height: 50px;
  border-radius: 4px;
  border-color: #dde2ea;
  background: #fafbfc;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
#byd-home-registration .byd-waitlist input:not([type=checkbox]):focus {
  outline: none;
  border-color: var(--hr-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.12);
}
#byd-home-registration .byd-waitlist button {
  height: 54px;
  border-radius: 4px;
  background: var(--hr-ink);
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: none;
  transition: background-color .2s ease, transform .2s var(--hr-ease);
}
#byd-home-registration .byd-waitlist button:hover { background: var(--hr-blue); }
#byd-home-registration .byd-waitlist button:active { transform: scale(.99); }

#byd-models .byd-offer-benefits { padding-top: 8px; border-top: 0; }
#byd-models .byd-offer-benefits h2 { font-size: 26px !important; margin-bottom: 16px !important; }
#byd-models .byd-offer-benefits ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 0 0 16px;
  list-style: none;
  border: 1px solid var(--hr-line);
}
#byd-models .byd-offer-benefits li {
  display: grid;
  gap: 4px;
  padding: 20px 22px;
  border-left: 1px solid var(--hr-line);
  background: #fff;
}
#byd-models .byd-offer-benefits li:first-child { border-left: 0; }
#byd-models .byd-offer-benefits li strong { font: 600 19px/1.15 var(--hr-display); text-transform: uppercase; color: var(--hr-ink); }
#byd-models .byd-offer-benefits li span { font-size: 13px; color: var(--hr-muted); }
#byd-models .byd-offer-benefits > p { margin: 0; color: var(--hr-muted); font-size: 14px; }

/* Model cards (out of stock) */
#byd-models .byd-models-grid { gap: 10px; margin-top: 28px; }
#byd-models .byd-model-card {
  padding: 0 !important;
  border-radius: 0 !important;
  border: 1px solid var(--hr-line) !important;
  background: #fff !important;
  box-shadow: none !important;
  opacity: 1;
  overflow: hidden;
  gap: 0 !important;
  transition: border-color .25s ease;
}
#byd-models .byd-model-card:hover { border-color: #c9d0da !important; }
#byd-models .byd-model-card img {
  display: block;
  width: 100%;
  border-radius: 0 !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.85);
  transition: transform 700ms var(--hr-ease);
}
#byd-models .byd-model-card:hover img { transform: scale(1.03); }
#byd-models .byd-model-body { padding: 18px 20px 20px !important; gap: 10px !important; }
#byd-models .byd-model-body h3 {
  font: 600 22px/1.1 var(--hr-display) !important;
  text-transform: uppercase;
  letter-spacing: 0.005em !important;
  min-height: 0 !important;
}
#byd-models .byd-status { border-radius: 2px !important; font-size: 11px !important; letter-spacing: .06em; text-transform: uppercase; }
#byd-models .byd-spec-row span { border-radius: 2px !important; padding: 6px 9px !important; font-size: 12px !important; font-weight: 700 !important; }
#byd-models .byd-model-card p { font-size: 14px !important; font-weight: 500 !important; color: var(--hr-muted) !important; }
#byd-models .byd-model-card .btn {
  min-height: 44px !important;
  border-radius: 4px !important;
  border: 1px solid var(--hr-ink) !important;
  background: #fff !important;
  color: var(--hr-ink) !important;
  font-weight: 700 !important;
  transform: none !important;
  transition: background-color .2s ease, color .2s ease !important;
}
#byd-models .byd-model-card .btn:hover { background: var(--hr-ink) !important; color: #fff !important; }

/* ======================= 3. CCS2 ADAPTER ======================= */
.home-adapter-feature .home-adapter-inner {
  border-radius: 0 !important;
  border: 1px solid var(--hr-line) !important;
  box-shadow: none !important;
  overflow: hidden;
}
.home-adapter-feature .home-adapter-media,
.home-adapter-feature .home-adapter-media img { border-radius: 0 !important; }
#home-adapter-title { font-size: clamp(32px, 3.4vw, 48px) !important; }
.home-adapter-feature .adapter-eyebrow,
.home-adapter-feature .home-adapter-specs span { border-radius: 2px !important; }
.home-adapter-feature .adapter-btn { border-radius: 4px !important; box-shadow: none !important; }

/* ======================= 4. WHY US ======================= */
#pse-ne .feature-panel.why-card { border-radius: 0 !important; box-shadow: none !important; }
#pse-ne .why-shape { display: none; }
#pse-ne .why-bg { filter: grayscale(1); animation: none !important; transform: scale(1.02) !important; }
#pse-ne .why-content h2 { color: #fff; font-size: clamp(40px, 4.6vw, 68px) !important; }
#pse-ne .why-content p { font-weight: 500 !important; }
#pse-ne .feature-grid { gap: 10px !important; }
#pse-ne .feature-box {
  border-radius: 0 !important;
  border: 1px solid var(--hr-line) !important;
  box-shadow: none !important;
  padding: 26px !important;
}
#pse-ne .feature-box .icon {
  width: auto !important;
  height: auto !important;
  margin-bottom: 14px !important;
  border-radius: 0 !important;
  background: none !important;
  color: var(--hr-blue) !important;
  font: 700 30px/1 var(--hr-display) !important;
  display: block !important;
}
#pse-ne .feature-box h3 { font: 600 21px/1.15 var(--hr-display) !important; text-transform: uppercase; letter-spacing: .005em !important; }
#pse-ne .feature-box p { font-weight: 500 !important; }

/* ======================= 5. PARTNERS ======================= */
#partneret .eyebrow { border-radius: 2px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
#partneret .partners-head h2 { font-size: clamp(32px, 3.8vw, 54px) !important; }
#partneret .partners-head p { font-weight: 500 !important; font-size: 16px !important; }
#partneret .partners-grid { border-radius: 0 !important; }
#partneret .partner-card {
  border-radius: 0 !important;
  box-shadow: none !important;
  border: 1px solid var(--hr-line) !important;
  background: #fff !important;
  transform: none !important;
}
#partneret .partner-card:hover { border-color: #c9d0da !important; }
#partneret .partner-card img { filter: grayscale(1); opacity: .85; transition: filter .3s ease, opacity .3s ease; }
#partneret .partner-card:hover img { filter: none; opacity: 1; }

/* ======================= 6. LOCATION + SERVICE ======================= */
.location-section .location-card,
.location-section .service-contact-card {
  border-radius: 0 !important;
  border: 1px solid var(--hr-line) !important;
  box-shadow: none !important;
  transform: none !important;
}
.location-section .location-card h3,
.location-section .service-contact-card h3 { font-size: clamp(28px, 2.6vw, 36px) !important; margin-bottom: 10px !important; }
.location-section .location-card p,
.location-section .service-contact-card p { font-weight: 500 !important; }
.location-section .location-map-card { border-radius: 0 !important; box-shadow: none !important; }
.location-section .location-bg { filter: grayscale(1); }
.location-section .location-content strong { font-family: var(--hr-display) !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: .01em; }
.location-section .location-icon { border-radius: 0 !important; backdrop-filter: none !important; }
.location-section .btn { border-radius: 4px !important; box-shadow: none !important; }

/* ======================= RESPONSIVE (lower sections) ======================= */
@media (max-width: 1000px) {
  #byd-models .byd-notify-inner { padding: 44px 36px; min-height: 330px; }
  #byd-models .byd-notify-photo { width: 700px; right: -170px; top: -20px; }
  #byd-models .byd-registration-layout { grid-template-columns: 1fr; gap: 26px; }
  #byd-models .byd-offer-benefits ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #byd-models .byd-offer-benefits li:nth-child(3) { border-left: 0; }
  #byd-models .byd-offer-benefits li:nth-child(n+3) { border-top: 1px solid var(--hr-line); }
}

@media (max-width: 700px) {
  #byd-models { margin-top: 32px; }
  #byd-models .byd-notify-inner { padding: 26px 20px 0; min-height: 0; }
  #byd-models .byd-notify-copy { max-width: none; }
  #byd-models .byd-notify-copy h2 { font-size: 32px !important; }
  #byd-models .byd-notify-copy p { font-size: 16px; }
  #byd-models .byd-notify-photo { position: relative; right: auto; top: auto; width: 118%; max-width: none; margin: 8px -9% -4px; -webkit-mask-image: none; mask-image: none; z-index: 0; }
  #byd-models .byd-registration-layout { padding-top: 30px; }
  #byd-models .byd-registration-intro h2 { font-size: 32px !important; }
  #byd-home-registration .byd-waitlist { padding: 22px 18px; }
  #byd-models .byd-offer-benefits h2 { font-size: 24px !important; }
  #byd-models .byd-offer-benefits li { padding: 14px 14px 16px; }
  #byd-models .byd-offer-benefits li strong { font-size: 16px; }
  #byd-models .byd-offer-benefits li span { font-size: 12px; }
  #byd-models .byd-offer-benefits > p { font-size: 13px; }
  /* six sold-out cards: swipe sideways instead of a very long stack */
  #byd-models .byd-models-grid {
    display: grid !important;
    grid-template-columns: none !important;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: 10px;
    margin: 20px -16px 0;
    padding: 0 16px 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  #byd-models .byd-models-grid::-webkit-scrollbar { display: none; }
  #byd-models .byd-model-card { scroll-snap-align: start; grid-column: auto !important; }
  #byd-models .byd-model-body h3 { font-size: 19px !important; }
  #pse-ne .feature-box { padding: 20px !important; }
}

/* ======================= DARK MODE ======================= */
body.dark-mode #ballina .choice-head h1,
body.dark-mode #home-adapter-title,
body.dark-mode #partneret .partners-head h2,
body.dark-mode .location-section .location-card h3,
body.dark-mode .location-section .service-contact-card h3 { color: #f8fafc !important; }

/* ======================= REDUCED MOTION ======================= */
@media (prefers-reduced-motion: reduce) {
  #ballina .card-bg,
  #ballina .choice-card strong,
  #byd-models .byd-model-card img { transition: none !important; }
}
