/* ==========================================================================
   1. BASE STYLES & TYPOGRAPHY
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
  font-family: 'Nursery-Body', sans-serif; 
  background: #10616A; /* Patch Reef */
  overflow-x: hidden; 
  line-height: 1.6;
  color: #fff; /* White text */
}

h1, h2, h3, .logo { 
  font-family: 'Nursery-Heading', sans-serif; 
  color: #fff; /* White */
}

/* ==========================================================================
   2. NAVIGATION & HEADER
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0; width: 100%;
  padding: 20px 0;
  background: white; 
  z-index: 10000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
}

.logo { 
  font-weight: bold; 
  text-decoration: none; 
  color: #10616A; /* Patch Reef */
  letter-spacing: 1px; 
  font-size: 1.2rem; 
  z-index: 10001;
}

.nav-menu > .nav-links { 
  display: flex; 
  list-style: none; 
  gap: 30px; 
}

.nav-links a { 
  text-decoration: none; 
  color: #10616A; /* Patch Reef */
  font-weight: 500; 
  transition: 0.3s; 
}

.nav-links a:hover { 
  color: #45BBE6; /* Hawai'i Sky */
}

/* Hamburger Menu - Hidden on Desktop */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10002;
  position: relative;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #10616A; /* Patch Reef */
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 3px;
}

/* Hamburger animation when active */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Dropdown Navigation */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  list-style: none;
  padding: 15px 0 10px 0;  /* ← top padding creates visual gap without dead zone */
  border-radius: 4px;
  z-index: 10001;
  flex-direction: column;
  gap: 0;
}

.dropdown:hover .dropdown-menu {
  display: block !important;
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #10616A !important;
  text-decoration: none;
  transition: background 0.2s;
}

.dropdown-menu a:hover {
  background: #f5f5f5;
  color: #45BBE6 !important;
}

/* ==========================================================================
   3. HERO & VIDEO BACKGROUND
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh; 
  background: #ffffff; 
  overflow: hidden;
}

.video-container {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: #ffffff;
}

.video-container iframe {
  width: 200vw; height: 120vh; 
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  object-fit: cover;
}

/* Hero Text Overlay */
.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; 
  padding-top: 3vh;
  align-items: center;
  z-index: 9999 !important;
  background: rgba(0, 0, 0, 0) !important; 
  text-align: center;
  color: #ffffff !important;
  pointer-events: none;
}

.fade-in-text {
  font-family: 'Nursery-Heading', sans-serif;
  font-size: 9rem;
  color: #ffffff;
  opacity: 0;
  animation: fadeInStay 1.5s ease-out forwards; 
  animation-delay: 0.8s; 
  text-shadow: 2px 2px 20px rgba(0,0,0,0.8);
  margin: 0;
}

.fade-in-subtext {
  font-family: 'Nursery-Body', sans-serif;
  font-size: 1.8rem;
  color: #ffffff;
  opacity: 0;
  animation: fadeInStay 1.5s ease-out forwards;
  animation-delay: 1.6s; 
  margin-top: -10px;
  text-shadow: 1px 1px 10px rgba(0,0,0,0.8);
}
/* ==========================================================================
   4. PAGE CONTENT (Interior Pages)
   ========================================================================== */
.page-content {
  min-height: 100vh;
}

.page-header {
  background: #10616A;
  padding: 60px 20px 0px;
  text-align: center;
  border-top: 8px solid;
  border-image: linear-gradient(90deg, #00446f 0%, #45BBE6 50%, #10616A 100%) 1;
}

.page-title {
  font-family: 'Nursery-Heading', sans-serif;
  font-size: 4.5rem;
  color: #fff;
  margin: 0;
  text-align: center;
}

.page-subtitle {
  font-family: 'Nursery-Body', sans-serif;
  font-size: 1.8rem;
  color: #fff;
  margin: 0px 0 0 0;
  font-weight: 300;
}

.page-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 40px;
}

.page-body h2 {
  font-family: 'Nursery-Heading', sans-serif;
  font-size: 2.2rem;
  color: #fff;
  margin-top: 10px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #fff;
}

.page-body h2:first-child {
  margin-top: 0;
}

/* Two-column feature sections */
.feature-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin: 80px 0;
}

.feature-section:first-of-type {
  margin-top: 40px;
}

.feature-text h2 {
  margin-top: 0;
  font-size: 3.5rem;
  margin-bottom: 30px;
  text-align: center;
}

.feature-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.no-shadow img {
  box-shadow: none;
}

/* Alternate layout - image on left */
.feature-section.reverse {
  grid-template-columns: 1fr 1fr;
}

.feature-section.reverse .feature-image {
  order: -1;
}

/* ==========================================================================
   COLORED SECTIONS
   ========================================================================== */

/* Section 1: The Nursery - Patch Reef (default, no extra styling needed) */
.section-nursery {
  padding: 0;
}

/* Section 2: The Corals - Deep Ocean */
.section-corals {
  background: #00446F;
  padding: 80px 0;
  margin: 80px 0 0 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.section-corals h2 {
  color: #EBD5AF !important;
  border-bottom-color: #45BBE6 !important;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 40px;
}

.section-corals > * {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

.full-width-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 40px;
}

/* Section 3: Equipment - Sandbar (light, needs dark text) */
.section-equipment {
  background: #C2E5DF;
  padding: 80px 0;
  margin: 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.section-equipment h2,
.section-equipment h3,
.section-equipment p,
.section-equipment li,
.section-equipment strong,
.section-equipment em {
  color: #333 !important;
}

.section-equipment h2 {
  border-bottom-color: #10616A !important;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 40px;
}

.section-equipment > * {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

.section-equipment a {
  color: #10616A !important;
}

.section-equipment a.btn {
  color: #fff !important;
}

.section-equipment a:hover {
  color: #00446F !important;
}

/* Section 4: Pricing - Heritage Trees */
.section-pricing {
  background: #4B682F;
  padding: 80px 0;
  margin: 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.section-pricing h2 {
  color: #C2E5DF !important;
  border-bottom-color: #C2E5DF !important;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 40px;
}

.section-pricing > * {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

/* Tables in pricing section */
.section-pricing table {
  color: #fff;
  border-color: #C2E5DF;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.section-pricing th,
.section-pricing td {
  border-color: rgba(194, 229, 223, 0.3);
}

.page-body h3 {
  font-family: 'Nursery-Heading', sans-serif;
  font-size: 1.6rem;
  color: #fff;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-body p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #fff;
}

.page-body ul, .page-body ol {
  margin-left: 30px;
  margin-bottom: 20px;
}

.page-body li {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 10px;
  color: #fff;
}

.page-body a {
  color: #45BBE6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.page-body a:hover {
  color: #C2E5DF;
  text-decoration: underline;
}

.page-body strong {
  color: #fff;
  font-weight: 600;
}

/* Section Anchor Links */
.page-body a[id] {
  display: block;
  position: relative;
  top: -100px;
  visibility: hidden;
}

/* Curved Section Tops */
.section-rounded {
  border-radius: 40px 40px 0 0;
  margin-top: -40px;
}

/* ==========================================================================
   5. ANIMATIONS & EFFECTS
   ========================================================================== */
@keyframes fadeInStay {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   6. NARROW DESKTOP (1025px - 1208px)
   ========================================================================== */
@media (max-width: 1208px) and (min-width: 768px) {
  .fade-in-text {
    font-size: 7.5rem;
    line-height: .75;
  }
  
  .hero-overlay {
    padding-top: 9.5vh !important;
  }
  
  .fade-in-subtext {
    margin-top: 20px;
  }
  
  .no-break {
    white-space: nowrap;
  }
  
  /* iPad video sizing - fill height like mobile */
  .video-container iframe {
    height: 100vh;
    height: 100dvh;
    width: 177.78vh;
    width: 177.78dvh;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   7. RESPONSIVE / MOBILE OVERRIDES
   ========================================================================== */

/* --- Mobile Rules (Only apply if screen is 767px or less) --- */
@media (max-width: 767px) {
   
* {
    -webkit-tap-highlight-color: transparent;
  }
   
  .hero { 
  height: 100vh;
  height: 100dvh;
  }

  .video-container iframe { 
  position: absolute;
  height: 100vh;
  height: 100dvh;
  width: 177.78vh;
  width: 177.78dvh;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  }
  
  /* Mobile hero text - split into 3 lines and left-aligned */
  .fade-in-text { 
  display: block !important;
  font-size: 5rem;
  text-align: left;
  width: 100%;
  padding-left: 18px;
  line-height: 0.75;
  word-spacing: 100vw;
  }

  .fade-in-subtext { 
  display: none; 
  }

  .hero-overlay {
  justify-content: flex-start !important;
  align-items: flex-start !important;
  padding-top: 60px !important;
  }
  
  /* Mobile header - teal on all pages */
.main-header {
  background: #10616A !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
}

/* Homepage overrides back to transparent */
.homepage .main-header {
  background: transparent !important;
  box-shadow: none !important;
}

/* White logo on all mobile pages */
.logo {
  color: #ffffff !important;
  display: block !important;
  margin-right: auto !important;
  margin-left: 0 !important;
}

/* Hide logo on homepage only */
.homepage .logo {
  display: none !important;
}
  
  .nav-container {
    justify-content: flex-end;
    padding: 0 20px;
  }
  
  /* Show white hamburger on mobile */
  .hamburger {
    display: flex !important;
  }
  
  .hamburger span {
    background: #ffffff !important;
  }
  
  .hamburger.active span {
    background: #333 !important;
  }
  
  /* Mobile navigation menu - full screen overlay */
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.8);
    transition: left 0.3s ease;
    z-index: 10001;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  
  .nav-menu.active {
    left: 0 !important;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 30px;
    width: 100%;
    text-align: center;
    list-style: none !important;
  }
  
  .nav-links li {
    list-style: none !important;
  }
  
  .nav-links a {
    font-size: 2rem;
    color: #10616A;
  }
  
  .section { 
    flex-direction: column !important; 
    text-align: center; 
  }
   /* Feature sections stack on mobile */
.feature-section {
  grid-template-columns: 1fr !important;
  gap: 30px !important;
  margin: 50px 0 !important;
}

.feature-section.reverse .feature-image {
  order: 0 !important;
}

.feature-text h2 {
  font-size: 2rem !important;
}
}
