/* ==========================================================================
   BASE
   Design tokens (colors, fonts, spacing), reset, typography and helpers.
   Every page loads this file first.
   ========================================================================== */


/* ---------- 0. Ginora Sans (site font) ---------- */
/* Font files go in /assets/fonts/ with the names below (see the README there).
   Until the files are added, the site falls back to Roboto automatically.
   local() uses the font straight away if it's installed on the visitor's computer. */

@font-face {
  font-family: "Ginora Sans";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: local("Ginora Sans Regular"), local("GinoraSans-Regular"),
       url("../fonts/GinoraSans-Regular.woff2") format("woff2"),
       url("../fonts/GinoraSans-Regular.otf") format("opentype");
}

@font-face {
  font-family: "Ginora Sans";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: local("Ginora Sans Medium"), local("GinoraSans-Medium"),
       url("../fonts/GinoraSans-Medium.woff2") format("woff2"),
       url("../fonts/GinoraSans-Medium.otf") format("opentype");
}

@font-face {
  font-family: "Ginora Sans";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: local("Ginora Sans SemiBold"), local("GinoraSans-SemiBold"),
       url("../fonts/GinoraSans-SemiBold.woff2") format("woff2"),
       url("../fonts/GinoraSans-SemiBold.otf") format("opentype");
}

@font-face {
  font-family: "Ginora Sans";
  font-weight: 700 800;   /* also used for the extra-bold hero headline */
  font-style: normal;
  font-display: swap;
  src: local("Ginora Sans Bold"), local("GinoraSans-Bold"),
       url("../fonts/GinoraSans-Bold.woff2") format("woff2"),
       url("../fonts/GinoraSans-Bold.otf") format("opentype");
}


/* ---------- 1. Design tokens ---------- */

:root {
  /* Brand colors (taken from the logo) */
  --blue: #18a6df;
  --blue-dark: #1290c3;
  --teal: #13769e;
  --navy: #014c6f;

  /* Ocean tones (taken from the hero photo) */
  --sea: #225e73;
  --deep: #0b2f42;

  /* ★ SITE DARK COLOR ★
     The hero fades into this color at the bottom, and the section below the
     hero (highlights + about) uses it as its background.
     Change this one value to try a different color across the site. */
  --dark-bg: #161616;

  /* Text and surfaces */
  --ink: #0d2b3a;
  --muted: #557080;
  --line: #e1ebf0;
  --bg-soft: #f3f8fa;
  --white: #fff;

  /* Fonts
     Site text uses Ginora Sans (falls back to Roboto until its files are added).
     The menus use Roboto, loaded from Google Fonts in each page's <head>. */
  --font-main: "Ginora Sans", "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-display: var(--font-main);   /* headings, buttons */
  --font-body: var(--font-main);      /* paragraphs */
  --font-nav: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;   /* menus */

  /* Layout */
  --gutter: clamp(20px, 5vw, 48px);       /* space at the left/right screen edges */
  --header-h: clamp(84px, 6vw, 118px);    /* height of the top navigation row */

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
}


/* ---------- 2. Reset ---------- */

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

html {
  scroll-behavior: smooth;            /* smooth scrolling for #anchor links */
  scroll-padding-top: 88px;           /* keeps anchored sections clear of the fixed header */
  scrollbar-gutter: stable;           /* page doesn't jump sideways when scrolling is locked (menu / enquiry form) */
  background: var(--dark-bg);         /* colour of that scrollbar space while locked (body stays white) */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}


/* ---------- 3. Typography ---------- */

h2 {
  font: 700 clamp(1.9rem, 3.4vw, 3rem) / 1.15 var(--font-display);
  letter-spacing: -.005em;
}

h3 {
  font: 700 1.2rem / 1.3 var(--font-display);
  letter-spacing: 0;
}

/* Small uppercase label above a heading, with a blue dash */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font: 600 13px / 1 var(--font-display);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--blue);
}

.eyebrow--light {
  color: #8fd6f5;
}

/* Larger intro paragraph under a heading */
.lead {
  margin-top: 18px;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--muted);
}


/* ---------- 4. Layout helpers ---------- */

.container {
  width: min(1200px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.section {
  padding-block: clamp(72px, 10vw, 140px);
}

/* "Skip to content" link for keyboard users, hidden until focused */
.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  transition: top .2s;
}

.skip-link:focus {
  top: 16px;
}


/* ---------- 5. Scroll reveal ---------- */
/* Elements with [data-reveal] fade up when scrolled into view (see js/modules/reveal.js).
   The .js class is set in <head>, so content stays visible if JavaScript is off. */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}


/* ---------- 6. Reduced motion ---------- */
/* Respect visitors who turned off animations in their system settings. */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
