/*
Theme Name: Dartmouth House
Theme URI: https://dartmouth-house.com
Author: Dartmouth House
Description: Your guide to homes for rent and sale in and around Dartmouth.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: dartmouth-house
Tags: real estate, homes, rental, dartmouth, blog
*/

/* =============================================
   DESIGN TOKENS — Coastal Community Bulletin
   ============================================= */
:root {
  /* Harbour palette */
  --harbour:      #1C4E6E;
  --harbour-mid:  #245F85;
  --harbour-lt:   #3D8BAB;
  --harbour-pale: #E8F4F9;
  --sand:         #F5EFE0;
  --sand-dk:      #EAE0CA;
  --sand-xd:      #DDD0B5;
  --parchment:    #FAF7F1;
  --dune:         #C4A87A;
  --dune-lt:      #D9C096;
  --dune-pale:    #FBF5E8;
  --brick:        #B45B42;
  --brick-lt:     #CC6E56;
  --brick-pale:   #FAF0EC;
  --tide:         #3D8BAB;
  --tide-pale:    #EAF4F8;
  --slate:        #4A5568;
  --slate-lt:     #718096;
  --pebble:       #8E9BAA;
  --stone:        #CBD5E0;
  --charcoal:     #1A202C;
  --ink:          #2D3748;
  --border:       #E2D9C8;
  --border-lt:    #EDE7D9;
  --white:        #FFFFFF;

  /* Fonts — DM Serif Display + Nunito (both new to this series) */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'Nunito', 'Helvetica Neue', sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  /* Motion */
  --ease:       cubic-bezier(0.33, 1, 0.68, 1);
  --transition: all 0.28s var(--ease);
  --fast:       all 0.15s ease;

  /* Layout */
  --max-w:    1360px;
  --gutter:   clamp(1.25rem, 4vw, 3.5rem);
  --radius:   6px;
  --radius-md: 14px;
  --radius-lg: 28px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img  { display: block; max-width: 100%; }
a    { color: var(--harbour); text-decoration: none; transition: var(--fast); }
a:hover { color: var(--brick); }
ul, ol { list-style: none; }
p { margin-bottom: 1.15em; }
p:last-child { margin-bottom: 0; }

/* =============================================
   TYPOGRAPHY — DM Serif Display is warm, humanist
   ============================================= */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;  /* DM Serif Display looks best at regular weight */
  color: var(--charcoal);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 5.5vw, 5.5rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2vw, 2rem); }
h4 { font-size: 1.1rem; font-weight: 700; font-family: var(--font-body); }

.display-italic { font-style: italic; }

/* Location label */
.loc-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.loc-label--harbour { color: var(--harbour); }
.loc-label--brick   { color: var(--brick); }
.loc-label--dune    { color: var(--dune); }
.loc-label--pebble  { color: var(--pebble); }
.loc-label--white   { color: rgba(255,255,255,0.65); }

/* Divider rules */
.rule { display: block; width: 48px; height: 3px; background: var(--dune); margin: 1rem 0; border-radius: 2px; }
.rule--harbour { background: var(--harbour); }
.rule--brick   { background: var(--brick); }
.rule--center  { margin-left: auto; margin-right: auto; }

/* Scalloped wave SVG divider — unique structural element */
.wave-divider {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-bottom: -1px;
}
.wave-divider svg { display: block; width: 100%; }

/* Property ribbon badges */
.prop-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
}
.prop-badge--sale   { background: var(--harbour); color: var(--white); }
.prop-badge--rent   { background: var(--brick); color: var(--white); }
.prop-badge--sold   { background: var(--slate); color: var(--white); }
.prop-badge--new    { background: var(--dune); color: var(--charcoal); }

/* Property spec pills */
.prop-specs {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}
.prop-spec {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--slate);
}
.prop-spec-icon { font-size: 0.9rem; }

/* Price display */
.prop-price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--harbour);
  line-height: 1;
}
.prop-price em { font-style: normal; font-size: 0.85em; color: var(--pebble); margin-right: 0.15em; }

/* Local knowledge tip box — unique to this site */
.local-tip {
  background: var(--harbour-pale);
  border-left: 4px solid var(--harbour);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}
.local-tip-label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--harbour);
  display: block;
  margin-bottom: 0.4rem;
}
.local-tip p { font-size: 0.92rem; color: var(--slate); margin: 0; line-height: 1.65; }

/* =============================================
   LAYOUT
   ============================================= */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}
.section     { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--sm { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-harbour {
  background: var(--harbour);
  color: var(--white);
  border-color: var(--harbour);
}
.btn-harbour:hover {
  background: var(--harbour-mid);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(28,78,110,0.3);
}
.btn-brick {
  background: var(--brick);
  color: var(--white);
  border-color: var(--brick);
}
.btn-brick:hover {
  background: var(--brick-lt);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(180,91,66,0.3);
}
.btn-dune {
  background: var(--dune);
  color: var(--charcoal);
  border-color: var(--dune);
}
.btn-dune:hover {
  background: var(--dune-lt);
  color: var(--charcoal);
  transform: translateY(-2px);
}
.btn-outline-harbour {
  background: transparent;
  color: var(--harbour);
  border-color: var(--harbour);
}
.btn-outline-harbour:hover {
  background: var(--harbour);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}
.btn-sand {
  background: var(--sand);
  color: var(--charcoal);
  border-color: var(--sand);
}
.btn-sand:hover {
  background: var(--white);
  color: var(--harbour);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.btn-lg { padding: 1rem 2.2rem; font-size: 0.84rem; }
.btn-xl { padding: 1.1rem 2.4rem; font-size: 0.9rem; }
.btn-sm { padding: 0.45rem 1.1rem; font-size: 0.65rem; }
.btn-arrow::after { content: ' →'; display: inline-block; transition: transform 0.18s; }
.btn-arrow:hover::after { transform: translateX(5px); }

/* =============================================
   IMAGE PLACEHOLDERS
   ============================================= */
.img-ph {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--sand-dk) 0%, var(--sand-xd) 100%);
  position: relative;
  overflow: hidden;
}
.img-ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 40% at 65% 35%, rgba(28,78,110,0.08) 0%, transparent 55%);
}
.img-ph-txt {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pebble);
  z-index: 1;
  text-align: center;
  padding: 1rem;
  line-height: 2;
}
.img-ph--harbour {
  background: linear-gradient(145deg, var(--harbour) 0%, #122F44 100%);
}
.img-ph--harbour .img-ph-txt { color: rgba(255,255,255,0.28); }

/* =============================================
   HEADER
   ============================================= */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
#site-header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 24px rgba(28,78,110,0.08);
}

/* Harbour stripe at very top */
.header-stripe {
  height: 4px;
  background: linear-gradient(90deg, var(--harbour) 0%, var(--tide) 50%, var(--dune) 100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--gutter);
  gap: 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-house {
  width: 38px;
  height: 38px;
  background: var(--harbour);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.logo-house svg { width: 22px; height: 22px; }
.site-logo:hover .logo-house {
  background: var(--brick);
  transform: scale(1.06);
}
.logo-text { line-height: 1.1; }
.logo-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--charcoal);
  display: block;
  letter-spacing: -0.01em;
}
.logo-name em { font-style: italic; color: var(--harbour); }
.logo-sub {
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pebble);
  display: block;
}

/* Nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--slate);
  transition: color 0.18s;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--harbour);
  border-radius: 2px;
  transition: width 0.22s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--harbour); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--harbour);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  transform: translateX(-100%);
  transition: transform 0.42s var(--ease);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--sand);
  font-style: italic;
}
.mobile-nav a:hover { color: var(--dune); }

/* =============================================
   HERO
   ============================================= */
.hero {
  background: var(--harbour);
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 9rem) 0 0;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(61,139,171,0.2) 0%, transparent 65%);
  pointer-events: none;
}

/* Big ghost house number */
.hero-number {
  position: absolute;
  top: -1rem;
  right: 0;
  font-family: var(--font-display);
  font-size: clamp(10rem, 22vw, 26rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
}

.hero .container { position: relative; z-index: 1; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-bottom: clamp(4rem, 7vw, 6rem);
}
.hero-inner > * { min-width: 0; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.hero-eyebrow-dot {
  width: 8px; height: 8px;
  background: var(--dune);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 6rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero-title .italic-line { font-style: italic; display: block; color: var(--dune); }

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.8;
  max-width: 460px;
  margin-bottom: 2.5rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

/* Quick stats under CTAs */
.hero-stats {
  display: flex;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  flex-wrap: wrap;
}
.hero-stat-val {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--white);
  display: block;
  line-height: 1;
}
.hero-stat-val em { color: var(--dune); font-style: normal; }
.hero-stat-label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  display: block;
  margin-top: 0.25rem;
}

/* Hero right: stacked listing preview cards */
.hero-listings {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hero-listing-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  transition: var(--transition);
  cursor: pointer;
}
.hero-listing-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  transform: translateX(-4px);
}
.hlc-img {
  width: 72px;
  height: 60px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}
.hlc-img .img-ph { min-height: unset; }
.hlc-body { flex: 1; min-width: 0; }
.hlc-address {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  margin-bottom: 0.2rem;
}
.hlc-meta {
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: rgba(255,255,255,0.45);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hlc-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--dune);
  flex-shrink: 0;
  white-space: nowrap;
}

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  background: var(--harbour);
  padding: clamp(5rem, 9vw, 8rem) 0 clamp(2.5rem, 4vw, 4rem);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 400px; height: 100%;
  background: linear-gradient(to left, rgba(61,139,171,0.15), transparent);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--dune), var(--brick), var(--tide));
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); }
.page-hero .hero-sub { color: rgba(255,255,255,0.55); font-size: 1.05rem; max-width: 580px; margin-top: 0.75rem; }

.breadcrumb {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  display: block;
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: rgba(255,255,255,0.45); }
.breadcrumb a:hover { color: var(--dune); }
.breadcrumb .sep { margin: 0 0.5rem; opacity: 0.4; }

/* =============================================
   LISTING CARDS
   ============================================= */
.listing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.listing-card:hover {
  box-shadow: 0 12px 36px rgba(28,78,110,0.12);
  transform: translateY(-4px);
  border-color: var(--harbour-pale);
}
.listing-card__img {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.listing-card__img .img-ph { min-height: unset; transition: transform 0.5s var(--ease); }
.listing-card:hover .listing-card__img .img-ph { transform: scale(1.05); }

/* Ribbon badge overlay */
.listing-ribbon {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 2;
}

.listing-card__body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.listing-card__address {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pebble);
  display: block;
  margin-bottom: 0.3rem;
}
.listing-card__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--charcoal);
  margin-bottom: 0.6rem;
  line-height: 1.28;
  transition: color 0.18s;
}
.listing-card:hover .listing-card__name { color: var(--harbour); }
.listing-card__specs { margin-bottom: 0.9rem; }
.listing-card__price { margin-top: auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; padding-top: 1rem; border-top: 1px solid var(--border-lt); }

/* =============================================
   BLOG POST CARDS
   ============================================= */
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.post-card:hover {
  box-shadow: 0 10px 32px rgba(28,78,110,0.1);
  transform: translateY(-4px);
  border-color: transparent;
}
.post-card__img { aspect-ratio: 16/9; overflow: hidden; position: relative; flex-shrink: 0; }
.post-card__img .img-ph { min-height: unset; transition: transform 0.5s var(--ease); }
.post-card:hover .post-card__img .img-ph { transform: scale(1.05); }
.post-card__body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.post-card__cat {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brick);
  display: block;
  margin-bottom: 0.5rem;
}
.post-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--charcoal);
  line-height: 1.3;
  margin-bottom: 0.55rem;
  flex: 1;
  transition: color 0.18s;
}
.post-card:hover .post-card__title { color: var(--harbour); }
.post-card__excerpt {
  font-size: 0.87rem;
  color: var(--slate-lt);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.post-card__meta {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--pebble);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-lt);
  margin-top: auto;
  text-transform: uppercase;
}

/* Featured hero post card */
.post-hero-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: block;
  min-height: 380px;
  text-decoration: none;
}
.post-hero-card-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.post-hero-card-img .img-ph { min-height: unset; width: 100%; height: 100%; }
.post-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, rgba(28,78,110,0.92) 0%, rgba(28,78,110,0.5) 55%, rgba(28,78,110,0.1) 100%);
}
.post-hero-body {
  position: relative; z-index: 2;
  padding: 2.5rem 3rem;
  margin-top: auto;
  max-width: 600px;
}
.post-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.6rem);
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 0.85rem;
}

/* =============================================
   NEIGHBOURHOOD FEATURES
   ============================================= */
.area-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: block;
  min-height: 260px;
  text-decoration: none;
  transition: var(--transition);
}
.area-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0,0,0,0.15); }
.area-card .img-ph { position: absolute; inset: 0; width: 100%; height: 100%; min-height: unset; transition: transform 0.5s var(--ease); }
.area-card:hover .img-ph { transform: scale(1.05); }
.area-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(28,78,110,0.85) 0%, rgba(28,78,110,0.2) 60%, transparent 100%);
}
.area-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem; z-index: 2; }
.area-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  font-style: italic;
  margin-bottom: 0.2rem;
}
.area-count {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dune);
}

/* =============================================
   WHY CHOOSE SECTION
   ============================================= */
.why-card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--harbour);
  transition: var(--transition);
  position: relative;
}
.why-card:hover {
  box-shadow: 0 8px 24px rgba(28,78,110,0.08);
  transform: translateY(-3px);
}
.why-icon { font-size: 2rem; margin-bottom: 0.85rem; display: block; }
.why-title { font-family: var(--font-display); font-size: 1.15rem; color: var(--charcoal); margin-bottom: 0.4rem; }
.why-desc  { font-size: 0.88rem; color: var(--slate-lt); line-height: 1.65; margin: 0; }

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section { background: var(--harbour); position: relative; overflow: hidden; }
.cta-section::before {
  content: '';
  position: absolute;
  bottom: -40%; right: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(61,139,171,0.2) 0%, transparent 65%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 3rem; flex-wrap: wrap; }
.cta-inner h2 { color: var(--white); }
.cta-inner p  { color: rgba(255,255,255,0.6); margin-top: 0.4rem; }

/* =============================================
   CONTACT FORM
   ============================================= */
.contact-form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 2.5rem; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-family: var(--font-body); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate); margin-bottom: 0.4rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--parchment); color: var(--charcoal); padding: 0.8rem 1rem; font-family: var(--font-body); font-size: 0.95rem; outline: none; transition: border-color 0.2s, box-shadow 0.2s; appearance: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--pebble); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--harbour); box-shadow: 0 0 0 3px rgba(28,78,110,0.1); background: var(--white); }
.form-group textarea { height: 130px; resize: vertical; }
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231C4E6E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-color: var(--parchment); padding-right: 2.5rem; }

/* =============================================
   SINGLE POST
   ============================================= */
.post-content { font-size: 1.02rem; line-height: 1.88; color: var(--ink); }
.post-content h2 { font-size: 1.8rem; margin: 2.5rem 0 0.9rem; color: var(--harbour); }
.post-content h3 { font-size: 1.35rem; margin: 2rem 0 0.7rem; }
.post-content p  { margin-bottom: 1.3em; }
.post-content ul, .post-content ol { margin: 0 0 1.3em 1.5rem; list-style: disc; }
.post-content li { margin-bottom: 0.45em; line-height: 1.75; }
.post-content strong { color: var(--charcoal); font-weight: 700; }
.post-content a { color: var(--harbour); border-bottom: 1px solid rgba(28,78,110,0.25); }
.post-content a:hover { color: var(--brick); }

/* =============================================
   STATS BAND
   ============================================= */
.stats-band { background: var(--sand); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 2.5rem 2rem; text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-val { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 4.5rem); font-weight: 400; color: var(--harbour); line-height: 1; display: block; }
.stat-val em { color: var(--brick); font-style: normal; }
.stat-label { font-family: var(--font-body); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--pebble); display: block; margin-top: 0.4rem; }

/* =============================================
   FOOTER
   ============================================= */
#site-footer { background: var(--charcoal); padding: 4.5rem 0 0; position: relative; }
#site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--harbour), var(--tide), var(--dune)); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3.5rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.36); line-height: 1.72; margin-top: 1rem; max-width: 260px; }
.footer-col h5 { font-family: var(--font-body); font-size: 0.6rem; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 1.25rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a { font-size: 0.88rem; color: rgba(255,255,255,0.35); transition: color 0.18s; }
.footer-col a:hover { color: var(--dune); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 0; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { font-size: 0.72rem; color: rgba(255,255,255,0.2); margin: 0; font-family: var(--font-body); letter-spacing: 0.06em; }

/* =============================================
   ANIMATIONS
   ============================================= */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.09s; }
.fade-up:nth-child(3) { transition-delay: 0.18s; }
.fade-up:nth-child(4) { transition-delay: 0.27s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-listings { display: none; }
  .hero-number { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .grid-2 { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}
@media (max-width: 640px) {
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row   { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner  { flex-direction: column; align-items: flex-start; }
  .post-hero-body { padding: 1.5rem; }
}
