/* ==========================================================================
   GHA CONSTRUCTION — PREMIUM LIGHT-THEME LANDING PAGE STYLESHEET
   ========================================================================== */

/* Color Tokens & Reset */
:root {
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Premium Light Theme Palette */
  --bg-primary: #ffffff;      /* Pure white */
  --bg-secondary: #f1f5f9;    /* Soft warm light gray */
  --bg-tertiary: #e2e8f0;     /* Muted outline/accent gray */
  
  --accent: #d97706;          /* Deep Amber for high-contrast readability */
  --accent-hover: #b45309;    /* Dark Amber */
  --accent-light: #fef3c7;    /* Light amber background */
  --accent-rgb: 217, 119, 6;
  --accent-glow: rgba(217, 119, 6, 0.08);

  --text-primary: #0f172a;    /* Deep Slate 900 for solid readability */
  --text-secondary: #334155;  /* Slate 700 */
  --text-muted: #64748b;      /* Slate 500 */
  
  /* Light Glassmorphism settings */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(15, 23, 42, 0.06);
  --glass-shadow: rgba(15, 23, 42, 0.05);
  --modal-bg: rgba(255, 255, 255, 0.95);

  /* Layout Constants */
  --header-height: 80px;
  --max-width: 1280px;
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-secondary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   1. PREMIUM PRELOADER
   ========================================================================== */
.preloader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-primary);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  text-align: center;
}

.preloader-spinner-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 24px auto;
}

.circular-loader {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.loader-path-bg {
  stroke: rgba(0, 0, 0, 0.04);
}

.loader-path {
  stroke: var(--accent);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.15s linear;
}

.loader-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.loader-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.loader-subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  font-weight: 400;
}

/* ==========================================================================
   2. STICKY HEADER & NAV
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: rgba(248, 250, 252, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  background-color: rgba(248, 250, 252, 0.9);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  height: 70px;
}

.header-container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.logo-accent {
  color: var(--accent);
  font-weight: 900;
}

.logo-sub {
  font-weight: 400;
  color: var(--text-muted);
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-bounce);
  border: none;
  gap: 8px;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.75rem;
  border-radius: 6px;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.2);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.35);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--bg-tertiary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.btn-secondary:hover {
  background-color: var(--bg-secondary);
  transform: translateY(-2px);
  border-color: rgba(15, 23, 42, 0.15);
}

.btn-block {
  width: 100%;
}

/* Badge component */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: var(--accent-light);
  border: 1px solid rgba(217, 119, 6, 0.18);
  color: var(--accent-hover);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 30px;
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
}

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 10%, var(--accent) 70%, #92400e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   3. PREMIUM HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--bg-primary);
  z-index: 1;
}

/* Background Grids & Blobs */
.bg-grid-overlay {
  display: none;
}

.bg-blur-blob {
  display: none;
}

/* Grid Layout */
.hero-grid-container {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.hero-content-col {
  position: relative;
  padding-left: calc((100vw - var(--max-width)) / 2 + 24px);
}

.hero-visual-col {
  width: 100%;
  height: 100%;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.2vw, 4rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-description {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-cta-wrapper {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.icon-play-btn {
  margin-right: 2px;
  transition: transform 0.2s ease;
}
.btn-secondary:hover .icon-play-btn {
  transform: scale(1.1);
}

/* ==========================================================================
   4. RIGHT COLUMN VIDEO SHOWCASE
   ========================================================================== */
.hero-visual-col {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 100%;
  min-height: 400px;
}

.video-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  z-index: 2;
}

#construction-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   5. CONTACT FORM MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.modal-card {
  background: radial-gradient(circle at 100% 0%, rgba(217, 119, 6, 0.03) 0%, transparent 60%),
              #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12);
  border-radius: 20px;
  width: 92%;
  max-width: 580px;
  padding: 40px;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.btn-close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--bg-tertiary);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: var(--transition-smooth);
}

.btn-close-modal:hover {
  color: var(--text-primary);
  background-color: var(--bg-tertiary);
  border-color: rgba(15, 23, 42, 0.15);
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.modal-subtitle {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.5;
}

.cta-form {
  display: flex;
  flex-direction: column;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.cta-form label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.cta-form input, .cta-form textarea {
  background-color: var(--bg-secondary);
  border: 1px solid var(--bg-tertiary);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.cta-form input::placeholder, .cta-form textarea::placeholder {
  color: #94a3b8;
}

.cta-form input:focus, .cta-form textarea:focus {
  border-color: var(--accent);
  outline: none;
  background-color: #ffffff;
  box-shadow: 0 0 12px rgba(217, 119, 6, 0.12);
}

/* ==========================================================================
   6. RESPONSIVE BREAKPOINTS (MEDIA QUERIES)
   ========================================================================== */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
  .hero-content-col {
    padding-left: calc((100vw - var(--max-width)) / 2 + 24px);
  }
}

/* Desktop (1200px - 1399px) */
@media (max-width: 1399px) {
  .hero-content-col {
    padding-left: calc((100vw - var(--max-width)) / 2 + 24px);
  }
}

/* Small Desktop / Large Laptop (992px - 1199px) */
@media (max-width: 1199px) {
  .hero-content-col {
    padding-left: 60px;
  }
}

/* Tablet Landscape (992px - 1024px) */
@media (max-width: 992px) {
  .hero-grid-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content-col {
    padding: 0 40px;
    text-align: center;
    order: 1;
  }

  .hero-visual-col {
    order: 2;
    min-height: 300px;
  }

  .hero-section {
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: 60px;
    min-height: auto;
  }

  .hero-description {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-wrapper {
    justify-content: center;
  }

  .video-container {
    max-width: 100%;
    margin: 0 auto;
    border-radius: 16px;
  }

  .nav-menu {
    display: none;
  }
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991px) {
  .hero-content-col {
    padding: 0 32px;
  }

  .hero-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
  }

  .badge {
    margin-bottom: 16px;
  }
}

/* Mobile Landscape (600px - 767px) */
@media (max-width: 767px) {
  .hero-section {
    padding-top: 90px;
    padding-bottom: 50px;
  }

  .hero-content-col {
    padding: 0 24px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .video-container {
    border-radius: 12px;
    margin: 0 24px;
  }
}

/* Mobile Portrait (≤599px) */
@media (max-width: 599px) {
  .site-header {
    height: 65px;
  }

  .header-container {
    padding: 0 16px;
  }

  .logo {
    font-size: 1.1rem;
  }

  .hero-section {
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .hero-grid-container {
    gap: 24px;
  }

  .hero-content-col {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-description {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .hero-cta-wrapper {
    flex-direction: column;
    gap: 12px;
  }

  .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.85rem;
  }

  .badge {
    font-size: 0.7rem;
    padding: 5px 12px;
    margin-bottom: 12px;
  }

  .video-container {
    border-radius: 10px;
    margin: 0 16px;
  }

  .hero-visual-col {
    min-height: 220px;
  }

  .modal-card {
    padding: 28px 18px;
    width: 95%;
    border-radius: 16px;
  }

  .modal-title {
    font-size: 1.4rem;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* Very Small Mobile (≤400px) */
@media (max-width: 400px) {
  .hero-title {
    font-size: 1.55rem;
  }

  .hero-description {
    font-size: 0.85rem;
  }

  .btn {
    padding: 11px 16px;
    font-size: 0.8rem;
  }

  .video-container {
    margin: 0 12px;
  }

  .hero-visual-col {
    min-height: 180px;
  }
}
