/* ============================================================
   LAMU REALTY — COASTAL SWAHILI THEME
   ============================================================ */

:root {
  --color-deep-teal: #0e3a44;
  --color-teal: #1d5c63;
  --color-teal-light: #3c8f99;
  --color-sand: #f6f1e7;
  --color-sand-dark: #ece3d1;
  --color-wood: #b5651d;
  --color-wood-dark: #8a4f18;
  --color-white: #ffffff;
  --color-text: #2b2b28;
  --color-text-light: #5c5c56;
  --color-border: #e2d9c6;
  --shadow-soft: 0 10px 30px rgba(14, 58, 68, 0.08);
  --shadow-med: 0 15px 40px rgba(14, 58, 68, 0.15);
  --radius: 14px;
  --whatsapp-green: #25d366;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-sand);
  line-height: 1.6;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-deep-teal);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 0; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.home .section-header h2 {
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 700;
}

.home .hero h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  max-width: none;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-wood);
  margin-bottom: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--color-wood);
  color: var(--color-white);
  box-shadow: 0 8px 20px rgba(181, 101, 29, 0.3);
}
.btn-primary:hover { background: var(--color-wood-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--color-teal);
  color: var(--color-teal);
}
.btn-outline:hover { background: var(--color-teal); color: var(--color-white); }

.btn-light {
  background: var(--color-white);
  color: var(--color-deep-teal);
}
.btn-light:hover { background: var(--color-sand); }

.btn-whatsapp {
  background: var(--whatsapp-green);
  color: var(--color-white);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover { background: #1eb958; }

.btn-blue {
  background: var(--color-deep-teal);
  color: var(--color-white);
  box-shadow: 0 8px 20px rgba(14, 58, 68, 0.3);
}
.btn-blue:hover { background: var(--color-teal); }

.btn-small { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- Top contact bar ---------- */
.top-bar {
  background: var(--color-deep-teal);
  color: #bcd9d2;
  font-size: 0.94rem;
  padding: 10px 24px;
}
.top-bar-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.top-bar-inner a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d8ece7;
  transition: color 0.15s ease;
}
.top-bar-inner a:hover { color: var(--color-white); }
.top-bar-inner .icon { display: inline-flex; align-items: center; color: var(--color-wood); }
.top-bar-inner .icon svg { display: block; }
.top-bar-address {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d8ece7;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(246, 241, 231, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

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

.brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-deep-teal);
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand span { color: var(--color-wood); }
.brand-logo { height: 58px; width: auto; display: block; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-deep-teal);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-menu a:hover,
.nav-menu a.active {
  border-bottom-color: var(--color-wood);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--color-deep-teal);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Nav dropdown (Services) ---------- */
.nav-item-dropdown { position: relative; }

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.dropdown-toggle .caret {
  font-size: 0.65em;
  transition: transform 0.2s ease;
  display: inline-block;
}

.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 250px;
  background: var(--color-white);
  border-radius: 10px;
  box-shadow: var(--shadow-med);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 250;
}
.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu,
.nav-item-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav-item-dropdown:hover .caret,
.nav-item-dropdown:focus-within .caret,
.nav-item-dropdown.open .caret { transform: rotate(180deg); }

.dropdown-menu li { width: auto; }
.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-deep-teal);
  border-bottom: none !important;
  white-space: nowrap;
}
.dropdown-menu li a:hover { background: var(--color-sand); color: var(--color-wood); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(420px, 58vh, 600px);
  padding: 60px 0;
  display: flex;
  align-items: center;
  color: var(--color-white);
  background: url('../images/hero-lamu-beach.jpg');
  background-size: cover;
  background-position: center 65%;
  text-align: center;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; }

/* Hero slider */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slides::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45));
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--color-white);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease;
}
.hero-dot.active { background: var(--color-white); }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: #cfe9df;
  margin-bottom: 18px;
}
.hero h1 {
  color: var(--color-white);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 900px;
  margin: 0 auto 20px;
}
.hero p.lead {
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: 1.15rem;
  color: #e7f1ec;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Page header banner (non-home pages) ---------- */
.page-banner {
  background: url('../images/hero-lamu-beach.jpg');
  background-size: cover;
  background-position: center 65%;
  color: var(--color-white);
  padding: 50px 0 40px;
  text-align: center;
}
.page-banner h1 { color: var(--color-white); margin-bottom: 12px; }
.page-banner p { color: #dcecE7; max-width: 560px; margin: 0 auto; }

.page-banner.has-image {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 130px 0 70px;
}
.page-banner.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,58,68,0.6), rgba(14,58,68,0.82));
}
.page-banner.has-image .container { position: relative; z-index: 2; }
.page-banner.has-image .eyebrow { color: #cfe9df; text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.8rem; display: block; margin-bottom: 12px; }

/* ---------- Property cards ---------- */
.properties-grid, #featured-properties {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 28px;
}

.location-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}
.location-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 2px solid var(--color-teal);
  background: transparent;
  color: var(--color-teal);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.location-filter-btn:hover { background: rgba(29, 92, 99, 0.08); }
.location-filter-btn .count {
  background: rgba(29, 92, 99, 0.12);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 0.78rem;
  font-weight: 700;
}
.location-filter-btn.active {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: var(--color-white);
}
.location-filter-btn.active .count {
  background: rgba(255, 255, 255, 0.25);
  color: var(--color-white);
}

.property-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.property-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-med);
}

.property-card-img { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; }
.property-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.property-card-img:hover img { transform: scale(1.05); }

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-white);
}
.badge-sale { background: var(--color-wood); }
.badge-rent { background: var(--color-teal); }

.property-card-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.property-card-body h3 { margin-bottom: 2px; font-size: 1.2rem; }
.property-location { color: var(--color-text-light); font-size: 0.9rem; margin-bottom: 4px; }
.property-summary { font-size: 0.92rem; color: var(--color-text-light); flex: 1; }

.property-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin: 6px 0;
}

.property-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}
.property-price { font-weight: 700; color: var(--color-deep-teal); font-size: 1.05rem; }

/* ---------- Filters ---------- */
.filter-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 9px 20px;
  border-radius: 999px;
  border: 2px solid var(--color-border);
  background: var(--color-white);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--color-text-light);
  transition: all 0.15s ease;
}
.filter-btn.active,
.filter-btn:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 58, 68, 0.55);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  z-index: 500;
}
.modal-overlay.open { display: flex; }
body.modal-open { overflow: hidden; }

.modal-box {
  background: var(--color-white);
  border-radius: var(--radius);
  max-width: 900px;
  width: 100%;
  position: relative;
  padding: 32px;
  margin: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--color-sand);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--color-deep-teal);
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 24px;
  border-radius: 10px;
  overflow: hidden;
}
.modal-gallery img { width: 100%; height: 160px; object-fit: cover; border-radius: 6px; }

.modal-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-wood);
  margin: 10px 0;
}

.features-list {
  columns: 2;
  padding-left: 18px;
  margin: 0 0 20px;
}
.features-list li { margin-bottom: 6px; font-size: 0.92rem; }

.modal-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 20px 0; }

/* ---------- Property detail page ---------- */
.property-detail-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.detail-header { margin-bottom: 4px; }
.detail-header .badge { position: static; display: inline-block; margin-bottom: 12px; }
.detail-header h1 { margin-bottom: 8px; }

.property-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 40px;
  align-items: start;
}
.detail-sidebar { position: sticky; top: 110px; }
.sidebar-card {
  background: var(--color-sand);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}
.sidebar-card h4 { margin-bottom: 16px; }
.sidebar-actions { display: flex; flex-direction: column; gap: 12px; }
.btn-block { width: 100%; }
.sidebar-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.85rem;
  margin: 20px 0 0;
}
.sidebar-divider::before, .sidebar-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}
.sidebar-divider span { padding: 0 10px; white-space: nowrap; }
.sidebar-card .enquiry-form { background: transparent; padding: 0; margin-top: 16px; }
.detail-info h4 { margin-top: 20px; margin-bottom: 10px; font-size: 1rem; color: #000; }
.detail-info h4:first-of-type { margin-top: 0; }

@media (max-width: 860px) {
  .property-detail-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-sidebar { position: static; }
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 30px;
}
.detail-gallery img { width: 100%; border-radius: 10px; height: 240px; object-fit: cover; }
.detail-gallery .main-img { grid-column: 1 / -1; height: 420px; }

.gallery-featured {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 30px;
  height: 420px;
}
.gallery-featured .main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.gallery-featured .side-imgs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-height: 0;
}
.gallery-featured .side-imgs img {
  flex: 1 1 0;
  width: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 10px;
}

/* ---------- Forms ---------- */
.enquiry-form, .contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--color-sand);
  padding: 24px;
  border-radius: var(--radius);
  margin-top: 20px;
}
.enquiry-form label, .contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-deep-teal);
}
.enquiry-form input,
.enquiry-form textarea,
.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-white);
}
.enquiry-form input:focus,
.enquiry-form textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-teal-light);
}
.req { color: #c0392b; font-weight: 700; }
.form-note { font-size: 0.8rem; color: var(--color-text-light); margin: 4px 0 0; }
.form-success {
  background: #e6f6ea;
  color: #1c7a37;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-top: 6px;
}
.form-success.form-error { background: #fbe9e6; color: #a33a2a; }

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-med); }
.blog-card img { aspect-ratio: 16/10; object-fit: cover; }
.blog-card-body { padding: 22px; }
.blog-date { font-size: 0.8rem; color: var(--color-wood); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.blog-card-body h3 { font-size: 1.15rem; margin: 6px 0 10px; }
.blog-card-body p { font-size: 0.92rem; color: var(--color-text-light); }
.link-arrow { font-weight: 700; color: var(--color-teal); display: inline-block; margin-top: 8px; }

.blog-post-hero { border-radius: var(--radius); margin: 24px 0; max-height: 420px; width: 100%; object-fit: cover; }
.blog-post-content p { font-size: 1.05rem; color: var(--color-text); margin-bottom: 1.2em; }

/* ---------- Services page ---------- */
[id] { scroll-margin-top: 120px; }

.service-jump-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 28px 24px 0;
  max-width: 1320px;
  margin: 0 auto;
}
.service-jump-nav a {
  padding: 9px 18px;
  border-radius: 999px;
  border: 2px solid var(--color-border);
  background: var(--color-white);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-teal);
  transition: all 0.15s ease;
}
.service-jump-nav a:hover { border-color: var(--color-teal); background: var(--color-teal); color: var(--color-white); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 28px;
}
.service-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-med); }
.service-card-img { display: block; aspect-ratio: 16/10; overflow: hidden; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service-card-body h3 { font-size: 1.15rem; margin: 0; }
.service-card-body h3 a { color: var(--color-deep-teal); }
.service-card-body p { font-size: 0.95rem; color: var(--color-text-light); flex: 1; }
.service-card-body .link-arrow { align-self: flex-start; }

.service-section-header { max-width: 880px; margin: 0 auto 32px; }
.service-section-header .eyebrow { display: block; }
.service-section-header p.lead-text { color: var(--color-text-light); font-size: 1.05rem; }

.service-subheading {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-deep-teal);
  margin: 32px 0 14px;
}
.service-content { max-width: none; margin: 0; }
.service-content .callout-box { max-width: none; margin-left: 0; margin-right: 0; }
.service-content p { font-size: 1.02rem; }

.service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.98rem;
  color: var(--color-text);
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-wood);
}
.service-list li strong { color: var(--color-deep-teal); }

.callout-box {
  background: var(--color-sand-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 32px;
}
.callout-box h4 { font-size: 1.35rem; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.callout-box ul { margin: 0; padding-left: 20px; }
.callout-box li { margin-bottom: 6px; }

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow-soft); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.value-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.value-card .icon-badge {
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-wood);
}
.value-card .icon-badge svg { width: 52px; height: 52px; }

.section-blue { background: var(--color-deep-teal); }
.section-blue .eyebrow { color: #9fd6cb; }
.section-blue .section-header h2 { color: var(--color-white); }
.section-blue .section-header p { color: #cfe6e1; }
.section-blue .value-card {
  background: var(--color-sand);
  border: 1px solid var(--color-sand-dark);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}
.section-blue .value-card h3 { color: var(--color-deep-teal); }
.section-blue .value-card p { color: var(--color-text-light); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.team-card { text-align: center; }
.team-card img { border-radius: 50%; width: 140px; height: 140px; object-fit: cover; margin: 0 auto 14px; }
.team-card h4 { margin-bottom: 2px; }
.team-card p { color: var(--color-text-light); font-size: 0.9rem; }

/* ---------- Sections on Home ---------- */
.section-alt { background: var(--color-white); }

.why-lamu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.why-card {
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--color-sand);
  border: 1px solid var(--color-border);
}
.why-card .icon { font-size: 1.8rem; margin-bottom: 10px; display: block; }

.cta-band {
  background: linear-gradient(135deg, var(--color-wood), var(--color-wood-dark));
  color: var(--color-white);
  text-align: center;
  padding: 60px 24px;
  border-radius: var(--radius);
  margin: 0 24px;
}
.cta-band h2 { color: var(--color-white); }
.cta-band p { color: #fce8d6; max-width: 500px; margin: 0 auto 26px; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
}
.contact-info-card h4 { margin-bottom: 6px; font-size: 1.4rem; font-weight: 700; }
.contact-info-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-info-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-info-list .icon { color: var(--color-wood); flex-shrink: 0; display: flex; align-items: center; margin-top: 2px; }
.contact-info-list .icon svg { display: block; }
.map-placeholder {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.map-placeholder iframe { width: 100%; height: 280px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-deep-teal);
  color: #cfe4df;
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: var(--color-wood); font-size: 1.45rem; margin-bottom: 16px; }
.footer-grid p, .footer-grid a { color: #b9d3cd; font-size: 0.92rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a:hover { color: var(--color-white); }
.footer-brand { font-family: var(--font-heading); font-size: 1.4rem; color: var(--color-white); margin-bottom: 12px; }
.footer-brand span { color: #e7a15c; }
.social-row { display: flex; gap: 12px; margin-top: 14px; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: #b9d3cd;
  transition: background 0.15s ease, color 0.15s ease;
}
.social-row a:hover { background: var(--color-wood); color: var(--color-white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #94b6ae;
}
.footer-bottom a { color: #94b6ae; text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: var(--color-white); }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--whatsapp-green);
  color: var(--color-white);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  z-index: 400;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Back to top button ---------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--color-deep-teal);
  color: var(--color-white);
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-med);
  cursor: pointer;
  z-index: 400;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--color-teal); }

@media (min-width: 861px) {
  .hero { min-height: 550px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--color-sand);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 24px 20px;
    transform: translateY(-140%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    border-bottom: 1px solid var(--color-border);
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; }
  .nav-menu li { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--color-border); }
  .nav-toggle { display: flex; }
  .nav-menu.open { max-height: calc(100vh - 68px); overflow-y: auto; }

  .dropdown-toggle { width: 100%; justify-content: space-between; }
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.22s ease;
  }
  .dropdown-menu,
  .nav-item-dropdown:hover .dropdown-menu,
  .nav-item-dropdown:focus-within .dropdown-menu,
  .nav-item-dropdown.open .dropdown-menu {
    left: auto;
    transform: none;
  }
  .nav-item-dropdown.open .dropdown-menu { max-height: 400px; }
  .dropdown-menu li { padding: 0 0 0 14px; border-bottom: 1px solid var(--color-border); }
  .dropdown-menu li:last-child { border-bottom: none; }
  .dropdown-menu li a { padding: 10px 0; color: var(--color-text-light); white-space: normal; }

  .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-grid > div { min-width: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .gallery-featured { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; height: auto; }
  .gallery-featured .main-img { height: 260px; }
  .gallery-featured .side-imgs { flex-direction: row; height: auto; }
  .gallery-featured .side-imgs img { height: 140px; min-width: 0; }
}

@media (max-width: 520px) {
  section { padding: 52px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .features-list { columns: 1; }
  .modal-box { padding: 22px; }
  .top-bar { padding: 8px 16px; }
  .top-bar-inner { gap: 14px; font-size: 0.86rem; }
}
