/* =========================
   GLOBAL BASE (desktop)
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Nunito';
}
:root {
  --primary-color: #ffa200;
  --secondary-color: #008cff;
  --dark-color: #333;
  --container-header: 1700px;
  --container-normal: 1100px;
  --container-wide: 1400px;
  --container-narrow: 900px;
}

/* When the burger is open… */
body:has(#menu-toggle:checked) {
  overflow: hidden; /* stop page scrolling behind menu */
}

/* Hide all top-level elements except:
       1) the .header
       2) any element that CONTAINS #primary-menu (wherever it lives) */
body:has(#menu-toggle:checked) > :not(.header):not(:has(#primary-menu)) {
  display: none !important;
}

/* Optional: if your menu drawer isn't inside .header, keep it visible too */
body:has(#menu-toggle:checked) > #primary-menu {
  display: block !important;
}

/* Make sure the menu is actually visible and on top when open */
body:has(#menu-toggle:checked) #primary-menu {
  display: block !important;
  position: fixed; /* reliable drawer */
  top: 200px;
  left: 0;
  right: 0;
  max-height: 60vh;
  overflow: auto;
  background: #111;
  z-index: 10001; /* above backdrop, under header(9999) */
}

/* Optional nice touch: a backdrop under the header (but above the page) */
body:has(#menu-toggle:checked)::before {
  content: '';
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 998; /* just under .header (which you have at 9999) */
  pointer-events: none; /* clicks still go to your menu */
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.orange {
  color: var(--primary-color);
}

body {
  font-family: 'Nunito Sans', sans-serif;
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: #333;
}
ul,
li {
  list-style: none;
}
img {
  max-width: 100%;
}

.bold {
  font-weight: 700;
}

.uppercase {
  text-transform: uppercase;
}

.container {
  max-width: var(--container-normal);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-lg {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-sm {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 2rem;
}
.container-header {
  max-width: var(--container-header);
  margin: 0 auto;
  padding: 2rem 2rem;
}

.small-box {
  width: 25%;
  margin: 0 auto;
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.3);
}

.medium-box {
  width: 50%;
  margin: 0 auto;
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.3);
}

.header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #fff;
  transition: box-shadow 0.2s ease, backdrop-filter 0.2s ease, padding 0.2s ease;
  height: 200px; /* desktop header height */
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.header .nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header .main-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.nav-bar .quote {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header .main-menu li .current {
  border: 2px solid #000;
  border-radius: 10px;
  padding: 10px;
}
.header .main-menu li a {
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s ease-in-out;
}
.main-menu .main--logo {
  max-height: 10rem;
  display: block;
  height: auto;
}

/* Quote hover wipe (desktop + mobile) */
.header .nav-bar .quote {
  border: 2px solid #000;
  border-radius: 10px;
  padding: 10px;
  background: #333;
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
  position: relative;
  overflow: hidden;
  z-index: 0;
  isolation: isolate;
  white-space: nowrap;
}
.header .nav-bar .quote > * {
  position: relative;
  z-index: 1;
}
.header .nav-bar .quote a,
.header .nav-bar .quote i {
  color: inherit;
}
.header .nav-bar .quote::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #000;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
  z-index: 0;
}
.header .nav-bar .quote:hover::after {
  transform: translateY(0);
}
.header .nav-bar .quote:hover {
  color: #fff;
}

.header.is-scrolled {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  backdrop-filter: saturate(1.05) blur(2px);
}

/* Legacy JS burger not used */
.nav-toggle {
  display: none;
}

/* Checkbox burger (hidden on desktop) */
.nav-checkbox,
.menu-button-container,
.logo-mobile {
  display: none;
}
.menu-button,
.menu-button::before,
.menu-button::after {
  display: block;
  position: absolute;
  height: 4px;
  width: 30px;
  background: #0e2431;
  border-radius: 2px;
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1), opacity 0.25s;
}
.menu-button::before {
  content: '';
  margin-top: -8px;
}
.menu-button::after {
  content: '';
  margin-top: 8px;
}

/* Desktop-only hover */
@media (min-width: 1025px) {
  .header .main-menu a:hover {
    background: var(--primary-color);
    color: #fff;
    border-radius: 10px;
  }
}

/* =========================
            TABLETS & PHONES (≤1275px)
            ========================= */
@media (max-width: 1275px) {
  .header {
    height: auto;
  }
  .container-header {
    padding: 8px 14px;
  }

  /* Top bar: stable height for vertical centering */
  .header .nav-bar {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Show burger (left) */
  .nav-checkbox,
  .menu-button-container {
    display: inline-flex;
  }
  .menu-button-container {
    position: absolute;
    left: 16px;
    top: 50%;
    height: 26px;
    width: 32px;
    cursor: pointer;
    z-index: 6;
  }
  .nav-checkbox {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    opacity: 0;
    cursor: pointer;
    z-index: 7;
  }
  /* Burger → X */
  #menu-toggle:checked + .menu-button-container .menu-button {
    background: transparent;
  }
  #menu-toggle:checked + .menu-button-container .menu-button::before {
    margin-top: 0;
    transform: rotate(405deg);
  }
  #menu-toggle:checked + .menu-button-container .menu-button::after {
    margin-top: 0;
    transform: rotate(-405deg);
  }

  /* Mobile logo centered (outside UL) */
  .logo-mobile {
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
  }
  .logo-mobile img {
    height: 150px;
    width: auto;
    display: block;
  }

  /* Hide desktop UL-logo on small screens */
  #primary-menu .logo-item {
    display: none !important;
  }

  /* CTA right & vertically centered */
  .nav-bar .quote {
    position: absolute;
    right: -35%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    font-size: 1.05rem;
    line-height: 1;
    z-index: 6;
    white-space: nowrap;
  }

  /* Drawer: closed = slim bar; open = expands */
  #primary-menu.main-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    background: transparent;
    z-index: 2;
    max-height: 50px;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  /* Rows closed: invisible & no borders */
  #primary-menu.main-menu li {
    height: 0;
    padding: 0;
    margin: 0;
    border: 0 !important;
    overflow: hidden;
    background: transparent;
    color: #333;
    transition: height 0.35s ease, padding 0.25s ease, background 0.2s ease;
  }
  #primary-menu.main-menu li a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 18px;
    color: inherit;
    border-radius: 0;
    background-color: #fff;
  }

  /* Open container */
  #menu-toggle:checked ~ #primary-menu.main-menu {
    max-height: 50vh;
    margin-top: 5rem;
  }

  /* Open rows (uniform height; change per row if you want) */
  #menu-toggle:checked ~ #primary-menu.main-menu li {
    height: 4rem;
    background: #222; /* dark rows only when open */
  }

  /* Only add separators between items (not above the first) */
  #menu-toggle:checked ~ #primary-menu.main-menu li + li {
    border-top: 1px solid #444 !important;
  }
  #menu-toggle:checked ~ #primary-menu.main-menu li:last-child {
    border-bottom: 0 !important;
  }

  /* Remove desktop "current" pill in drawer */
  #primary-menu.main-menu li .current {
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    /* background: transparent !important; */
  }

  @media (max-width: 1024px) {
    #primary-menu.main-menu li a,
    #primary-menu.main-menu li a:hover,
    #primary-menu.main-menu li a:focus,
    #primary-menu.main-menu li a:active {
      /* background: transparent !important; */
      color: inherit !important;
      border-radius: 0 !important;
    }
    /* (optional) tap feedback */
    #primary-menu.main-menu li:active {
      background: #2a2a2a;
    }
  }

  /* =========================
            TINY PHONES (≤380px)
            ========================= */
  @media (max-width: 750px) {
    .logo-mobile img {
      height: 150px;
    }
    #primary-menu.main-menu li a {
      font-size: 1rem;
    }
    .nav-bar .quote {
      /* keep it right-aligned & vertically centered */
      transform: scale(0.5); /* 85% size */
      font-size: 0.9rem; /* optional: text size */
      padding: 8px 10px; /* optional: tighter chip */
    }
  }
}

/* >> Section Start: Hero << */

.section-hero-border {
  margin: 0 auto;
  padding: 0.3rem;
  width: 100vm;
  height: 60vh;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.section-hero-border::after,
.section-hero-border::before {
  content: '';
  position: absolute;
  height: 100%;
  width: 100%;
  background-image: conic-gradient(
    from var(--angle),
    transparent 70%,
    var(--primary-color)
  );
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  z-index: -1;
  padding: 3px;
  border-radius: 10px;
  animation: 3s spin linear infinite;
}
.section-hero-border::before {
  filter: blur(1.5rem);
  opacity: 0.5;
}
@keyframes spin {
  from {
    --angle: 0deg;
  }
  to {
    --angle: 360deg;
  }
}

.section-hero {
  height: 100%;
  width: 100%;
  background-image: url(/img/TestBackground.png);
  background-repeat: no-repeat;
  position: relative;
  border: 4px solid black;
  z-index: 1;
  background-size: cover;
  overflow: hidden;
  transform: scale(0.99);
  left: -7px;
}
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  width: 100%;
  color: white;
  position: absolute;
  z-index: 2;
  inset: 0;
}

.section-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 0; /* between bg and text */
}

.hero .btn {
  padding: 0.5rem;
  border-radius: 10px;
  background-color: var(--secondary-color);
  color: white;
  margin-top: 10px;
  padding: 10px;
  display: inline-block;
  border: 2px solid black;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: bold;
}

.hero .btn:hover {
  transition: 0.3s ease-in-out;
  background-color: var(--primary-color);
  cursor: pointer;
}

/* =========================
            TABLETS & PHONES (≤1275px)
            ========================= */
@media (max-width: 1275px) {
  .section-hero-border {
    margin: 0 auto;
    padding: 0.3rem;
    width: 100%;
    height: 50vh;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
  }

  .section-hero {
    height: 100%;
    width: 100%;
    background-image: url(/img/TestBackground.png);
    background-repeat: no-repeat;
    position: relative;
    border: 5px solid black;
    z-index: 1;
    background-size: cover;
    background-position: 50% 30%;
  }
}

/* =========================
                  TINY PHONES (≤380px)
                  ========================= */
@media (max-width: 750px) {
  .section-hero-border {
    display: none;
  }

  .section-hero {
    display: none;
  }
}

/* Contact FORM */

form {
  max-width: 800px;
  margin: 50px auto;
}

.feedback-input {
  color: #333;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 18px;
  border-radius: 5px;
  line-height: 22px;
  background-color: transparent;
  border: 2px solid var(--secondary-color);
  transition: all 0.3s;
  padding: 13px;
  margin-bottom: 15px;
  width: 100%;
  box-sizing: border-box;
  outline: 0;
}

.feedback-input:focus {
  border: 2px solid #cc4949;
}

textarea {
  height: 150px;
  line-height: 150%;
  resize: vertical;
}

[type='submit'] {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  width: 100%;
  background: var(--secondary-color);
  border-radius: 5px;
  border: 0;
  cursor: pointer;
  color: white;
  font-size: 24px;
  padding-top: 10px;
  padding-bottom: 10px;
  transition: all 0.3s;
  margin-top: -4px;
  font-weight: 700;
}
[type='submit']:hover {
  background: var(--primary-color);
}

@media (max-width: 1024px) {
  form {
    max-width: 680px; /* slightly narrower for comfy reading */
    margin: 36px auto; /* smaller top/bottom margin */
    padding: 0 16px; /* side breathing room */
  }

  .feedback-input {
    font-size: 17px;
    padding: 14px 16px;
    border-radius: 8px;
  }

  textarea.feedback-input {
    height: 160px; /* a touch taller for thumbs */
    line-height: 1.5;
  }

  [type='submit'] {
    font-size: 20px;
    padding: 12px 16px;
    border-radius: 8px;
  }
}

/* ------------------------------
     Large phones / Small tablets (≤ 750px)
  ------------------------------ */
@media (max-width: 750px) {
  form {
    max-width: 540px;
    margin: 28px auto;
    padding: 0 14px;
  }

  .feedback-input {
    font-size: 16px;
    padding: 14px;
    border-width: 2px; /* keep contrast */
  }

  textarea.feedback-input {
    height: 150px;
  }

  [type='submit'] {
    font-size: 18px;
    padding: 12px 14px;
  }
}

/* ------------------------------
     Small phones (≤ 480px)
  ------------------------------ */
@media (max-width: 480px) {
  form {
    max-width: 100%;
    margin: 22px auto;
    padding: 0 12px;
  }

  .feedback-input {
    font-size: 15.5px;
    padding: 12px 12px;
    border-radius: 10px; /* softer on tiny screens */
  }

  textarea.feedback-input {
    height: 140px;
  }

  [type='submit'] {
    font-size: 17px;
    padding: 12px;
    border-radius: 10px;
  }
}

/* Footer */

.footer {
  background: var(--dark-color);
  color: #fff;
  border-top: 2px solid black;
  padding: 0.5rem 2rem;
  margin-top: 5rem;
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer a {
  color: #fff;
}

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

.footer ul {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

/* =========================
       Tablets (≤1024px)
       ========================= */
@media (max-width: 1024px) {
  .footer {
    padding: 1rem 1.25rem;
    margin-top: 3rem;
  }

  .footer-flex {
    justify-content: center; /* center the row */
    gap: 1rem 2rem; /* breathing room between blocks */
    flex-wrap: wrap; /* allow wrap if there are 3+ blocks */
    text-align: center; /* center any text blocks */
  }

  .footer ul {
    gap: 0.75rem;
    margin: 1rem 0;
    flex-wrap: wrap; /* wrap links/icons */
  }
}

/* =========================
         Phones (≤600px)
         ========================= */
@media (max-width: 600px) {
  .footer {
    padding: 0.75rem 1rem;
  }

  .footer-flex {
    flex-direction: column; /* stack vertically */
    align-items: center;
    gap: 0.75rem;
  }

  .footer ul {
    gap: 0.5rem;
    margin: 0.75rem 0;
    padding: 0;
  }

  .footer a {
    font-size: 0.95rem; /* slightly smaller text */
  }

  /* Better tap targets for link lists/icons */
  .footer ul li a {
    display: inline-flex;
    align-items: center;
    padding: 6px 8px;
  }
}

/* 5) Correct the unit typo */
.section-hero-border {
  width: 100vw;
}

/* Optional belt-and-suspenders: prevent accidental x-scroll */
html,
body {
  overflow-x: hidden;
}
