/* ==========================================================================
   Go-DMO
   One stylesheet for the whole site. Each page is a "view"; the tabs swap
   which one is on screen.
   ========================================================================== */

@font-face{font-family:'Sans';src:url(fonts/instrument-sans-400.woff2) format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Sans';src:url(fonts/instrument-sans-600.woff2) format('woff2');font-weight:600;font-display:swap}
@font-face{font-family:'Sans';src:url(fonts/instrument-sans-700.woff2) format('woff2');font-weight:700;font-display:swap}

:root{
  --white:#FFFFFF;
  --ink:#1A1A18;              /* the black in the logo */
  --blue:#265C9A;             /* the blue in the logo */
  --blue-deep:#1B3F6E;
  --blue-light:#6D9EDE;       /* the blue, lifted for dark backgrounds */
  --muted:#5C5C57;
  --hair:rgba(26,26,24,.13);
  --sans:'Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}

body{
  margin:0;
  min-height:100vh;
  background:var(--white);
  color:var(--ink);
  font-family:var(--sans);
  -webkit-font-smoothing:antialiased;
  display:flex;
  flex-direction:column;
  transition:background .3s ease, color .3s ease;
}

/* ==========================================================================
   HEADER — one copy, shared by every view
   ========================================================================== */
header{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:40px;
  padding:26px 56px;
  flex:none;
}

.logo{width:116px;height:auto;display:block}
/* Two marks, one shown at a time: the black wordmark vanishes on black. */
.logo--light{display:block}
.logo--dark{display:none}
body.dark .logo--light{display:none}
body.dark .logo--dark{display:block}

nav{display:flex;justify-content:center;gap:clamp(18px,2.2vw,36px)}
nav a{
  font-size:14px;
  color:var(--muted);
  text-decoration:none;
  padding:6px 0;
  position:relative;
  white-space:nowrap;
  transition:color .18s ease;
}
nav a:hover{color:var(--ink)}
/* The current tab is marked, not styled into a different thing. */
nav a[aria-current]{color:var(--ink);font-weight:600}
nav a[aria-current]::after{
  content:'';
  position:absolute;left:0;right:0;bottom:0;
  height:2px;background:var(--blue);
}
/* Tabs with nowhere to go yet. */
nav a[data-inert]{opacity:.45;cursor:default}
nav a[data-inert]:hover{color:var(--muted)}

.contact{
  display:inline-flex;
  align-items:center;
  padding:12px 26px;
  background:var(--ink);
  color:var(--white);
  font-size:13.5px;
  font-weight:600;
  letter-spacing:.01em;
  text-decoration:none;
  transition:background .18s ease, color .18s ease;
}
.contact:hover{background:var(--blue)}

/* ==========================================================================
   VIEWS
   ========================================================================== */
.views{flex:1;display:flex;flex-direction:column}
.view{display:none}
.view.is-on{display:flex;flex-direction:column;flex:1}

/* --- Typed headline ----------------------------------------------------- */
h1{
  margin:0;
  font-size:clamp(38px,5.2vw,68px);
  font-weight:700;
  line-height:1.1;
  letter-spacing:-.035em;
}
/* Each line is its own row with its finished height reserved, so nothing
   below shifts while the headline types itself out. */
.line{display:block;min-height:1.1em}

.caret{
  display:inline-block;
  width:3px;
  height:.88em;
  margin-left:.06em;
  background:var(--blue);
  vertical-align:-.08em;
  animation:blink 1.06s step-end infinite;
}
@keyframes blink{0%,100%{opacity:1}50%{opacity:0}}
.caret.is-done{animation:none;opacity:0}

.sub{
  margin:26px 0 0;
  max-width:68ch;
  font-size:17px;
  line-height:1.62;
  color:var(--muted);
  /* Fades in once the headline has finished typing. */
  opacity:0;
  transition:opacity .7s ease;
}
.sub.is-in{opacity:1}

/* --- Home ---------------------------------------------------------------
   Fills whatever height is left under the header, so it is exactly one
   screen with no scroll. */
#view-home{
  justify-content:center;
  padding:0 56px 4vh;
  /* Anchors the spiral, and clips the part that bleeds off the right edge. */
  position:relative;
  overflow:hidden;
}
/* The words stay above the animation. */
#view-home .hero{position:relative;z-index:1;max-width:min(1000px,52vw)}

/* The spiral. Vector, so it is crisp at any size and needs no background of
   its own — it sits directly on the page. */
#spiral{
  position:absolute;
  z-index:0;
  top:50%;
  right:-4vw;
  transform:translateY(-50%);
  width:clamp(420px,46vw,760px);
  aspect-ratio:1;
  pointer-events:none;
}
#spiral svg{display:block}

/* --- Services views (Destinations, Tour Operators) ---------------------- */
.svc-view{padding:0 56px 76px}
.intro{padding:4vh 0 0;max-width:1000px}

/* Five groups plus the Creative card fill a 3 x 2 grid exactly. Everything
   is stated outright — nothing is hidden behind a hover. */
.groups{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1px;
  margin-top:62px;
  background:var(--hair);   /* shows through the gaps as hairlines */
  border:1px solid var(--hair);
}
.group{
  background:var(--white);
  padding:30px 30px 32px;
  display:flex;
  flex-direction:column;
}
.group h2{
  margin:0;
  font-size:19px;
  font-weight:700;
  line-height:1.24;
  letter-spacing:-.02em;
}
.group h2::after{
  content:'';
  display:block;
  width:34px;height:3px;
  background:var(--blue);
  margin:12px 0 14px;
}
.group p{margin:0;font-size:14px;line-height:1.58;color:var(--muted)}
.group ul{margin:18px 0 0;padding:0;list-style:none}
.group li{
  font-size:14px;
  line-height:1.4;
  padding:7px 0 7px 16px;
  position:relative;
  border-top:1px solid var(--hair);
}
.group li:first-child{border-top:0;padding-top:0}
.group li:first-child::before{top:6px}
.group li::before{
  content:'';
  position:absolute;left:0;top:13px;
  width:5px;height:5px;
  background:var(--blue);
}

/* The sixth cell: the one blue block on the page, so it reads as the
   button it is. */
.creative-card{
  background:var(--blue);
  color:var(--white);
  padding:30px;
  display:flex;
  flex-direction:column;
  text-decoration:none;
  transition:background .2s ease;
}
.creative-card:hover{background:var(--blue-deep)}
.creative-card h2{
  margin:0;
  font-size:22px;
  font-weight:700;
  line-height:1.2;
  letter-spacing:-.022em;
}
.creative-card p{margin:16px 0 0;font-size:14px;line-height:1.58;color:rgba(255,255,255,.84)}
.creative-card .go{
  margin-top:auto;
  padding-top:26px;
  display:flex;
  align-items:center;
  gap:10px;
  font-size:13px;
  font-weight:600;
  letter-spacing:.02em;
}
.creative-card .go svg{width:15px;height:15px}

/* --- Creative -----------------------------------------------------------
   The one dark view. Colours are swapped on the body so the shared header
   follows without a second copy of it. */
body.dark{background:#000;color:#fff}
body.dark nav a{color:rgba(255,255,255,.62)}
body.dark nav a:hover{color:#fff}
body.dark nav a[aria-current]{color:#fff}
body.dark nav a[aria-current]::after{background:var(--blue-light)}
body.dark nav a[data-inert]:hover{color:rgba(255,255,255,.62)}
body.dark .contact{background:#fff;color:#000}
body.dark .contact:hover{background:var(--blue-light);color:#000}

#view-creative{
  align-items:center;
  justify-content:center;
  padding:1vh 56px 3vh;
  text-align:center;
}

/* The video is the centrepiece: centred, 16:9 held by aspect-ratio so
   nothing jumps while it loads. Its height comes from the space actually
   left over, so the view lands on one screen at any window height. */
.player{
  height:clamp(230px, calc(100vh - 512px), 440px);
  aspect-ratio:16/9;
  width:auto;
  max-width:100%;
  background:#0B0B0B;
  border:1px solid rgba(255,255,255,.14);
  position:relative;
  overflow:hidden;
}
.player iframe{width:100%;height:100%;border:0;display:block}
/* Shown until a video id is set. */
.player .placeholder{
  position:absolute;inset:0;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:18px;
  color:rgba(255,255,255,.40);
}
.player .placeholder .play{
  width:74px;height:74px;
  border:2px solid rgba(255,255,255,.28);
  border-radius:50%;
  display:grid;place-items:center;
}
.player .placeholder svg{width:26px;height:26px;margin-left:4px}
.player .placeholder span{font-size:11px;letter-spacing:.2em;text-transform:uppercase}

.pitch{max-width:70ch;margin:36px auto 0}
.pitch .lead{
  margin:0;
  font-size:clamp(24px,2.6vw,34px);
  font-weight:700;
  line-height:1.22;
  letter-spacing:-.028em;
  color:#fff;
}
.pitch p{margin:18px 0 0;font-size:16.5px;line-height:1.65;color:rgba(255,255,255,.66)}
.pitch .close{margin-top:18px;font-size:16.5px;line-height:1.6;color:#fff;font-weight:600}

/* The three words, spaced out and ruled off. */
.disciplines{
  margin-top:34px;
  padding-top:24px;
  border-top:1px solid rgba(255,255,255,.14);
  display:flex;
  justify-content:center;
  align-items:center;
  gap:clamp(20px,3vw,46px);
  font-size:14px;
  font-weight:600;
  letter-spacing:.3em;
  text-transform:uppercase;
  color:#fff;
}
.disciplines i{font-style:normal;color:var(--blue-light)}

/* ==========================================================================
   CONTACT
   ========================================================================== */
#view-contact{padding:0 56px 60px}
.contact-wrap{
  display:grid;
  grid-template-columns:minmax(300px,1fr) minmax(420px,1.1fr);
  gap:clamp(40px,6vw,96px);
  align-items:start;
  padding-top:4vh;
}
.contact-intro h1{font-size:clamp(34px,4.2vw,56px)}
.contact-intro .sub{margin-top:22px;max-width:46ch}
.contact-detail{
  margin-top:30px;
  padding-top:24px;
  border-top:1px solid var(--hair);
  font-size:14px;
  line-height:1.7;
  color:var(--muted);
}
.contact-detail a{color:var(--blue);text-decoration:none}
.contact-detail a:hover{text-decoration:underline}

/* Secondary action: outlined, so "Send Message" stays the primary one. */
.book{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-top:20px;
  padding:13px 24px;
  border:1.5px solid var(--blue);
  color:var(--blue);
  background:transparent;
  font-size:14px;
  font-weight:600;
  letter-spacing:.01em;
  text-decoration:none;
  transition:background .18s ease, color .18s ease;
}
.book:hover{background:var(--blue);color:var(--white);text-decoration:none}
.book svg{width:16px;height:16px;flex:none}

form{display:grid;gap:18px}
.field{display:grid;gap:7px}
.field label{font-size:13px;font-weight:600;letter-spacing:.01em}
.field .opt{font-weight:400;color:var(--muted)}
.field input,.field select,.field textarea{
  font-family:inherit;
  font-size:15px;
  color:var(--ink);
  background:var(--white);
  padding:13px 14px;
  border:1px solid rgba(26,26,24,.28);
  border-radius:0;
  transition:border-color .15s ease, box-shadow .15s ease;
  width:100%;
}
.field textarea{min-height:130px;resize:vertical;line-height:1.55}
.field select{appearance:none;background-image:none;cursor:pointer}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none;
  border-color:var(--blue);
  box-shadow:0 0 0 3px rgba(38,92,154,.14);
}
.field.invalid input,.field.invalid select,.field.invalid textarea{border-color:#B3261E}
.field .err{font-size:12.5px;color:#B3261E;min-height:1em}

.row{display:grid;grid-template-columns:1fr 1fr;gap:18px}

/* Bots fill this in; people never see it. */
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

button[type=submit]{
  justify-self:start;
  font-family:inherit;
  font-size:14px;
  font-weight:600;
  letter-spacing:.01em;
  color:var(--white);
  background:var(--ink);
  border:0;
  padding:15px 34px;
  cursor:pointer;
  transition:background .18s ease;
}
button[type=submit]:hover{background:var(--blue)}
button[type=submit][disabled]{opacity:.55;cursor:default}

.form-note{
  font-size:14px;
  line-height:1.6;
  padding:14px 16px;
  border-left:3px solid var(--blue);
  background:rgba(38,92,154,.06);
}
.form-note.bad{border-left-color:#B3261E;background:rgba(179,38,30,.06)}
.form-note[hidden]{display:none}

/* ==========================================================================
   MOTION + NARROW SCREENS
   ========================================================================== */
@media (prefers-reduced-motion:reduce){
  .caret{display:none}
  .sub{opacity:1;transition:none}
  body{transition:none}
}

@media (max-width:1180px){
  .groups{grid-template-columns:repeat(2,1fr)}
  .contact-wrap{grid-template-columns:1fr;gap:38px}
}
@media (max-width:980px){
  header{grid-template-columns:auto auto;gap:20px;padding:20px 24px}
  nav{display:none}
  #view-home{padding:0 24px 8vh}
  #view-home .hero{max-width:none}
  /* Not enough room beside the copy, so it becomes a faint wash. */
  #spiral{right:-26vw;width:88vw;opacity:.13}
  .svc-view{padding:0 24px 56px}
  .groups{grid-template-columns:1fr;margin-top:40px}
  #view-creative{padding:1vh 24px 8vh}
  .pitch{margin-top:30px}
  .disciplines{margin-top:30px;letter-spacing:.18em;font-size:12px}
  #view-contact{padding:0 24px 48px}
  .row{grid-template-columns:1fr}
}
