:root {
  --White: #ffffff;
  --Black: #000000;
}

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  margin: 0;
  padding: 0;
  padding-top: 75px;
  overflow-x: hidden;
}

/* Remove top padding when using transparent header */
body.has-transparent-header {
  padding-top: 0;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1002;
  transition: all 0.3s ease;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: 75px;
}

/* Transparent header state (at top) */
.header--transparent {
  background: transparent;
  box-shadow: none;
}

/* Scrolled state forces white background */
.header--scrolled {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.header--scrolled .header__menu a,
.header--scrolled .header__logo-link {
  color: #000;
}
.header--scrolled .header__mobile-menu-line {
  background: #000;
}

.header__container {
  max-width: 1440px;
  width: 90%;
  margin: 0 auto;
  padding: 0 15px;
  height: 75px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  gap: 40px;
}

/* Logo Column */
.header__logo {
  display: flex;
  align-items: center;
}

.header__logo-link {
  text-decoration: none;
  color: #000;
}

.header__logo-text {
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}

.header__logo img {
  max-height: 40px;
  width: auto;
}

/* Navigation Column */
.header__nav {
  display: flex;
  justify-content: center;
  margin-right: 16px;
}

.header__menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 40px;
  align-items: center;
}

.header__menu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 32px;
  align-items: center;
}

.header__menu li {
  margin: 0;
}

.header__menu a {
  color: #000;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.header__menu a:active {
  font-weight: 700;
}

.header__menu-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.header__menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #d05d38;
  transition: width 0.3s ease;
}

.header__menu a:hover::after {
  width: 100%;
}

/* Header Buttons */
.header__buttons {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  align-items: center;
}
.header__button {
  padding: 8px 20px;
  border-radius: 12px;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 150%;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.header__button--primary {
  border: 1px solid rgba(255, 255, 255, 0);
  background: linear-gradient(0deg, #c53c29 0%, #c53c29 100%);
  color: #fff;
}
.header__button--secondary {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.05);
  color: #000;
}
.header__button-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.header__button--primary:hover {
  border: 1px solid rgba(255, 255, 255, 0);
  background: linear-gradient(0deg, #8a291b 0%, #8a291b 100%);
}
.header__button--secondary:hover {
  border: 1px solid rgba(255, 255, 255, 0);
  background: rgba(0, 0, 0, 0.2);
}

/* Mobile Menu */
.header__mobile-menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.header__mobile-menu-line {
  display: block;
  width: 24px;
  height: 2px;
  background: #000;
  margin: 5px 0;
  transition: transform 0.3s ease;
}

.mobile-menu {
  position: fixed;
  top: 75px;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 1002;
  overflow-y: auto;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}
.mobile-menu__inner {
  width: 100%;
  padding: 40px 20px 40px;
  box-sizing: border-box;
}
.mobile-menu__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.mobile-menu__list ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-menu__list a {
  color: #000;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 500;
}
.mobile-menu__buttons {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.mobile-menu__button {
  padding: 10px 24px;
  border-radius: 12px;
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 150%;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
}
.mobile-menu__button--primary {
  border: 1px solid rgba(255, 255, 255, 0);
  background: linear-gradient(0deg, #c53c29 0%, #c53c29 100%);
  color: #fff;
}
.mobile-menu__button--secondary {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.05);
  color: #000;
}

@media (max-width: 1024px) {
  .header__container {
    grid-template-columns: 1fr auto auto;
    gap: 16px;
  }
  .header__nav {
    display: none;
  }
  .header__buttons {
    display: none;
  }
  .header__mobile-menu-toggle {
    display: inline-block;
    justify-self: end;
  }
}

@media (min-width: 1025px) {
  .mobile-menu {
    display: none;
  }
}

/* Mobile menu backdrop */
.mobile-menu__backdrop {
  position: fixed;
  top: 75px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1001;
}
body.menu-open .mobile-menu__backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Footer */
.footer {
  background: #272a2c;
  color: #fff;
  padding: 80px 0;
}
.footer__container {
  max-width: 1280px;
  width: 90%;
  margin: 0 auto;
  text-align: center;
}
.footer__brand {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}
.footer__logo {
  max-height: 60px;
  width: auto;
}
.footer__logo-text {
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}
.footer__nav {
  margin-top: 32px;
}
.footer__menu {
  max-width: 480px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  gap: 24px;
}
.footer__menu a {
  color: #fff;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 500;
}
.footer__menu a:hover {
  color: #c53c29;
}
.footer__divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 80px 0 32px 0;
}
.footer__bottom {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}
.footer__copy {
  color: #fff;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  opacity: 0.8;
}
.footer__links {
  display: inline-flex;
  list-style: none;
  gap: 24px;
  margin: 0;
  padding: 0;
}
.footer__links a {
  color: #fff;
  text-decoration: none;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer {
    padding: 50px 0;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 16px;
  }
}
