/* MEKLYSH — brand styles
   Palette: Warm Ivory #F5F0E6 · Deep Slate Navy #2E3D55 · Baby Blue #A8C4E4
            Deep Charcoal #1F232B · Dusty Rose #B97F88
   Type: Playfair Display (display) · Inter (body) */

:root {
  --ivory: #F5F0E6;
  --ivory-deep: #EDE6D6;
  --navy: #2E3D55;
  --navy-deep: #232E44;
  --baby: #A8C4E4;
  --baby-soft: #DCE8F6;
  --charcoal: #1F232B;
  --rose: #B97F88;
  --text: #2E3D55;
  --text-soft: #5A6678;
  --radius: 14px;
  --shadow: 0 18px 45px rgba(46, 61, 85, 0.14);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* felt-not-seen grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

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

.container { width: min(1140px, 92%); margin: 0 auto; }

section { padding: 96px 0; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--baby); }

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}
.section-title-light { color: var(--ivory); }

.section-lede {
  font-size: 1.08rem;
  color: var(--text-soft);
  max-width: 620px;
  margin-bottom: 40px;
}
.section-lede a { color: var(--navy); font-weight: 600; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 15px 34px;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid var(--navy);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}
.btn-solid { background: var(--navy); color: var(--ivory); }
.btn-solid:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--ivory); transform: translateY(-2px); }
.btn-outline-light { border-color: var(--ivory); color: var(--ivory); }
.btn-outline-light:hover { background: var(--ivory); color: var(--navy); transform: translateY(-2px); }
.btn-black { background: var(--charcoal); border-color: var(--charcoal); color: var(--ivory); }
.btn-black:hover { background: #000; border-color: #000; color: var(--ivory); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 230, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(46, 61, 85, 0.1);
}
.header-inner {
  width: min(1280px, 94%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 0;
}
.wordmark { text-decoration: none; line-height: 1; display: flex; flex-direction: column; }
.wordmark-main {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.32em;
  color: var(--navy);
}
.wordmark-sub {
  font-size: 0.58rem;
  letter-spacing: 0.52em;
  color: var(--text-soft);
  margin-top: 4px;
}
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text);
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 1.5px;
  background: var(--rose);
  transition: width 0.25s ease;
}
.site-nav a:hover::after { width: 100%; }
.header-phone {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  padding: 10px 20px;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}
.header-phone:hover { background: var(--navy); color: var(--ivory); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: 0.25s; }

/* ---------- hero ---------- */
.hero { padding: 40px 0 80px; text-align: center; }
.hero-media {
  width: min(1100px, 94%);
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-media img { width: 100%; height: auto; }
.hero-copy { margin-top: 44px; }
.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  color: var(--navy);
}
.hashtag {
  margin-top: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  font-size: 0.9rem;
  color: var(--rose);
}
.hero-ctas { margin-top: 30px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- trust bar ---------- */
.trustbar {
  background: var(--navy);
  color: var(--ivory);
  padding: 18px 0;
}
.trustbar-inner {
  width: min(1140px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.trustbar-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--rose); opacity: 0.8; }

/* ---------- about ---------- */
.about { background: var(--ivory); }
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.about-text p { margin-bottom: 18px; color: var(--text-soft); }
.about-text .btn { margin-top: 12px; }
.arch-frame {
  position: relative;
  border-radius: 220px 220px var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 440px;
  margin-left: auto;
}
.arch-frame img { width: 100%; height: 560px; object-fit: cover; object-position: top center; }
.arch-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 56px 24px 22px;
  background: linear-gradient(to top, rgba(31, 35, 43, 0.82), transparent);
  display: flex;
  flex-direction: column;
  color: var(--ivory);
}
.arch-name { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.04em; }
.arch-role { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.85; margin-top: 4px; }

/* ---------- first keys ---------- */
.first-keys { background: var(--ivory-deep); }
.keys-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}
.key-card {
  background: var(--baby-soft);
  border: 1px solid rgba(46, 61, 85, 0.12);
  border-radius: var(--radius);
  padding: 30px 24px;
  border-top: 3px solid var(--navy);
}
.key-card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--navy);
}
.key-card p { font-size: 0.93rem; color: var(--text-soft); }

/* ---------- process ---------- */
.process { background: var(--ivory); }
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}
.steps li {
  border-top: 2px solid var(--baby);
  padding-top: 22px;
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--rose);
  opacity: 0.85;
}
.steps h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 8px 0 10px;
  color: var(--navy);
}
.steps p { font-size: 0.93rem; color: var(--text-soft); }

/* ---------- instagram ---------- */
.instagram { background: var(--ivory-deep); }
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.ig-tile {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(46, 61, 85, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ig-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ig-tile img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }
.ig-tile figcaption { padding: 14px 16px 16px; }
.ig-tile figcaption strong { display: block; font-size: 0.92rem; color: var(--navy); margin-bottom: 2px; }
.ig-tile figcaption span { font-size: 0.8rem; color: var(--text-soft); }
.ig-tile figcaption a { color: var(--navy); font-weight: 600; }

/* ---------- reviews ---------- */
.reviews { background: var(--navy); }
.review-card {
  background: var(--ivory);
  border-radius: 20px;
  max-width: 680px;
  margin: 40px auto 0;
  padding: 52px 48px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}
.stars { display: flex; justify-content: center; gap: 8px; margin-bottom: 18px; }
.stars svg { width: 30px; height: 30px; fill: var(--rose); }
.review-rating {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
}
.review-attr {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 8px 0 30px;
}
.review-stats {
  display: flex;
  justify-content: center;
  gap: 44px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.review-stats div { display: flex; flex-direction: column; }
.review-stats strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--navy); }
.review-stats span { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-soft); }

/* ---------- search homes ---------- */
.search-homes { background: var(--ivory); text-align: center; }
.idx-panel {
  max-width: 640px;
  margin: 36px auto 0;
  border: 2px dashed rgba(46, 61, 85, 0.3);
  border-radius: 20px;
  padding: 48px 40px;
  background: var(--baby-soft);
}
.idx-panel h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 14px;
}
.idx-panel p { color: var(--text-soft); margin-bottom: 14px; }
.idx-panel .btn { margin-top: 16px; }

/* ---------- contact ---------- */
.contact { background: var(--ivory-deep); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-list { list-style: none; margin-top: 28px; }
.contact-list li { margin-bottom: 12px; }
.contact-list a {
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  border-bottom: 1.5px solid var(--rose);
  padding-bottom: 2px;
}
.contact-form {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-form label { display: flex; flex-direction: column; gap: 8px; }
.contact-form label span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 16px;
  border: 1.5px solid rgba(46, 61, 85, 0.2);
  border-radius: 10px;
  background: var(--ivory);
  color: var(--text);
  width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--navy); }
.contact-form textarea { resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--text-soft); text-align: center; }

/* ---------- wave divider + footer ---------- */
.wave-divider { line-height: 0; background: var(--ivory-deep); margin-bottom: -1px; }
.wave-divider svg { width: 100%; height: 110px; display: block; }
.site-footer { background: var(--charcoal); color: var(--ivory); padding: 64px 0 40px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .wordmark-main { color: var(--ivory); font-size: 1.3rem; }
.footer-brand .wordmark-sub { color: var(--baby); }
.footer-brand p { margin-top: 14px; font-size: 0.9rem; opacity: 0.85; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact a { text-decoration: none; font-size: 0.95rem; opacity: 0.9; }
.footer-contact a:hover { color: var(--baby); }
.footer-legal p { font-size: 0.82rem; opacity: 0.7; margin-bottom: 8px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .keys-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .arch-frame { margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  section { padding: 64px 0; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ivory);
    flex-direction: column;
    padding: 20px 5%;
    gap: 16px;
    border-bottom: 1px solid rgba(46, 61, 85, 0.12);
    box-shadow: 0 18px 30px rgba(46, 61, 85, 0.12);
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-phone { display: none; }
  .hero { padding: 28px 0 56px; }
  .keys-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .ig-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .arch-frame img { height: 440px; }
  .review-card { padding: 40px 26px; }
  .review-stats { gap: 26px; }
  .contact-form { padding: 28px 22px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-ctas .btn { width: 100%; text-align: center; }
}
