/* ==========================================================================
   G.S. CONSTRUCTION - CALEDONIAN LUXURY EDITORIAL DESIGN SYSTEM
   ========================================================================== */

/* High-Performance Typography Import (Only Active Weights Loaded) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

:root {
  /* Caledonian-Inspired Palette with G.S. Construction Signature Colors */
  --c-bg: #FFFFFF;
  --c-bg-alt: #F7F7F6;
  --c-bg-dark: #0D0D0F;
  --c-bg-darker: #070709;
  
  --c-text: #141416;
  --c-text-muted: #4A4A52; /* Enhanced contrast for high legibility */
  --c-text-light: #F4F4F5;
  
  --c-border: #E5E5E3;
  --c-border-dark: #26262B;
  
  /* Brand Accent: Signature GS Construction Precision Orange */
  --c-accent: #FF5E1E;
  --c-accent-hover: #E04D12;
  --c-accent-light: rgba(255, 94, 30, 0.08);
  --c-accent-glow: rgba(255, 94, 30, 0.25);

  /* Typography Variables */
  --f-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout Containers */
  --container-max: 1440px;
  --container-medium: 1240px;
  --container-small: 980px;
  --header-height: 84px;

  /* Transitions */
  --ease-caledonian: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-color: var(--c-bg);
  color: var(--c-text);
}

body {
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.68;
  letter-spacing: -0.012em;
  color: var(--c-text);
  background-color: var(--c-bg);
  overflow-x: hidden;
  position: relative;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

body.no-scroll {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

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

/* ==========================================================================
   Editorial Typography Hierarchy (Architectural Tracking)
   ========================================================================== */
.title {
  font-family: var(--f-heading);
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: var(--c-text);
  font-weight: 500;
}

.title strong {
  font-weight: 800;
  color: var(--c-accent);
}

.title--hero {
  font-size: clamp(2.4rem, 4.8vw, 4.4rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 20px;
  font-weight: 600;
}

.title--section {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.05;
  font-weight: 600;
}

.title--medium {
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  line-height: 1.15;
  font-weight: 600;
}

.title--small {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

/* Micro-Labels & Category Badges */
.label {
  font-family: var(--f-heading);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--c-text-muted);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.label--accent {
  color: var(--c-accent);
}

.subline {
  font-family: var(--f-heading);
  font-size: clamp(0.88rem, 1.25vw, 1.12rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 16px;
  display: block;
}

/* Body Content Typography */
.wysiwyg {
  font-size: 1.02rem;
  color: var(--c-text-muted);
  line-height: 1.68;
}

.wysiwyg--medium {
  font-size: 1.08rem;
  line-height: 1.65;
  color: #3A3A40;
}

.wysiwyg--large {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.55;
  color: #2E2E33;
}

.wysiwyg--xlarge {
  font-family: var(--f-heading);
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.wysiwyg--orange {
  color: var(--c-accent) !important;
}

.wysiwyg--white {
  color: var(--c-text-light) !important;
}

/* Engineering Numeric Figures */
.val,
.story-metric-value,
.spec-pill,
.spec-highlight {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ==========================================================================
   Caledonian Circular Icon Link & Buttons
   ========================================================================== */
.link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-transform: uppercase;
  font-family: var(--f-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--c-text);
  margin-top: 20px;
  transition: transform var(--transition-fast);
}

.link .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--c-text);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all var(--transition-normal);
}

.link .icon svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform var(--transition-fast);
}

.link:hover .icon {
  background-color: var(--c-accent);
  border-color: var(--c-accent);
  color: #FFFFFF;
  transform: translateX(4px);
}

.link--white {
  color: #FFFFFF;
}

.link--white .icon {
  border-color: rgba(255, 255, 255, 0.4);
}

.button--border {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  border: 1px solid var(--c-text);
  border-radius: 9999px;
  font-family: var(--f-heading);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  transition: all var(--transition-normal);
}

.button--border:hover {
  background-color: var(--c-accent);
  border-color: var(--c-accent);
  color: #FFFFFF;
}

.button--border-white {
  border-color: rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
}

.button--border-white:hover {
  background-color: var(--c-accent);
  border-color: var(--c-accent);
  color: #FFFFFF;
}

/* ==========================================================================
   Container System
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 4vw, 60px);
  padding-right: clamp(20px, 4vw, 60px);
}

.container--medium {
  max-width: var(--container-medium);
}

.container--small {
  max-width: var(--container-small);
}

.container--full {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* Section Spacing - Unified Tight Rhythm */
.section {
  padding-top: clamp(48px, 5.5vw, 76px);
  padding-bottom: clamp(48px, 5.5vw, 76px);
  position: relative;
}

.section--subpage-hero {
  padding-top: calc(var(--header-height) + 28px);
  padding-bottom: 40px;
}

.section--dark {
  background-color: var(--c-bg-dark);
  color: var(--c-text-light);
}

.section--dark .title {
  color: var(--c-text-light);
}

.section--dark .wysiwyg {
  color: #A1A1AA;
}

.section--alt {
  background-color: var(--c-bg-alt);
}

/* ==========================================================================
   Scroll Reveal & Parallax Motion Classes
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--scale {
  opacity: 0;
  transform: scale(0.96) translateY(20px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--scale.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.reveal-stagger > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.35s; }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--c-bg);
}
::-webkit-scrollbar-thumb {
  background: #C4C4C4;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--c-accent);
}

/* ==========================================================================
   Caledonian Custom Pointer (Desktop View Only - Completely Hidden on Mobile)
   ========================================================================== */
.cursor-dot,
.cursor-ring {
  display: none;
}

@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  .cursor-dot {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: var(--c-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: opacity 0.25s ease, background-color 0.2s ease, width 0.2s ease, height 0.2s ease;
    opacity: 0;
    will-change: transform;
  }

  .cursor-ring {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border: 1.5px solid rgba(255, 94, 30, 0.45);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease, width 0.25s var(--ease-caledonian), height 0.25s var(--ease-caledonian), border-color 0.25s ease, background-color 0.25s ease;
    opacity: 0;
    will-change: transform;
  }

  .cursor-ring.is-hover {
    width: 52px;
    height: 52px;
    border-color: var(--c-accent);
    background-color: rgba(255, 94, 30, 0.08);
  }

  .cursor-ring.is-media-hover {
    width: 68px;
    height: 68px;
    border-color: rgba(255, 255, 255, 0.85);
    background-color: rgba(255, 94, 30, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  .cursor-dot.is-media-hover {
    background-color: #FFFFFF;
    width: 8px;
    height: 8px;
  }
}

/* Explicitly disable and suppress anywhere on mobile & touch screens */
@media (max-width: 1024px), (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

