:root {
  --navy: #28304c;
  --cyan: #0099cc;
  --white: #ffffff;
  --fog: #f7f7f7;
  --ink: #16163f;
  --gold: #d3b574;
  --header-h: 110px;
  --max: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--navy);
  font-family: Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  background: var(--white);
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 10000;
  background: var(--white);
  color: var(--navy);
  padding: 8px 12px;
}

.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  min-height: var(--header-h);
  background: var(--navy);
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
  overflow: visible;
}

.header-tilt {
  overflow: hidden;
  position: absolute;
  left: 0;
  width: 100%;
  height: 40px;
  bottom: -40px;
  line-height: 0;
  z-index: 2;
  pointer-events: none;
  color: var(--navy);
  transform: rotate(180deg);
}

.header-tilt svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 100%;
  position: relative;
  left: 50%;
  transform: translateX(-50%) rotateY(180deg);
}

.site-header.is-scrolled .header-tilt {
  display: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  width: 100%;
  padding: 0 10px;
  position: relative;
  z-index: 3;
}

.brand img {
  width: 215px;
  max-width: 85%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.group-link {
  position: absolute;
  top: 25px;
  right: 43px;
  z-index: 4;
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 100;
  line-height: 1.2;
  white-space: nowrap;
}

.group-link strong {
  font-weight: 900;
}

.nav-desktop {
  display: flex;
}

.nav-desktop ul,
ul.nav-desktop {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0 220px 0 0;
}

.nav-desktop a {
  color: var(--white);
  font-family: Khula, sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-desktop a:hover,
.nav-desktop a:focus {
  color: var(--cyan);
}

.menu-toggle {
  width: 45px;
  height: 45px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--navy);
  border-radius: 3px;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -7px;
}

.menu-toggle span::after {
  top: 7px;
}

.nav-drawer {
  display: none;
  background: var(--white);
  box-shadow: 0 15px 20px rgba(0, 0, 0, 0.1);
}

.nav-drawer.is-open {
  display: block;
}

.nav-drawer ul {
  list-style: none;
  margin: 0;
  padding: 18px 28px 28px;
}

.nav-drawer a {
  display: block;
  padding: 10px 0;
  color: var(--ink);
  font-family: Montserrat, sans-serif;
  font-size: 16px;
}

.nav-drawer a:hover,
.nav-drawer a:focus {
  color: var(--gold);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
}

.slider {
  position: relative;
  height: 800px;
  overflow: hidden;
  background: #e9e9e9;
}

.slide {
  position: absolute;
  inset: 0;
  background: center top / cover no-repeat;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s ease, transform 6s ease;
}

.slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.slider-arrow {
  position: absolute;
  top: 46%;
  z-index: 4;
  width: 46px;
  height: 46px;
  color: var(--white);
  font-size: 42px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.slider:hover .slider-arrow {
  opacity: 0.85;
}

.slider-arrow.prev {
  left: 20px;
}

.slider-arrow.next {
  right: 20px;
}

.thumbs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 70px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 5px;
  padding: 0 11px;
}

.thumbs button {
  flex: 1 1 0;
  max-width: 229px;
  height: 110px;
  background: center / cover no-repeat;
  outline: 0;
  opacity: 0.9;
}

.thumbs button.is-active,
.thumbs button:hover {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--white);
}

.emergency {
  position: absolute;
  top: 9vh;
  right: 15%;
  z-index: 5;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  background: rgba(40, 48, 76, 0.67);
  color: var(--white);
  padding: 15px;
}

.emergency img {
  width: 79px;
  height: 79px;
  flex-shrink: 0;
}

.emergency h2 {
  margin: 0;
  font-family: Khula, sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--white);
}

.emergency p {
  margin: 0;
  font-family: Khula, sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 39px;
}

.hero .tilt,
.band .tilt-top,
.band .tilt-bottom,
.site-footer .tilt-top {
  overflow: hidden;
  position: absolute;
  left: 0;
  width: 100%;
  height: 70px;
  line-height: 0;
  z-index: 6;
  pointer-events: none;
}

.band .tilt-top,
.site-footer .tilt-top {
  top: -1px;
  color: var(--navy);
}

.hero .tilt,
.band .tilt-bottom {
  top: auto;
  bottom: -1px;
  transform: rotate(180deg);
}

.hero .tilt {
  color: var(--navy);
  z-index: 3;
}

.hero .tilt svg,
.band .tilt-top svg,
.band .tilt-bottom svg,
.site-footer .tilt-top svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 100%;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.hero .tilt svg,
.band.flip-top .tilt-top svg,
.band.flip-bottom .tilt-bottom svg,
.site-footer .tilt-top svg {
  transform: translateX(-50%) rotateY(180deg);
}

/* Shared section bits */
.section-title {
  margin: 0 0 12px;
  text-align: center;
  font-family: Khula, sans-serif;
  font-size: 60px;
  font-weight: 300;
  color: var(--cyan);
  line-height: 1;
}

.rule {
  width: 180px;
  height: 1px;
  margin: 0 auto 28px;
  background: var(--cyan);
}

.section-lead {
  text-align: center;
  color: var(--white);
  margin: 0 auto 28px;
  max-width: 820px;
}

.about {
  background: var(--navy);
  color: var(--white);
  padding: 40px 0 60px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
  align-items: start;
}

.about-grid img {
  width: 100%;
}

.about-copy p {
  margin: 0 0 14px;
  text-align: justify;
  font-size: 17px;
  line-height: 1.5;
  color: var(--white);
}

.band {
  position: relative;
  height: 70vh;
  min-height: 420px;
  overflow: hidden;
  background-color: var(--navy);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.band.tall {
  height: 90vh;
}

.band.map-band {
  height: 100vh;
  min-height: 640px;
}

.band .overlay {
  position: absolute;
  inset: 0;
  background: var(--navy);
  opacity: 0.5;
  z-index: 1;
}

.map-band .overlay {
  opacity: 0.78;
}

.band .tilt-top,
.band .tilt-bottom {
  z-index: 2;
}

/* Services */
.services {
  position: relative;
  background: var(--white);
  padding: 70px 0;
  overflow: hidden;
}

.watermark {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  width: 100%;
  text-align: center;
  font-family: Khula, sans-serif;
  font-size: 60px;
  font-weight: 300;
  line-height: 1;
  color: var(--white);
  -webkit-text-stroke: 2px var(--white);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.services .wrap {
  position: relative;
  z-index: 1;
}

.iso-note {
  text-align: center;
  color: var(--navy);
  margin: -8px 0 28px;
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  margin: 0;
}

.tab {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 2px solid var(--navy);
  padding: 20px 10px;
  margin: 10px;
  min-width: 187px;
  text-align: center;
  position: relative;
  color: var(--navy);
  overflow: visible;
}

.tab img {
  width: 110px;
  height: 110px;
  margin: 0 auto 12px;
}

.tab h3 {
  margin: 0;
  font-family: Oswald, sans-serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 45px;
  text-transform: uppercase;
}

.tab.is-active {
  background: var(--white);
  color: var(--cyan);
  border-color: var(--cyan);
}

.tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -32px;
  width: 0;
  height: 0;
  margin: auto;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 34px solid var(--navy);
  z-index: 2;
}

.tab-panels {
  background: var(--navy);
  color: var(--white);
  padding: 20px 40px;
  margin-top: 20px;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.hand-list,
.check-list,
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hand-list li,
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 6px 0;
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
}

.hand-list i {
  color: var(--white);
  font-size: 14px;
  margin-top: 6px;
}

.check-list {
  color: var(--navy);
}

.check-list i {
  color: var(--cyan);
  margin-top: 6px;
}

.accordion {
  margin-top: 18px;
  border-top: 1px solid #d9d9d9;
}

.acc-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  padding: 15px;
  border-bottom: 1px solid #d9d9d9;
}

.acc-btn h3 {
  margin: 0;
  font-family: Oswald, sans-serif;
  font-size: 30px;
  font-weight: 400;
  color: #333;
  text-transform: none;
  line-height: 36px;
}

.acc-btn h3 span {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-family: "Open Sans", sans-serif;
  font-size: 20px;
  font-weight: 400;
}

.acc-btn i {
  color: var(--cyan);
  font-size: 22px;
}

.acc-panel {
  display: none;
  background: var(--white);
  padding: 8px 8px 20px;
}

.acc-panel.is-open,
.accordion.is-open .acc-panel {
  display: block;
}

.iso-copy {
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
  color: var(--navy);
}

/* Correspondent */
.correspondent {
  background: var(--navy);
  padding: 40px 0 60px;
  color: var(--white);
}

.club-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.club {
  display: inline-block;
  background: var(--cyan);
  color: var(--white);
  font-family: Roboto, sans-serif;
  font-size: 18px;
  padding: 17px 22px;
  text-align: center;
}

.club:hover,
.club:focus {
  background: var(--white);
  color: var(--cyan);
}

/* Map */
.map-inner {
  position: relative;
  z-index: 3;
  padding: 110px 0 90px;
  text-align: center;
}

.map-frame {
  position: relative;
  width: min(920px, 100%);
  margin: 24px auto 0;
}

.map-frame img {
  width: 100%;
}

.hotspot {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cyan);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 8px rgba(0, 153, 204, 0.25);
}

.hotspot::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  white-space: nowrap;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0;
  pointer-events: none;
}

.hotspot:hover::after,
.hotspot:focus::after {
  opacity: 1;
}

/* Team */
.team {
  background: var(--white);
  padding: 40px 0 60px;
}

.team-intro {
  width: min(65%, 760px);
  margin: 0 auto 40px;
  text-align: center;
  color: var(--navy);
  font-family: Roboto, sans-serif;
  font-weight: 300;
  line-height: 31px;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 48px;
}

.member h3 {
  margin: 0;
  font-family: Khula, sans-serif;
  font-size: 30px;
  font-weight: 300;
  text-transform: uppercase;
  color: var(--cyan);
}

.member p {
  margin: 6px 0 14px;
  font-family: Khula, sans-serif;
  font-size: 20px;
  font-weight: 300;
  text-transform: uppercase;
  color: var(--navy);
}

.member .rule {
  margin: 0;
  width: 100%;
  max-width: 220px;
}

/* Contact */
.contact {
  background: var(--navy);
  color: var(--white);
  padding: 40px 0 30px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.contact h3 {
  margin: 0 0 16px;
  font-family: Khula, sans-serif;
  font-size: 33px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
}

.contact-list li,
.contact-list a {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--white);
  padding: 7px 0;
  font-size: 16px;
}

.contact-list i {
  color: var(--white);
  width: 18px;
  margin-top: 4px;
}

.contact-list a:hover {
  color: var(--cyan);
}

/* Footer */
.site-footer {
  position: relative;
  background: var(--cyan);
  color: var(--white);
  padding: 70px 24px 28px;
}

.site-footer .tilt-top {
  z-index: 2;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, 1400px);
  margin-inline: auto;
}

.footer-brand img {
  width: 50px;
}

.footer-meta {
  text-align: right;
}

.footer-meta p {
  margin: 0 0 6px;
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  font-weight: 500;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--white);
  font-size: 15px;
  text-transform: capitalize;
}

.footer-links li + li {
  border-left: 1px solid #ddd;
  padding-left: 20px;
}

/* Inner pages */
.page-main {
  background: var(--white);
  padding: 48px 0 80px;
}

.legal {
  width: min(100% - 40px, 900px);
  margin-inline: auto;
  color: var(--navy);
}

.legal h1,
.legal h2,
.legal h3 {
  font-family: Khula, sans-serif;
  font-weight: 300;
  color: var(--cyan);
}

.legal h1 {
  font-size: 48px;
  text-align: center;
}

.legal h2 {
  font-size: 28px;
  margin-top: 32px;
}

.legal p,
.legal li {
  font-size: 17px;
}

.legal a {
  color: var(--cyan);
}

.legal a:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .section-title {
    font-size: 50px;
  }

  .watermark {
    font-size: 50px;
  }

  .thumbs button {
    height: 99px;
  }

  .emergency {
    right: 15%;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .section-title {
    font-size: 45px;
  }

  .watermark {
    font-size: 45px;
  }

  .slider {
    height: 520px;
  }

  .thumbs button {
    height: 85px;
  }

  .emergency {
    right: 12px;
    left: 12px;
    top: 18px;
    max-width: none;
  }

  .emergency h2,
  .emergency p {
    font-size: 20px;
    line-height: 1.35;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-intro {
    width: 100%;
  }

  .footer-inner,
  .footer-meta,
  .footer-links {
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
  }

  .footer-links li + li {
    border: 0;
    padding: 0;
  }
}

@media (max-width: 480px) {
  .thumbs {
    display: none;
  }

  .tab h3 {
    display: none;
  }

  .tab img {
    width: 48px;
    height: 48px;
    margin-bottom: 0;
  }
}
