@import url('https://fonts.googleapis.com/css2?family=Young+Serif&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  --color-background: #F4EEE4;
  --color-background-2: #EAE2D5;
  --color-background-error: #F9E1E6;
  --color-background-success: #E3EFEA;
  --color-main-1: #0E1A30;
  --color-main-2: #EE7AA0;
  --color-main-3: #B4446D;
  --color-main-4: #1E6F64;
  --color-navy-2: #16243F;
  --color-navy-3: #09121F;
  --color-line: #D8CFC0;
  --font-main: 'Work Sans', sans-serif;
  --font-title: 'Young Serif', serif;
  --font-mono: 'Work Sans', sans-serif;
  --color-text: #0E1A30;
  --color-text-muted: #3F4A5E;
  --color-text-light: #C9CFDA;
  --color-link: #0E1A30;
  --color-label: #0E1A30;
  --color-error: #A3264F;
  --color-success: #1E6F64;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  font-style: normal;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

ul, ol {
  padding-left: 30px;
}

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

::selection {
  background: var(--color-main-2);
  color: var(--color-main-1);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: inherit;
  text-wrap: balance;
}

h1 {
  font-size: 64px;
  @media (max-width: 1024px) {
    font-size: 48px;
  }
  @media (max-width: 767px) {
    font-size: 38px;
  }
}

h2 {
  font-size: 58px;
  @media (max-width: 1024px) {
    font-size: 44px;
  }
  @media (max-width: 767px) {
    font-size: 34px;
  }
}

h3 {
  font-size: 30px;
  line-height: 1.15;
  @media (max-width: 1024px) {
    font-size: 26px;
  }
}

h4 {
  font-size: 24px;
  line-height: 1.2;
  @media (max-width: 1024px) {
    font-size: 22px;
  }
}

h5 {
  font-size: 20px;
}

h6 {
  font-size: 18px;
}

/* Colour is inherited (not set) so copy reads correctly on both the light
   and the dark navy sections without per-section overrides. */
p, span, li {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: inherit;
}

h1 em, h2 em, h3 em,
h1 .accent, h2 .accent, h3 .accent {
  font-family: var(--font-title);
  font-style: normal;
  font-size: inherit;
  line-height: inherit;
  color: var(--color-main-2);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--color-main-3);
}

.lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text-muted);
}

/* ==========================================================================
   SPACING SYSTEM
   ========================================================================== */

.mt-120 {
  margin-top: 120px;
  @media (max-width: 1360px) {
    margin-top: 60px;
  }
}

.mt-60 {
  margin-top: 60px;
  @media (max-width: 1360px) {
    margin-top: 30px;
  }
}

.mb-120 {
  margin-bottom: 120px;
  @media (max-width: 1360px) {
    margin-bottom: 60px;
  }
}

.mb-60 {
  margin-bottom: 60px;
  @media (max-width: 1360px) {
    margin-bottom: 30px;
  }
}

.mb-36 {
  margin-bottom: 36px;
  @media (max-width: 1360px) {
    margin-bottom: 18px;
  }
}

.pt-120 {
  padding-top: 120px;
  @media (max-width: 1360px) {
    padding-top: 60px;
  }
}

.pt-60 {
  padding-top: 60px;
  @media (max-width: 1360px) {
    padding-top: 30px;
  }
}

.pb-120 {
  padding-bottom: 120px;
  @media (max-width: 1360px) {
    padding-bottom: 60px;
  }
}

.pb-60 {
  padding-bottom: 60px;
  @media (max-width: 1360px) {
    padding-bottom: 30px;
  }
}

/* ==========================================================================
   BUTTON
   Square-cornered, flat. The arrow nudges forward on hover.
   ========================================================================== */

.button {
  width: fit-content;
  min-height: 54px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 2px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.button:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.button i {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.button:hover i {
  transform: translateX(4px);
}

.button.btn-primary {
  background: var(--color-main-2);
  border-color: var(--color-main-2);
  color: var(--color-main-1);
}

.button.btn-primary:hover {
  background: var(--color-background);
  border-color: var(--color-background);
  color: var(--color-main-1);
}

/* Navy solid - for use on light sections */
.button.btn-dark {
  background: var(--color-main-1);
  border-color: var(--color-main-1);
  color: var(--color-background);
}

.button.btn-dark:hover {
  background: var(--color-main-2);
  border-color: var(--color-main-2);
  color: var(--color-main-1);
}

.button.btn-ghost {
  background: transparent;
  border-color: rgba(244, 238, 228, 0.35);
  color: inherit;
  font-weight: 500;
}

.button.btn-ghost:hover {
  background: transparent;
  border-color: var(--color-main-2);
  color: var(--color-main-2);
}

/* Underlined text link with an arrow */
.link-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-size: 15px;
  font-weight: 600;
}

.link-line i {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-line:hover i {
  transform: translateX(4px);
}

/* ==========================================================================
   NAV TOGGLE
   ========================================================================== */

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(244, 238, 228, 0.3);
  border-radius: 2px;
  font-size: 22px;
  color: var(--color-background);
  cursor: pointer;
}

/* ==========================================================================
   SCROLL TO TOP
   ========================================================================== */

.scroll-top-btn {
  position: fixed;
  right: 24px;
  bottom: 90px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-main-1);
  color: var(--color-background);
  border: 1px solid rgba(244, 238, 228, 0.18);
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
  z-index: 90;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--color-main-2);
  color: var(--color-main-1);
}

/* ==========================================================================
   LINK ARROW / CONTACT ITEM
   ========================================================================== */

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.link-arrow i {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  color: var(--color-main-2);
  transition: transform 0.25s ease;
}

.link-arrow:hover {
  color: var(--color-main-2);
}

.link-arrow:hover i {
  transform: translateX(4px);
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-item i {
  font-size: 16px;
  line-height: 1;
  color: var(--color-main-2);
}

a.contact-item:hover {
  color: var(--color-main-2);
}

/* ==========================================================================
   ACCORDION
   Single-open accordion, driven by initFaqAccordion() in main.js.
   ========================================================================== */

.accordion-wrapper {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-main-1);
}

.accordion-item {
  border-bottom: 1px solid var(--color-line);
}

.item-title-wrapper {
  padding: 24px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  column-gap: 24px;
  align-items: center;
  cursor: pointer;
}

.item-title-wrapper span {
  font-family: var(--font-title);
  font-size: 22px;
  line-height: 1.3;
  @media (max-width: 767px) {
    font-size: 19px;
  }
}

.item-title-wrapper i {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-main-1);
  border-radius: 50%;
  font-size: 18px;
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.item-title-wrapper:hover i {
  border-color: var(--color-main-3);
}

.item-description-wrapper {
  display: none;
}

.item-content {
  padding: 0 60px 24px 0;
  @media (max-width: 767px) {
    padding-right: 0;
  }
}

.item-content p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

.accordion-item.active .item-title-wrapper i {
  background: var(--color-main-2);
  border-color: var(--color-main-2);
  transform: rotate(45deg);
}

/* ==========================================================================
   GRID (row / col)
   ========================================================================== */

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.row .col {
  flex: 1 1 210px;
}

.row .col-12 {
  flex: 1 1 100%;
}

/* ==========================================================================
   FORMS
   Underlined fields on a light card. Markup pattern + JS hooks: see
   forms/validate.js and CONVENTIONS.md §12.
   ========================================================================== */

.d-block {
  display: block !important;
}

.form-clt {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-clt label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-label);
}

.access-input {
  width: 100%;
  height: 48px;
  padding: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-main-1);
  border-radius: 0;
  font-size: 16px;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select.access-input {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230E1A30' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  padding-right: 24px;
}

.access-input::placeholder {
  color: #8C8573;
}

.access-input:focus-visible {
  outline: none;
  border-color: var(--color-main-3);
  box-shadow: 0 1px 0 0 var(--color-main-3);
}

textarea.access-input {
  height: auto;
  min-height: 96px;
  padding-top: 12px;
  padding-bottom: 12px;
  resize: vertical;
}

.access-input.input-error {
  border-color: var(--color-error);
  box-shadow: 0 1px 0 0 var(--color-error);
}

.field-error {
  display: none;
  font-size: 13px;
  color: var(--color-error);
}

.field-error.visible {
  display: block;
}

/* Honeypot - kept off-screen, ignored by validation */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.loading,
.error-message,
.sent-message {
  display: none;
}

.form-loading {
  color: var(--color-text);
}

.form-loading-spinner {
  display: inline-block;
  vertical-align: middle;
  width: 18px;
  height: 18px;
  margin-right: 12px;
  border: 2px solid var(--color-line);
  border-top-color: var(--color-main-3);
  border-radius: 50%;
  animation: form-spin 0.6s linear infinite;
}

@keyframes form-spin {
  to {
    transform: rotate(360deg);
  }
}

.form-error-msg {
  padding: 12px 18px;
  background: var(--color-background-error);
  color: var(--color-error);
}

.form-error-msg i {
  display: inline-block;
  vertical-align: middle;
  margin-right: 12px;
}

.form-sent {
  padding: 36px 0;
}

.form-sent-icon {
  width: 14px;
  height: 14px;
  margin-bottom: 18px;
  background: var(--color-main-2);
  border-radius: 50%;
}

.form-sent-title {
  margin-bottom: 12px;
  font-family: var(--font-title);
  font-size: 32px;
  line-height: 1.15;
  color: var(--color-main-1);
}

.form-sent-sub {
  color: var(--color-text-muted);
}

/* After a successful send, only the success block stays visible */
.contact-form-box:has(.sent-message.d-block) .form-fields {
  display: none;
}

/* ==========================================================================
   REVEAL
   Elements marked [data-reveal] fade + rise into view (main.js, GSAP).
   Hidden only once JS has confirmed GSAP is present (.js-reveal on <html>).
   ========================================================================== */

.js-reveal [data-reveal] {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] {
    opacity: 1;
  }
}
