@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@400;500&display=swap');

/* ── Variables ── */
:root {
  --navy:  #1B2A4A;
  --teal:  #2EC4B6;
  --coral: #FF6B5C;
  --sun:   #FFC857;
  --sand:  #F4EBDD;
  --white: #FFFFFF;
  --text-muted: #6B7A9A;
  --radius: 10px;
  --transition: 0.2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--navy);
  background: var(--white);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p  { color: #3B4A6B; }

.text-teal   { color: var(--teal); }
.text-coral  { color: var(--coral); }
.text-white  { color: var(--white); }
.text-muted  { color: var(--text-muted); }

/* ── Layout ── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
section { padding: 5rem 0; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover {
  background: #27b0a3;
  border-color: #27b0a3;
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}
.btn-sun {
  background: var(--sun);
  color: var(--navy);
  border-color: var(--sun);
}
.btn-sun:hover {
  background: #f0b840;
  border-color: #f0b840;
}

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  padding: 0.9rem 0;
  box-shadow: 0 2px 16px rgba(27,42,74,0.18);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo img {
  height: 40px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--teal); }
.nav-cta {
  padding: 0.5rem 1.2rem;
  font-size: 0.88rem;
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Footer ── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand img { height: 38px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; max-width: 280px; }
.footer-col h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-legal a:hover { color: var(--teal); }

/* ── Hero (shared) ── */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -120px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(46,196,182,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  background: rgba(46,196,182,0.15);
  color: var(--teal);
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 99px;
  margin-bottom: 1.25rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero p { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 580px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Section Labels ── */
.section-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.section-header { max-width: 620px; margin-bottom: 3rem; }
.section-header p { margin-top: 0.75rem; font-size: 1.05rem; }
.section-header.centered { margin-left: auto; margin-right: auto; text-align: center; }

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid rgba(27,42,74,0.08);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 8px 32px rgba(27,42,74,0.1);
  transform: translateY(-3px);
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.card-icon.teal { background: rgba(46,196,182,0.12); }
.card-icon.sun  { background: rgba(255,200,87,0.15); }
.card-icon.coral{ background: rgba(255,107,92,0.12); }
.card h3 { margin-bottom: 0.5rem; }

/* ── Service grid ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* ── Sand section ── */
.section-sand { background: var(--sand); }
.section-navy { background: var(--navy); }

/* ── Divider accent ── */
.accent-bar {
  display: block;
  width: 48px; height: 4px;
  border-radius: 2px;
  background: var(--teal);
  margin: 1rem 0 1.5rem;
}
.accent-bar.sun { background: var(--sun); }

/* ── Page hero (inner pages) ── */
.page-hero {
  background: var(--navy);
  padding: 4rem 0 3.5rem;
  color: var(--white);
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.72); margin-top: 0.75rem; max-width: 560px; }

/* ── Forms ── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(27,42,74,0.18);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(46,196,182,0.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: none;
}
.form-status.success { background: rgba(46,196,182,0.12); color: #1a8a80; display: block; }
.form-status.error   { background: rgba(255,107,92,0.12); color: #c0392b; display: block; }

/* ── Property listings ── */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.property-card {
  background: var(--white);
  border: 1px solid rgba(27,42,74,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.property-card:hover {
  box-shadow: 0 8px 32px rgba(27,42,74,0.12);
  transform: translateY(-3px);
}
.property-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: var(--sand);
}
.property-photo-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--sand) 0%, #e8ddd0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(27,42,74,0.2);
}
.property-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.property-badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.property-badge {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
}
.badge-land    { background: rgba(255,200,87,0.2);  color: #9a7200; }
.badge-rental  { background: rgba(46,196,182,0.15); color: #1a8a80; }
.badge-available   { background: rgba(46,196,182,0.12); color: #1a8a80; }
.badge-contract    { background: rgba(255,107,92,0.12); color: #c0392b; }
.badge-sold        { background: rgba(27,42,74,0.1);    color: #6B7A9A; }
.property-title { font-size: 1rem; margin-bottom: 0.25rem; }
.property-location { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.property-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.property-meta span {
  font-size: 0.82rem;
  color: #3B4A6B;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.property-features {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
}
.property-features li {
  font-size: 0.85rem;
  color: #3B4A6B;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.property-features li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  font-size: 0.8rem;
}
.property-desc {
  font-size: 0.88rem;
  color: #3B4A6B;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.property-cta { margin-top: auto; }

.listings-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.filter-btn {
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: 99px;
  border: 1.5px solid rgba(27,42,74,0.18);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.no-listings {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

@media (max-width: 900px) { .property-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .property-grid { grid-template-columns: 1fr; } }

/* ── Legal pages ── */
.legal-content { max-width: 780px; margin: 0 auto; padding: 4rem 1.5rem; }
.legal-content h2 { font-size: 1.3rem; margin: 2.5rem 0 0.75rem; color: var(--navy); }
.legal-content p, .legal-content li { color: #3B4A6B; margin-bottom: 0.75rem; }
.legal-content ul { padding-left: 1.5rem; list-style: disc; }
.legal-content a { color: var(--teal); text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  section { padding: 3.5rem 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); padding: 1.5rem; gap: 1.25rem; }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
}
