/* ==========================================================================
   Terranium — Property Management, Real Estate, Hospitality & Legal Services
   ========================================================================== */

:root {
  --navy: #142433;
  --navy-dark: #0b1620;
  --sand: #c9a875;
  --sand-light: #e8dcc4;
  --off-white: #faf8f4;
  --text-dark: #1f2a33;
  --text-muted: #5c6b76;
  --border: #e3ddd0;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(20, 36, 51, 0.08);
  --max-width: 1180px;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--off-white);
  line-height: 1.65;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 16px;
}

p { margin: 0 0 16px; color: var(--text-muted); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--sand);
  margin-bottom: 12px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 1px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--sand);
  border-bottom-color: var(--sand);
}

.nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-cta:hover { background: var(--sand); color: var(--navy) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--navy);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--off-white);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(201,168,117,0.18), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(201,168,117,0.12), transparent 40%);
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 720px; }

.hero h1 {
  color: #fff;
  font-size: 44px;
  margin-bottom: 20px;
}

.hero p.lead {
  color: var(--sand-light);
  font-size: 18px;
  max-width: 560px;
}

.hero.small { padding: 64px 0 60px; }
.hero.small h1 { font-size: 34px; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary { background: var(--sand); color: var(--navy); }
.btn-primary:hover { background: #dcc196; }

.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: #fff; }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

/* ---------- Sections ---------- */

section { padding: 80px 0; }
section.alt { background: #fff; }
section.tight { padding: 56px 0; }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head p { font-size: 17px; }

/* ---------- Service cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.card:hover { transform: translateY(-4px); }

.card .icon {
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  color: var(--sand);
}

.card h3 { font-size: 20px; margin-bottom: 10px; }

.card a.card-link {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--navy);
  display: inline-block;
  margin-top: 12px;
  border-bottom: 2px solid var(--sand);
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 42px;
  color: var(--sand);
  font-weight: 700;
}

.stat-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

/* ---------- Leadership / About ---------- */

.leader {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.leader-avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--sand-light), var(--sand));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 700;
}

.leader h3 { margin-bottom: 4px; }
.leader .role { color: var(--sand); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; display: block; }

@media (max-width: 640px) {
  .leader { grid-template-columns: 1fr; }
  .leader-avatar { width: 120px; margin: 0 auto; }
}

/* ---------- Listings (Real Estate) ---------- */

.listing-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.listing-photo {
  height: 190px;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sand-light);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.listing-body { padding: 22px 24px; }
.listing-price { color: var(--navy); font-weight: 700; font-size: 20px; font-family: var(--font-serif); }
.listing-meta { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ---------- Process steps ---------- */

.steps { counter-reset: step; }
.step {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  counter-increment: step;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--sand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
}
.step-num::before { content: counter(step); }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 64px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--sand-light); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}

.contact-info-item .icon { width: 22px; height: 22px; color: var(--sand); flex-shrink: 0; margin-top: 3px; }
.contact-info-item strong { display: block; color: var(--navy); margin-bottom: 2px; }

form.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-dark);
  background: var(--off-white);
}
.form-row textarea { resize: vertical; min-height: 110px; }

.map-embed {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--radius);
  margin-top: 24px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-dark);
  color: var(--sand-light);
  padding: 56px 0 28px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-grid h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--sand); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(232,220,196,0.6);
}

.social-row { display: flex; gap: 14px; }
.social-row a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-row a:hover { border-color: var(--sand); color: var(--sand); }

/* ---------- WhatsApp floating button ---------- */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  background: #25D366;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  color: #fff;
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover { transform: scale(1.06); }

/* ---------- Utilities ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
