/* ============================================================
   HIGHTYDE DESIGN — GLOBAL STYLESHEET
   ht_global.css
   Import this on every page before any page-specific styles.
   It covers: variables, reset, typography, buttons, animations,
   nav, footer, contact modal, and shared utility classes.
============================================================ */

/* ============================================================
   CSS CUSTOM PROPERTIES
============================================================ */
:root {
  --brand_forest:      #00201c;
  --brand_green:       #013832;
  --brand_teal:        #117c6f;
  --brand_glow:        #30d5c8;
  --brand_salt:        #f0f5f5;
  --brand_sand:        #bfbdb3;
  --brand_sand_dark:   #a8a69d;

  --font_heading: 'Alegreya Sans SC', sans-serif;
  --font_display: 'Montserrat', sans-serif;

  --radius_sm:  8px;
  --radius_md:  14px;
  --radius_lg:  24px;
  --radius_xl:  40px;

  --shadow_soft: 0 4px 24px rgba(0,0,0,0.12);
  --shadow_lift: 0 12px 48px rgba(0,0,0,0.22);

  --transition_fast: 200ms ease;
  --transition_med:  350ms ease;
  --transition_slow: 600ms ease;

  --nav_height: 75px;
  --site_margin: clamp(24px, 5vw, 80px);
  --section_pad_v: clamp(56px, 8vw, 96px);
  --content_max: 900px;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font_display);
  background: var(--brand_salt);
  color: var(--brand_forest);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font_heading); }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
p { line-height: 1.8; }

/* ============================================================
   SCROLL ANIMATION
============================================================ */
.fade_up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade_up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   GLOW SPIN KEYFRAME (used by all buttons)
============================================================ */
@keyframes glow_spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ============================================================
   BUTTONS
============================================================ */

/* --- Primary (sand fill) --- */
 /* Primary CTA Button */
    .btn_primary {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 14px 50px;
      border-radius: 999px;
      background: var(--brand_sand);
      color: var(--brand_forest);
      font-family: var(--font_heading);
      font-size: 14px;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      transition: transform var(--transition_fast), box-shadow var(--transition_fast), border-color var(--transition_fast);
    }

    .btn_primary::before {
      content: '';
      position: absolute;
      inset: -2px;
      border-radius: 999px;
      background: conic-gradient(from 0deg, transparent 0%, var(--brand_sand) 25%, transparent 50%);
      opacity: 0;
      transition: opacity var(--transition_fast);
      animation: glow_spin 1.8s linear infinite;
      z-index: 0;
    }
    .btn_primary::after {
      content: '';
      position: absolute;
      border-radius: 999px;
      background: rgba(13,23,20,0.4);
      z-index: 0;
    }
    .btn_primary span { position: relative; z-index: 1; }

    .btn_primary:hover {
      transform: scale(1.05);
      color: var(--brand_salt);
      box-shadow: 0 0 28px var(--brand_salt);
      border-color: var(--brand_sand);
    }
    .btn_primary:hover::before { opacity: 1; }

    /* Forest filled button */
    .btn_forest {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 14px 50px;
      border-radius: 999px;
      background: var(--brand_forest);
      color: var(--brand_salt);
      font-family: var(--font_heading);
      font-size: 14px;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      transition: transform var(--transition_fast), box-shadow var(--transition_fast);
    }

    .btn_forest::before {
      content: '';
      position: absolute;
      inset: -2px;
      border-radius: 999px;
      opacity: 0;
      transition: opacity var(--transition_fast);
      animation: glow_spin 1.8s linear infinite;
      z-index: 0;
    }

    .btn_forest span { position: relative; z-index: 1; }

    .btn_forest:hover {
      transform: scale(1.05);
      box-shadow: 0 0 28px var(--brand_salt);
    }
    .btn_forest:hover::before { opacity: 1; }


/* ============================================================
   NAV BAR
============================================================ */

.mobile_hero_logo {
  display: none;
}

.nav_bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  height: var(--nav_height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--site_margin);
  background: transparent;
  transition: background var(--transition_med), backdrop-filter var(--transition_med);
}
.nav_bar.scrolled {
  background: rgba(0,32,28,0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(240,245,245,0.08);
}
.nav_logo img { height: 44px; width: auto; object-fit: contain; }
.nav_links { display: flex; align-items: center; gap: 32px; }
.nav_links a {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand_salt); opacity: 0.82;
  transition: opacity var(--transition_fast);
  text-decoration: none;
  border-bottom: none !important;
}
.nav_links a:hover { opacity: 1; }
.nav_pill {
  display: inline-flex; align-items: center; padding: 10px 22px;
  border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand_salt); background: var(--brand_forest);
  border: 1.5px solid rgba(240,245,245,0.3); cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform var(--transition_fast), box-shadow var(--transition_fast);
}
.nav_pill::before {
  content: ''; position: absolute; inset: -2px; border-radius: 999px;
  background: conic-gradient(from 0deg, transparent 0%, var(--brand_glow) 25%, transparent 50%);
  opacity: 0; transition: opacity var(--transition_fast);
  animation: glow_spin 1.8s linear infinite; z-index: 0;
}
.nav_pill::after {
  content: ''; position: absolute; inset: 1.5px;
  border-radius: 999px; background: var(--brand_forest); z-index: 0;
}
.nav_pill span { position: relative; z-index: 1; }
.nav_pill:hover { transform: scale(1.06); box-shadow: 0 0 20px rgba(48,213,200,0.35); }
.nav_pill:hover::before { opacity: 1; }

/* Floating FAB hamburger — hidden on desktop */
.nav_hamburger {
  display: none;
  flex-direction: column; gap: 5px; cursor: pointer;
  position: fixed; right: 16px; bottom: 24px;
  width: 52px; height: 52px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  z-index: 82; align-items: center; justify-content: center;
  transition: transform var(--transition_fast), box-shadow var(--transition_fast);
}
.nav_hamburger:hover { transform: scale(1.08); }
.nav_hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--brand_forest); border-radius: 2px;
  transition: transform var(--transition_fast), opacity var(--transition_fast);
}
.nav_hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav_hamburger.open span:nth-child(2) { opacity: 0; }
.nav_hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile sheet */
.mobile_sheet {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: 78; display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: 40px 32px; gap: 16px; text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition_med);
}
.mobile_sheet.open { opacity: 1; pointer-events: auto; }
.mobile_sheet a {
  display: block; width: 100%; max-width: 280px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 14px 24px; border-radius: 50px;
  letter-spacing: 0.12em; text-transform: uppercase;
  font-size: 16px; font-weight: 700;
  color: rgba(13,23,20,0.86); font-family: var(--font_heading);
  transition: transform var(--transition_fast), box-shadow var(--transition_fast);
}
.mobile_sheet a:hover { transform: scale(1.03); }

/* Menu overlay */
.menu_overlay {
  position: fixed; inset: 0;
  background: rgba(1,15,3,0.5);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none;
  transition: opacity 200ms ease; z-index: 75;
}
.menu_overlay.is-open { opacity: 1; pointer-events: auto; }

/* ============================================================
   FOOTER
============================================================ */
.site_footer {
  background: var(--brand_forest);
  padding: 40px var(--site_margin);
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 24px;
}
.footer_logo img { height: 44px; width: auto; object-fit: contain; opacity: 0.85; }
.footer_info { text-align: right; }
.footer_name {
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--brand_salt); margin-bottom: 6px;
}
.footer_links { display: flex; flex-direction: column; gap: 3px; align-items: flex-end; }
.footer_links a {
  font-size: 12px; font-weight: 400; letter-spacing: 0.06em;
  color: rgba(240,245,245,0.55); transition: color var(--transition_fast);
}
.footer_links a:hover { color: var(--brand_salt); }

/* ============================================================
   CONTACT MODAL
============================================================ */
.contact_overlay {
  position: fixed; inset: 0; background: rgba(10,15,20,0.45);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity 200ms ease; z-index: 90;
}
.contact_overlay.is-open { opacity: 1; pointer-events: auto; }
.contact_modal {
  position: fixed; left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(0.98);
  width: min(560px, calc(100vw - 50px)); max-height: calc(90vh - 50px);
  overflow: auto; background: var(--brand_salt); border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.35); padding: 18px 18px 16px;
  opacity: 0; pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease; z-index: 95; color: #0d1714;
}
.contact_modal.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%,-50%) scale(1); }
.contact_close {
  position: absolute; right: 10px; top: 10px; width: 38px; height: 38px;
  border-radius: 999px; border: 1px solid rgba(13,23,20,0.12);
  background: rgba(255,255,255,0.9); cursor: pointer; font-size: 22px; line-height: 1;
}
.contact_header { display: grid; gap: 10px; justify-items: center; padding: 0 0 14px; }
.contact_logo { width: min(260px, 70%); height: auto; object-fit: contain; }
.contact_email {
  font-family: var(--font_heading); letter-spacing: .08em;
  font-size: 12px; text-transform: uppercase; color: rgba(13,23,20,0.78);
}
.contact_form { display: grid; gap: 12px; }
.contact_grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact_grid .full { grid-column: 1 / -1; }
.field label {
  display: block; font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(13,23,20,0.70); margin: 2px 0 6px;
  font-family: var(--font_heading);
}
.field input, .field textarea {
  width: 100%; border-radius: 10px; border: 1px solid rgba(13,23,20,0.14);
  background: var(--brand_sand); padding: 12px; font-size: 14px;
  outline: none; font-family: var(--font_display);
}
.field textarea { resize: vertical; min-height: 110px; }
.checkbox_row { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: rgba(13,23,20,0.78); }
.checkbox_row input { margin-top: 2px; }
.contact_submit {
  width: 100%; border-radius: 10px; border: 1px solid rgba(13,23,20,0.14);
  background: var(--brand_forest); color: var(--brand_salt); padding: 12px 14px;
  cursor: pointer; font-family: var(--font_heading); letter-spacing: .12em;
  font-weight: 800; font-size: 14px;
  transition: transform var(--transition_fast), box-shadow var(--transition_fast);
}
.contact_submit:hover { transform: scale(1.02); box-shadow: 0 0 16px rgba(48,213,200,0.3); }
.contact_status { font-size: 14px; letter-spacing: .06em; color: rgba(13,23,20,0.70); min-height: 16px; }
.privacy_details summary {
  cursor: pointer; font-family: var(--font_heading); letter-spacing: .10em;
  font-size: 12px; color: rgba(13,23,20,0.70); list-style: none;
}
.privacy_details summary::-webkit-details-marker { display: none; }
.privacy_body {
  margin-top: 10px; padding: 12px; border-radius: 14px;
  background: rgba(13,23,20,0.03); border: 1px solid rgba(13,23,20,0.10);
  font-size: 14px; color: rgba(13,23,20,0.78);
}

/* ============================================================
   UTILITY
============================================================ */
.text_center { text-align: center; }
.mt_8  { margin-top: 8px; }
.mt_16 { margin-top: 16px; }
.mt_24 { margin-top: 24px; }
.mt_32 { margin-top: 32px; }
.section_header_wrap { max-width: 1200px; margin: 0 auto; }
.section_label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--brand_teal); margin-bottom: 10px;
}
.section_title {
  font-size: clamp(24px, 3.5vw, 40px); font-weight: 800;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--brand_forest); margin-bottom: 8px;
}
.section_sub {
  font-family: var(--font_display); font-style: italic;
  font-size: clamp(14px, 1.6vw, 17px); color: rgba(1,56,50,0.55); margin-bottom: 48px;
}

/* ============================================================
   RESPONSIVE — SHARED
============================================================ */
@media (max-width: 900px) {
  :root { --site_margin: 20px; --section_pad_v: clamp(48px, 10vw, 72px); }
  .nav_logo { display: none; }
 
  /* Show large centred logo */
  .mobile_hero_logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: clamp(48px, 12vw, 72px);
    width: 100%;
    position: relative;
    z-index: 3;

  }
 
  .mobile_hero_logo img {
    width: clamp(160px, 55vw, 260px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.3));
  }
  .nav_links { display: none; }
  .nav_bar, .nav_bar.scrolled {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
  }
  .nav_hamburger { display: flex; }
  .site_footer { flex-direction: column; align-items: center; text-align: center; }
  .footer_info { text-align: center; }
  .footer_links { align-items: center; }
}
@media (max-width: 520px) {
  .contact_grid { grid-template-columns: 1fr; }
}