/* ===== Root ===== */
:root {
  --bg: #f7f3ee;
  --ink: #23262d;
  --shadow: rgb(50, 52, 59);
  --muted: rgb(155, 155, 155);
  --dark: rgb(48, 55, 62);
  --accent: #daa14c;
  --orange: #ef6434;
  --line: rgba(35, 38, 45, 0.14);
  --max: 1290px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--orange);
  color: var(--bg);
}

::-moz-selection {
  background: var(--orange);
  color: var(--bg);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bg);
  font-family:
    "Plus Jakarta Sans",
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

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

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

.section-heading {
  margin-bottom: 28px;
}

.text-link {
  margin-top: 18px;
  background: var(--ink);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.22em;
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 34px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    background 0.5s ease,
    color 0.2s ease;
}

.button:hover,
.text-link:hover {
  background: var(--orange);
}

.button.light {
  background: #fff;
  color: #111;
}

.button.light:hover {
  background: var(--orange);
  color: #fff;
}

.button-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
}

.button-arrow svg {
  width: 16px;
  height: 16px;
  display: block;
}

.section {
  width: min(var(--max), calc(100% - 60px));
  margin: 0 auto;
  padding: 80px 0;
}

/* ===== Header ===== */
.site-header {
  position: relative;
  overflow: visible;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  padding: 0 40px;
  background: var(--ink);
  color: #fff;
}

.header-logo {
  width: 15%;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.header-logo a {
  display: flex;
  align-items: center;
}

.header-logo img {
  width: 150px;
  height: auto;
  display: block;
}

.main-navigation {
  width: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-navigation ul {
  width: 100%;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  margin: 0;
}

.main-navigation li {
  margin: 0;
  padding: 0;
}

.main-navigation a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.5s ease;
  padding: 3rem 1rem;
}

.main-navigation .menu-title {
  position: relative;
}

.main-navigation .menu-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 2px;
  background-color: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
}

.main-navigation a.active .menu-title::after {
  transform: scaleX(1);
  transform-origin: left;
}

.main-navigation a:hover .menu-title::after {
  transform: scaleX(1);
  transform-origin: left;
}

.main-navigation a:hover {
  color: var(--orange);
}

.header-actions {
  width: 15%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.search-button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
}

.search-button:hover {
  color: var(--orange);
}

.search-icon {
  width: 25px;
  height: 25px;
  display: block;
}

.mobile-menu-button {
  position: relative;
  display: none;
  width: 40px;
  height: 40px;
  padding: 7px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.mobile-menu-button svg {
  position: absolute;
  top: 0;
  right: 0;
  color: var(--bg);
}

.search-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  background: #ffffff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-100%);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.search-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.search-panel-inner {
  position: relative;
  width: 75%;
  max-width: 900px;
}

.search-form {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition:
    border-color 0.35s ease,
    background-color 0.35s ease;
}

.search-form:hover,
.search-form:focus-within {
  border-color: var(--ink);
}

.search-input {
  flex: 1;
  width: 100%;
  height: 100%;
  padding: 0 20px;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
}

.search-input::placeholder {
  color: #888888;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.search-input:focus::placeholder {
  opacity: 0;
}

.search-submit {
  position: relative;
  flex: 0 0 58px;
  width: 58px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.25s ease;
}

.search-submit:hover {
  color: var(--orange);
}

.search-submit-icon {
  width: 22px;
  height: 22px;
  display: block;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.search-loading {
  position: absolute;
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border: 1.5px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.search-submit.is-loading {
  pointer-events: none;
  cursor: default;
}

.search-submit.is-loading .search-submit-icon {
  opacity: 0;
  transform: scale(0.8);
}

.search-submit.is-loading .search-loading {
  opacity: 1;
  transform: scale(1);
  animation: search-loading-spin 0.7s linear infinite;
}

@keyframes search-loading-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.search-close {
  position: absolute;
  top: -25px;
  right: 0;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}

.search-close:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.search-close::before,
.search-close::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 1px;
  background: currentColor;
}

.search-close::before {
  transform: rotate(45deg);
}

.search-close::after {
  transform: rotate(-45deg);
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 15;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.search-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: min(85%, 420px);
  height: 100vh;
  z-index: 25;
  background: #fff;
  transform: translateX(-100%);
  visibility: hidden;
  pointer-events: none;

  transition:
    transform 0.5s cubic-bezier(0.77, 0, 0.175, 1),
    visibility 0s linear 0.5s;
}

.mobile-menu-panel.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;

  transition:
    transform 0.5s cubic-bezier(0.77, 0, 0.175, 1),
    visibility 0s linear 0s;
}

.mobile-menu-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.mobile-menu-tab {
  position: relative;
  flex: 1;
  padding: 16px 10px;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
}

.mobile-menu-tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--orange);
}

.mobile-menu-tab-content {
  display: none;
}

.mobile-menu-tab-content.is-active {
  display: block;
}

.mobile-navigation {
  padding: 80px 40px 40px;
}

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

.mobile-navigation .main li:not(:last-child) {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--muted);
}

.mobile-navigation a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-navigation .main a {
  padding: 20px 0;
}

.mobile-navigation a:hover {
  color: var(--orange);
}

.mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background-color: transparent;
  border: none;
}

.mobile-close:hover {
  cursor: pointer;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 24;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}

.mobile-menu-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 992px) {
  .site-header {
    padding: 1rem 24px;
    display: block;
  }

  .header-logo {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-logo img {
    width: 100%;
    max-width: 450px;
  }

  .main-navigation {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .mobile-menu-button {
    display: block;
    width: 100%;
  }
}

@media (min-width: 993px) {
  .mobile-menu-panel,
  .mobile-menu-overlay {
    display: none;
  }

  .main-navigation {
    display: flex;
  }

  .header-actions {
    display: flex;
  }

  .mobile-menu-button {
    display: none;
  }
}

/* ===== Scroll To Top ===== */
.scroll-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  outline: none;
  border-radius: 50%;
  background-color: #000;
  color: var(--bg);
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    background-color 0.3s ease,
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease;
}

.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-3px);
  background-color: var(--orange);
}

.scroll-to-top svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  .scroll-to-top {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }
}
/* ===== Cookie ===== */
.cookie-consent-button {
  position: fixed;
  bottom: -32px;
  left: 40px;
  border: none;
  border-radius: 12px 12px 0 0;
  background: var(--bg);
  color: #000;
  padding: 15px;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.5s ease;
  z-index: 100;
}

.cookie-consent-button:hover {
  cursor: pointer;
  bottom: 0;
}

.cookie-popup {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 10000;
  width: 520px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 20px;
  background: #fff;
  color: #000;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease;
}

.cookie-popup.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-popup-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  color: #000;
  cursor: pointer;
}

.cookie-popup-content h4 {
  text-align: center;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 1rem 0;
  color: var(--dark);
}

.cookie-popup-content p {
  margin: 0;
  font-size: 12px;
  color: var(--dark);
}

.cookie-popup-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 28px;
}

.cookie-popup-buttons button {
  height: 45px;
  padding: 10px;
  border: 1px solid var(--orange);
  background: transparent;
  border-radius: 6px;
  color: var(--dark);
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.cookie-popup-buttons button:first-child {
  color: #fff;
  background: var(--orange);
}

.cookie-popup-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
  gap: 12px;
}

.cookie-popup-links a {
  color: var(--orange);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
  letter-spacing: 1px;
}

.cookie-preferences {
  display: none;
  margin-top: 24px;
}

.cookie-preferences.is-visible {
  display: block;
}

.cookie-preference-item {
  padding: 6px;
  background-color: var(--bg);
  margin: 8px 0;
}

.cookie-preference-header {
  display: grid;
  grid-template-columns: 1fr auto 32px;
  align-items: center;
  gap: 12px;
}

.cookie-preference-header > span {
  font-size: 14px;
  font-weight: 500;
}

.cookie-preference-toggle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  color: #000;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.cookie-preference-toggle.is-open {
  transform: rotate(180deg);
}

.cookie-preference-description {
  display: none;
  margin: 0 44px 16px 0;
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.7;
}

.cookie-preference-description.is-open {
  display: block;
}

.cookie-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.cookie-label {
  font-size: 12px;
  color: var(--orange);
}

.cookie-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-switch-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--orange);
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.cookie-switch-slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s ease;
}

.cookie-switch input:checked + .cookie-switch-slider {
  background: blue;
}

.cookie-switch input:checked + .cookie-switch-slider::before {
  transform: translateX(18px);
}

.cookie-switch input:disabled + .cookie-switch-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .cookie-popup {
    width: calc(100% - 24px);
    padding: 32px 24px;
  }

  .cookie-popup-buttons {
    flex-direction: column;
  }
}

/* ===== Footer ===== */
.site-footer {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: var(--bg);
  background:
    linear-gradient(0deg, rgba(35, 38, 45, 0.9) 55%, rgba(48, 55, 62, 0) 100%),
    url("../assets/footer-bg.jpg") center center / cover no-repeat;
}

.footer-cta {
  width: min(1290px, calc(100% - 60px));
  margin: 0 auto 3rem;
  padding-top: 100px;
  padding-bottom: 90px;
  text-align: center;
}

.footer-eyebrow {
  margin: 0 0 16px;
  color: var(--orange);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 3.4px;
}

.footer-cta h2 {
  width: min(690px, 100%);
  margin: 0 auto 48px;
  color: #ffffff;
  font-size: 48px;
  font-weight: 700;
  line-height: 52px;
  letter-spacing: -0.7px;
}

.footer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2rem;
  gap: 6px;
  min-height: 50px;
  padding: 13px 40px;
  background: var(--orange);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.footer-divider {
  width: min(1290px, calc(100% - 60px));
  height: 1px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
}

.footer-main {
  display: grid;
  grid-template-columns: 25% 15% 15% 15% 20%;
  width: min(1290px, calc(100% - 60px));
  margin: 83px auto 0;
  padding-bottom: 110px;
  margin-top: 3rem;
}

.footer-column {
  position: relative;
}

.footer-logo-column {
  padding-right: 15px;
}

.footer-logo-column img {
  display: block;
  width: auto;
  max-width: 220px;
  height: auto;
  margin-bottom: 25px;
}

.footer-column h3 {
  margin: 0 0 28px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  line-height: 24px;
}

.footer-column nav {
  display: flex;
  flex-direction: column;
}

.footer-column nav a {
  display: block;
  padding: 0;
  color: #9b9b9b;
  font-size: 13px;
  font-weight: 300;
  line-height: 30px;
  transition: color 0.3s ease;
}

.footer-column nav a:hover {
  color: var(--orange);
}

.footer-social-column {
  padding-top: 5px;
  padding-left: 15px;
  align-self: start;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: #b0b6bc;
  transition: color 0.3s ease;
}

.footer-social svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: currentColor;
  transition: fill 0.3s ease;
}

.footer-social a:hover {
  color: var(--orange);
}

.footer-bottom-divider {
  width: min(1290px, calc(100% - 60px));
  height: 1px;
  margin: 0 auto;
  background: rgba(196, 196, 196, 0.1);
}

.footer-copyright {
  width: min(1290px, calc(100% - 60px));
  margin: 0 auto;
  padding: 25px 30px 30px;
  text-align: center;
}

.footer-copyright p {
  margin: 0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 100;
  line-height: 22px;
}

/* ===== Footer Responsive ===== */

@media (max-width: 992px) {
  .footer-cta {
    width: min(100% - 48px, 900px);
    padding-top: 80px;
    padding-bottom: 70px;
  }

  .footer-eyebrow {
    font-size: 13px;
    letter-spacing: 2.8px;
  }

  .footer-cta h2 {
    font-size: 40px;
    line-height: 46px;
    margin-bottom: 40px;
  }

  .footer-divider,
  .footer-bottom-divider,
  .footer-main,
  .footer-copyright {
    width: min(100% - 48px, 900px);
  }

  .footer-main {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 50px 30px;
    margin-top: 65px;
    padding-bottom: 80px;
  }

  .footer-logo-column {
    padding-right: 0;
  }

  .footer-logo-column img {
    max-width: 300px;
  }

  .footer-social-column {
    padding-left: 0;
  }

  .footer-copyright {
    padding: 22px 15px 28px;
  }
}

@media (max-width: 768px) {
  .site-footer {
    background:
      linear-gradient(
        0deg,
        rgba(35, 38, 45, 0.94) 55%,
        rgba(48, 55, 62, 0.15) 100%
      ),
      url("../assets/footer-bg.jpg") center center / cover no-repeat;
  }

  .footer-cta {
    width: calc(100% - 40px);
    padding-top: 65px;
    padding-bottom: 60px;
  }

  .footer-eyebrow {
    margin-bottom: 12px;
    font-size: 12px;
    letter-spacing: 2.4px;
  }

  .footer-cta h2 {
    width: 100%;
    margin-bottom: 32px;
    font-size: 32px;
    line-height: 38px;
    letter-spacing: -0.4px;
  }

  .footer-button {
    min-height: 48px;
    padding: 12px 30px;
    font-size: 11px;
    letter-spacing: 1.2px;
  }

  .footer-divider,
  .footer-bottom-divider,
  .footer-main,
  .footer-copyright {
    width: calc(100% - 40px);
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 45px 30px;
    margin-top: 50px;
    padding-bottom: 60px;
  }

  .footer-logo-column {
    grid-column: 1 / -1;
  }

  .footer-logo-column a {
    display: flex;
    justify-content: center;
  }

  .footer-logo-column img {
    max-width: 500px;
    margin-bottom: 20px;
  }

  .footer-column h3 {
    margin-bottom: 20px;
    font-size: 14px;
  }

  .footer-column nav a {
    font-size: 14px;
    line-height: 28px;
  }

  .footer-social-column {
    grid-column: 1 / -1;
    padding-top: 0;
    padding-left: 0;
  }

  .footer-social {
    gap: 20px;
    justify-content: center;
  }

  .footer-copyright {
    padding: 20px 10px 25px;
  }

  .footer-copyright p {
    font-size: 11px;
    line-height: 20px;
  }
}

@media (max-width: 768px) {
  .footer-logo-column img {
    max-width: 300px;
  }
}
