:root {
  --red: #c2272db3; /* top bar + Enquire button (same soft red as desktop) */
  --red-dark: #cf3b3a;
  --red-solid: #c2272d; /* for text and underlines */
  --navy: #1b1f4b;
  --text: #222;
  --pad-top: 150px; /* side padding of the top bar */
  --pad-nav: 170px; /* side padding of the main navbar */

  /* icon sizes (changed per screen size below) */
  --social-size: 32px;
  --social-icon: 13px;
  --topbar-icon: 14px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Roboto Slab", Georgia, serif;
  color: var(--text);
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
body.no-scroll {
  overflow: hidden;
}

/* accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus {
  left: 10px;
  top: 10px;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- TOP BAR ---------- */
.topbar {
  background: var(--red);
  color: #fff;
  padding: 5px var(--pad-top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 16px;
  font-family: "Roboto Slab", Georgia, serif;
}
.topbar-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-phones,
.topbar-email {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  white-space: nowrap;
}
.topbar-contact i {
  font-size: var(--topbar-icon);
  width: calc(var(--topbar-icon) + 2px);
  text-align: center;
  flex-shrink: 0;
}
.topbar-contact .divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.6);
  display: inline-block;
}
.topbar-contact a:hover {
  text-decoration: underline;
}

.topbar-social {
  display: flex;
  align-items: center;
  gap: 10px;
}
.social-icon {
  width: var(--social-size);
  height: var(--social-size);
  min-width: var(--social-size);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: var(--social-icon);
  transition:
    background 0.25s,
    color 0.25s,
    transform 0.2s;
}
.social-icon i {
  line-height: 1;
}
.social-icon:hover {
  background: #fff;
  color: var(--red-solid);
  transform: translateY(-2px);
}

/* ---------- MAIN NAV ---------- */
.navbar {
  background: #fff;
  padding: 20px var(--pad-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 100;
  font-family: "Roboto Slab", Georgia, serif;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-icon {
  height: 80px;
  width: auto;
  display: block;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

/* normal menu links only (NOT the Enquire button / social icons) */
.nav-links > li:not(.mobile-only) > a,
.dropdown-toggle {
  font: inherit;
  font-weight: 500;
  font-size: 17px;
  color: var(--text);
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}
.nav-links > li:not(.mobile-only) > a:hover,
.dropdown-toggle:hover,
.nav-links li.active > a,
.nav-links li.active > .dropdown-toggle {
  color: var(--red-solid);
}
.nav-links li.active > a::after,
.nav-links li.active > .dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--red-solid);
}

.caret {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

/* dropdown (desktop) */
.has-dropdown {
  position: relative;
  padding: 12px 0;
  margin: -12px 0;
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 210px;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.25s,
    transform 0.25s,
    visibility 0.25s;
}
.has-dropdown.open .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.has-dropdown.open .caret {
  transform: rotate(180deg);
}
@media (hover: hover) {
  .has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .has-dropdown:hover .caret {
    transform: rotate(180deg);
  }
}
.dropdown li a {
  display: block;
  padding: 10px 20px;
  font-size: 14.5px;
  transition:
    background 0.2s,
    color 0.2s;
}
.dropdown li a:hover,
.dropdown li a.active {
  background: #faf0f0;
  color: var(--red-solid);
}

/* Enquire button - same look everywhere (desktop, tablet, mobile menu) */
.enquire-btn,
.nav-links .enquire-btn {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  padding: 14px 30px;
  border-radius: 6px;
  border: 0;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(207, 59, 58, 0.35);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  display: inline-block;
  text-align: center;
}
.enquire-btn:hover,
.nav-links .enquire-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(207, 59, 58, 0.45);
}

.mobile-only {
  display: none;
}

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px; /* comfortable touch size */
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 200;
  order: 3;
}
.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 3px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.overlay {
  display: none;
}

/* ---------- LAPTOPS ---------- */
@media (max-width: 1400px) {
  :root {
    --pad-top: 80px;
    --pad-nav: 80px;
  }
  .navbar {
    padding-top: 18px;
    padding-bottom: 18px;
  }
}
@media (max-width: 1200px) {
  :root {
    --pad-top: 50px;
    --pad-nav: 50px;
  }
  .topbar {
    font-size: 15px;
  }
  .navbar {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .nav-right {
    gap: 22px;
  }
  .nav-links {
    gap: 22px;
  }
  .nav-links > li:not(.mobile-only) > a,
  .dropdown-toggle {
    font-size: 16px;
  }
  .enquire-btn {
    padding: 12px 22px;
  }
}

/* ---------- TABLET + MOBILE (<= 1024px) ---------- */
@media (max-width: 1024px) {
  :root {
    --pad-top: 20px;
    --pad-nav: 20px;
    --social-size: 30px;
    --social-icon: 13px;
    --topbar-icon: 13px;
  }
  .topbar {
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 14px;
  }
  .navbar {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .logo-icon {
    height: 56px;
  }

  .hamburger {
    display: flex;
  }
  .nav-right {
    order: 2;
    margin-left: auto;
    gap: 10px;
  }
  .desktop-enquire {
    padding: 11px 20px;
    font-size: 14px;
  }

  /* slide-in menu */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(82%, 340px);
    height: 100vh;
    height: 100dvh;
    background: #fff;
    z-index: 95;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 80px 26px 30px;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    transition:
      right 0.35s ease,
      visibility 0.35s;
  }
  .nav-links.open {
    right: 0;
    visibility: visible;
  }
  .nav-links > li {
    border-bottom: 1px solid #f0f0f0;
  }
  .nav-links > li:not(.mobile-only) > a,
  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 15px 0;
    font-size: 16px;
  }
  .nav-links li.active > a::after,
  .nav-links li.active > .dropdown-toggle::after {
    display: none;
  }
  .caret {
    width: 12px;
    height: 12px;
  }

  /* services dropdown becomes an accordion */
  .has-dropdown {
    padding: 0;
    margin: 0;
  }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.3s ease;
  }
  .has-dropdown.open .dropdown {
    max-height: 300px;
    padding: 0 0 10px;
  }
  .dropdown li a {
    padding: 11px 0 11px 14px;
    font-size: 15px;
  }

  /* Enquire button + social icons inside the menu */
  .mobile-only {
    display: block;
    border-bottom: 0 !important;
  }
  .mobile-cta {
    padding-top: 20px;
  }
  .nav-links .mobile-cta .enquire-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
  }

  .mobile-social {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 22px;
  }
  .mobile-social .social-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 16px;
    background: var(--red-solid);
    border: 1.5px solid var(--red-solid);
    color: #fff;
  }
  .mobile-social .social-icon:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
  }

  .overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 90;
  }
  .overlay.show {
    opacity: 1;
    visibility: visible;
  }
}

/* ---------- PHONES (<= 600px) ---------- */
@media (max-width: 600px) {
  :root {
    --topbar-icon: 12px;
  }
  .topbar {
    justify-content: center;
    text-align: center;
    padding: 7px 12px;
    font-size: 12.5px;
  }
  .topbar-contact {
    justify-content: center;
    width: 100%;
    gap: 4px 14px;
  }
  .topbar-contact .divider {
    display: none;
  }
  .topbar-social {
    display: none;
  } /* icons move into the menu panel */
  .navbar {
    padding-left: 14px;
    padding-right: 14px;
  }
  .logo-icon {
    height: 44px;
  }
  .desktop-enquire {
    padding: 9px 16px;
    font-size: 13px;
  }
  .hamburger {
    width: 42px;
    height: 42px;
  }
  .hamburger span {
    width: 24px;
  }
}

/* ---------- SMALL PHONES (<= 480px) ---------- */
@media (max-width: 480px) {
  .desktop-enquire {
    display: none;
  } /* Enquire button moves inside the menu */
  .logo-icon {
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
