:root {
  --bgmain: #ffffff;
  --bgalt: #e6e6e6;
  --bgoff: #fafafd;
  --brand: #067ccc;
  --brand2: #333333;
  --brand3: #e8ebef;
  --radius: 9999px;
  --container: 1600px;
  --gutter: 60px;
  --sectionpad: 100px;
}

html, body {
  height: auto;
  overscroll-behavior: none;
  overflow-x: hidden; 
}

body {
  margin: 0;
  box-sizing: border-box;
  font-family: "Exo 2", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: var(--brand2);
  background: var(--bgmain);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.has-scroll-smooth body { overflow: hidden; }
html:not(.has-scroll-smooth) body { overflow: auto; }
html.has-scroll-smooth [data-scroll-container],
html:not(.has-scroll-smooth) [data-scroll-container]{
  min-height: 100%;
  position: relative;
  will-change: transform;
}

.container{
  max-width: var(--container);
  padding-inline: var(--gutter);
  margin-inline: auto;
  box-sizing: border-box;
}

button {
  font: inherit;
}

.btn {
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: auto;
  height: 50px;
  font-size: 16px;
  padding: 0 24px;
  border-radius: var(--radius);
  font-weight: 500;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
  will-change: transform;
}

::-webkit-scrollbar {
  display: none;
}

html {
  -ms-overflow-style: none;
  scrollbar-width: none;
}


/* ===== Header ===== */
.header{
  padding-top: 20px;
  padding-bottom: 20px;
  position: fixed;
  inset: 0 0 auto 0;
  width: 100%;
  z-index: 1000;
  height: 40px;
  background: transparent;
  transition:
    background-color .3s ease,
    backdrop-filter .3s ease,
    padding-top .3s ease,
    linear-gradient .3s ease,
    box-shadow .3s ease,
    padding-bottom .3s ease;
}

.header.scrolled {
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: rgba(255,255,255,0.3);
  backdrop-filter: saturate(120%) blur(6px);
  position: fixed;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header.scrolled::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.2),
    rgba(0,0,0,0.2)
  );
  pointer-events: none;
}

.header-row{
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.nav-left, .nav-right{
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-right{
  justify-content: flex-end;
}

.nav a{
  font-size: 17px;
  font-weight: 600;
  color: var(--brand2);
  text-decoration: none;
  transition: color .3s ease, filter .3s ease;
}

.nav a:hover{ 
  color: var(--brand);
}

.nav a.active {
  color: var(--brand);
}

.logo{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 
    filter .3s ease,
    drop-shadow .3s ease;
}

.logo-img{
  height: 36px;
  width: auto;
  display: block;
}

.logo:hover .logo-img{
  filter: drop-shadow(0 0 1px var(--brand));
}


/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background-color: var(--brand2);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -7px);
}

.header.scrolled .hamburger span { background-color: var(--brand2); }

/* Dropdown */
.nav .has-dropdown {
  position: relative;
}

.nav .has-dropdown > .dropdown {
  position: absolute;
  top: 45%;
  left: 0;
  display: none;
  flex-direction: column;
  min-width: 380px;
  padding: 10px 10px;
  border-radius: 6px;
  background: var(--bgmain);
  box-shadow: 0 6px 10px rgba(0,0,0,0.16);
  z-index: 1000;
  border: 1px solid color-mix(in srgb, var(--brand2) 12%, #fff);
}

.nav .has-dropdown > .dropdown li { list-style: none; }

.nav .has-dropdown > .dropdown li a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  font-size: 16px;
  color: var(--brand2);
  transition: color .3s ease, background-color .2s ease;
}

.nav .has-dropdown > .dropdown li a:hover {
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, #fff);
}

.nav .has-dropdown > .dropdown li a.active {
  color: var(--brand);
}

@media (hover: hover) and (pointer: fine) {
  .nav .has-dropdown:hover > .dropdown { display: flex; }
}


/* Terms & Conditions */
.terms-and-conditions {
  font-family: inherit;
  line-height: 1.6;
  color: var(--brand2);
  padding: 4rem 1rem;
  padding-top: var(--sectionpad);
  padding-bottom: 6rem;
  background: var(--brand3);
}

.terms-and-conditions .container {
  max-width: 1200px;
  margin: 0 auto;
}

.terms-and-conditions h1 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 700;
  color: var(--brand2);
}

.terms-and-conditions h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--brand2);
  border-left: 4px solid var(--brand);
  padding-left: 0.75rem;
}

.terms-and-conditions p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.terms-and-conditions strong {
  font-weight: 600;
  color: var(--brand2);
}

.terms-and-conditions p:last-child {
  margin-bottom: 0;
}

.terms-and-conditions a {
  color: var(--brand);
  text-decoration: underline;
}
.terms-and-conditions a:hover {
  text-decoration: none;
  color: #82c7ff;
}


/* Privacy Policy */
.privacy-policy {
  font-family: inherit;
  line-height: 1.6;
  color: var(--brand2);
  padding: 4rem 1rem;
  padding-top: var(--sectionpad);
  padding-bottom: 6rem;
  background: var(--brand3);
}

.privacy-policy .container {
  max-width: 1200px;
  margin: 0 auto;
}

.privacy-policy h1 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: var(--brand2);
}

.privacy-policy h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--brand2);
  border-left: 4px solid var(--brand);
  padding-left: 0.75rem;
}

.privacy-policy p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.privacy-policy strong {
  font-weight: 600;
  color: var(--brand2);
}

.privacy-policy a {
  color: var(--brand);
  text-decoration: underline;
}

.privacy-policy a:hover {
  text-decoration: none;
  color: #82c7ff;
}


/* === Footer === */
.site-footer {
  position: relative;
  background: var(--bgmain);
  color: var(--brand2);
  padding: 60px 30px 3px;
  font-size: 14px;
  z-index: 0;
}

.footer-container {
  position: relative; 
  max-width: 1480px;
  margin: 0 auto;
  z-index: 1; 
}

.footer-bg { display: none; }

.site-footer::before { display: none; }

.site-footer::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.2),
    rgba(0,0,0,0.2)
  );
  z-index: 2;
  pointer-events: none;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  border-bottom: 1px solid var(--brand2);
  padding-bottom: 40px;
}

.footer-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 60px;
  opacity: 1;
  filter: none;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  flex: 1;
  justify-content: flex-end;
}

.footer-column h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--brand2);
  text-transform: uppercase;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 10px;
}

.footer-column a {
  color: var(--brand2);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--brand);
}

.footer-column .socials a {
  margin-right: 12px;
  font-size: 20px;
  color: var(--brand2);
}

.footer-column .socials a:hover {
  color: var(--brand);
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: var(--brand2);
}


/* === Back to top === */
.back-to-top {
  position: fixed;
  bottom: max(40px, env(safe-area-inset-bottom));
  right: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.25);
  backdrop-filter: saturate(120%) blur(6px);
  -webkit-backdrop-filter: saturate(120%) blur(6px);

  color: var(--brand2);
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.2s ease;
  z-index: 10000;

  box-shadow: 
    0 0 0 1px rgba(189, 189, 189, 0.1),
    0 4px 8px rgba(0,0,0,0.15);
}

.back-to-top:hover {
  transform: translateY(-2px);
  color: var(--brand);
}

.back-to-top:active {
  transform: translateY(1px);
}

/* ===== Animations ===== */
@keyframes slideInUp{
  from{ opacity:0; transform: translateY(80px); }
  to{   opacity:1; transform: translateY(0); }
}


/* ==== Mobile ==== */
@media (max-width: 1024px) {
  :root {
    --gutter: 30px;
    --sectionpad: 100px;
    --container: 360px;
  }

  /* Header / Nav */
  .header { --barH: 40px; height: var(--barH); }
  .header-row {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    height: 100%;
    position: relative;
  }

  .mobile-menu {
    position: fixed;
    top: calc(var(--barH) + 20px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 14px var(--gutter) 18px;
    list-style: none;
    background-color: rgba(255,255,255,0.98);
    backdrop-filter: saturate(120%) blur(10px);
    -webkit-backdrop-filter: saturate(120%) blur(10px);
    box-shadow: 0 10px 24px rgba(0,0,0,.15);
    border-top: 1px solid color-mix(in srgb, var(--brand2) 10%, #fff);
    z-index: 2000;
  }
  .mobile-menu.is-open { display: flex; }

  .mobile-menu[hidden] { display: none !important; }

  .mobile-menu a,
  .mobile-menu .mobile-parent {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    padding: 10px 0;
    font: inherit;
    font-size: 18px;
    font-weight: 600;
    color: var(--brand2);
    text-decoration: none;
  }
  .mobile-menu a:hover { color: var(--brand); }

  .mobile-menu a.active { color: var(--brand); }

  .mobile-menu .mobile-sub {
    list-style: none;
    margin: 6px 0 0;
    padding: 0 0 0 16px;
    display: block;
  }
  .mobile-menu .mobile-sub a {
    font-size: 16px;
    font-weight: 500;
    padding: 6px 0;
    color: var(--brand2);
  }

  .mobile-menu .mobile-sub a.active { 
    color: var(--brand);
  }

  .mobile-menu .mobile-sub a:hover {
    color: var(--brand);
  }
  
  .nav-left { display: none !important; }
  .nav-right {
    display: flex;
    align-items: center;
    gap: 0;
  }
  .nav-right > a { display: none !important; }
  
  .logo {
    margin-left: 0;
    justify-content: flex-start;
  }
  .logo-img { height: 34px; }
  
  .hamburger {
    display: inline-flex;
    margin-left: auto;
    z-index: 2100;
  }
  .header.scrolled .hamburger span { background-color: var(--brand2); }
  
  .mobile-menu {
    position: fixed;
    top: calc(var(--barH) + 20px);
    left: 0;
    right: 0;
  }

  .nav-right .mobile-menu a { display: block !important; }


  /* Terms & Conditions */
  .terms-and-conditions h1 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  /* Privacy Policy */
  .privacy-policy h1 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }


  /* Footer */
  .footer-logo img {
    width: auto;
    height: 50px;
  }

  .footer-column h4 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .footer-column a {
    font-size: 18px;
  }

  .footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
  }

  .footer-columns {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
  }

  .footer-column {
    width: 100%;
  }

  .footer-column ul {
    padding: 0;
  }

  .footer-column li {
    list-style: none;
    margin: 10px 0;
  }

  .footer-bottom {
    font-size: 14px;
  }
  
  .footer-column .socials {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 50px;
  }
  
  .footer-column .socials a {
    transform: scale(1.6);
    transition: transform 0.3s;
  }

  /* Back to top */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}


/* ==== Landscape mobile ==== */
@media (orientation: landscape) and (max-width: 1366px) and (max-height: 1024px) {

  :root {
    --gutter: 40px;
    --sectionpad: 100px;
    --container: 1200px;
  }


  /* Footer */
  .footer-logo img {
    width: auto;
    height: 50px;
  }

  .footer-column h4 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .footer-column a {
    font-size: 18px;
  }

  .footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
  }

  .footer-columns {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
  }

  .footer-column {
    width: 100%;
  }

  .footer-column ul {
    padding: 0;
  }

  .footer-column li {
    list-style: none;
    margin: 10px 0;
  }

  .footer-bottom {
    font-size: 14px;
  }
  
  .footer-column .socials {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 50px;
  }
  
  .footer-column .socials a {
    transform: scale(1.6);
    transition: transform 0.3s;
  }

  /* Back to top */
  .back-to-top {
    bottom: 20px;
    right: 20px;
  }
}


/* ==== Portrait tablet ==== */
@media (orientation: portrait) and (max-width: 1024px) and (min-width: 768px) and (max-height: 1368px) {
    :root {
    --gutter: 30px;
    --sectionpad: 100px;
    --container: 760px;
  }


  /* Footer */
  .footer-logo img {
    width: auto;
    height: 50px;
  }

  .footer-column h4 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .footer-column a {
    font-size: 18px;
  }

  .footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
  }

  .footer-columns {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
  }

  .footer-column {
    width: 100%;
  }

  .footer-column ul {
    padding: 0;
  }

  .footer-column li {
    list-style: none;
    margin: 10px 0;
  }

  .footer-bottom {
    font-size: 14px;
  }
  
  .footer-column .socials {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 50px;
  }
  
  .footer-column .socials a {
    transform: scale(1.8);
    transition: transform 0.3s;
  }

  /* Back to top */
  .back-to-top {
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    font-size: 22px;
  }
}
