/* ============================================================
   JACOBEAN PROPERTIES — Global Stylesheet
   Color palette derived from Jacobean Properties logo
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Brand Colors */
  --color-forest:      #2B3D24;   /* Deep forest green — primary */
  --color-forest-mid:  #3E5433;   /* Mid forest green */
  --color-olive:       #5A7048;   /* Olive/sage — secondary */
  --color-gold:        #C4A252;   /* Warm gold — accent / CTAs */
  --color-gold-light:  #D9BC7A;   /* Light gold hover */
  --color-brown:       #2C1E12;   /* Dark cabin brown */
  --color-cream:       #F4EFE0;   /* Warm cream — light backgrounds */
  --color-cream-dark:  #E8DFC8;   /* Slightly darker cream */
  --color-white:       #FFFFFF;

  /* Neutrals */
  --color-text:        #1E2B1A;   /* Near-black with green tint */
  --color-text-muted:  #5A6854;   /* Muted body text */
  --color-border:      #D5CEBA;   /* Subtle border */

  /* Typography */
  --font-display:      'Playfair Display', Georgia, serif;
  --font-body:         'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Layout */
  --max-width: 1240px;
  --nav-height: 72px;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.16);

  /* Transitions */
  --transition: 0.2s ease;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── Container ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--color-forest);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }
p  { color: var(--color-text-muted); line-height: 1.75; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-xs);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-brown);
}
.btn-primary:hover {
  background: var(--color-gold-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}
.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-forest);
}

.btn-forest {
  background: var(--color-forest);
  color: var(--color-white);
}
.btn-forest:hover {
  background: var(--color-forest-mid);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.875rem; }
.btn-lg { padding: 1.1rem 2.25rem; font-size: 1.05rem; }

/* ── Navigation ────────────────────────────────────────────── */
.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);
}
.nav.scrolled {
  background: var(--color-forest);
  box-shadow: var(--shadow-md);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-logo img {
  height: 44px;
  width: 44px;
  border-radius: 50%;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
}
.nav-logo-sub {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.nav-links a {
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity var(--transition);
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active { color: var(--color-gold-light); opacity: 1; }
.nav-cta { margin-left: var(--space-sm); }

/* Mobile Nav */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--color-forest);
  padding: var(--space-md);
  flex-direction: column;
  gap: var(--space-sm);
  box-shadow: var(--shadow-lg);
  z-index: 999;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(27,42,22,0.72) 0%,
    rgba(43,61,36,0.55) 50%,
    rgba(27,42,22,0.45) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  max-width: 720px;
}
.hero h1 { color: var(--color-white); margin-bottom: var(--space-sm); }
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.88);
  margin-bottom: var(--space-lg);
  max-width: 560px;
}
.hero-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

/* ── Search Bar ─────────────────────────────────────────────── */
.search-bar {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  box-shadow: var(--shadow-lg);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}
.search-bar-field {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 140px;
}
.search-bar-field label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-forest);
  margin-bottom: 2px;
}
.search-bar-field input,
.search-bar-field select {
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: var(--color-text);
  background: transparent;
  padding: 0;
}
.search-bar-divider {
  width: 1px;
  height: 36px;
  background: var(--color-border);
}
.search-bar-btn {
  background: var(--color-gold);
  color: var(--color-brown);
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.search-bar-btn:hover { background: var(--color-gold-light); }

/* ── Section Styles ─────────────────────────────────────────── */
.section { padding: var(--space-2xl) 0; }
.section-sm { padding: var(--space-xl) 0; }
.section-cream { background: var(--color-cream); }
.section-forest { background: var(--color-forest); }
.section-header { margin-bottom: var(--space-lg); }
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

/* ── Property Cards ─────────────────────────────────────────── */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-md);
}
.property-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--color-border);
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.property-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--color-cream-dark);
}
.property-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.property-card:hover .property-card-img img { transform: scale(1.04); }
.property-card-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--color-gold);
  color: var(--color-brown);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.property-card-body { padding: var(--space-sm) var(--space-md); }
.property-card-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-forest);
  margin-bottom: 4px;
}
.property-card-location {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 4px;
}
.property-card-meta {
  display: flex;
  gap: var(--space-sm);
  font-size: 0.82rem;
  color: var(--color-text-muted);
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-sm);
}
.property-card-meta span { display: flex; align-items: center; gap: 4px; }
.property-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.property-card-price .amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-forest);
}
.property-card-price .unit {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.property-card-price .from {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  display: block;
}

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--color-cream-dark) 25%, var(--color-cream) 50%, var(--color-cream-dark) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.property-card.loading .property-card-img { background: var(--color-cream-dark); }
.property-card.loading .property-card-img::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-cream-dark) 25%, var(--color-cream) 50%, var(--color-cream-dark) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.skeleton-line {
  height: 1em;
  margin-bottom: 0.5rem;
  border-radius: var(--radius-sm);
}

/* ── Trust Badges / Icons ───────────────────────────────────── */
.trust-bar {
  background: var(--color-forest);
  padding: var(--space-sm) 0;
  border-top: 3px solid var(--color-gold);
}
.trust-bar-inner {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-cream);
  font-size: 0.9rem;
  font-weight: 500;
}
.trust-item svg { flex-shrink: 0; color: var(--color-gold); }

/* ── Features / Value Props ─────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-md);
}
.feature-card {
  padding: var(--space-md);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  text-align: center;
}
.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--color-cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
  color: var(--color-forest);
}
.feature-card h4 { color: var(--color-forest); margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; }

/* ── Owner Value Props ──────────────────────────────────────── */
.owner-hero {
  min-height: 80vh;
  position: relative;
  display: flex;
  align-items: center;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}
.stat-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: center;
  color: var(--color-white);
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label { font-size: 0.85rem; opacity: 0.8; }

/* ── Services List ──────────────────────────────────────────── */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-sm);
}
.service-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.service-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--color-cream);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
}
.service-item h4 { font-size: 0.95rem; color: var(--color-forest); margin-bottom: 2px; }
.service-item p  { font-size: 0.82rem; }

/* ── Contact Form ───────────────────────────────────────────── */
.contact-form {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}
.form-group { margin-bottom: var(--space-sm); }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-forest);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-cream);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--color-forest); background: var(--color-white); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--color-brown);
  color: rgba(255,255,255,0.75);
  padding: var(--space-xl) 0 var(--space-md);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}
.footer-brand img { height: 56px; margin-bottom: var(--space-sm); }
.footer-brand p { font-size: 0.88rem; max-width: 280px; line-height: 1.7; }
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.04em;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-col ul a {
  font-size: 0.88rem;
  opacity: 0.75;
  transition: opacity var(--transition);
}
.footer-col ul a:hover { opacity: 1; color: var(--color-gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: 0.8rem;
  opacity: 0.6;
}
.footer-bottom a { color: var(--color-gold-light); }

/* ── Alert / Toast ──────────────────────────────────────────── */
.alert {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.alert-error   { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}
.breadcrumb a { color: var(--color-forest); }
.breadcrumb span { opacity: 0.5; }

/* ── Utility ────────────────────────────────────────────────── */
.text-center  { text-align: center; }
.text-white   { color: var(--color-white) !important; }
.text-gold    { color: var(--color-gold) !important; }
.text-muted   { color: var(--color-text-muted); }
.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.gap-sm { gap: var(--space-sm); }
.flex   { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease forwards; }
.fade-up-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-up-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-up-delay-3 { animation-delay: 0.3s; opacity: 0; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --space-xl: 3rem; --space-2xl: 4rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .search-bar { flex-direction: column; align-items: stretch; }
  .search-bar-divider { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .trust-bar-inner { gap: var(--space-md); }
}

/* ── Lucide Icons ────────────────────────────────────────── */
.book-direct-card .icon svg { width: 28px; height: 28px; stroke: var(--color-gold-light); }
.service-icon svg { width: 20px; height: 20px; stroke: currentColor; }
.contact-method-icon { display: flex; align-items: center; justify-content: center; }
.contact-method-icon svg { width: 22px; height: 22px; stroke: var(--color-gold); }
.contact-tab svg { width: 15px; height: 15px; vertical-align: middle; margin-right: 4px; }
.property-card-meta svg { width: 13px; height: 13px; vertical-align: middle; margin-right: 2px; }
.amenity-item svg { width: 16px; height: 16px; vertical-align: middle; margin-right: 6px; flex-shrink: 0; }
.empty-state-icon svg { width: 48px; height: 48px; stroke: var(--color-forest); opacity: 0.35; }
.prop-location-icon svg { width: 14px; height: 14px; vertical-align: middle; margin-right: 4px; stroke: var(--color-text-muted); }
