/* ==========================================================================
   OLYMPIAN GRIT - Design System
   "The Monumental Narrative"
   ========================================================================== */

/* ---------- CSS Custom Properties (Design Tokens) ---------- */
:root {
  /* Primary (Gold / Victory) */
  --color-primary: #fff6df;
  --color-primary-container: #ffd700;
  --color-primary-fixed: #ffe16d;
  --color-primary-fixed-dim: #e9c400;
  --color-on-primary: #3a3000;
  --color-on-primary-container: #705e00;
  --color-on-primary-fixed: #221b00;
  --color-on-primary-fixed-variant: #544600;
  --color-inverse-primary: #705d00;

  /* Surface (Charcoal Depth) */
  --color-background: #131313;
  --color-surface: #131313;
  --color-surface-dim: #131313;
  --color-surface-container-lowest: #0e0e0e;
  --color-surface-container-low: #1c1b1b;
  --color-surface-container: #201f1f;
  --color-surface-container-high: #2a2a2a;
  --color-surface-container-highest: #353534;
  --color-surface-bright: #393939;
  --color-surface-variant: #353534;

  /* On Surface (High-Contrast White) */
  --color-on-surface: #e5e2e1;
  --color-on-surface-variant: #d0c6ab;
  --color-on-background: #e5e2e1;

  /* Secondary */
  --color-secondary: #c8c6c5;
  --color-secondary-container: #474746;
  --color-on-secondary: #313030;
  --color-on-secondary-container: #b7b5b4;
  --color-secondary-fixed: #e5e2e1;
  --color-secondary-fixed-dim: #c8c6c5;
  --color-on-secondary-fixed: #1c1b1b;
  --color-on-secondary-fixed-variant: #474746;

  /* Tertiary */
  --color-tertiary: #f7f6f6;
  --color-tertiary-container: #dadada;
  --color-on-tertiary: #2f3131;
  --color-on-tertiary-container: #5e5f60;
  --color-tertiary-fixed: #e2e2e2;
  --color-tertiary-fixed-dim: #c6c6c6;
  --color-on-tertiary-fixed: #1a1c1c;
  --color-on-tertiary-fixed-variant: #454747;

  /* Outline & Borders */
  --color-outline: #999077;
  --color-outline-variant: #4d4732;

  /* Error */
  --color-error: #ffb4ab;
  --color-error-container: #93000a;
  --color-on-error: #690005;
  --color-on-error-container: #ffdad6;

  /* Inverse */
  --color-inverse-surface: #e5e2e1;
  --color-inverse-on-surface: #313030;

  /* Surface Tint */
  --color-surface-tint: #e9c400;

  /* Typography */
  --font-headline: 'Lexend', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-label: 'Inter', sans-serif;

  /* Spacing Scale */
  --space-1: 0.35rem;
  --space-2: 0.5rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 5.5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border Radius (Sharp corners = 0px) */
  --radius-default: 0px;
  --radius-lg: 0px;
  --radius-xl: 0px;
  --radius-full: 0px; /* Sharpness over Softness rule */

  /* Shadows */
  --shadow-atmospheric: 0 20px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow-gold: 0 0 10px rgba(255, 215, 0, 0.3);
  --shadow-text-glow: 0 0 40px rgba(255, 215, 0, 0.2);
}

/* ---------- Base Reset ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 0 !important; /* Force Sharpness over Softness */
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-background);
  color: var(--color-on-surface);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background-color: var(--color-primary-container);
  color: var(--color-on-primary-container);
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* ---------- Typography ---------- */
.font-headline {
  font-family: var(--font-headline);
}

.font-body {
  font-family: var(--font-body);
}

.font-label {
  font-family: var(--font-label);
}

.text-display-lg {
  font-family: var(--font-headline);
  font-size: clamp(3rem, 8vw, 9rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.text-display-md {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 5vw, 6rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.text-title-lg {
  font-family: var(--font-headline);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.text-body-lg {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.7;
}

.text-body-md {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
}

.text-label-sm {
  font-family: var(--font-label);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.text-label-md {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.text-glow {
  text-shadow: var(--shadow-text-glow);
}

/* ---------- Color Utilities ---------- */
.text-primary { color: var(--color-primary); }
.text-primary-container { color: var(--color-primary-container); }
.text-primary-fixed { color: var(--color-primary-fixed); }
.text-primary-fixed-dim { color: var(--color-primary-fixed-dim); }
.text-on-surface { color: var(--color-on-surface); }
.text-on-surface-variant { color: var(--color-on-surface-variant); }
.text-on-primary { color: var(--color-on-primary); }
.text-on-primary-fixed { color: var(--color-on-primary-fixed); }
.text-outline { color: var(--color-outline); }
.text-outline-variant { color: var(--color-outline-variant); }
.text-secondary { color: var(--color-secondary); }
.text-neutral-400 { color: #a3a3a3; }
.text-neutral-500 { color: #737373; }
.text-neutral-600 { color: #525252; }

.bg-background { background-color: var(--color-background); }
.bg-surface { background-color: var(--color-surface); }
.bg-surface-dim { background-color: var(--color-surface-dim); }
.bg-surface-container-lowest { background-color: var(--color-surface-container-lowest); }
.bg-surface-container-low { background-color: var(--color-surface-container-low); }
.bg-surface-container { background-color: var(--color-surface-container); }
.bg-surface-container-high { background-color: var(--color-surface-container-high); }
.bg-surface-container-highest { background-color: var(--color-surface-container-highest); }
.bg-primary-container { background-color: var(--color-primary-container); }
.bg-primary-fixed { background-color: var(--color-primary-fixed); }
.bg-neutral-900 { background-color: #1a1a1a; }
.bg-neutral-950 { background-color: #0a0a0a; }

/* ---------- Navigation ---------- */
.nav-glass {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-atmospheric);
  transition: all 0.3s ease;
}

.nav-logo {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--color-primary-container);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-link {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a3a3a3;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary-container);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary-container);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-mobile-toggle {
    display: block;
  }
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 2.5rem;
  background: linear-gradient(135deg, var(--color-primary-fixed-dim), var(--color-primary-container));
  color: var(--color-on-primary);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.btn-primary:hover {
  background: var(--color-primary-fixed);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: scale(0.95);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary .btn-text {
  font-family: var(--font-label);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-outline);
  border-bottom: 1px solid var(--color-surface-container-highest);
  padding-bottom: 0.25rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover .btn-text {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary .btn-icon {
  color: var(--color-primary-container);
  transition: transform 0.3s ease;
}

.btn-secondary:hover .btn-icon {
  transform: translateX(8px);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 1.5rem 6rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img,
.hero-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 50%;
  width: 120%; /* Scaled to 120% */
  transform: translateX(-50%);
  object-position: center bottom; /* Focal point anchored to bottom */
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(14, 14, 14, 0.4) 0%, rgba(19, 19, 19, 0.95) 100%);
  z-index: 1;
}

.hero-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0.3;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 80rem;
  width: 100%;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.2);
  padding: 0.25rem 0.75rem;
  margin-bottom: 1rem;
}

.hero-tag-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--color-primary-container);
}

.hero-tag-text {
  font-family: var(--font-headline);
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-primary-container);
  font-weight: 700;
}

@media (min-width: 768px) {
  .hero {
    padding: 0 4rem 6rem;
  }
}

/* ---------- Scroll Progress Indicator ---------- */
.scroll-indicator {
  position: fixed; /* Fixed position to stay visible during scroll */
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  z-index: 40; /* Above sections but below nav/modals */
}

@media (min-width: 1024px) {
  .scroll-indicator {
    display: flex;
    right: 4rem;
  }
}

.scroll-label {
  font-family: var(--font-headline);
  font-size: 0.625rem;
  color: var(--color-outline);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transform: rotate(90deg);
}

.scroll-track {
  width: 1px;
  height: 8rem;
  background: var(--color-surface-container-highest);
  position: relative;
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 25%;
  background: var(--color-primary-container);
  box-shadow: var(--shadow-glow-gold);
  transition: height 0.3s ease;
}

.scroll-page {
  font-family: var(--font-headline);
  font-size: 0.625rem;
  color: var(--color-primary-container);
  font-weight: 700;
}

/* ---------- Bento Grid (Stats) ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(77, 71, 50, 0.2);
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(12, 1fr);
  }
}

.bento-item {
  padding: 3rem;
}

.bento-item-large {
  grid-column: span 1;
  aspect-ratio: 1;
}

.bento-item-small {
  grid-column: span 1;
}

.bento-item-wide {
  grid-column: span 1;
}

@media (min-width: 768px) {
  .bento-item-large {
    grid-column: span 8;
    aspect-ratio: 16/9;
  }
  .bento-item-small {
    grid-column: span 4;
  }
  .bento-item-wide {
    grid-column: span 8;
  }
}

/* ---------- Editorial Cards ---------- */
.editorial-card {
  background: var(--color-surface-container-lowest);
  transition: all 0.5s ease;
}

.editorial-card:hover {
  background: var(--color-surface-container-highest);
}

/* ---------- Image Overlay ---------- */
.img-overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(14, 14, 14, 0.8), transparent);
  padding: 2rem;
}

/* ---------- Concrete Texture ---------- */
.concrete-texture {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cfilter id='noise' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
}

/* ---------- Ghost Border ---------- */
.ghost-border {
  border: 1px solid rgba(77, 71, 50, 0.3);
}

/* ---------- Contact Form Enhancements ---------- */
.input-underline {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--color-outline-variant);
  padding: 1rem 0;
  color: var(--color-on-surface);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  border-radius: 0 !important;
}

.input-underline:focus {
  border-color: var(--color-primary-container);
}

.input-label {
  font-family: var(--font-headline);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-primary-container);
  margin-bottom: 0.5rem;
  display: block;
}

/* ---------- Floating WhatsApp Button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-primary-container);
  color: var(--color-on-primary);
  padding: 1rem;
  box-shadow: var(--shadow-atmospheric);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  max-width: 3.5rem;
  white-space: nowrap;
}

.whatsapp-float:hover {
  max-width: 15rem;
  padding-right: 2rem;
  transform: translateY(-5px);
}

.whatsapp-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.whatsapp-text {
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.whatsapp-float:hover .whatsapp-text {
  opacity: 1;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  width: 100%;
  background: #0a0a0a;
  padding: 3rem 2rem;
  border-top: 1px solid #1a1a1a;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  max-width: 80rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .site-footer {
    padding: 3rem;
  }
  .footer-inner {
    flex-direction: row;
  }
}

.footer-logo {
  font-family: var(--font-headline);
  font-size: 1.125rem;
  font-weight: 900;
  color: white;
  letter-spacing: -0.05em;
}

.footer-copyright {
  font-family: var(--font-headline);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.625rem;
  color: var(--color-outline);
}

.footer-social {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-social a {
  font-family: var(--font-headline);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.625rem;
  color: var(--color-outline);
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: white;
}

.footer-tagline {
  text-align: center;
  margin-top: 3rem;
}

.footer-tagline span {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid #1a1a1a;
  font-family: var(--font-headline);
  font-size: 0.5625rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-outline);
}

/* ---------- Gallery Grid (Portfolio) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 8px;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--color-surface-container-low);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.7s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ---------- Section Spacing ---------- */
.section {
  padding: 8rem 1.5rem;
}

@media (min-width: 768px) {
  .section {
    padding: 8rem 4rem;
  }
}

.section-inner {
  max-width: 80rem;
  margin: 0 auto;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 1s ease forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ---------- Material Symbols ---------- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 24;
}

.material-symbols-outlined.filled {
  font-variation-settings: 'FILL' 1, 'wght' 200, 'GRAD' 0, 'opsz' 24;
}

/* ---------- Grayscale Image Hover ---------- */
.img-grayscale {
  filter: grayscale(100%);
  opacity: 0.5;
  transition: all 0.7s ease;
}

.img-grayscale:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ---------- Testimonial ---------- */
.testimonial-quote {
  font-family: var(--font-headline);
  font-size: clamp(1.5rem, 3vw, 3rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.02em;
  color: white;
  line-height: 1.3;
}

/* ---------- Asymmetric Offset ---------- */
.offset-left {
  transform: translateX(-10%);
}

.offset-right {
  transform: translateX(10%);
}

@media (max-width: 767px) {
  .offset-left,
  .offset-right {
    transform: none;
  }
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-family: var(--font-headline);
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--color-on-surface);
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: var(--color-primary-container);
}

.mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  font-size: 2rem;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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