/* Caribbean Breeze Real Estate — shared stylesheet
   ---------------------------------------------------
   Brand palette, typography, components reused across all pages.
*/

:root {
  --teal: #0E7C8A;
  --teal-dark: #074E58;
  --teal-deep: #043038;
  --teal-light: #4FA8B3;
  --sand: #EDE3D0;
  --sand-light: #F6EEDD;
  --sand-dark: #D9C9A8;
  --coral: #E87E5B;
  --coral-dark: #C96544;
  --off-white: #FAF7F1;
  --ink: #1A2B3C;
  --ink-muted: #4A5968;
  --muted: #7A7A7A;
  --border: #E6DFD0;
  /* Accessible -text variants for body copy on white backgrounds */
  --teal-light-text: #1F6B75;
  --coral-text: #A93E25;
  --coral-dark-text: #A43E22;
  --muted-text: #5B5B5B;


  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(10, 30, 40, 0.06);
  --shadow-md: 0 8px 32px rgba(10, 30, 40, 0.08);
  --shadow-lg: 0 20px 48px rgba(10, 30, 40, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--off-white);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a, button, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
}
button { cursor: pointer; }

/* =============================================================
   TYPOGRAPHY
   ============================================================= */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--ink); letter-spacing: -0.5px; line-height: 1.15; }
h1 { font-size: clamp(40px, 6vw, 76px); }
h1 em { font-style: italic; color: var(--teal); }
h2 { font-size: clamp(32px, 4.2vw, 52px); margin-bottom: 16px; }
h2 em { font-style: italic; color: var(--teal); }
h3 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 10px; }
h4 { font-size: 20px; margin-bottom: 8px; }
p  { margin-bottom: 16px; color: var(--ink-muted); font-size: 17px; line-height: 1.75; }
p.lede { font-size: 20px; line-height: 1.6; color: var(--ink); max-width: 680px; }
p.small, .small { font-size: 15px; line-height: 1.6; }

/* =============================================================
   NAV
   ============================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: rgba(250, 247, 241, 0.96);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  padding: 14px 48px;
  box-shadow: 0 1px 0 rgba(10, 30, 40, 0.06);
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 76px; width: auto; transition: height 0.3s; }
.nav.scrolled .nav-logo img { height: 58px; }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s;
}
.nav.scrolled .nav-links a { color: var(--ink); }
.nav-links a:hover { color: var(--teal-light-text); }
.nav.scrolled .nav-links a:hover { color: var(--teal); }
.nav-cta {
  background: var(--teal);
  color: white !important;
  padding: 11px 22px !important;
  border-radius: 6px;
  letter-spacing: 1.5px !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--teal-dark); }
.nav.scrolled .nav-cta { background: var(--teal); color: white !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  background: none;
  border: none;
  padding: 8px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: white; transition: background 0.2s; }
.nav.scrolled .hamburger span { background: var(--ink); }

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 140px 24px 80px;
  overflow: hidden;
  background:
    /* Top-to-middle soft white wash — lightens the image ~50% overall */
    linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.08) 40%, transparent 65%),
    /* Mild bottom vignette preserves text contrast for headline + lede */
    linear-gradient(180deg, transparent 55%, rgba(5,32,42,0.18) 100%),
    url('/img/hero-villa.jpg') center/cover no-repeat;
}
.hero::before {
  /* Subtle noise texture for premium feel */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px, 14px 14px;
  background-position: 0 0, 7px 7px;
  opacity: 0.8;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.hero .eyebrow { color: var(--teal-light-text); text-shadow: 0 1px 6px rgba(0,0,0,0.55); }
/* Text shadows bumped so headline stays legible on the lightened background */
.hero h1 { color: white; margin-bottom: 24px; text-shadow: 0 2px 32px rgba(0,0,0,0.65), 0 0 6px rgba(0,0,0,0.5); }
.hero h1 em { color: var(--teal-light-text); }
.hero p.lede { color: #fff; margin-left: auto; margin-right: auto; margin-bottom: 42px; text-shadow: 0 1px 14px rgba(0,0,0,0.75), 0 0 4px rgba(0,0,0,0.4); }
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--sans);
  white-space: nowrap;
}
.btn-primary { background: var(--teal); color: white; }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-coral { background: var(--coral); color: white; }
.btn-coral:hover { background: var(--coral-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.55);
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); }
.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-outline-dark:hover { background: var(--ink); color: white; }

/* Hero bottom chip — service areas */
.hero-areas {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 5px;
  text-transform: uppercase;
}
.hero-areas span { opacity: 0.45; margin: 0 8px; }

/* =============================================================
   SECTIONS
   ============================================================= */
.section {
  padding: 100px 48px;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-center { text-align: center; }
.section-center .lede { margin-left: auto; margin-right: auto; }
.section-header { margin-bottom: 56px; }
.section-sand { background: var(--sand-light); }
.section-sand-deeper { background: var(--sand); }
.section-ink { background: var(--ink); color: white; }
.section-ink p, .section-ink h2, .section-ink h3 { color: white; }
.section-ink p { color: rgba(255,255,255,0.8); }

.gold-rule {
  width: 48px;
  height: 2px;
  background: var(--teal);
  margin: 20px auto 0;
}

/* =============================================================
   NEIGHBORHOOD CARDS
   ============================================================= */
.neighborhood-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 32px;
}
.neighborhood-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: block;
  color: inherit;
}
.neighborhood-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.neighborhood-card-img {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
.neighborhood-card-img .placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-family: var(--serif);
  font-style: italic;
  font-size: 64px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-shadow: 0 2px 18px rgba(0,0,0,0.55), 0 0 4px rgba(0,0,0,0.4);
  transition: transform 0.6s ease;
}
.neighborhood-card:hover .neighborhood-card-img .placeholder {
  transform: scale(1.03);
}
.nh-sosua .neighborhood-card-img .placeholder {
  background-image:
    radial-gradient(ellipse at center, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 100%),
    url('/img/neighborhoods/sosua.png');
}
.nh-cabarete .neighborhood-card-img .placeholder {
  background-image:
    radial-gradient(ellipse at center, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 100%),
    url('/img/neighborhoods/cabarete.png');
}
.nh-puertoplata .neighborhood-card-img .placeholder {
  background-image:
    radial-gradient(ellipse at center, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 100%),
    url('/img/neighborhoods/puerto-plata.png');
}
.neighborhood-card-content { padding: 28px 28px 32px; }
.neighborhood-card h3 { color: var(--ink); }
.neighborhood-card .meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin: 6px 0 14px;
}
.neighborhood-card p { font-size: 15px; color: var(--ink-muted); }
.neighborhood-card .arrow {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.neighborhood-card:hover .arrow { gap: 10px; }
.neighborhood-card .arrow span { transition: transform 0.2s; display: inline-block; }
.neighborhood-card:hover .arrow span { transform: translateX(4px); }

/* =============================================================
   HOW WE HELP — 3 step process
   ============================================================= */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 40px;
}
.step { text-align: center; }
.step-number {
  width: 60px; height: 60px;
  border: 2px solid var(--teal);
  color: var(--teal);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 28px;
  font-style: italic;
  margin-bottom: 20px;
}
.step h4 { font-family: var(--serif); font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--ink-muted); }

/* =============================================================
   RESOURCE TILES
   ============================================================= */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.resource-tile {
  background: white;
  border-radius: var(--radius);
  padding: 36px 32px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
  display: block;
  color: inherit;
}
.resource-tile:hover { border-color: var(--teal); transform: translateY(-3px); }
.resource-icon {
  width: 52px; height: 52px;
  background: var(--sand-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.resource-icon svg { width: 24px; height: 24px; stroke: var(--teal); fill: none; stroke-width: 1.8; }
.resource-tile h4 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.resource-tile p { font-size: 15px; color: var(--ink-muted); margin-bottom: 14px; }
.resource-tile .link { font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--teal); }

/* =============================================================
   INTAKE FORM (hero lead capture)
   ============================================================= */
.intake-section {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(79, 168, 179, 0.12) 0%, transparent 50%),
    var(--off-white);
}
.intake {
  background: white;
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 56px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.intake h2 { margin-bottom: 8px; }
.intake p.lede { margin-bottom: 36px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-row-full { grid-column: 1 / -1; }
.form-grid label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-grid input[type="text"],
.form-grid input[type="email"],
.form-grid input[type="tel"],
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--sans);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  transition: border 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-grid select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'><path fill='%234A5968' d='M0 0l5 6 5-6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px;
  padding-right: 36px;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 124, 138, 0.12);
}
.form-grid textarea { min-height: 96px; resize: vertical; }
.form-submit-row {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.form-note {
  font-size: 13px;
  color: var(--muted-text);
  text-align: center;
  margin-top: 16px;
}

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  background: var(--ink);
  color: white;
  padding: 72px 48px 36px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-logo img { height: 68px; width: auto; opacity: 0.95; }
.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  color: rgba(255,255,255,0.75);
  font-size: 17px;
  margin-top: 16px;
  max-width: 320px;
}
.footer h5, .footer h4, .footer h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal-light-text);
  margin-bottom: 18px;
}
.footer ul { list-style: none; padding: 0; }
.footer li { margin-bottom: 10px; }
.footer a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: color 0.2s;
}
.footer a:hover { color: white; }
.footer-bottom {
  max-width: 1200px;
  margin: 56px auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 1px;
}
.footer-bottom a { color: rgba(255,255,255,0.45); }

/* =============================================================
   UTILITIES
   ============================================================= */
.breeze-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px auto;
  color: var(--teal);
  opacity: 0.5;
  width: fit-content;
}
.breeze-divider .rule { width: 60px; height: 1px; background: currentColor; }

/* =============================================================
   RESPONSIVE — mobile (iPhone, iPad, etc.)
   ============================================================= */
@media (max-width: 900px) {
  .nav { padding: 16px 24px; }
  .nav.scrolled { padding: 12px 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .section { padding: 72px 24px; }
  .section-header { margin-bottom: 36px; }
  .hero { padding: 120px 24px 80px; }
  .neighborhood-grid { grid-template-columns: 1fr; gap: 20px; }
  .steps-grid { grid-template-columns: 1fr; gap: 28px; }
  .resource-grid { grid-template-columns: 1fr; gap: 16px; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .intake { padding: 32px 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-logo { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
@media (max-width: 480px) {
  h1 { font-size: 38px; }
  h2 { font-size: 30px; }
  .section { padding: 56px 20px; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* Mobile nav drawer */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink);
  color: white;
  flex-direction: column;
  padding: 100px 32px 40px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: white;
}
.mobile-menu a:hover { color: var(--teal-light-text); }
.mobile-menu .nav-cta {
  margin-top: 24px;
  padding: 16px 32px !important;
  text-align: center;
}
