.site-shell { min-width: 0; overflow: clip; }

.announcement-bar {
  background: var(--atc-yellow);
  color: var(--atc-navy);
  font-size: 0.82rem;
  font-weight: 750;
  text-align: center;
}

.announcement-bar p { margin: 0; padding-block: 0.45rem; }

.site-header {
	background: rgb(7 26 61 / 98%);
	border-bottom: 1px solid rgb(255 255 255 / 12%);
  min-height: var(--atc-header-height);
  position: sticky;
  top: 0;
  transition: box-shadow var(--atc-transition), background-color var(--atc-transition), border-color var(--atc-transition);
  z-index: 100;
}

.site-header.is-scrolled { background: var(--atc-navy); box-shadow: 0 8px 30px rgb(7 26 61 / 28%); }

body.home .site-header {
  margin-bottom: calc(var(--atc-header-height) * -1);
}

body.home .site-header:not(.is-scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

.site-header__inner {
  align-items: center;
  display: flex;
  gap: clamp(0.75rem, 2vw, 2rem);
  min-height: var(--atc-header-height);
}

.site-branding { flex: 0 1 auto; margin-right: auto; min-width: 0; }
.custom-logo-link { display: block; }
.custom-logo { max-height: 50px; width: auto; }

.wordmark {
	align-items: flex-start;
	color: var(--atc-yellow);
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-decoration: none;
}

.wordmark:hover { color: var(--atc-yellow); }
.wordmark__main { align-items: center; display: flex; font-size: clamp(1.2rem, 2.1vw, 1.6rem); font-style: italic; font-weight: 950; letter-spacing: -0.045em; line-height: 0.9; white-space: nowrap; }
.wordmark__tire { color: var(--atc-yellow); display: inline-flex; height: 1.32em; margin-inline: 0.14em 0.18em; transform: skewX(-5deg); width: 0.88em; }
.wordmark__tire svg { display: block; height: 100%; width: 100%; }
.wordmark__company { color: var(--atc-white); font-size: clamp(0.5rem, 0.75vw, 0.62rem); font-weight: 800; letter-spacing: 0.14em; line-height: 1; margin-top: 0.42rem; max-width: 28ch; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }

.primary-navigation { display: none; }
.site-header__cta { background: var(--atc-yellow); border-color: var(--atc-yellow); color: var(--atc-navy); display: none; }
.site-header__cta:hover { background: var(--atc-white); border-color: var(--atc-white); color: var(--atc-navy); }

.mobile-menu-toggle,
.mobile-menu__close {
  align-items: center;
  background: transparent;
  border: 0;
	display: inline-flex;
  height: 46px;
  justify-content: center;
  padding: 0;
  width: 46px;
}

.mobile-menu-toggle { color: var(--atc-white); }
.mobile-menu__close { color: var(--atc-navy); }

.mobile-menu {
  inset: 0;
  pointer-events: none;
  position: fixed;
  visibility: hidden;
  z-index: 200;
}

.mobile-menu[aria-hidden="false"] { pointer-events: auto; visibility: visible; }

.mobile-menu__backdrop {
  background: rgb(7 26 61 / 72%);
  border: 0;
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity var(--atc-transition);
  width: 100%;
}

.mobile-menu[aria-hidden="false"] .mobile-menu__backdrop { opacity: 1; }

.mobile-menu__panel {
  background: var(--atc-white);
  height: 100%;
  margin-left: auto;
  max-width: 400px;
  overflow-y: auto;
  padding: 1rem 1.25rem calc(2rem + env(safe-area-inset-bottom));
  position: relative;
  transform: translateX(105%);
  transition: transform var(--atc-transition);
  width: min(90vw, 400px);
}

.mobile-menu[aria-hidden="false"] .mobile-menu__panel { transform: translateX(0); }
.mobile-menu__top { align-items: center; border-bottom: 1px solid var(--atc-border); display: flex; justify-content: space-between; min-height: 58px; }
.mobile-menu__top strong { color: var(--atc-navy); font-size: 1.2rem; }
.mobile-menu__list,
.mobile-submenu { list-style: none; margin: 1rem 0; padding: 0; }
.mobile-menu__list > li { border-bottom: 1px solid var(--atc-border); }
.mobile-menu__list a,
.mobile-submenu-toggle { align-items: center; background: transparent; border: 0; color: var(--atc-navy); display: flex; font-weight: 750; justify-content: space-between; min-height: 54px; padding: 0.65rem 0; text-decoration: none; width: 100%; }
.mobile-submenu-toggle svg { transition: transform var(--atc-transition); }
.mobile-submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-submenu { background: var(--atc-surface); border-radius: var(--atc-radius); display: none; margin: 0 0 1rem; padding: 0.35rem 1rem; }
.mobile-submenu-toggle[aria-expanded="true"] + .mobile-submenu { display: block; }
.mobile-submenu a { font-size: 0.93rem; }
.mobile-menu__note { color: var(--atc-muted); font-size: 0.78rem; line-height: 1.55; margin-top: 1rem; }

.no-script-navigation { border-top: 1px solid rgb(255 255 255 / 16%); padding: 0.6rem max(1rem, calc((100vw - var(--atc-max)) / 2)); }
.no-script-navigation ul { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; list-style: none; margin: 0; padding: 0; }
.no-script-navigation a { align-items: center; color: var(--atc-white); display: inline-flex; font-size: 0.82rem; font-weight: 750; min-height: 44px; text-decoration: none; }
.no-script-navigation a:hover { color: var(--atc-yellow); }

@media (scripting: none) {
  .mobile-menu-toggle { display: none; }
  body.home .site-header { background: var(--atc-navy); border-bottom-color: rgb(255 255 255 / 12%); margin-bottom: 0; }
}

.section { padding-block: clamp(3.5rem, 7vw, 7rem); }
.section--surface { background: var(--atc-surface); }
.section--navy { background: var(--atc-navy); color: var(--atc-white); }
.section--navy :where(h2, h3) { color: var(--atc-white); }
.section--navy .eyebrow { color: var(--atc-yellow); }

.home-intro,
.products-intro { background: var(--atc-surface); }

.home-hero {
  align-items: center;
  background: var(--atc-navy);
  color: var(--atc-white);
  display: grid;
  overflow: hidden;
  padding-block: max(clamp(4rem, 7vw, 7rem), calc(var(--atc-header-height) + 2rem)) clamp(4rem, 7vw, 7rem);
  position: relative;
}

.home-hero::before {
  background: var(--atc-blue);
  clip-path: polygon(74% 0, 100% 0, 100% 100%, 45% 100%);
  content: "";
  inset: 0;
  opacity: 0.22;
  position: absolute;
}

.home-hero__grid { position: relative; }
.home-hero__content { max-width: 70rem; }
.home-hero h1 { color: var(--atc-white); font-size: clamp(2.5rem, 4vw, 4rem); max-width: 16ch; }
.home-hero__lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 41rem; }
.home-hero__note { color: rgb(255 255 255 / 72%); font-size: 0.78rem; margin-top: 1rem; }
.tyre-finder-section { margin-top: clamp(-3.5rem, -5vw, -2rem); position: relative; z-index: 5; }
.tyre-finder-card { background: var(--atc-white); border-top: 5px solid var(--atc-yellow); box-shadow: var(--atc-shadow); padding: clamp(1.25rem, 3vw, 2.25rem); }
.tyre-finder-card__heading { margin-bottom: 1.35rem; }
.tyre-finder-card__heading h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); margin-bottom: 0.3rem; }
.tyre-finder-card__heading p:last-child { color: var(--atc-muted); margin: 0; }
.tyre-finder { display: grid; gap: 0.8rem; }
.tyre-finder__submit { align-self: end; }

.section-heading { max-width: 47rem; }
.section-heading p:last-child { color: var(--atc-muted); margin-bottom: 0; }
.section-heading-row { align-items: end; display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; margin-bottom: 2.25rem; }
.section-heading-row .section-heading { margin-bottom: 0; }

.category-grid,
.service-grid,
.steps-grid,
.principle-grid { display: grid; gap: 1rem; margin-top: 2.25rem; }

.services-layout { display: grid; gap: 2rem; }
.services-content { background: var(--atc-white); border-radius: var(--atc-radius-lg); color: var(--atc-text); padding: clamp(1.25rem, 3vw, 2rem); }

.about-preview { border-top: 1px solid var(--atc-border); }
.about-preview__grid { display: grid; gap: 2.5rem; }
.about-preview__motif { align-items: end; background: var(--atc-yellow); display: grid; grid-template-columns: repeat(3, 1fr); min-height: 260px; overflow: hidden; padding: 1.5rem; position: relative; }
.about-preview__motif::before { background: var(--atc-navy); clip-path: polygon(30% 0, 100% 0, 75% 100%, 0 100%); content: ""; inset: 0; position: absolute; }
.about-preview__motif span { color: var(--atc-white); font-size: clamp(4rem, 12vw, 8rem); font-weight: 900; line-height: 0.8; position: relative; }
.about-preview__image { border-radius: var(--atc-radius-lg); min-height: 260px; overflow: hidden; }
.about-preview__image img { aspect-ratio: 4 / 3; display: block; height: 100%; object-fit: cover; width: 100%; }

.contact-strip,
.section-cta { background: var(--atc-navy-soft); color: var(--atc-white); padding-block: clamp(2.5rem, 5vw, 4rem); }
.contact-strip h2,
.section-cta h2 { color: var(--atc-white); }
.contact-strip__grid { display: grid; gap: 2rem; }
.contact-strip__details { display: grid; gap: 0.75rem; }
.contact-strip__details p { align-items: flex-start; display: flex; gap: 0.75rem; margin: 0; }
.contact-strip__details small { color: rgb(255 255 255 / 68%); display: block; font-size: 0.7rem; }
.contact-strip__details a { color: var(--atc-white); font-weight: 750; }

.site-footer { background: #04122b; color: rgb(255 255 255 / 73%); padding-top: clamp(3rem, 7vw, 5.5rem); }
.site-footer__grid { display: grid; gap: 2rem; }
.footer-logo { align-items: center; color: var(--atc-white); display: inline-flex; font-size: 1.15rem; font-weight: 850; gap: 0.75rem; text-decoration: none; }
.footer-logo:hover { color: var(--atc-white); }
.footer-logo__mark { color: var(--atc-yellow); }
.footer-logo__mark svg { height: 38px; width: 38px; }
.site-footer__brand p { font-size: 0.86rem; max-width: 32rem; }
.site-footer h2 { color: var(--atc-white); font-size: 0.95rem; letter-spacing: 0.04em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 0.45rem; }
.site-footer a { color: rgb(255 255 255 / 76%); text-decoration: none; }
.site-footer a:hover { color: var(--atc-yellow); }
.site-footer__contact p { align-items: flex-start; display: flex; font-size: 0.85rem; gap: 0.65rem; }
.site-footer__contact svg { color: var(--atc-yellow); flex: 0 0 auto; margin-top: 0.2rem; }
.site-footer__bottom { border-top: 1px solid rgb(255 255 255 / 14%); display: flex; flex-direction: column; font-size: 0.75rem; gap: 0.2rem; margin-top: 3rem; padding-block: 1.25rem; }
.site-footer__bottom p { margin: 0; }

.page-hero { background: var(--atc-navy); color: var(--atc-white); overflow: hidden; padding-block: clamp(3.2rem, 7vw, 6.5rem); position: relative; }
.page-hero::after { border: clamp(4rem, 10vw, 9rem) solid rgb(36 84 244 / 17%); border-radius: 50%; content: ""; height: clamp(18rem, 34vw, 32rem); position: absolute; right: -8rem; top: -9rem; width: clamp(18rem, 34vw, 32rem); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--atc-white); max-width: 16ch; }
.page-hero p:not(.eyebrow, .page-hero__notice) { font-size: clamp(1rem, 2vw, 1.2rem); max-width: 43rem; }
.page-hero__grid { align-items: center; display: grid; gap: 2rem; }
.page-hero__motif { align-items: center; color: rgb(255 255 255 / 30%); display: flex; justify-content: center; min-height: 180px; }
.page-hero__motif svg { height: 180px; width: 180px; }
.page-hero__motif span { font-size: clamp(4rem, 12vw, 9rem); font-weight: 900; letter-spacing: -0.08em; }
.page-hero__motif--tyres { color: var(--atc-yellow); min-height: clamp(190px, 25vw, 310px); }
.page-hero__motif--tyres svg { filter: drop-shadow(0 18px 22px rgb(0 0 0 / 18%)); height: auto; max-width: 440px; overflow: visible; width: 100%; }
.about-tyre-cluster__tyre { transform-box: fill-box; transform-origin: center; }
.about-tyre-cluster__tyre--left { animation: atc-tyre-roll-left 760ms cubic-bezier(0.2, 0.75, 0.25, 1) 120ms both; }
.about-tyre-cluster__tyre--right { animation: atc-tyre-roll-right 760ms cubic-bezier(0.2, 0.75, 0.25, 1) 260ms both; }
.about-tyre-cluster__tyre--center { animation: atc-tyre-settle 720ms cubic-bezier(0.2, 0.8, 0.25, 1) 420ms both; }
.about-tyre-cluster__ground { animation: atc-tyre-ground 720ms ease-out 520ms both; stroke-dasharray: 1; stroke-dashoffset: 1; }

@keyframes atc-tyre-roll-left {
  0% { opacity: 0; transform: translate(-75px, 18px) rotate(-42deg) scale(0.72); }
  72% { opacity: 1; transform: translate(5px, -2px) rotate(4deg) scale(1.02); }
  100% { opacity: 1; transform: none; }
}

@keyframes atc-tyre-roll-right {
  0% { opacity: 0; transform: translate(75px, 18px) rotate(42deg) scale(0.72); }
  72% { opacity: 1; transform: translate(-5px, -2px) rotate(-4deg) scale(1.02); }
  100% { opacity: 1; transform: none; }
}

@keyframes atc-tyre-settle {
  0% { opacity: 0; transform: translateY(-55px) scale(0.68); }
  62% { opacity: 1; transform: translateY(7px) scale(1.04); }
  82% { transform: translateY(-3px) scale(0.99); }
  100% { opacity: 1; transform: none; }
}

@keyframes atc-tyre-ground {
  to { stroke-dashoffset: 0; }
}
.page-hero--compact { padding-block: clamp(2.5rem, 5vw, 4rem); }
.page-hero--compact h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
.page-hero--inventory,
.page-hero--form { padding-block: clamp(3rem, 6vw, 5rem); }
.page-hero__notice { border-left: 4px solid var(--atc-yellow); color: rgb(255 255 255 / 78%); font-size: 0.84rem; margin-top: 1.5rem; max-width: 44rem; padding-left: 0.8rem; }

.section-cta__inner { align-items: center; display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.section-cta__inner > div { max-width: 47rem; }
.section-cta__inner p:last-child { margin-bottom: 0; }

.form-page,
.contact-page,
.about-page__intro,
.size-guide__grid,
.single-tyre__detail-grid { display: grid; gap: clamp(2rem, 5vw, 5rem); }
.form-page__aside { display: grid; gap: 1rem; align-content: start; }

.content-layout,
.search-page { min-height: 40vh; }
.post-list { display: grid; gap: 1.25rem; }
.post-card { border-bottom: 1px solid var(--atc-border); display: grid; gap: 1.25rem; padding-bottom: 2rem; }
.post-card img { aspect-ratio: 3 / 2; border-radius: var(--atc-radius); object-fit: cover; width: 100%; }
.post-card__date { color: var(--atc-muted); font-size: 0.8rem; }
.content-empty { background: var(--atc-surface); border-radius: var(--atc-radius-lg); padding: clamp(2rem, 5vw, 4rem); text-align: center; }

.not-found { align-items: center; background: var(--atc-surface); display: flex; min-height: 70vh; padding-block: 4rem; text-align: center; }
.not-found__inner { max-width: 720px; }
.not-found__code { color: var(--atc-blue); font-size: clamp(5rem, 18vw, 10rem); font-weight: 900; line-height: 0.8; margin: 0; opacity: 0.12; }
.not-found__icon { color: var(--atc-navy); display: flex; justify-content: center; margin: -1.5rem auto 1rem; }
.not-found__icon svg { height: 96px; width: 96px; }
.not-found .text-link { margin-top: 1.2rem; }

@media (min-width: 600px) {
  .tyre-finder { grid-template-columns: repeat(3, 1fr); }
  .tyre-finder__submit { grid-column: span 1; }
  .category-grid,
  .principle-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__bottom { align-items: center; flex-direction: row; justify-content: space-between; }
  .post-card { grid-template-columns: minmax(180px, 0.35fr) 1fr; }
}

@media (min-width: 768px) {
  .container { padding-inline: 1.5rem; }
  .tyre-finder { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .about-preview__grid { align-items: center; grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr); }
  .contact-strip__grid { align-items: center; grid-template-columns: 1.25fr 1fr auto; }
  .page-hero__grid { grid-template-columns: 1.5fr 0.5fr; }
  .form-page { grid-template-columns: minmax(0, 1fr) minmax(250px, 0.38fr); }
  .contact-page { grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr); }
  .about-page__intro,
  .size-guide__grid,
  .single-tyre__detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .home-hero {
    min-height: auto;
    padding-block: calc(var(--atc-header-height) + 2.25rem) clamp(4rem, 5.5vw, 5.5rem);
  }
  .primary-navigation { display: block; }
  .primary-navigation__list { align-items: center; display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
  .primary-navigation__list > li > a,
	.nav-dropdown__toggle { align-items: center; background: transparent; border: 0; color: var(--atc-white); display: flex; font-size: 0.88rem; font-weight: 750; gap: 0.25rem; min-height: 44px; padding: 0.6rem 0.7rem; text-decoration: none; }
  .primary-navigation__list > li > a:hover,
  .primary-navigation__list > li > a[aria-current="page"],
	.nav-dropdown.is-current .nav-dropdown__toggle { color: var(--atc-yellow); }
  .nav-dropdown { position: relative; }
  .nav-dropdown__icon { transition: transform var(--atc-transition); }
  .nav-dropdown__toggle[aria-expanded="true"] .nav-dropdown__icon { transform: rotate(180deg); }
  .nav-dropdown__menu { background: var(--atc-white); border: 1px solid var(--atc-border); border-radius: var(--atc-radius); box-shadow: var(--atc-shadow); left: 0; list-style: none; margin: 0; min-width: 220px; opacity: 0; padding: 0.5rem; pointer-events: none; position: absolute; top: calc(100% + 4px); transform: translateY(-5px); transition: opacity var(--atc-transition), transform var(--atc-transition); visibility: hidden; }
  .nav-dropdown__toggle[aria-expanded="true"] + .nav-dropdown__menu { opacity: 1; pointer-events: auto; transform: translateY(0); visibility: visible; }
  .nav-dropdown__menu a { border-radius: var(--atc-radius-sm); color: var(--atc-navy); display: block; font-size: 0.88rem; font-weight: 700; padding: 0.65rem 0.75rem; text-decoration: none; }
  .nav-dropdown__menu a:hover,
  .nav-dropdown__menu a:focus-visible { background: var(--atc-surface); color: var(--atc-blue); }
  .site-header__cta { display: inline-flex; }
  .mobile-menu-toggle { display: none; }
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
  .services-layout { align-items: start; grid-template-columns: 0.75fr 1.25fr; }
  .site-footer__grid { grid-template-columns: 1.4fr 0.7fr 0.7fr 1fr; }
}

@media (max-width: 374px) {
	.wordmark__main { font-size: 1.08rem; }
	.wordmark__company { font-size: 0.46rem; letter-spacing: 0.08em; max-width: 25ch; }
	.button { padding-inline: 1rem; }
}

@media (max-width: 767px) {
  .page-hero__motif--tyres { margin-top: -0.75rem; min-height: 145px; }
  .page-hero__motif--tyres svg { max-width: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  .about-tyre-cluster__tyre { animation: none; }
  .about-tyre-cluster__ground { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
}
