/* Design tokens – matched to the 2021 Divi site. Define once here, use everywhere. */
:root {
  /* Colour */
  --navy: #011e41;
  --gold: #f1c346;
  --white: #fff;
  --grey: #666;
  --footer: #222;
  --link-hover: #016bcd;
  --field-border: rgb(255 255 255 / 0.52);
  --button-bg: rgb(255 255 255 / 0.8);

  /* Type */
  --body: "Open Sans", Arial, sans-serif;
  --form: Roboto, "Open Sans", Arial, sans-serif;

  /* Layout */
  --header-h: 80px;
  --gutter: clamp(16px, 4vw, 40px);
  --container: 1080px;
  --radius: 3px;
}

/*
  Self-hosted fonts (no third-party requests). Latin subset only.
  Open Sans was Divi's default face on the old site; Roboto was used on the contact form.
*/
@font-face {
  font-family: "Open Sans";
  src: url("/assets/fonts/open-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Open Sans";
  src: url("/assets/fonts/open-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Open Sans";
  src: url("/assets/fonts/open-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Roboto;
  src: url("/assets/fonts/roboto-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Base – reset, typography and utilities */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--navy);
  color: var(--grey);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

img,
picture,
svg,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
p,
ul {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

input,
textarea,
button {
  font: inherit;
  color: inherit;
}

.button {
  display: inline-block;
  padding: 6px 20px;
  border: 1px solid var(--white);
  border-radius: var(--radius);
  background: var(--button-bg);
  color: var(--navy);
  font-family: var(--body);
  font-size: 20px;
  font-weight: 500;
  line-height: 34px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.button:hover {
  background: var(--white);
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.75em 1.25em;
  background: var(--white);
  color: var(--navy);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Components – one block per partial or page layout */

/* ---------- Header: logo left, menu right (Divi's default header, full width) ---------- */
.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  background: var(--navy);
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.1);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding-inline: 30px;
}

.site-header__logo img {
  width: auto;
  height: 43px;
}

.site-nav__list {
  display: flex;
  gap: 22px;
  padding: 0;
  list-style: none;
}

.site-nav a:not(.site-header__logo) {
  display: block;
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.site-nav a:not(.site-header__logo):hover {
  opacity: 0.7;
}

.site-nav a[aria-current="page"] {
  color: var(--gold);
}

.menu-toggle {
  display: none;
}

@media (max-width: 980px) {
  .site-nav__list {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--gold);
    cursor: pointer;
  }
}

/* Mobile menu – a native popover that drops below the header */
.site-menu {
  inset: var(--header-h) 0 auto;
  width: 100%;
  margin: 0;
  padding: 5%;
  border: 0;
  border-top: 3px solid var(--gold);
  background: var(--navy);
  box-shadow: 0 2px 5px rgb(0 0 0 / 0.1);
}

.site-menu ul {
  padding: 0;
  list-style: none;
}

.site-menu a {
  display: block;
  padding: 10px 5%;
  border-bottom: 1px solid rgb(0 0 0 / 0.03);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.site-menu a[aria-current="page"] {
  color: var(--gold);
}

/* Fallback for browsers without popover support (nav.js toggles .is-open) */
.site-menu:not(:popover-open):not(.is-open) {
  display: none;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer);
}

/* Divi's #footer-bottom: a 32% black wash over the footer colour */
.site-footer__inner {
  width: 80%;
  max-width: var(--container);
  margin-inline: auto;
  padding-block: 15px 5px;
}

.site-footer {
  background-image: linear-gradient(rgb(0 0 0 / 0.32), rgb(0 0 0 / 0.32));
}

.site-footer p {
  padding-bottom: 10px;
  color: var(--grey);
  font-size: 10px;
}

@media (max-width: 980px) {
  .site-footer p {
    text-align: center;
  }
}

/* ---------- Home: full-screen header with logo and two buttons ---------- */
.home-hero {
  display: grid;
  place-content: center;
  justify-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 50px 6%;
  background: var(--navy);
  text-align: center;
}

.home-hero h1 img {
  width: 200px;
  padding-bottom: 20px;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ---------- Contact: two-thirds form, one-third photo ---------- */
.contact {
  display: grid;
  grid-template-columns: 2fr 1fr;
  background: var(--navy);
}

/* Divi's column padding was a percentage of the full row, i.e. the viewport */
.contact__body {
  padding: 8vw 8vw 14vw;
  color: var(--white);
}

.contact__title {
  margin: 50px 0 20px;
  color: var(--gold);
  font-family: var(--form);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.contact__details {
  margin-bottom: 20px;
  font-family: var(--form);
  font-size: 17px;
  line-height: 1em;
}

.contact__details p {
  padding-bottom: 1em;
}

.contact__details a {
  text-decoration: none;
}

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

.contact__photo {
  position: relative;
  overflow: hidden;
}

.contact__photo picture,
.contact__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 980px) {
  .contact {
    grid-template-columns: 1fr;
  }

  .contact__body {
    padding: 50px 8% 60px;
  }

  .contact__photo {
    display: none;
  }
}

/* ---------- Contact form ---------- */
.contact-form {
  width: 70%;
  font-family: var(--form);
}

@media (max-width: 980px) {
  .contact-form {
    width: 100%;
  }
}

.form-fields {
  display: grid;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  height: 60px;
  padding: 16px;
  border: 2px solid var(--field-border);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font-size: 18px;
  line-height: 1.4;
  resize: vertical;
}

.contact-form textarea {
  min-height: 60px;
}

.contact-form ::placeholder {
  color: var(--white);
  opacity: 1;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--white);
  outline: none;
}

/* Turnstile stays hidden (interaction-only) unless it needs the visitor to click */
.turnstile {
  margin-top: 12px;
}

.turnstile:empty {
  display: none;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.contact-form .submit {
  width: 147px;
  height: 60px;
  padding: 4.5px 15px;
  border: 4px solid var(--white);
  border-radius: 4px;
  background: var(--white);
  color: var(--navy);
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s;
}

.contact-form .submit:hover {
  color: var(--link-hover);
}

.form-error {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-left: 4px solid var(--gold);
  background: rgb(255 255 255 / 0.08);
  color: var(--white);
  font-size: 16px;
}

.form-error:focus {
  outline: none;
}

.form-note {
  margin-top: 12px;
  font-size: 14px;
}

.form-note a {
  color: var(--white);
}

/* Honeypot: hidden from people, visible to bots */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Book: Microsoft Bookings embed ---------- */
.book {
  padding-block: 54px;
  background: var(--white);
}

.book__frame {
  width: 80%;
  max-width: var(--container);
  margin-inline: auto;
}

.book__frame iframe {
  width: 100%;
  height: 1550px;
  border: 0;
}

/* ---------- Notices: 404 and thanks ---------- */
.notice {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 20px;
  min-height: 60vh;
  padding: 80px 8%;
  color: var(--white);
  font-size: 17px;
  text-align: center;
}

.notice h1 {
  color: var(--gold);
  font-family: var(--form);
  font-size: 24px;
  font-weight: 400;
}

.notice__action {
  margin-top: 12px;
}
