/* ==========================================================================
   GTCO Porsche Parts Homepage — Stylesheet
   Extracted from inline styles in index.html for dev handoff.

   Dynamic values driven by the page's JS (header height/padding, hero height,
   selector field colors/state, per-brand type sizing, etc.) remain as small
   inline styles on their elements — those depend on viewport size or
   component state computed at render time, not static CSS. Everything else
   lives here. Elements that used the non-standard `style-hover` /
   `style-active` attributes (an artifact of the design tool's templating,
   not real HTML/CSS) now use real :hover / :active rules below.
   ========================================================================== */

/* ---- Base ---- */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #111;
  font-family: 'Lora', Georgia, serif;
  font-weight: 300;
  color: #141414;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
a:hover { color: #b3262d; }
button { font-family: inherit; }

/* ---- Page wrapper ---- */
.gtco-page { min-height: 100vh; background: #fff; }

/* ---- Dev / block-label badges (design-review overlay only, not production UI) ---- */
.gtco-dev-label {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 60;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #fff;
  background: #2f6fed;
  padding: 3px 7px;
  border-radius: 3px;
}
.gtco-dev-label--orange { background: #d97706; }
.gtco-dev-label--brow { left: auto; right: 8px; top: 36px; }
.gtco-dev-label--header { top: auto; bottom: -22px; }
.gtco-dev-label--hero { top: 28px; line-height: 1.2; }

/* ---- Top brow (currently empty / unused on this page) ---- */
.gtco-brow {
  position: relative;
  font-family: 'Inter', sans-serif;
  background: #000;
  color: #a8a8a8;
  font-size: 13px;
  letter-spacing: .02em;
  border-bottom: 1px solid #1f1f1f;
}

/* ---- Header ---- */
.gtco-header {
  font-family: 'Inter', sans-serif;
  position: sticky;
  top: 0;
  z-index: 50;
  background: #000;
  color: #fff;
}
.gtco-header__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  /* height / padding-inline: set dynamically via inline style (viewport-dependent) */
}
.gtco-header__logo-link { display: flex; align-items: center; justify-self: start; }
.gtco-header__logo { display: block; /* width/height: set dynamically via inline style */ }

.gtco-nav {
  display: flex;
  gap: clamp(40px, 7.5vw, 136px);
  align-items: center;
  font-size: clamp(20px, 1.7vw, 25px);
  font-weight: 300;
  letter-spacing: normal;
  text-transform: uppercase;
  white-space: nowrap;
}
.gtco-nav__link { color: #fff; padding: 8px 0; }
.gtco-nav__link:hover { color: #cfcfcf; }

.gtco-header__actions { display: flex; align-items: center; gap: 16px; justify-self: end; }

.gtco-signin-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 300;
  text-transform: uppercase;
  padding: 10px 12px;
}
.gtco-signin-link:hover { color: #cfcfcf; }

.gtco-cart-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  width: 65px;
  height: 44px;
  border: 1px solid #6a6a6a;
}
.gtco-cart-link:hover { color: #fff; border-color: #fff; }
.gtco-cart-badge {
  position: absolute;
  top: -9px;
  right: 18px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  background: #b3262d;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
}

.gtco-menu-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
}

.gtco-mobile-menu {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #111;
  border-top: 1px solid #262626;
  padding: 8px 20px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 40px rgba(0,0,0,.4);
}
.gtco-mobile-menu__link {
  color: #fff;
  font-size: 22px;
  text-transform: uppercase;
  padding: 18px 0;
  border-bottom: 1px solid #262626;
  display: flex;
  justify-content: space-between;
}
.gtco-mobile-menu__link-arrow { color: #777; }
.gtco-mobile-menu__signin {
  color: #fff;
  font-size: 17px;
  padding: 20px 0 6px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.gtco-mobile-menu__note { margin: 10px 0 0; color: #8a8a8a; font-size: 13px; line-height: 1.5; }

/* ---- Hero ---- */
.gtco-hero { position: relative; background: #111; line-height: 0; }
.gtco-hero__img {
  width: 100%;
  object-fit: cover;
  object-position: 52% 0%;
  display: block;
  /* height: set dynamically via inline style (fold-aware sizing) */
}

/* ---- Vehicle selector ---- */
.gtco-selector {
  position: relative;
  color: #fff;
  /* background / padding: set dynamically via inline style (layout variant) */
}
.gtco-selector__box {
  max-width: 1280px;
  background: #111;
  position: relative;
  z-index: 5;
  /* margin / padding / box-shadow: set dynamically via inline style (layout variant) */
}
.gtco-selector__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 32px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.gtco-selector__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #9a9a9a;
  margin-bottom: 12px;
}
.gtco-selector__title {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 300;
  letter-spacing: -.005em;
  line-height: 1.1;
}
.gtco-selector__desc {
  margin: 0;
  color: #a8a8a8;
  font-size: 15px;
  line-height: 1.55;
  max-width: 360px;
  text-wrap: pretty;
}
.gtco-selector__grid {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  align-items: end;
}
.gtco-field { position: relative; display: flex; flex-direction: column; gap: 8px; }
.gtco-field__label {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8f8f8f;
  display: flex;
  gap: 8px;
}
.gtco-field__num { color: #b3262d; }
.gtco-field__button {
  height: 60px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  background: #1b1b1b;
  border-radius: 2px;
  font-size: 17px;
  text-align: left;
  transition: border-color .15s;
  /* border-color / color / cursor / opacity: set dynamically via inline style (field state) */
}
.gtco-field__button:hover { border-color: #8a8a8a; }
.gtco-field__button-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gtco-field__chevron { flex: none; transition: transform .2s; /* rotation: set dynamically via inline style */ }
.gtco-field__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  overflow-x: hidden;
  z-index: 30;
  background: #fff;
  color: #141414;
  border-radius: 2px;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  max-height: 320px;
  overflow: auto;
  padding: 6px;
  display: grid;
  gap: 2px;
  /* min-width / grid-template-columns: set dynamically via inline style (field variant) */
}
.gtco-field__option {
  padding: 11px 12px;
  border: 0;
  border-radius: 2px;
  font-size: 15px;
  cursor: pointer;
  /* text-align / background / color: set dynamically via inline style (selected state) */
}
.gtco-field__option:hover { background: #efece6; }

.gtco-selector__submit {
  height: 60px;
  border: 0;
  border-radius: 2px;
  background: #b3262d;
  color: #fff;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: .04em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: background .15s;
}
.gtco-selector__submit:hover { background: #94191f; }
.gtco-selector__submit:active { background: #7d1419; }

.gtco-selector__status {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  min-height: 28px;
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
}
.gtco-selector__error { color: #ff8a8f; }
.gtco-selector__result { color: #d6d6d6; }
.gtco-selector__result-strong { color: #fff; font-weight: 400; }
.gtco-selector__result-note { color: #8a8a8a; }
.gtco-selector__change-btn {
  background: none;
  border: 0;
  padding: 0;
  color: #b8b8b8;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 14px;
  cursor: pointer;
}
.gtco-selector__change-btn:hover { color: #fff; }
.gtco-selector__idle { color: #777; }

/* ---- Shared section header (Featured Categories / Featured Brands) ---- */
.gtco-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.gtco-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #7a746a;
  margin-bottom: 14px;
}
.gtco-section-header__title { margin: 0; font-size: clamp(30px, 3.4vw, 44px); font-weight: 300; line-height: 1.1; }
.gtco-section-header__link {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  letter-spacing: .03em;
  border-bottom: 1px solid #141414;
  padding-bottom: 5px;
  display: flex;
  gap: 10px;
}
.gtco-section-header__link:hover { border-bottom-color: #b3262d; }

/* ---- Services ("Why GTCO") ---- */
.gtco-services { position: relative; background: #f3f1ec; /* padding-inline: set dynamically via inline style */ }
.gtco-services__layout {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.gtco-services__eyebrow { margin-bottom: 20px; }
.gtco-services__title {
  margin: 0 0 24px;
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.gtco-services__desc { margin: 0 0 32px; font-size: 17px; line-height: 1.65; color: #4a463f; max-width: 480px; text-wrap: pretty; }
.gtco-services__link {
  font-family: 'Inter', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  letter-spacing: .04em;
  color: #141414;
  border-bottom: 1px solid #141414;
  padding-bottom: 6px;
}
.gtco-services__link:hover { color: #b3262d; border-bottom-color: #b3262d; }
.gtco-services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1px;
  background: #d9d4ca;
  border: 1px solid #d9d4ca;
}
.gtco-service-card {
  background: #fff;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
  color: #141414;
  transition: background .2s;
}
.gtco-service-card:hover { background: #faf9f6; color: #141414; }
.gtco-service-card__num { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #b3262d; }
.gtco-service-card__title { margin: 0; font-family: 'Montserrat', sans-serif; font-size: 22px; font-weight: 300; line-height: 1.2; text-align: left; }
.gtco-service-card__body { margin: 0; font-size: 15px; line-height: 1.6; color: #57524a; flex: 1; text-wrap: pretty; }
.gtco-service-card__email { color: #141414; border-bottom: 1px solid #b3262d; white-space: nowrap; }
.gtco-service-card__cta { font-family: 'Inter', sans-serif; font-size: 14px; letter-spacing: .03em; display: flex; align-items: center; gap: 8px; color: #141414; }

/* ---- Featured Categories ---- */
.gtco-categories { position: relative; background: #fff; /* padding-inline: set dynamically via inline style */ }
.gtco-categories__layout { max-width: 1280px; margin: 0 auto; }
.gtco-categories__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 32px 20px; }
.gtco-category-card { display: flex; flex-direction: column; gap: 14px; }
.gtco-category-card__image-wrap { position: relative; aspect-ratio: 4/3; background: #e9e6df; overflow: hidden; }
.gtco-category-card__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e3dfd7;
  color: #141414;
}
.gtco-category-card__link:hover { color: #b3262d; border-bottom-color: #b3262d; }
.gtco-category-card__title { font-family: 'Montserrat', sans-serif; font-size: 19px; font-weight: 300; }
.gtco-category-card__arrow { font-size: 18px; }

/* ---- Featured Brands ---- */
.gtco-brands { position: relative; background: #f3f1ec; /* padding-inline: set dynamically via inline style */ }
.gtco-brands__layout { max-width: 1280px; margin: 0 auto; }
.gtco-brands__grid { display: grid; gap: 1px; background: #d9d4ca; border: 1px solid #d9d4ca; /* grid-template-columns: set dynamically via inline style (column count) */ }
.gtco-brand-card {
  position: relative;
  background: #fff;
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #3a3a3a;
  transition: color .2s;
}
.gtco-brand-card:hover { color: #111; }
.gtco-brand-card__name { font-family: 'Inter', sans-serif; font-weight: 600; /* font-size / letter-spacing / font-style: set dynamically via inline style (per-brand styling) */ }

/* ---- Footer ---- */
.gtco-footer {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  position: relative;
  background: #111;
  color: #bdbdbd;
  /* padding: set dynamically via inline style */
}
.gtco-footer__layout { max-width: 1280px; margin: 0 auto; }
.gtco-footer__top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 48px 32px;
  padding-bottom: 56px;
  border-bottom: 1px solid #262626;
}
.gtco-footer__brand { display: flex; flex-direction: column; gap: 20px; grid-column: span 1; }
.gtco-footer__logo { width: 84px; height: 84px; }
.gtco-footer__tagline { margin: 0; font-size: 15px; line-height: 1.6; color: #9a9a9a; max-width: 240px; }
.gtco-footer__col { display: flex; flex-direction: column; gap: 14px; }
.gtco-footer__col-title { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 6px; }
.gtco-footer__link { font-size: 15px; color: #bdbdbd; display: flex; gap: 6px; }
.gtco-footer__link:hover { color: #fff; }
.gtco-footer__link-ext { color: #666; }
.gtco-footer__contact-link { font-size: 15px; color: #bdbdbd; align-self: flex-start; }
.gtco-footer__contact-link:hover { color: #fff; }
.gtco-footer__bottom { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-top: 28px; font-size: 13px; color: #7a7a7a; line-height: 1.6; }

/* ---- Toast ---- */
.gtco-toast {
  font-family: 'Inter', sans-serif;
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 100;
  background: #fff;
  color: #141414;
  padding: 12px 18px;
  border-radius: 2px;
  font-size: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
