/* WESS Select landing. Layout follows the former WordPress theme "WESS Select HOME" without Bootstrap/jQuery. */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/poppins-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/poppins-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/poppins-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/poppins-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html {
  background: #303030;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
}

a { text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #303030 url('img/bg-default.jpg') center / cover no-repeat;
  transition: background-image .3s ease-in-out;
}
.bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #000;
  opacity: .25;
}

.site-header {
  position: relative;
  z-index: 1;
  padding: 1rem 0;
  background: #303030;
  text-align: center;
}
.site-logo { display: inline-block; color: #fff; vertical-align: top; }
.site-logo img { display: block; width: 220px; height: auto; }

.services {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 0;
}

.services-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.tiles,
.footer-links {
  width: min(1140px, calc(96% - 30px));
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.footer-links { width: min(1170px, 96%); }

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 30px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: #fff;
  text-align: center;
  transition: opacity .3s ease-in-out;
}
.tile.is-inactive { opacity: .75; }

.tile-link { display: block; margin: auto 0; outline: none; }
/* Stretched link: the whole tile opens the brand site, as in the original theme. */
.tile-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.tile-link:focus-visible::after { outline: 3px solid #303030; outline-offset: -3px; }
.tile-link img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 5rem auto;
}

.tile-links {
  /* Sub-links sit above the stretched link so each of them stays clickable. */
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-evenly;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tile-links a {
  display: block;
  color: #000;
  font-size: 1rem;
  transition: color .15s ease-in-out;
}
.tile-links a:hover { color: #c90000; }
.tile-blue .tile-links a:hover { color: #1c69d1; }

.site-footer {
  padding: 1rem 0;
  background: #303030;
  color: #fff;
  font-weight: 300;
}
.footer-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer-links a { color: #ccc; }
.footer-links a:hover { color: #fff; }
.footer-button {
  padding: 0;
  border: 0;
  background: none;
  color: #ccc;
  font: inherit;
  cursor: pointer;
}
.footer-button:hover { color: #fff; }
.footer-button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.icon {
  width: 1em;
  height: 1em;
  margin-right: .25rem;
  fill: currentColor;
  vertical-align: -.125em;
}

.notice {
  width: min(640px, calc(96% - 30px));
  margin: 0 auto;
  padding: 3rem 1.5rem;
  background: #fff;
  text-align: center;
}
.notice h1 { margin: 0 0 1rem; font-size: 1.75rem; font-weight: 400; line-height: 1.2; }
.notice p { margin: 0 0 1.5rem; }
.notice a { color: #c90000; }
.notice a:hover { text-decoration: underline; }

/* Cookie consent: layout of the Honda site's banner. Elements toggled with [hidden] get no display rule. */
.cookie-consent {
  position: fixed;
  left: 40px;
  bottom: 40px;
  z-index: 10;
  width: 440px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  padding: 24px 26px;
  border-radius: 6px;
  background: #fff;
  color: #212121;
  box-shadow: 0 0 18px rgba(0, 0, 0, .2);
  font-size: 14px;
  line-height: 1.7;
}
.cookie-consent-title { margin: 0 0 12px; font-size: 18px; font-weight: 600; line-height: 1.4; }
.cookie-consent p { margin: 0 0 12px; }
.cookie-consent a { color: inherit; text-decoration: underline; }
.cookie-consent-choices { margin: 0 0 12px; padding: 0; border: 0; }
.cookie-consent-choices legend { padding: 0; font-weight: 600; }
.cookie-choice { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; overflow-wrap: anywhere; }
.cookie-choice input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: #303030; }
.cookie-consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-consent-actions button {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 8px 12px;
  border: 2px solid #303030;
  border-radius: 0;
  background: #303030;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.cookie-consent-actions .cookie-consent-secondary { background: #fff; color: #303030; }
.cookie-consent-actions button:hover { border-color: #c90000; background: #c90000; color: #fff; }
.cookie-consent button:focus-visible,
.cookie-choice input:focus-visible { outline: 2px solid #303030; outline-offset: 2px; }

@media (max-width: 1199px) {
  .tile-links a { font-size: .9rem; }
}

@media (max-width: 991px) {
  .services { justify-content: flex-start; padding: 6rem 0; }
  .services-title {
    position: static;
    width: auto;
    height: auto;
    margin: 0 auto 6.5rem;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    padding: 0 15px;
    color: #fff;
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
  }
  .tiles { grid-template-columns: 1fr; gap: 1rem; }
  .tile-links a { font-size: .875rem; }
  .footer-links { font-size: .9rem; }
}

@media (max-width: 767px) {
  .services { padding: 2rem 0; }
  .services-title { margin-bottom: 2.5rem; font-size: 1rem; }
  .tile-links a { padding: .25rem; font-size: .75rem; }
  .footer-links { flex-direction: column; gap: .5rem; text-align: center; }
  .footer-copy { order: 3; }
}

@media (max-width: 575px) {
  .tile-link img { margin: 2rem auto; }
  .cookie-consent { left: 10px; right: 10px; bottom: 10px; width: auto; max-height: calc(100vh - 20px); padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .bg, .tile, .tile-links a { transition: none; }
}
