/* ==========================================================================
   Panther1 Lubricants — shared design system
   Color palette and layout patterns are matched to power-oil.be so both
   sites share a consistent look. Body font is a free stand-in for
   power-oil.be's paid Typekit font (eurostile), which can't be embedded here.
   ========================================================================== */

:root {
  --green: #007d47;
  --green-dark: #006138;
  --red: #e2241c;
  --dark: #373935;
  --light: #ecebea;
  --ink: #3a4d60;
  --white: #ffffff;

  --header-height: 110px;
  --header-height-mobile: 78px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Century Gothic", "Futura", "Segoe UI", -apple-system, BlinkMacSystemFont,
    Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.6;
  padding-top: var(--header-height);
}

/* Pages whose first section is a full-bleed hero let the fixed header
   float on top of the image instead of pushing it down. */
body.has-fixed-hero {
  padding-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
}

section[id] {
  scroll-margin-top: var(--header-height);
}

img {
  max-width: 100%;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== HEADER ===== */
header.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--green);
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 14px 40px;
  max-width: 1300px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ===== NAV ===== */
nav.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav.site-nav a {
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 3px;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

nav.site-nav a:hover {
  background: var(--red);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

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

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

@media (max-width: 991px) {
  :root {
    --header-height: var(--header-height-mobile);
  }
  .header-inner {
    padding: 12px 20px;
  }
  .logo img {
    height: 42px;
    width: auto;
  }
  .nav-toggle {
    display: flex;
  }
  nav.site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--green-dark);
    padding: 10px 20px 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
  }
  nav.site-nav.open {
    display: flex;
  }
  nav.site-nav a {
    padding: 14px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
}

/* ===== SHARED BUTTONS ===== */
.btn-theme {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--dark);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.4px;
  padding: 14px 30px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-theme:hover {
  background: var(--green);
}

.btn-theme .arrow-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--dark);
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.btn-back:hover {
  background: var(--green);
  transform: translateX(-6px);
}

.btn-back svg {
  width: 22px;
  height: 22px;
}

/* ===== SCROLL TO TOP ===== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.2s ease;
  z-index: 90;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.scroll-to-top:hover {
  background: var(--dark);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top svg {
  width: 22px;
  height: 22px;
  stroke: var(--white);
}

/* ===== FOOTER ===== */
footer.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.8);
}

footer.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 40px;
  font-size: 12px;
  letter-spacing: 0.2px;
}

footer.site-footer a {
  color: var(--white);
  text-decoration: none;
}

footer.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  footer.site-footer .container {
    flex-direction: column;
    text-align: center;
    padding: 16px 20px;
  }
}
