/* ==========================================================================
   Pins 'N' Bowls - Core Design System & Stylesheet
   ========================================================================== */

:root {
  --bg-main: #FDFBF7;
  --bg-card: #FFFFFF;
  --bg-table-head: #F1F4F9;
  --bg-table-stripe: #F8FAFC;
  --text-main: #111827;
  --text-muted: #4B5563;
  --text-navy: #000B29;
  --color-orange: #FF6600;
  --color-orange-glow: rgba(255, 102, 0, 0.25);
  --color-yellow: #FFC000;
  --border-light: #E5E7EB;
  --border-table: #D1D5DB;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px -2px rgba(0, 0, 0, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 10px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(253, 251, 247, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
  transition: var(--transition-normal);
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  background: rgba(253, 251, 247, 0.96);
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand .nav-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.nav-brand:hover .nav-logo {
  transform: scale(1.03);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-navy);
  font-weight: 500;
  font-size: 1rem;
  transition: color var(--transition-fast);
  position: relative;
}

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

.nav-btn-cta {
  background: var(--text-navy);
  color: #FFF !important;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all var(--transition-fast) !important;
}

.nav-btn-cta:hover {
  background: var(--color-orange);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--color-orange-glow);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background-color: var(--text-navy);
  transition: var(--transition-fast);
}

/* ==========================================================================
   Section 1: Hero
   ========================================================================== */
.hero-section {
  position: relative;
  height: calc(100vh - 80px);
  min-height: 600px;
  background-image: url('assets/hero_bg.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: stretch;
}

.hero-container-overlay {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  padding: 3rem 0;
}

.hero-logo-wrapper {
  align-self: flex-end;
  transition: transform var(--transition-fast);
  margin-top: 1.5rem;
}

.hero-logo-wrapper:hover {
  transform: scale(1.02);
}

.hero-logo-img {
  width: 250px;
  height: auto;
  display: block;
}

.hero-text-wrapper {
  align-self: flex-start;
  max-width: 580px;
  margin-bottom: 2rem;
}

.hero-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #FFFFFF;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* ==========================================================================
   Section 2: Beyond the Basics & Slider
   ========================================================================== */
.basics-section {
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.basics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: stretch;
}

.basics-content-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.basics-text-wrapper {
  z-index: 2;
}

.section-title {
  font-size: 2.75rem;
  font-weight: 600;
  color: var(--text-navy);
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.basics-info-container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  position: relative;
  width: 100%;
}

.basics-info {
  grid-area: 1 / 1 / 2 / 2;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.5s;
  pointer-events: none;
}

.basics-info.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 5;
}

.section-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-navy);
  margin-bottom: 1.25rem;
}

.highlight-subtitle {
  margin-top: 2rem;
  font-size: 1.6rem;
  line-height: 1.35;
  color: var(--text-navy);
}

.basics-paragraph {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

/* Decorative Vibrant Orange Blob Element */
.orange-blob-container {
  position: absolute;
  bottom: -210px; /* Shift down to hide the bottom half */
  left: -120px;   /* Shift left slightly */
  width: 440px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.95;
}

.orange-blob-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Interactive Slider */
.basics-slider-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
  transform: scale(1.03);
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.5rem 3rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  color: #FFF;
  font-size: 0.95rem;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.carousel-dots {
  position: absolute;
  bottom: 1.25rem;
  right: 1.5rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 1.5px solid #FFFFFF;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.carousel-dots .dot.active {
  background: #FFFFFF;
  transform: scale(1.2);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.35);
  color: #FFF;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
  z-index: 10;
  opacity: 0;
}

.carousel-container:hover .slider-arrow {
  opacity: 1;
}

.slider-arrow:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
  left: 1rem;
}

.slider-arrow.next {
  right: 1rem;
}

/* ==========================================================================
   Section 3: What's your Perfect Fit? (Specifications)
   ========================================================================== */
.fit-section {
  padding: 5rem 0 4rem;
}

.fit-main-title {
  font-size: 2.75rem;
  font-weight: 600;
  color: var(--text-navy);
  margin-bottom: 3.5rem;
}

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

.fit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.fit-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.fit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.card-heading {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-navy);
  text-align: center;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border-light);
}

.card-image-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #000000;
}

.card-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.fit-card:hover .card-image-box img {
  transform: scale(1.05);
}

/* Specifications Table */
.spec-table-wrapper {
  width: 100%;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.925rem;
  text-align: left;
}

.spec-table th,
.spec-table td {
  padding: 0.85rem 1rem;
  border: 1px solid #E2E8F0;
  vertical-align: middle;
}

.spec-table tbody tr:nth-child(1) { height: 75px; } /* Lane length */
.spec-table tbody tr:nth-child(2) { height: 60px; } /* Lane width */
.spec-table tbody tr:nth-child(3) { height: 50px; } /* Pin size */
.spec-table tbody tr:nth-child(4) { height: 95px; } /* Bowling ball */
.spec-table tbody tr:nth-child(5) { height: 75px; } /* Space requirement / Ceiling height */

.spec-table th {
  background-color: var(--bg-table-head);
  font-weight: 600;
  color: var(--text-navy);
  font-size: 0.95rem;
}

.spec-table th:first-child,
.spec-table td:first-child {
  width: 40%;
  font-weight: 500;
  color: var(--text-navy);
}

.spec-table td.spec-val {
  color: var(--text-muted);
  line-height: 1.5;
}

.spec-table tbody tr:nth-child(even) {
  background-color: var(--bg-table-stripe);
}

/* ==========================================================================
   Section 4: Contact & Quote Form
   ========================================================================== */
.contact-section {
  padding: 4rem 0 5rem;
}

.contact-card {
  background: #FFF;
  border-radius: var(--radius-md);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  max-width: 800px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.contact-header h2 {
  font-size: 2.2rem;
  color: var(--text-navy);
  margin-bottom: 0.5rem;
}

.contact-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-navy);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--border-table);
  border-radius: var(--radius-sm);
  background-color: #FAFBFD;
  color: var(--text-main);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px var(--color-orange-glow);
  background-color: #FFF;
}

.btn-submit {
  width: 100%;
  padding: 0.95rem 1.5rem;
  background-color: var(--text-navy);
  color: #FFF;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-submit:hover {
  background-color: var(--color-orange);
  box-shadow: 0 4px 16px var(--color-orange-glow);
  transform: translateY(-1px);
}

.form-success-msg {
  display: none;
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 500;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #121212;
  color: #A3A3A3;
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr 1.4fr;
  gap: 2.5rem;
  border-bottom: 1px solid #222222;
  padding-bottom: 3rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col-title {
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.footer-links-list,
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 0.75rem;
}

.footer-links-list a {
  color: #A3A3A3;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links-list a:hover {
  color: #FFFFFF;
}

.footer-brand-logo {
  height: 52px;
  width: auto;
  align-self: flex-start;
  margin-bottom: 1.25rem;
}

.footer-brand-text {
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  color: #A3A3A3;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #222222;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  background: #FF6600; /* Orange highlight color */
  color: #FFFFFF;
  transform: translateY(-2px);
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.contact-icon {
  color: #FF6600; /* Orange map, phone, email icons */
  font-size: 0.9rem;
  margin-top: 0.15rem;
  width: 18px;
  text-align: center;
}

.contact-text {
  color: #A3A3A3;
}

.footer-bottom {
  padding-top: 2rem;
  font-size: 0.825rem;
  color: #737373;
  text-align: left;
}

/* ==========================================================================
   Animation on Scroll
   ========================================================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.15s;
}

.delay-2 {
  transition-delay: 0.3s;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  
  .hero-content-col {
    align-items: center;
    padding-left: 0;
  }
  
  .basics-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

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

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #FFF;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }

  /* Hero Mobile Styles */
  .hero-section {
    height: auto;
    min-height: 480px;
    padding: 3rem 0;
  }

  .hero-container-overlay {
    padding: 1.5rem 0;
    gap: 2rem;
    justify-content: center;
    align-items: center;
  }

  .hero-logo-wrapper {
    align-self: center;
    margin-top: 0;
  }

  .hero-logo-img {
    width: 170px;
  }

  .hero-text-wrapper {
    align-self: center;
    max-width: 100%;
    margin-bottom: 0;
    text-align: center;
  }

  .hero-text {
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: center;
  }

  /* Section Titles & Content Center */
  .section-title,
  .fit-main-title {
    font-size: 1.85rem;
    text-align: center;
  }

  .section-subtitle {
    font-size: 1.3rem;
    text-align: center;
  }

  .basics-content-col {
    text-align: center;
  }

  .basics-info {
    text-align: center;
  }

  .basics-paragraph {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* Hide Orange Blob on Mobile to prevent overlap */
  .orange-blob-container {
    display: none;
  }

  /* Carousel Controls visible on Mobile */
  .slider-arrow {
    opacity: 1;
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .fit-grid {
    grid-template-columns: 1fr;
  }

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

  /* Footer Centering */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-col {
    align-items: center;
    text-align: center;
  }

  .footer-brand-logo {
    align-self: center;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-contact-list li {
    justify-content: center;
    text-align: center;
  }

  .footer-bottom {
    text-align: center;
  }
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .office-col {
    grid-column: span 2;
  }
}
