/* ============================================================
   Ideal Letting Homes — Brand Stylesheet
   Palette derived from the new logo (teal + orange)
   ============================================================ */

:root {
  /* Brand */
  --teal-50:  #e8f0f3;
  --teal-100: #cfe0e6;
  --teal-200: #9cc1cd;
  --teal-300: #67a1b3;
  --teal-400: #3f8298;
  --teal-500: #1d4d5e;   /* PRIMARY */
  --teal-600: #194556;
  --teal-700: #143947;
  --teal-800: #0f2c37;
  --teal-900: #0a1f27;

  --orange-50:  #fef5e7;
  --orange-100: #fde4be;
  --orange-200: #fbc783;
  --orange-300: #f8ad52;
  --orange-400: #f59e35;
  --orange-500: #ed9426;  /* ACCENT */
  --orange-600: #c97c1a;
  --orange-700: #a16315;

  /* Neutrals */
  --ink-50:  #f8fafc;
  --ink-100: #f1f5f9;
  --ink-200: #e2e8f0;
  --ink-300: #cbd5e1;
  --ink-400: #94a3b8;
  --ink-500: #64748b;
  --ink-600: #475569;
  --ink-700: #334155;
  --ink-800: #1e293b;
  --ink-900: #0f172a;

  /* Semantic */
  --bg: #ffffff;
  --surface: var(--ink-50);
  --text: var(--ink-800);
  --muted: var(--ink-500);
  --border: var(--ink-200);

  --shadow-sm: 0 1px 2px rgba(15,23,42,0.05);
  --shadow-md: 0 4px 12px -2px rgba(15,23,42,0.08), 0 2px 4px rgba(15,23,42,0.04);
  --shadow-lg: 0 20px 40px -20px rgba(15,23,42,0.18);

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --max: 1200px;
  --gap: clamp(1rem, 2vw, 1.5rem);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-500); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--orange-500); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  color: var(--ink-900);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
p  { margin: 0 0 1em; }

/* Layout helpers */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.section   { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.section--surface { background: var(--surface); }
.section--teal { background: var(--teal-500); color: #fff; }
.section--teal h1, .section--teal h2, .section--teal h3 { color: #fff; }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--orange-600);
  font-weight: 600;
  margin-bottom: .75rem;
}
.eyebrow--light { color: var(--orange-300); }

.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-600); max-width: 60ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.4rem;
  font-weight: 600; font-size: .95rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary    { background: var(--orange-500); color: #fff; }
.btn-primary:hover  { background: var(--orange-600); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary  { background: var(--teal-500); color: #fff; }
.btn-secondary:hover{ background: var(--teal-700); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline    { background: transparent; color: var(--teal-500); border-color: var(--teal-500); }
.btn-outline:hover  { background: var(--teal-500); color: #fff; }
.btn-ghost      { background: transparent; color: var(--ink-700); }
.btn-ghost:hover    { background: var(--ink-100); color: var(--ink-900); }
.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; }

/* Pills / chips */
.pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .75rem;
  font-size: .78rem; font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-600); background: #fff;
}
.pill--teal { background: var(--teal-50); color: var(--teal-700); border-color: var(--teal-100); }
.pill--orange { background: var(--orange-50); color: var(--orange-700); border-color: var(--orange-100); }

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--teal-100); }
.card__body { padding: 1.25rem 1.4rem 1.5rem; }
.card__title { font-size: 1.15rem; margin-bottom: .35rem; }
.card__meta { color: var(--muted); font-size: .9rem; }

/* ============================================================
   Top utility bar
   ============================================================ */
.utility {
  background: var(--teal-700);
  color: var(--teal-100);
  font-size: .82rem;
}
.utility__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: .55rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.utility a { color: var(--teal-100); }
.utility a:hover { color: var(--orange-300); }
.utility__left, .utility__right { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.utility svg { width: 14px; height: 14px; color: var(--orange-300); }
@media (max-width: 800px) { .utility { display: none; } }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: .85rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
.logo-link { display: flex; align-items: center; gap: .75rem; }
.logo-link img { height: 48px; width: auto; }
@media (max-width: 600px) { .logo-link img { height: 40px; } }

.nav {
  display: flex; align-items: center; gap: 1.75rem;
  font-size: .95rem; font-weight: 500;
}
.nav a {
  color: var(--ink-700);
  position: relative; padding: .25rem 0;
}
.nav a:hover { color: var(--teal-500); }
.nav a.is-active { color: var(--teal-500); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--orange-500); border-radius: 2px;
}
.nav .btn { padding: .55rem 1rem; font-size: .9rem; }

@media (max-width: 960px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem 1.5rem; gap: .25rem;
    box-shadow: var(--shadow-lg);
  }
  .nav.is-open a { padding: .65rem 0; border-bottom: 1px solid var(--ink-100); }
  .nav.is-open .btn { margin-top: .75rem; justify-content: center; }
}

.nav-toggle {
  display: none;
  background: transparent; border: 0;
  width: 40px; height: 40px; cursor: pointer;
  color: var(--ink-800);
}
@media (max-width: 960px) { .nav-toggle { display: inline-flex; align-items: center; justify-content: center; } }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  color: #fff;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(5rem, 10vw, 9rem);
  background:
    linear-gradient(180deg, rgba(10,31,39,0.55) 0%, rgba(10,31,39,0.75) 70%, rgba(10,31,39,0.85) 100%),
    url('https://images.unsplash.com/photo-1568605114967-8130f3a36994?auto=format&fit=crop&w=2000&q=80') center/cover no-repeat;
}
.hero h1 { color: #fff; max-width: 22ch; }
.hero .lead { color: rgba(255,255,255,.85); max-width: 56ch; margin-bottom: 1.75rem; }
.hero__cta { display: flex; gap: .75rem; flex-wrap: wrap; }

.page-hero {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: #fff;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(3.5rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(237,148,38,.35), transparent 70%);
  pointer-events: none;
}
.page-hero h1 { color: #fff; }
.page-hero .lead { color: rgba(255,255,255,.85); }
.breadcrumbs { color: rgba(255,255,255,.7); font-size: .85rem; margin-bottom: .75rem; }
.breadcrumbs a { color: rgba(255,255,255,.85); }
.breadcrumbs a:hover { color: var(--orange-300); }

/* ============================================================
   Search bar (homepage)
   ============================================================ */
.search-card {
  background: #fff; color: var(--text);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: .5rem;
  max-width: 880px;
  margin-top: 1rem;
}
.search-card input,
.search-card select {
  width: 100%; padding: .85rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font: inherit; color: var(--ink-800); background: #fff;
}
.search-card input:focus,
.search-card select:focus { outline: 2px solid var(--teal-300); outline-offset: 1px; border-color: var(--teal-500); }
.search-card .btn { justify-content: center; }
@media (max-width: 800px) {
  .search-card { grid-template-columns: 1fr 1fr; }
  .search-card .btn { grid-column: 1 / -1; }
}

/* ============================================================
   Service cards / feature blocks
   ============================================================ */
.service { padding: 2rem 1.75rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); height: 100%; transition: all .25s; }
.service:hover { border-color: var(--teal-200); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--teal-50); color: var(--teal-500);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.service__icon svg { width: 28px; height: 28px; }
.service h3 { font-size: 1.2rem; }
.service p { color: var(--muted); margin: 0; }

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .55rem 0; color: var(--ink-700);
}
.feature-list li::before {
  content: "";
  flex: none; width: 22px; height: 22px; margin-top: 2px;
  background: var(--orange-500);
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='black'><path fill-rule='evenodd' d='M16.704 5.29a1 1 0 010 1.42l-7.5 7.5a1 1 0 01-1.42 0l-3.5-3.5a1 1 0 011.42-1.42l2.79 2.79 6.79-6.79a1 1 0 011.42 0z' clip-rule='evenodd'/></svg>") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='black'><path fill-rule='evenodd' d='M16.704 5.29a1 1 0 010 1.42l-7.5 7.5a1 1 0 01-1.42 0l-3.5-3.5a1 1 0 011.42-1.42l2.79 2.79 6.79-6.79a1 1 0 011.42 0z' clip-rule='evenodd'/></svg>") center/contain no-repeat;
}

/* Stats strip */
.stats {
  background: var(--teal-500); color: #fff;
  padding: 2.5rem 0;
}
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat__num { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 700; color: #fff; line-height: 1; margin-bottom: .25rem; }
.stat__num span { color: var(--orange-300); }
.stat__label { color: rgba(255,255,255,.78); font-size: .9rem; }
@media (max-width: 700px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }

/* Area pills */
.areas { display: flex; flex-wrap: wrap; gap: .5rem; }
.area-pill {
  display: inline-flex; align-items: center;
  padding: .5rem 1rem;
  background: #fff; border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-700); font-size: .9rem; font-weight: 500;
  transition: all .15s ease;
}
.area-pill:hover { background: var(--teal-500); border-color: var(--teal-500); color: #fff; }

/* Property card */
.prop-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all .25s; }
.prop-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--teal-100); }
.prop-card__img { aspect-ratio: 4/3; background: var(--ink-100); position: relative; overflow: hidden; }
.prop-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.prop-card:hover .prop-card__img img { transform: scale(1.04); }
.prop-card__tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--orange-500); color: #fff;
  font-size: .72rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; padding: .3rem .65rem; border-radius: 999px;
}
.prop-card__body { padding: 1.1rem 1.25rem 1.4rem; }
.prop-card__price { font-size: 1.25rem; font-weight: 700; color: var(--teal-500); }
.prop-card__price small { font-size: .75rem; font-weight: 500; color: var(--muted); }
.prop-card__addr { font-size: .92rem; color: var(--ink-700); margin: .2rem 0 .75rem; }
.prop-card__meta { display: flex; gap: 1rem; color: var(--muted); font-size: .85rem; padding-top: .75rem; border-top: 1px solid var(--ink-100); }
.prop-card__meta span { display: inline-flex; align-items: center; gap: .35rem; }

/* Testimonial */
.quote {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
}
.quote::before {
  content: """; position: absolute; top: -12px; left: 20px;
  font-family: Georgia, serif; font-size: 4rem; line-height: 1;
  color: var(--orange-500);
}
.quote p { font-size: 1.05rem; color: var(--ink-700); margin: 0 0 1rem; }
.quote__author { display: flex; gap: .75rem; align-items: center; }
.quote__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal-100); color: var(--teal-700);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.quote__name { font-weight: 600; color: var(--ink-800); font-size: .92rem; }
.quote__role { color: var(--muted); font-size: .82rem; }

/* CTA strip */
.cta-strip {
  background: linear-gradient(135deg, var(--teal-700), var(--teal-500));
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  flex-wrap: wrap;
}
.cta-strip h2 { color: #fff; margin: 0 0 .25rem; }
.cta-strip p { color: rgba(255,255,255,.85); margin: 0; }

/* Forms */
.form { display: grid; gap: 1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form label { font-size: .85rem; font-weight: 600; color: var(--ink-700); display: block; margin-bottom: .35rem; }
.form input, .form select, .form textarea {
  width: 100%; padding: .8rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font: inherit; color: var(--ink-800); background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 2px solid var(--teal-300); outline-offset: 1px; border-color: var(--teal-500);
}
.form textarea { min-height: 140px; resize: vertical; }
.form .full { grid-column: 1 / -1; }
.required { color: var(--orange-600); }

/* Accordion */
.accordion details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
  background: #fff;
}
.accordion summary {
  cursor: pointer; font-weight: 600; color: var(--ink-900);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; font-size: 1.4rem; color: var(--orange-500); transition: transform .2s;
}
.accordion details[open] summary::after { content: "−"; }
.accordion details[open] { border-color: var(--teal-200); }
.accordion details p { margin: .75rem 0 0; color: var(--muted); }

/* Image with caption */
.media-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-100);
  box-shadow: var(--shadow-md);
}
.media-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* Two-up content split */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split, .split.reverse { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

/* Footer */
.site-footer {
  background: var(--teal-900);
  color: rgba(255,255,255,.7);
  padding: 3.5rem 0 1.5rem;
  margin-top: 0;
}
.site-footer h4 {
  color: #fff; font-size: 1rem; margin-bottom: 1rem;
  letter-spacing: .02em;
}
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2.5rem; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer a { color: rgba(255,255,255,.78); display: block; padding: .25rem 0; }
.site-footer a:hover { color: var(--orange-300); }
.site-footer__brand { color: rgba(255,255,255,.78); font-size: .92rem; max-width: 30ch; margin-bottom: 1rem; }
.site-footer__logo { background: #fff; padding: .65rem .8rem; border-radius: var(--radius); display: inline-block; margin-bottom: 1rem; }
.site-footer__logo img { height: 38px; }
.site-footer__contact { font-size: .92rem; }
.site-footer__contact div { padding: .15rem 0; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 2.5rem; padding-top: 1.25rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: rgba(255,255,255,.55); font-size: .84rem;
}
.socials { display: flex; gap: .5rem; margin-top: .75rem; }
.socials a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
}
.socials a:hover { background: var(--orange-500); }
.socials svg { width: 16px; height: 16px; color: #fff; }

/* Utility */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.muted { color: var(--muted); }

/* Animations */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(8px); animation: rise .6s ease forwards; animation-delay: .05s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}
