/* ============================================
   LANDING PAGE - HERO SECTION
   Full Dark Mode
   ============================================ */

.hero-section {
  position: relative;
  height: 100vh;
  min-height: 700px;
  background-color: var(--color-bg);
  overflow: hidden;
  padding-top: 160px;
  /* Account for larger fixed header */
}

.hero-inner {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 4rem;
  z-index: 10;
}

/* ========== HERO CONTENT ========== */
.hero-content {
  position: relative;
  z-index: 20;
  padding-right: 3rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--color-text);
  margin-bottom: 2rem;
  letter-spacing: -0.03em;
}

.hero-title-line {
  display: block;
  overflow: hidden;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 3rem;
}

/* ========== GRADIENT BUTTON - Award-winning style ========== */
.gradient-button {
  /* Layout */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;

  /* Sizing */
  min-width: 132px;
  padding: 1rem 2.25rem;

  /* Typography */
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: 0.02em;

  /* Shape */
  border-radius: 11px;
  border: none;
  cursor: pointer;

  /* Gradient Background - Warm Terracotta */
  background: linear-gradient(180deg,
      var(--color-accent-light) 0%,
      var(--color-accent) 50%,
      var(--color-accent-dark) 100%);

  /* Inner shadow for depth */
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 0 0 rgba(0, 0, 0, 0.1),
    0 4px 14px 0 rgba(193, 122, 92, 0.4),
    0 1px 3px 0 rgba(0, 0, 0, 0.2);

  /* Smooth transitions */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Positioning for pseudo-elements */
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Shine effect overlay */
.gradient-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.2) 50%,
      transparent 100%);
  transition: left 0.5s ease;
  z-index: 1;
}

/* Glow effect */
.gradient-button::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 13px;
  background: linear-gradient(180deg,
      var(--color-accent-light) 0%,
      var(--color-accent-dark) 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  filter: blur(8px);
}

/* Hover state */
.gradient-button:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.25),
    inset 0 -2px 0 0 rgba(0, 0, 0, 0.15),
    0 8px 20px 0 rgba(193, 122, 92, 0.5),
    0 2px 6px 0 rgba(0, 0, 0, 0.25);
}

.gradient-button:hover::before {
  left: 100%;
}

.gradient-button:hover::after {
  opacity: 0.6;
}

/* Active/pressed state */
.gradient-button:active {
  transform: translateY(0);
  box-shadow:
    inset 0 2px 4px 0 rgba(0, 0, 0, 0.2),
    0 2px 8px 0 rgba(193, 122, 92, 0.3);
}

/* Focus state for accessibility */
.gradient-button:focus-visible {
  outline: 3px solid var(--color-accent-light);
  outline-offset: 3px;
}

/* Icon inside button */
.gradient-button svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.gradient-button:hover svg {
  transform: translateX(4px);
}

/* Variant style - lighter/outline version */
.gradient-button--variant {
  background: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  box-shadow: 0 2px 8px 0 rgba(193, 122, 92, 0.2);
}

.gradient-button--variant:hover {
  background: linear-gradient(180deg,
      var(--color-accent-light) 0%,
      var(--color-accent) 50%,
      var(--color-accent-dark) 100%);
  color: var(--color-white);
  border-color: transparent;
}

/* Legacy class support - map old class to new */
.hero-cta {
  /* Inherit all gradient-button styles */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-width: 132px;
  padding: 1rem 2.25rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: 0.02em;
  border-radius: 11px;
  border: none;
  cursor: pointer;
  background: linear-gradient(180deg,
      var(--color-accent-light) 0%,
      var(--color-accent) 50%,
      var(--color-accent-dark) 100%);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 0 0 rgba(0, 0, 0, 0.1),
    0 4px 14px 0 rgba(193, 122, 92, 0.4),
    0 1px 3px 0 rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.2) 50%,
      transparent 100%);
  transition: left 0.5s ease;
  z-index: 1;
}

.hero-cta::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 13px;
  background: linear-gradient(180deg,
      var(--color-accent-light) 0%,
      var(--color-accent-dark) 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  filter: blur(8px);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.25),
    inset 0 -2px 0 0 rgba(0, 0, 0, 0.15),
    0 8px 20px 0 rgba(193, 122, 92, 0.5),
    0 2px 6px 0 rgba(0, 0, 0, 0.25);
}

.hero-cta:hover::before {
  left: 100%;
}

.hero-cta:hover::after {
  opacity: 0.6;
}

.hero-cta:active {
  transform: translateY(0);
}

.hero-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.hero-cta span {
  position: relative;
  z-index: 2;
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

/* ========== HERO IMAGE GRID ========== */
.hero-image-grid {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  z-index: 5;
}

.hero-image-col {
  position: relative;
  overflow: hidden;
  border-right: 3px solid var(--color-bg);
}

.hero-image-col:last-child {
  border-right: none;
}

.hero-col-image {
  position: absolute;
  width: 600%;
  height: 100%;
  top: 0;
  left: 0;
  object-fit: cover;
  object-position: center;
  will-change: transform;
  filter: grayscale(30%) contrast(1.1) brightness(0.85);
}

/* Position each column's image */
.hero-image-col:nth-child(1) .hero-col-image {
  left: 0%;
}

.hero-image-col:nth-child(2) .hero-col-image {
  left: -100%;
}

.hero-image-col:nth-child(3) .hero-col-image {
  left: -200%;
}

.hero-image-col:nth-child(4) .hero-col-image {
  left: -300%;
}

.hero-image-col:nth-child(5) .hero-col-image {
  left: -400%;
}

.hero-image-col:nth-child(6) .hero-col-image {
  left: -500%;
}

/* Swipe Overlay Animation */
.hero-swipe-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--color-bg);
  z-index: 10;
  transform-origin: top;
}

/* ========== SCROLL INDICATOR ========== */
.scroll-indicator {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  z-index: 999;
  opacity: 0.6;
  animation: bounce-scroll 2s ease-in-out infinite;
  cursor: pointer;
  transition: opacity var(--transition-base);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.scroll-indicator:hover {
  opacity: 1;
}

@keyframes bounce-scroll {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}

/* ========== HERO SPACER - Subtle gradient ========== */
.hero-spacer {
  height: 30vh;
  background: linear-gradient(to bottom,
      var(--color-bg) 0%,
      var(--color-bg-elevated) 100%);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 0 2rem;
  }

  .hero-content {
    padding-right: 0;
    padding-bottom: 3rem;
  }

  .hero-image-grid {
    position: relative;
    width: 100%;
    height: 50vh;
    margin-top: 2rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: auto;
    min-height: 100svh;
    /* Use small viewport height for mobile */
    padding: 5rem 0 2rem;
  }

  .hero-inner {
    padding: 0 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100svh - 5rem);
  }

  .hero-content {
    padding-bottom: 2rem;
  }

  .hero-title {
    font-size: clamp(2.25rem, 8vw, 3rem);
    margin-bottom: 1.25rem;
  }

  .hero-subtitle {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 2rem;
  }

  .hero-image-grid {
    grid-template-columns: repeat(4, 1fr);
    height: 40vh;
    min-height: 250px;
    margin-top: 1.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
  }

  .hero-image-col {
    border-right-width: 2px;
  }

  .hero-image-col:nth-child(5),
  .hero-image-col:nth-child(6) {
    display: none;
  }

  .hero-col-image {
    width: 400%;
  }

  .hero-image-col:nth-child(1) .hero-col-image {
    left: 0%;
  }

  .hero-image-col:nth-child(2) .hero-col-image {
    left: -100%;
  }

  .hero-image-col:nth-child(3) .hero-col-image {
    left: -200%;
  }

  .hero-image-col:nth-child(4) .hero-col-image {
    left: -300%;
  }

  .hero-cta,
  .gradient-button {
    padding: 0.875rem 1.75rem;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }

  .scroll-indicator {
    width: 32px;
    height: 32px;
    bottom: 1rem;
  }

  .hero-spacer {
    height: 15vh;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 4.5rem 0 1.5rem;
  }

  .hero-inner {
    padding: 0 1rem;
    min-height: calc(100svh - 4.5rem);
  }

  .hero-title {
    font-size: clamp(1.75rem, 9vw, 2.5rem);
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 0.875rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
  }

  .hero-image-grid {
    grid-template-columns: repeat(3, 1fr);
    height: 35vh;
    min-height: 200px;
    gap: 0;
  }

  .hero-image-col {
    border-right-width: 2px;
  }

  .hero-image-col:nth-child(4) {
    display: none;
  }

  .hero-col-image {
    width: 300%;
  }

  .hero-image-col:nth-child(1) .hero-col-image {
    left: 0%;
  }

  .hero-image-col:nth-child(2) .hero-col-image {
    left: -100%;
  }

  .hero-image-col:nth-child(3) .hero-col-image {
    left: -200%;
  }

  .hero-cta,
  .gradient-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }

  .scroll-indicator {
    width: 28px;
    height: 28px;
    bottom: 0.75rem;
  }

  .hero-spacer {
    height: 10vh;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {

  .hero-cta,
  .gradient-button {
    min-height: 48px;
  }

  .hero-cta:hover,
  .gradient-button:hover {
    transform: none;
  }

  .scroll-indicator {
    display: none;
    /* Hide on touch devices - users know to scroll */
  }
}

/* Landscape phone orientation */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding: 4rem 0 2rem;
  }

  .hero-inner {
    min-height: auto;
    flex-direction: row;
    align-items: center;
  }

  .hero-content {
    flex: 1;
    padding-right: 2rem;
    padding-bottom: 0;
  }

  .hero-image-grid {
    flex: 1;
    height: 60vh;
    margin-top: 0;
  }

  .hero-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 0.75rem;
  }

  .hero-subtitle {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }

  .scroll-indicator {
    display: none;
  }

  .hero-spacer {
    height: 5vh;
  }
}