/* Motul Polska — shared styles (header, footer, tokens) */

@font-face {
  font-display: swap;
  font-family: "Graphik";
  font-style: normal;
  font-weight: 700;
  src: url("assets/fonts/Graphik-Bold.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  src: url("assets/fonts/montserrat-latin-ext-400.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-display: swap;
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  src: url("assets/fonts/montserrat-latin-400.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-display: swap;
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  src: url("assets/fonts/montserrat-latin-ext-500.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-display: swap;
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  src: url("assets/fonts/montserrat-latin-500.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-display: swap;
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  src: url("assets/fonts/montserrat-latin-ext-700.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-display: swap;
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  src: url("assets/fonts/montserrat-latin-700.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;
}

:root {
  --black: #0a0a0a;
  --blue: #0e7dc2;
  --container: 1560px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --field: #302a2d;
  --field-border: #575154;
  --font-body: "Montserrat", system-ui, sans-serif;
  --font-display: "Graphik", "Montserrat", system-ui, sans-serif;
  --font-graphik: var(--font-display);
  --header-h: 114px;
  --ink: #241f21;
  --ink-muted: #b8b3b5;
  --motul-red: #e12526;
  --motul-red-hot: #ed252f;
  --motul-red-text: #ff5c66;
  --page-pad: 20px;
  --panel: #171416;
  --surface: #f7f7f7;
  --white: #ffffff;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;

  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin: 0 0 16px;
  text-transform: uppercase;
}

p {
  margin: 0 0 16px;
}

.container {
  margin-inline: auto;
  width: min(100% - (var(--page-pad) * 2), var(--container));
}

.skip-link {
  background: var(--motul-red);
  color: var(--white);
  left: -999px;
  padding: 12px 16px;
  position: absolute;
  top: 0;
  z-index: 1000;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* —— Buttons —— */
.btn {
  align-items: center;
  border: none;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  letter-spacing: 0.04em;
  line-height: 1;
  min-height: 50px;
  min-width: 160px;
  padding: 0 20px;
  text-transform: uppercase;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn-primary,
.btn-contact,
.btn-shop {
  background: var(--motul-red);
  color: var(--white);
}

.btn-primary:hover,
.btn-contact:hover,
.btn-shop:hover {
  background: var(--motul-red-hot);
  transform: translateY(-1px);
}

.btn .icon {
  display: block;
  flex-shrink: 0;
  height: 15px;
  width: 18px;
}

.header-actions {
  display: flex;
  gap: 8px;
  order: 2;
}

.btn-contact,
.btn-shop {
  font-size: 0;
  gap: 0;
  height: 44px;
  min-height: 44px;
  min-width: 0;
  padding: 0;
  width: 44px;
}

.btn-contact .icon {
  height: 15px;
  width: 18px;
}

.btn-shop .icon {
  height: 16px;
  width: 18px;
}

@media (min-width: 768px) {
  .header-actions {
    gap: 12px;
    order: 0;
  }

  .btn-contact,
  .btn-shop {
    align-items: center;
    font-size: 16px;
    gap: 8px;
    height: 50px;
    min-width: 160px;
    padding: 0 16px;
    width: 160px;
  }
}

/* —— Focus —— */
.btn:focus-visible,
button:focus-visible {
  outline: 2px solid var(--motul-red-hot);
  outline-offset: 2px;
}

/* —— Logo —— */
.logo {
  align-items: center;
  background: var(--motul-red);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  padding: 0 8px;
  width: 120px;
}

.logo img {
  height: auto;
  width: 147px;
}

@media (min-width: 768px) {
  .logo {
    height: 44px;
    width: 162px;
  }
}

/* —— Header —— */
.site-header {
  background: transparent;
  height: var(--header-h);
  inset: 0 0 auto;
  padding: 30px 0;
  position: fixed;
  transition: background 0.25s var(--ease);
  width: 100%;
  z-index: 50;
}

.site-header::before {
  background: rgba(10, 10, 10, 0.72);
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 0.25s var(--ease);
  z-index: -1;

  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.site-header.is-scrolled::before {
  opacity: 1;
}

.header-inner {
  align-items: center;
  display: flex;
  gap: 8px;
  height: 100%;
  position: relative;
}

.header-inner .logo {
  margin-right: auto;
}

@media (min-width: 768px) {
  .header-inner {
    align-items: flex-end;
    gap: 24px;
  }

  .header-inner .logo {
    margin-right: 0;
  }

  .header-actions {
    margin-left: auto;
  }
}

.site-nav {
  background: var(--black);
  left: 0;
  margin-bottom: 5px;
  opacity: 0;
  padding: 16px 20px;
  pointer-events: none;
  position: fixed;
  top: var(--header-h);
  transform: translateX(-100%);
  transition: transform 0.3s var(--ease), opacity 0.3s;
  width: 200px;
  z-index: 40;
}

.site-nav.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.site-nav ul {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: center;
}

.site-nav a {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  opacity: 0.95;
  padding: 4px;
  text-transform: uppercase;
  white-space: normal;
}

.site-nav a:hover {
  color: var(--motul-red-hot);
}

@media (min-width: 768px) {
  .site-nav {
    background: transparent;
    left: auto;
    opacity: 1;
    padding: 0;
    pointer-events: auto;
    position: static;
    top: auto;
    transform: none;
    transition: none;
    width: auto;
    z-index: auto;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .site-nav ul {
    align-items: stretch;
    flex-direction: row;
    gap: 0 24px;
  }

  .site-nav a {
    font-size: 14px;
    padding: 0;
    white-space: nowrap;
  }
}

@media (min-width: 1200px) {
  .header-inner {
    gap: 80px;
  }

  .site-nav a {
    font-size: 16px;
  }
}

.nav-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 44px;
  justify-content: center;
  order: 3;
  padding: 0;
  width: 44px;
}

.nav-toggle span {
  background: var(--white);
  display: block;
  height: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
  width: 22px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

/* —— Social float (right rail) —— */
.social-float {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
}

.social-float a {
  display: grid;
  height: 48px;
  place-items: center;
  transition: filter 0.2s;
  width: 48px;
}

.social-float a:hover {
  filter: brightness(1.1);
}

.social-float img {
  height: 28px;
  width: 28px;
}

.social-float-fb {
  background: var(--blue);
}

.social-float-ig {
  background: #e1306c;
}

/* —— Footer —— */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.9);
  padding-top: 64px;
}

@media (min-width: 768px) {
  .site-footer {
    padding-top: 66px;
  }
}

.footer-grid {
  display: grid;
  gap: 48px 32px;
  grid-template-columns: 1fr;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-logo {
  background: var(--motul-red);
  display: block;
  height: auto;
  max-width: 100%;
  padding: 12px 14px;
  width: 273px;
}

.footer-social-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-social-list a {
  align-items: center;
  display: flex;
  gap: 16px;
  line-height: 1.75;
}

.footer-social-list a:hover {
  color: var(--motul-red-hot);
}

.footer-social-list img {
  flex-shrink: 0;
  height: auto;
  width: 24px;
}

.footer-label {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  margin: 0 0 20px;
  text-transform: uppercase;
}

.footer-col nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}

.footer-col address {
  font-style: normal;
  line-height: 1.7;
  margin: 0;
}

/* 768+: brand row (logo + social flex), then 2x2 columns */
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .footer-logo {
    flex-shrink: 0;
    width: min(100%, 220px);
  }
}

/* 992+: brand full width, 4 columns below */
@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-logo {
    width: min(100%, 240px);
  }

  .footer-label {
    font-size: 16px;
  }

  .footer-social-list a {
    font-size: 14px;
    gap: 12px;
  }
}

/* 1200+: 5 columns - brand + 4 content cols */
@media (min-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1.15fr 0.85fr 1fr 0.95fr 1fr;
  }

  .footer-brand {
    flex-direction: column;
    grid-column: auto;
  }

  .footer-logo {
    width: 273px;
  }

  .footer-label {
    font-size: 20px;
  }

  .footer-col address {
    line-height: 2.7;
  }

  .footer-social-list a {
    font-size: 16px;
    gap: 16px;
  }
}

.footer-col a:hover {
  color: var(--motul-red-hot);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 32px;
}

@media (min-width: 768px) {
  .footer-bottom {
    padding-top: 0;
  }
}

.footer-bottom-inner {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: space-between;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    text-align: left;
  }
}

.footer-bottom p {
  color: var(--surface);
  font-family: var(--font-body);
  line-height: 1.25;
  margin: 0;
}

.partner-logo {
  display: block;
  flex-shrink: 0;
  height: 80px;
  width: 80px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
