/*******************************************************
 * BRINK XR v2 - GLOBAL STYLES
 *******************************************************/





/*************
 * VARIABLES *
 *************/
:root {
  --max:          1500px;
  --max-narrow:   1100px;
  --max-text:      800px;


  --fs:           16px;
  --fs-mobile:    15px;

  --fs-title-xl:  clamp(3.0rem, 7.5vw, 6.5rem);   /* 45 -104  home hero            */
  --fs-title-lg:  clamp(2.2rem, 4.5vw, 4.0rem);   /* 33 - 64  page titles          */
  --fs-title-md:  clamp(1.8rem, 3.5vw, 3.0rem);   /* 27 - 48  section titles       */
  --fs-title-sm:  clamp(1.4rem, 2.5vw, 2.0rem);   /* 21 - 32  sub + legal titles   */
  --fs-eyebrow:   0.85rem;                        /*      14  section eyebrows     */

  --fs-body-lg:   1.20rem;                        /*      19  lede, card title     */
  --fs-body-md:   1.00rem;                        /*      16  body copy            */
  --fs-body-sm:   0.95rem;                        /*      15  secondary copy       */
  --fs-body-xs:   0.80rem;                        /*      13  buttons, nav, labels */


  --text:        #EEEEEE;
  --text-mid:    #B3B3B3;
  --text-dim:    #888888;

  --gold:        #FABE00;
  --gold-dark:   #E69600;
  --gold-dim:    rgba(200, 160, 40, 0.05);
  --gold-border: rgba(200, 160, 40, 0.30);
  --gold-line:   rgba(250, 190, 0, 0.55);

  --bg:          #0A0A0A;
  --bg-2:        #141416;
  --bg-3:        #111115;

  --border:      rgba(255, 255, 255, 0.05);
  --border-m:    rgba(255, 255, 255, 0.10);
  --border-s:    rgba(255, 255, 255, 0.15);

  --shadow-text: 0px 1px 10px rgba(0, 0, 0, 0.5);

  --radius-lg:    18px;
  --radius:       12px;
  --radius-sm:    6px;

  --ease:         cubic-bezier(0.25, 0.10, 0.25, 1);
  --ease-out:     cubic-bezier(0.00, 0.00, 0.20, 1);
  --ease-pop:     cubic-bezier(0.20, 0.80, 0.20, 1);
}





/****************
 * RESET & BASE *
 ****************/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
}

html {
  scroll-behavior: smooth;
  font-size: var(--fs);
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

[hidden] {
  display: none !important;
}





/***********
 * FONTS *
************/
/* Inter */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('/assets/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: url('/assets/fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('/assets/fonts/inter-600.woff2') format('woff2');
}





/**************
 * TYPOGRAPHY *
 **************/
:root {
  --font-title: Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

h1 { font-size: var(--fs-title-lg); }
h2 { font-size: var(--fs-title-md); }
h3 { font-size: var(--fs-title-sm); }
h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.eyebrow{
  display: block;
  font-size: var(--fs-eyebrow);
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

em { font-style: italic; }
h1 em, h2 em, h3 em { color: var(--gold-dark); }

p {
  color: var(--text-mid);
  font-size: var(--fs-body-md);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}
p:last-of-type {
  margin-bottom: 0;
}

a {
  text-decoration: none;
  color: var(--gold);
  transition: color 0.2s;
}
a:hover { 
  color: var(--gold-dark); 
}

.gold {
  color: var(--gold);
}





/*******************
 * SHARED ELEMENTS *
 *******************/

/* Sections */
section[id] {
  position: relative;
  scroll-margin-top: 70px;
}

.section-inner {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2.5rem;
}
.section-inner.narrow {
  max-width: var(--max-narrow);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header h2 {
  margin-bottom: 1rem;
}
.section-header p {
  max-width: 750px;
  margin: 0 auto;
  color: var(--text-mid);
  font-size: var(--fs-body-md);
}

/* Gold Divider */
.line {
  display: block;
  width: min(360px, 80%);
  height: 1px;
  margin: 1.25rem auto;
  background: var(--gold);
}

/* Cards */
.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.3s, background 0.3s;
}
.card:hover {
  border-color: var(--gold-border);
  background: var(--gold-dim);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: var(--font-body);
  font-size: var(--fs-body-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--gold-dark);
  color: #000;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: all 0.22s var(--ease);
}
.button:hover {
  background: var(--gold);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--gold-border);
}
.button:disabled {
  background: #555;
  color: #999;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Arrows */
.arrow {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask: url('/assets/images/icons/arrow.svg') center / contain no-repeat;
          mask: url('/assets/images/icons/arrow.svg') center / contain no-repeat;
}
.chevron {
  -webkit-mask-image: url('/assets/images/icons/chevron.svg');
          mask-image: url('/assets/images/icons/chevron.svg');
}

.arrow--up    { transform: rotate(0deg); }
.arrow--right { transform: rotate(90deg); }
.arrow--down  { transform: rotate(180deg); }
.arrow--left  { transform: rotate(270deg); }

/* Country flags */
.flag {
  display: block;
  flex: 0 0 auto;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  background-image: var(--flag);
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

/* Placeholder  */
.placeholder {
  background-color: var(--bg-2);
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 12px);
}

/* IFrames */
iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Marquee / Ticker */
.marquee-wrap  {
  overflow: hidden;
}
.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

@keyframes marqueeLeft  { from { transform: translateX(0);    } to { transform: translateX(-50%); } }
@keyframes marqueeRight { from { transform: translateX(-50%); } to { transform: translateX(0);    } }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-play-state: paused; }
}





/*************
 * PAGE HERO *
 *************/
.page-hero {
  padding: 10rem 0 5rem;
  background:
    linear-gradient(
      rgba(8,8,8,0.7),
      rgba(8,8,8,0.9)
    ),
    url('/assets/images/backgrounds/bg_mountain.webp') center center / cover no-repeat;
  text-align: center;
}
.page-hero h1 {
  margin-bottom: 0.5rem;
}
.page-hero a {
  margin-top: 4rem;
}





/**************
 * NAVIGATION *
 **************/
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 2rem;
}
#nav-overlay.open {
  display: flex;
}
#nav-overlay a {
  font-size: var(--fs-body-lg);
  letter-spacing: 0.1em;
  color: var(--text-mid);
  text-transform: uppercase;
}
#nav-overlay a:hover { 
  color: var(--text);
}

#nav.scrolled {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2.5rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}
.nav-logo:hover {
  opacity: 0.8;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.nav-links a {
  font-size: var(--fs-body-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s;
  position: relative;
}

#nav.scrolled .nav-links a {
  color: var(--text-mid);
  text-shadow: none;
}

#nav.scrolled .nav-links a:hover,
#nav.scrolled .nav-links a.active {
  color: var(--text);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0.3rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.28s var(--ease);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px)  rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }





/**********
 * FOOTER *
 **********/
#footer {
  background: #050505;
  border-top: 1px solid var(--border);
}

.footer-inner {
  padding-top: 4.5rem;
  padding-bottom: 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 320px;
}

.footer-logo {
  width: 180px;
  height: auto;
  display: inline-flex;
  transition: opacity 0.2s;
}

.footer-logo:hover {
  opacity: 0.7;
}

.footer-tagline {
  font-size: var(--fs-body-xs);
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}


.footer-social a {
  color: var(--text-dim);
  display: flex;
  align-items: center;
}

.footer-social a:hover {
  color: var(--text);
}

.footer-base {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

.footer-links a {
  font-size: var(--fs-body-xs);
  color: var(--text-mid);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  padding-top: 1rem;
  border-top: 1px solid var(--border-m);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  text-align: right;
}

.footer-copy p {
  font-size: var(--fs-body-xs);
  color: var(--text-dim);
}





/****************
 * CONTACT FORM *
 ****************/
.contact-form {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: var(--fs-body-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold-border);
  background: rgba(200, 160, 40, 0.03);
}

.form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.form-alt-contact {
  font-size: var(--fs-body-xs);
  color: var(--text-dim);
}

.form-success {
  /* Sits outside the form so it survives the form being hidden on submit -
     it carries the form's own width and centring rather than inheriting them. */
  max-width: 800px;
  margin: 1rem auto 0;
  padding: 1rem 1.25rem;
  background: rgba(200, 160, 40, 0.1);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: var(--fs-body-sm);
  color: var(--gold-dark);
}

/* Honeypot Anti-Spam Fields */
.form-group:has(#cf-address) {
  display: none;
}





/**************************
 * RESPONSIVE BREAKPOINTS *
 **************************/

/* DESKTOP */
@media (max-width: 1600px) {}

/* SMALL DESKTOPS / LARGE TABLETS */
@media (max-width: 1280px) {
  /* Footer */
  .footer-links { gap: 1rem; }
}

/* TABLETS / PHONES */
@media (max-width: 960px) {
  :root { font-size: var(--fs-mobile); }

  /* Main Layout */
  .section-inner,
  .nav-inner { padding-left: 1.5rem; padding-right: 1.5rem; }
  .section-header { margin-bottom: 2.5rem; }

  /* Nav */
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .footer-brand { max-width: 100%; align-items: center; }
  .footer-base { align-items: center; }
  .footer-links { align-items: center; gap: 2rem; }
  .footer-social { gap: 2rem; }
  .footer-copy { margin-top: 1rem; align-items: center; text-align: center; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; align-items: center; gap: 1rem; }

}

/* PHONES */
@media (max-width: 640px) {}





/******************
 * REDUCED MOTION *
 ******************/
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { 
    scroll-behavior: auto; 
  }

  .reveal { 
    opacity: 1;
    transform: none;
  }
}