/* ============================================================
   Shlok Patel — Realtor Website
   Design system + components
   ============================================================ */

:root {
  --navy: #0f2540;
  --navy-800: #14304f;
  --navy-700: #1d3d63;
  --gold: #c8a24a;
  --gold-light: #e0c27d;
  --ink: #1a1f2b;
  --slate: #5a6472;
  --mist: #f5f7fa;
  --line: #e6e9ef;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(15, 37, 64, .08);
  --shadow-md: 0 10px 30px rgba(15, 37, 64, .10);
  --shadow-lg: 0 24px 60px rgba(15, 37, 64, .16);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --ease: cubic-bezier(.16, .84, .44, 1);
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1rem; color: var(--slate); }

a { color: var(--navy-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold); }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: #dbe3ee; }
.section--navy h2, .section--navy h3 { color: var(--white); }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-head { max-width: 660px; margin-bottom: 52px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--gold); color: var(--navy); }
.btn--primary:hover { background: var(--gold-light); color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--navy-700); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .5); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: var(--white); border-color: var(--white); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
  padding: 18px 0;
}
.header--solid { background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); padding: 12px 0; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 46px; height: 46px; border-radius: 12px;
  display: block; object-fit: contain;
  background: var(--white);
  padding: 4px;
  border: 1px solid rgba(200, 162, 74, .4);
}
/* On transparent (over-hero) header and navy footer, drop the white box */
.header:not(.header--solid) .brand__mark,
.footer .brand__mark { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--navy); line-height: 1; }
.brand__role { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.header:not(.header--solid) .brand__name { color: var(--white); }

.nav__links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-weight: 500; font-size: .95rem; color: var(--ink); }
.header:not(.header--solid) .nav__links a { color: rgba(255, 255, 255, .9); }
.nav__links a:hover { color: var(--gold); }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__phone { font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 7px; }
.header:not(.header--solid) .nav__phone { color: var(--white); }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; }
.nav__toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px auto; transition: .3s var(--ease); }
.header:not(.header--solid) .nav__toggle span { background: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgba(15, 37, 64, .92) 0%, rgba(15, 37, 64, .72) 45%, rgba(15, 37, 64, .35) 100%);
}
.hero__inner { padding: 140px 0 90px; max-width: 720px; }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero p { color: rgba(255, 255, 255, .88); font-size: 1.15rem; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 44px; margin-top: 54px; }
.hero__stat .num { font-family: var(--font-head); font-size: 2.4rem; color: var(--gold); font-weight: 700; }
.hero__stat .label { font-size: .85rem; letter-spacing: .04em; color: rgba(255, 255, 255, .8); }

/* ---------- Search bar ---------- */
.search-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  margin-top: -60px;
  position: relative;
  z-index: 5;
}
.search-card__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 16px; align-items: end; }
.field label { display: block; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--slate); margin-bottom: 7px; }
.field input, .field select {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line);
  border-radius: 10px; font-family: inherit; font-size: .95rem; color: var(--ink); background: var(--white);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); }

/* ---------- Services ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__icon {
  width: 58px; height: 58px; border-radius: 14px;
  background: rgba(200, 162, 74, .14); color: var(--navy);
  display: grid; place-items: center; margin-bottom: 20px;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: .95rem; }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; color: var(--navy); }
.card__link:hover { color: var(--gold); gap: 10px; }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.about__badge {
  position: absolute; bottom: -24px; right: -24px;
  background: var(--navy); color: var(--white);
  border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(200, 162, 74, .3);
}
.about__badge .num { font-family: var(--font-head); font-size: 2rem; color: var(--gold); font-weight: 700; }
.about__badge .label { font-size: .82rem; color: rgba(255, 255, 255, .82); }
.signature { font-family: var(--font-head); font-style: italic; font-size: 1.6rem; color: var(--navy); margin-top: 10px; }

/* ---------- Portrait (headshot showcase) ---------- */
.portrait {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  isolation: isolate;
}
.portrait--square { aspect-ratio: 1 / 1; max-width: 460px; }

/* soft gold accent blob behind */
.portrait__blob {
  position: absolute;
  z-index: -2;
  inset: -8% -12% -12% -8%;
  background: radial-gradient(120% 120% at 30% 20%, rgba(200, 162, 74, .35), rgba(200, 162, 74, 0) 60%),
              linear-gradient(150deg, var(--gold-light), var(--gold));
  border-radius: 46% 54% 58% 42% / 42% 44% 56% 58%;
  filter: blur(2px);
  opacity: .5;
  animation: blobmorph 14s var(--ease) infinite alternate;
}
@keyframes blobmorph {
  from { border-radius: 46% 54% 58% 42% / 42% 44% 56% 58%; transform: rotate(0deg); }
  to   { border-radius: 58% 42% 44% 56% / 56% 58% 42% 44%; transform: rotate(6deg); }
}

/* offset outline frame */
.portrait__frame {
  position: absolute;
  z-index: -1;
  inset: 22px -22px -22px 22px;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
}

/* the photo itself */
.portrait__img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
}

/* floating identity badge */
.portrait__badge {
  position: absolute;
  left: -18px;
  bottom: 26px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 37, 64, .92);
  backdrop-filter: blur(6px);
  color: var(--white);
  padding: 12px 18px 12px 12px;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(200, 162, 74, .35);
}
.portrait__badge-mark {
  width: 40px; height: 40px; border-radius: 10px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy); display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
}
.portrait__badge-name { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; line-height: 1.1; }
.portrait__badge-role { font-size: .76rem; letter-spacing: .04em; color: var(--gold-light); }

/* ---------- Why me ---------- */
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature__icon { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px; background: rgba(200, 162, 74, .16); color: var(--gold); display: grid; place-items: center; }
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 4px; }
.feature p { color: rgba(219, 227, 238, .85); font-size: .95rem; margin: 0; }

/* ---------- Process ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step { position: relative; padding-top: 18px; }
.step__num {
  font-family: var(--font-head); font-size: 3rem; font-weight: 700;
  color: rgba(200, 162, 74, .35); line-height: 1;
}
.step h3 { font-size: 1.15rem; margin: 10px 0 6px; }
.step p { font-size: .92rem; margin: 0; }

/* ---------- Testimonials ---------- */
.quote {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm);
}
.quote__stars { color: var(--gold); font-size: 1rem; letter-spacing: 2px; margin-bottom: 14px; }
.quote p { color: var(--ink); font-size: 1.02rem; font-style: italic; }
.quote__by { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-weight: 700; font-family: var(--font-head); }
.quote__name { font-weight: 700; color: var(--navy); font-size: .95rem; }
.quote__meta { font-size: .82rem; color: var(--slate); }

/* ---------- Communities ---------- */
.community { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 240px; display: flex; align-items: flex-end; color: var(--white); }
.community img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.community::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 37, 64, .85), rgba(15, 37, 64, 0) 60%); }
.community:hover img { transform: scale(1.06); }
.community__label { position: relative; z-index: 2; padding: 22px; }
.community__label h3 { color: var(--white); margin: 0; font-size: 1.25rem; }
.community__label span { font-size: .85rem; color: rgba(255, 255, 255, .85); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy), var(--navy-700)); color: var(--white); border-radius: var(--radius-lg); padding: 56px; text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255, 255, 255, .85); max-width: 560px; margin: 0 auto 26px; }
.cta-band .hero__actions { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.contact-info__item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.contact-info__icon { flex: 0 0 auto; width: 50px; height: 50px; border-radius: 12px; background: rgba(200, 162, 74, .16); color: var(--navy); display: grid; place-items: center; }
.contact-info__item h4 { margin: 0 0 3px; font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate); }
.contact-info__item a, .contact-info__item p { font-size: 1.05rem; color: var(--navy); font-weight: 600; margin: 0; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .95rem; color: var(--ink);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); }
.form-note { font-size: .82rem; color: var(--slate); margin: 12px 0 0; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(219, 227, 238, .8); padding: 70px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; margin-bottom: 46px; }
.footer h4 { color: var(--white); font-family: var(--font-body); font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.footer a { color: rgba(219, 227, 238, .8); display: block; margin-bottom: 10px; font-size: .95rem; }
.footer a:hover { color: var(--gold); }
.footer__brand .brand__name { color: var(--white); }
.footer__brand p { color: rgba(219, 227, 238, .7); font-size: .95rem; margin-top: 16px; max-width: 320px; }
.footer__social { display: flex; gap: 12px; margin-top: 18px; }
.footer__social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; margin: 0; }
.footer__social a:hover { background: var(--gold); color: var(--navy); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }

/* ---------- Page hero (interior) ---------- */
.page-hero { position: relative; padding: 170px 0 80px; color: var(--white); background: linear-gradient(120deg, var(--navy), var(--navy-700)); text-align: center; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255, 255, 255, .85); max-width: 620px; margin: 0 auto; }
.breadcrumb { font-size: .85rem; color: rgba(255, 255, 255, .7); margin-bottom: 14px; }
.breadcrumb a { color: var(--gold); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip { background: rgba(200, 162, 74, .16); color: var(--navy); border-radius: 999px; padding: 7px 16px; font-size: .85rem; font-weight: 600; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 22px 0; font-family: var(--font-head); font-size: 1.15rem; color: var(--navy); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq-q span { flex: 0 0 auto; color: var(--gold); font-size: 1.5rem; transition: transform .3s var(--ease); }
.faq-item.open .faq-q span { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { padding-bottom: 22px; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .about__media { order: -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .search-card__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .nav__links, .nav__phone { display: none; }
  .nav__toggle { display: block; }
  .nav.open .nav__links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--white); padding: 20px 24px;
    box-shadow: var(--shadow-md); gap: 16px; align-items: flex-start;
  }
  .nav.open .nav__links a { color: var(--ink); }
  .grid--4, .grid--3, .grid--2, .steps, .form-row, .footer__grid { grid-template-columns: 1fr; }
  .search-card__grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 28px; }
  .about__badge { right: 0; }
  .cta-band { padding: 40px 24px; }
  .portrait { max-width: 340px; }
  .portrait__badge { left: 0; bottom: 14px; }
  .portrait__frame { inset: 16px -12px -12px 16px; }
}
