/* ===========================================================
   Eco-Living Group — shared stylesheet
   Coastal minimal palette: ivory/sand + ocean blue + terracotta
   =========================================================== */

:root {
  --ivory: #F8F5EF;
  --ivory-deep: #F0EBE1;
  --ink: #23302E;
  --ink-soft: #4B5754;
  --teal: #22779C;
  --teal-deep: #17475F;
  --terracotta: #C68A4E;
  --line: rgba(23, 71, 95, 0.14);
  --shadow: 0 18px 40px rgba(23, 47, 59, 0.14);
  --radius: 14px;
  --serif: "Bodoni Moda", "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Main page titles (h1). Calibri is a Microsoft font, not freely
     redistributable via Google Fonts — it renders as Calibri on any
     device that has it installed (most Windows machines, many with MS
     Office installed) and falls back to a similar humanist sans
     elsewhere. See README for a self-hosting note if exact rendering
     everywhere matters. */
  --title-font: Calibri, Candara, "Segoe UI", Optima, "Century Gothic", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--teal-deep);
}

h1 { font-family: var(--title-font); font-weight: 700; font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; color: var(--ink); }

p { margin: 0 0 1em; color: var(--ink-soft); }

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 0.6em;
  display: inline-block;
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  filter: drop-shadow(0 6px 14px rgba(23, 71, 95, 0.22));
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); }

.btn-outline {
  background: transparent;
  border-color: rgba(248, 245, 239, 0.7);
  color: inherit;
  filter: none;
}
.btn-ghost {
  background: transparent;
  border-color: var(--teal);
  color: var(--teal-deep);
  filter: none;
}
.btn-ghost:hover { background: rgba(34, 119, 156, 0.08); }

/* ---------- Header / nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 245, 239, 0.92);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  /* Three equal-width tracks (brand | nav | cta) keep the nav visually
     centered on every page, whether or not that page has a right-hand
     CTA button (contact.html has none) — a flex space-between layout
     would instead push the nav toward whichever side has less content. */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  justify-self: start;
}
.brand img { height: 40px; width: auto; }

nav.site-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
nav.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--teal-deep);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
nav.site-nav a:hover,
nav.site-nav a.active { border-bottom-color: var(--terracotta); }

nav.site-nav { justify-self: center; }

.nav-cta { display: flex; align-items: center; gap: 18px; justify-self: end; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 60px 24px 72px;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}
.hero h1, .hero p {
  color: #fff;
  text-shadow: 0 2px 18px rgba(15, 30, 36, 0.55), 0 1px 3px rgba(15,30,36,0.5);
}
.hero .eyebrow { color: #FBD9A6; text-shadow: 0 1px 10px rgba(15,30,36,0.5); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.hero.hero-compact { min-height: 46vh; }

/* Hero as an image slider (background photos rotate; heading/CTA text
   stays fixed on top — used on abrolhos.html in place of a static
   hero photo + a separate gallery section). */
.hero.hero-slider { padding: 0; overflow: hidden; background: var(--teal-deep); }
.hero.hero-slider .slider {
  position: absolute;
  inset: 0;
  border-radius: 0;
  box-shadow: none;
}
.hero.hero-slider .slider-viewport { height: 100%; }
.hero.hero-slider .slider-dots { bottom: 26px; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
section.tight { padding: 56px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-deep {
  background: var(--teal-deep);
  color: #fff;
}
.bg-deep h2, .bg-deep h3 { color: #fff; }
.bg-deep p { color: rgba(248,245,239,0.82); }

.bg-ivory-deep { background: var(--ivory-deep); }

/* ---------- Cards / grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}
.photo-card img { width: 100%; height: 260px; object-fit: cover; }
.photo-card .photo-card-body { padding: 24px 26px 28px; }
.photo-card .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(34,119,156,0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.feature-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.feature-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Stats ---------- */
.stats-bar {
  background: var(--teal);
  color: #fff;
}
.stats-bar .grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
  padding: 46px 0;
}
.stats-bar .stat-num {
  font-family: var(--serif);
  font-size: 2.1rem;
  margin-bottom: 4px;
}
.stats-bar .stat-label {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

/* ---------- Asset list (Abrolhos five pillars intro) ---------- */
.asset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.asset-chips li {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
}
.bg-ivory-deep .asset-chips li,
:not(.bg-deep) .asset-chips li {
  background: #fff;
  border-color: var(--line);
  color: var(--teal-deep);
}

/* ---------- Image slider / gallery ---------- */
.slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--ink);
}
.slider-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
  height: 100%;
}
.slider-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
}
.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slider-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 32px 22px;
  color: #fff;
}
.slider-caption .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FBD9A6;
  margin-bottom: 6px;
  text-shadow: 0 1px 10px rgba(15,30,36,0.6);
}
.slider-caption p {
  margin: 0;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 2px 14px rgba(15,30,36,0.6);
}
.slider-viewport {
  height: clamp(320px, 52vw, 560px);
  overflow: hidden;
}
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(23, 47, 59, 0.55);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background 0.15s ease;
}
.slider-arrow:hover { background: rgba(23, 47, 59, 0.8); }
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }
.slider-dots {
  position: absolute;
  right: 24px;
  bottom: 22px;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.slider-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.25);
  padding: 0;
  cursor: pointer;
}
.slider-dots button.active { background: #fff; }
@media (max-width: 640px) {
  .slider-caption { padding: 20px 18px 16px; }
  .slider-arrow { width: 36px; height: 36px; font-size: 1rem; }
}

/* ---------- Partnerships call-out ---------- */
.callout {
  background: var(--ivory-deep);
  border: 1px solid var(--line);
  border-left: 4px solid var(--terracotta);
  border-radius: var(--radius);
  padding: 32px 34px;
}

/* ---------- Form ---------- */
form.enquiry-form {
  display: grid;
  gap: 18px;
}
form.enquiry-form .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--teal-deep);
}
input, select, textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.97rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(34,119,156,0.15);
}
textarea { resize: vertical; min-height: 120px; }
fieldset { border: none; padding: 0; margin: 0; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { width: auto; margin-top: 4px; }
.checkbox-row label { font-weight: 400; color: var(--ink-soft); margin: 0; }
.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  margin-top: 4px;
}
.form-status {
  display: none;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
}
.form-status.show { display: block; }
.form-status.success { background: rgba(34,119,156,0.1); color: var(--teal-deep); border: 1px solid rgba(34,119,156,0.3); }
.form-status.error { background: rgba(198,66,54,0.08); color: #A5392A; border: 1px solid rgba(198,66,54,0.3); }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
button[disabled] { opacity: 0.65; cursor: not-allowed; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--teal-deep);
  color: rgba(248,245,239,0.85);
  padding: 56px 0 28px;
}
footer.site-footer .footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
footer.site-footer .brand img { height: 40px; }
footer.site-footer h3 {
  color: #fff;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
footer.site-footer ul { list-style: none; margin: 0; padding: 0; }
footer.site-footer li { margin-bottom: 8px; }
footer.site-footer a { text-decoration: none; color: rgba(248,245,239,0.85); }
footer.site-footer a:hover { color: var(--terracotta); }
.footer-bottom {
  border-top: 1px solid rgba(248,245,239,0.18);
  padding-top: 22px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(248,245,239,0.65);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  nav.site-nav { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats-bar .grid-4 { grid-template-columns: 1fr 1fr; }
  form.enquiry-form .row-2 { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { min-height: 64vh; }
}
