/* Responsive Styles */

/* ========================================
   TABLET (768px - 1024px)
   ======================================== */

@media (max-width: 1024px) {
  :root {
    --title-hero: 3.5rem;
    --title-1: 2.75rem;
    --title-2: 2rem;
  }

  .container {
    padding: 0 var(--space-5);
  }

  .hero h1 {
    font-size: var(--title-hero);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .space-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .space-card:last-child {
    grid-column: span 2;
  }

  /* Split headers */
  .section-header-split {
    gap: var(--space-10);
  }

  /* Founder Story */
  .founder-story-layout {
    gap: var(--space-10);
  }

  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .event-card:last-child {
    grid-column: span 2;
  }

  .footer-content {
    flex-wrap: wrap;
    gap: var(--space-6);
  }

  .footer-left {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}

/* ========================================
   MOBILE (max-width: 768px)
   ======================================== */

@media (max-width: 768px) {
  :root {
    --title-hero: 2.5rem;
    --title-1: 2rem;
    --title-2: 1.5rem;
    --title-3: 1.375rem;
    --section-gap: var(--space-12);
  }

  .container {
    padding: 0 var(--space-4);
  }

  /* Nav */
  .nav-wrapper {
    padding: var(--space-3) var(--space-4);
  }

  .logo-icon {
    width: 20px;
    height: 20px;
  }

  .logo-text {
    font-size: 16px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  /* Section headers */
  .section-header {
    margin-bottom: var(--space-10);
  }

  .section-header h2 {
    font-size: var(--title-1);
  }

  .section-description {
    font-size: var(--text-regular);
  }

  /* Split headers stack on mobile */
  .section-header-split {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .section-header-split h2 {
    font-size: var(--title-1);
  }

  .section-header-split .section-description {
    font-size: var(--text-regular);
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: var(--space-24) 0 var(--space-16);
  }

  .hero .container {
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero h1 {
    font-size: var(--title-hero);
  }

  .hero-description {
    font-size: var(--text-regular);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  /* Blueprint fades more on mobile so centered text stays readable */
  .hero-visual {
    justify-content: center;
  }

  .hero-visual::after {
    background: radial-gradient(
      ellipse at center,
      rgba(10, 10, 11, 0.5) 0%,
      var(--bg-primary) 70%
    );
  }


  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .stat-item {
    padding: var(--space-4);
  }

  .stat-number {
    font-size: var(--title-3);
  }

  /* Directional reveals become vertical on mobile */
  .reveal-left,
  .reveal-right {
    transform: translateY(20px) translateX(0);
  }

  /* About */
  .about-story {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .about-story-text {
    font-size: var(--text-regular);
  }

  .about-story-image {
    max-height: 300px;
  }

  /* Space */
  .space-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .space-card:last-child {
    grid-column: span 1;
  }

  .space-card-image {
    height: 180px;
  }

  /* Selection */
  .selection-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  /* Included */
  .included-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  /* Founder Story */
  .founder-story-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
  }

  .founder-story-text p {
    font-size: var(--text-regular);
  }

  .founder-story-image {
    max-height: 400px;
  }

  /* Events */
  .events-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .event-card:last-child {
    grid-column: span 1;
  }

  .event-card-image {
    height: 200px;
  }

  /* Location */
  .location-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .location-features {
    grid-template-columns: 1fr;
  }

  .location-map {
    height: 300px;
  }

  /* Final CTA */
  .final-cta {
    padding: var(--space-24) 0;
  }

  .final-cta h2 {
    font-size: var(--title-1);
  }


  /* Book a Tour */
  .book-section {
    padding-top: var(--space-24);
  }

  .book-layout {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .book-form {
    grid-template-columns: 1fr;
  }

  .form-group-full {
    grid-column: span 1;
  }

  .book-form-wrapper {
    padding: var(--space-6);
  }

  /* Legal & FAQ */
  .legal-section {
    padding-top: var(--space-24);
  }

  .faq-section {
    padding-top: var(--space-24);
  }

  .faq-header h1 {
    font-size: var(--title-1);
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-6);
  }

  .footer-links {
    flex-direction: column;
    gap: var(--space-3);
  }

  .footer-right {
    text-align: left;
  }

  /* Buttons */
  .btn {
    padding: 10px 18px;
    font-size: var(--text-small);
  }

  .mobile-menu {
    padding: var(--space-12) var(--space-6);
  }

  .mobile-menu a {
    font-size: var(--title-4);
  }
}

/* ========================================
   SMALL MOBILE (max-width: 480px)
   ======================================== */

@media (max-width: 480px) {
  :root {
    --title-hero: 2rem;
    --title-1: 1.75rem;
    --title-2: 1.375rem;
  }

  .container {
    padding: 0 var(--space-3);
  }

  .hero h1 {
    font-size: var(--title-hero);
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }

  .stat-number {
    font-size: var(--title-4);
  }

  .location-map {
    height: 250px;
  }
}

/* ========================================
   LANDSCAPE MOBILE
   ======================================== */

@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: var(--space-16) 0 var(--space-8);
  }

  .mobile-menu {
    overflow-y: auto;
    padding: var(--space-8) var(--space-6);
  }
}

/* ========================================
   HOVER (DESKTOP ONLY)
   ======================================== */

@media (hover: hover) and (pointer: fine) {
  .hover-lift:hover {
    transform: translateY(-2px);
  }
}

/* ========================================
   PRINT
   ======================================== */

@media print {
  .nav-header,
  .mobile-menu-toggle,
  .hero-ctas,
  .cta-buttons,
  footer {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }

  section {
    page-break-inside: avoid;
  }
}
