/* ==========================================================================
   Fjelvik — design tokens, reset, primitives
   One file drives the whole template. Change a colour here, not in a page.
   ========================================================================== */

:root {
  /* Skylink sky and sand palette ----------------------------------------- */
  --primary:          #0284C7;
  --primary-hover:    #0369A1;
  --primary-active:   #075985;
  --primary-light:    #38BDF8;
  --primary-soft:     #E0F2FE;
  --secondary:        #FDE68A;
  --secondary-hover:  #FACC15;
  --secondary-soft:   #FEF9C3;
  --accent:           #70D3FC;

  --fog:              #F5FBFF;
  --paper:            #FFFFFF;
  --fog-deep:         #E8F4FA;
  --line:              #D7EAF4;
  --line-strong:       #7DD3FC;
  --pine:              #0F2D3D;
  --pine-soft:         #486581;
  --pine-mute:         #829AB1;
  --pine-night:        #F5FBFF;
  --glacier:           #E0F2FE;
  --glacier-hi:        #F0F9FF;
  --glacier-deep:      #7DD3FC;
  --snow:              #FFFFFF;
  --snow-soft:         rgba(255, 255, 255, .9);
  --snow-line:         rgba(255, 255, 255, .38);

  --text-disabled:    #A9B8C2;
  --icon-primary:     #0284C7;
  --icon-secondary:   #0F2D3D;
  --icon-muted:       #829AB1;
  --icon-active:      #38BDF8;
  --focus:             #0284C7;
  --success:           #16A34A;
  --success-soft:      #DCFCE7;
  --warning:           #F59E0B;
  --warning-soft:      #FEF3C7;
  --error:             #DC2626;
  --error-soft:        #FEE2E2;
  --info:              #0284C7;
  --info-soft:         #E0F2FE;
  --premium:           #F4B400;
  --premium-soft:      #FEF9C3;
  --shadow-color:      rgba(2, 132, 199, .15);
  --photo-overlay:     rgba(15, 45, 61, .72);

  --font-display: "Inter", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "Inter", ui-monospace, monospace;

  --text-xs:   .72rem;
  --text-sm:   .8125rem;
  --text-base: .9375rem;
  --text-md:   .9375rem;
  --text-lg:   1.125rem;
  --text-xl:   1.375rem;
  --text-2xl:  clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --text-hero: clamp(2rem, 1.4rem + 2.4vw, 3.4rem);

  --container: 1240px;
  --gutter:    clamp(1rem, .5rem + 2vw, 2.25rem);
  --section:   clamp(2rem, 1.2rem + 1.6vw, 3.25rem);

  --r-sm:   6px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-pill: 999px;

  --shadow-card: 0 1px 2px rgba(2, 132, 199, .08), 0 18px 48px -18px rgba(2, 132, 199, .15);
  --shadow-lift: 0 30px 70px -30px rgba(2, 132, 199, .26);

  --ease:     cubic-bezier(.2, .7, .2, 1);
  --dur-fast: 160ms;
  --dur:      320ms;

  --z-header: 200;
  --z-menu:   220;
}

/* Reset ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--fog);
  color: var(--pine-soft);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  margin: 0;
  color: var(--pine);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
}
p { margin: 0; }
a { color: var(--primary); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--primary-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.on-photo :focus-visible { outline-color: var(--snow); }
.header a { color: inherit; }
.header a:hover { color: var(--primary-light); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Layout primitives ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--primary); color: var(--snow);
  padding: .7rem 1.1rem; border-radius: var(--r-pill);
  transition: top var(--dur-fast) var(--ease);
}
.skip:focus { top: 1rem; }

.meta {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--pine-mute);
}

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.5rem;
  border: 1px solid transparent; border-radius: var(--r-pill);
  font-weight: 500; font-size: var(--text-base); line-height: 1;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--dark  { background: var(--primary); color: #FFFFFF; }
.btn--dark:hover { background: var(--primary-hover); }
.btn--dark:active { background: var(--primary-active); }
.btn--glacier { background: var(--secondary); color: #172B3A; }
.btn--glacier:hover { background: var(--secondary-hover); }
.btn--ghost { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn--ghost:hover { border-color: var(--primary); background: var(--primary-soft); }
.btn--outline-snow { border-color: var(--snow-line); color: var(--snow); }
.btn--outline-snow:hover { background: var(--snow); color: var(--pine); border-color: var(--snow); }
.btn--block { width: 100%; }

/* The tourex "pill + circle" call to action */
.cta-orbit {
  display: inline-flex; align-items: center; gap: 0;
  border-radius: var(--r-pill);
  font-weight: 500;
}
.cta-orbit__text {
  display: inline-flex; align-items: center;
  min-height: 60px; padding: 0 3.6rem 0 1.8rem;
  border-radius: var(--r-pill);
  background: var(--primary); color: #FFFFFF;
  transition: background var(--dur-fast) var(--ease);
}
.cta-orbit__dot {
  display: grid; place-items: center;
  width: 60px; height: 60px; margin-left: -2.4rem;
  border-radius: 50%;
  background: var(--primary-active); color: var(--snow);
  box-shadow: 0 0 0 5px #FFFFFF;
  transition: transform var(--dur) var(--ease);
}
.cta-orbit__dot svg { width: 22px; height: 22px; }
.cta-orbit:hover .cta-orbit__text { background: var(--primary-hover); }
.cta-orbit:hover .cta-orbit__dot { transform: rotate(45deg); }

/* Form fields ------------------------------------------------------------- */
.field { display: grid; gap: .5rem; }
.field__label { font-size: var(--text-sm); color: var(--pine); font-weight: 500; }
.input {
  display: flex; align-items: center; gap: .65rem;
  width: 100%; min-height: 50px; padding: 0 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  color: var(--pine); font-size: var(--text-sm);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.input svg { width: 18px; height: 18px; flex: none; color: var(--pine-mute); }
.input input, .input select {
  flex: 1 1 0; width: 0; min-width: 0; height: 48px;
  border: 0; background: transparent; outline: none;
  appearance: none; -webkit-appearance: none;
}
.input:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px var(--glacier); }
select.input {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23121f3f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px;
  padding-right: 2.4rem;
  cursor: pointer;
}
select.input::-ms-expand { display: none; }
textarea.input { min-height: 140px; padding: 1rem 1.2rem; border-radius: var(--r-md); resize: vertical; }
