/* ============================================================
   CABBAGE POINT — CabbagePoint.com
   Ocean/Tropical Theme Stylesheet
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --ocean-deep:   #03045E;
  --ocean-mid:    #0077B6;
  --ocean-bright: #00B4D8;
  --ocean-light:  #90E0EF;
  --ocean-pale:   #CAF0F8;
  --sand:         #F5E6C8;
  --sand-dark:    #C9A96E;
  --white:        #FFFFFF;
  --text-dark:    #1A1A2E;
  --text-mid:     #3D4E6B;
  --overlay-dark: rgba(3, 4, 94, 0.55);
  --overlay-mid:  rgba(0, 119, 182, 0.35);
  --font-heading: 'Kaufmann', 'Tilde', Georgia, serif;
  --font-body:    'Raleway', 'Segoe UI', Arial, sans-serif;
  --nav-height:   72px;
  --radius:       6px;
  --shadow:       0 4px 24px rgba(0,0,0,0.13);
  --transition:   0.3s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ocean-mid); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--ocean-bright); }

/* ---------- Custom Font ---------- */
@font-face {
  font-family: 'Kaufmann';
  src: url('../fonts/Tilde-Kaufmann-TL.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ---------- Google Fonts Import (body) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

/* ============================================================
   NAVIGATION
   ============================================================ */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
  display: flex;
  align-items: center;
  padding: 0 2rem;
}
#main-nav.scrolled {
  background: var(--ocean-deep);
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.nav-inner {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.nav-logo img {
  height: 46px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--ocean-bright);
  color: var(--white);
}
/* Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a::after {
  content: ' ▾';
  font-size: 0.7em;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--ocean-deep);
  border-radius: var(--radius);
  min-width: 220px;
  box-shadow: var(--shadow);
  z-index: 100;
  overflow: hidden;
}
.dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.dropdown-menu a:last-child { border-bottom: none; }
.nav-dropdown:hover .dropdown-menu { display: block; }
/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   PAGE HERO (non-home pages)
   ============================================================ */
.page-hero {
  height: 340px;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay-dark);
}
.page-hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 0 1.5rem;
}
.page-hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  margin-bottom: 0.5rem;
}
.page-hero-content p {
  font-size: 1.05rem;
  opacity: 0.9;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================================
   SECTION LAYOUT
   ============================================================ */
.section {
  padding: 5rem 2rem;
}
.section-alt {
  background: var(--sand);
}
.section-ocean {
  background: var(--ocean-deep);
  color: var(--white);
}
.section-ocean h2, .section-ocean h3 { color: var(--ocean-light); }
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--ocean-deep);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.section-subtitle {
  color: var(--ocean-mid);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.section-divider {
  width: 60px;
  height: 3px;
  background: var(--ocean-bright);
  margin: 1rem 0 2rem;
  border-radius: 2px;
}
.section-divider.centered { margin-left: auto; margin-right: auto; }

/* ============================================================
   PARALLAX BANDS (reusable for interior pages too)
   ============================================================ */
.parallax-band {
  min-height: 320px;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.parallax-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay-dark);
}
.parallax-band-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 2rem;
}
.parallax-band-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.parallax-band-content p {
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto 1.5rem;
  opacity: 0.92;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--ocean-mid);
  color: var(--white);
  border-color: var(--ocean-mid);
}
.btn-primary:hover {
  background: var(--ocean-deep);
  border-color: var(--ocean-deep);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--ocean-deep);
}
.btn-sand {
  background: var(--sand-dark);
  color: var(--white);
  border-color: var(--sand-dark);
}
.btn-sand:hover {
  background: #a8865a;
  border-color: #a8865a;
  color: var(--white);
}

/* ============================================================
   CARDS
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(0,0,0,0.16);
}
.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.card-body {
  padding: 1.5rem;
}
.card-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ocean-mid);
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}
.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ocean-deep);
  margin-bottom: 0.75rem;
}
.card-body p {
  font-size: 0.92rem;
  color: var(--text-mid);
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

/* ============================================================
   PHOTO GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--ocean-pale);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item .play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  font-size: 2.5rem;
  color: white;
}

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1rem;
}
#lightbox.open { display: flex; }
#lightbox img {
  max-height: 85vh;
  max-width: 95vw;
  object-fit: contain;
  border-radius: var(--radius);
}
#lightbox-close {
  position: absolute;
  top: 1rem; right: 1.5rem;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
}
#lightbox-caption {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  margin-top: 0.75rem;
  text-align: center;
  max-width: 600px;
}
#lightbox-prev, #lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background var(--transition);
}
#lightbox-prev:hover, #lightbox-next:hover { background: rgba(255,255,255,0.3); }
#lightbox-prev { left: 1rem; }
#lightbox-next { right: 1rem; }

/* ============================================================
   DOWNLOAD CARDS
   ============================================================ */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.download-card {
  background: var(--white);
  border: 2px solid var(--ocean-pale);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow);
  transition: border-color var(--transition), transform var(--transition);
}
.download-card:hover {
  border-color: var(--ocean-bright);
  transform: translateY(-3px);
}
.download-icon { font-size: 2.5rem; }
.download-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ocean-deep);
}
.download-card p {
  font-size: 0.88rem;
  color: var(--text-mid);
  flex: 1;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form-wrap {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ocean-deep);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.7rem 1rem;
  border: 2px solid var(--ocean-pale);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: #fafefe;
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--ocean-bright);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.checkbox-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  color: var(--text-dark);
}
.form-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--ocean-mid);
  padding: 0;
  border: none;
}

/* Thank You Modal */
#thank-you-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 3000;
  align-items: center;
  justify-content: center;
}
#thank-you-modal.open { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow);
}
.modal-box img { width: 120px; margin: 0 auto 1.25rem; border-radius: 50%; }
.modal-box h2 { font-family: var(--font-heading); color: var(--ocean-deep); margin-bottom: 0.75rem; }
.modal-box p { color: var(--text-mid); margin-bottom: 1.5rem; }

/* ============================================================
   VENDOR INFO BOX
   ============================================================ */
.vendor-box {
  background: var(--ocean-pale);
  border-left: 4px solid var(--ocean-bright);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
.vendor-box h3 { color: var(--ocean-deep); margin-bottom: 0.5rem; font-size: 1.1rem; }
.vendor-box p, .vendor-box a { font-size: 0.92rem; color: var(--text-dark); }
.vendor-box a { font-weight: 600; }

/* ============================================================
   LISTING DESCRIPTION
   ============================================================ */
.listing-description {
  max-width: 820px;
}
.listing-description h2 {
  font-family: var(--font-heading);
  color: var(--ocean-deep);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 0.5rem;
}
.listing-price {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--ocean-mid);
  font-family: var(--font-heading);
  margin-bottom: 1.5rem;
}
.listing-description p {
  margin-bottom: 1rem;
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text-dark);
}
.listing-note {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-size: 0.88rem;
  color: var(--text-mid);
  margin-top: 1.5rem;
  border-left: 3px solid var(--sand-dark);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--ocean-deep);
  color: rgba(255,255,255,0.75);
  padding: 3rem 2rem 1.5rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 1.5rem;
}
.footer-col h4 {
  color: var(--ocean-light);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.85rem;
  font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul a {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--ocean-bright); }
.footer-col p { font-size: 0.85rem; line-height: 1.65; }
.footer-logo { width: 80px; margin-bottom: 0.75rem; }
.footer-bottom {
  font-size: 0.75rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  text-align: center;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  background: var(--ocean-pale);
  padding: 0.65rem 2rem;
  font-size: 0.82rem;
  color: var(--text-mid);
}
.breadcrumb a { color: var(--ocean-mid); }
.breadcrumb span { margin: 0 0.4rem; }

/* ============================================================
   GOOGLE MAP EMBED
   ============================================================ */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 2rem;
}
.map-wrap iframe {
  width: 100%;
  height: 520px;
  border: none;
  display: block;
}

/* ============================================================
   EASEMENTS INFO
   ============================================================ */
.easement-list {
  list-style: none;
  margin: 1.5rem 0;
}
.easement-list li {
  display: flex;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--ocean-pale);
  font-size: 0.95rem;
  align-items: flex-start;
}
.easement-list li:last-child { border-bottom: none; }
.easement-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   DRONE PHOTO GRID
   ============================================================ */
.drone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.drone-item {
  text-align: center;
}
.drone-item img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 0.75rem;
}
.drone-label {
  font-weight: 700;
  color: var(--ocean-deep);
  font-size: 1rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--ocean-deep); padding: 1rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .footer-top { grid-template-columns: 1fr; }
  .page-hero { height: 240px; background-attachment: scroll; }
  .parallax-band { background-attachment: scroll; }
  #main-nav { padding: 0 1rem; }
  .section { padding: 3rem 1.25rem; }
}
