/* =========================================================
   My New Real Estate — main stylesheet
   ========================================================= */

:root {
  --navy: #0e2a47;
  --navy-dark: #081a2e;
  --navy-soft: #16375c;
  --gold: #c9a15a;
  --gold-light: #e4c48a;
  --cream: #f8f5ef;
  --white: #ffffff;
  --ink: #1b222c;
  --gray: #5c6672;
  --gray-light: #e7e5df;
  --success: #2f8f5b;
  --danger: #c0483a;
  --shadow: 0 20px 45px -20px rgba(14, 42, 71, 0.35);
  --shadow-soft: 0 10px 30px -15px rgba(14, 42, 71, 0.25);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --container: 1180px;
  --font-head: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy-dark);
  margin: 0 0 18px;
}

h2.section-title { font-size: clamp(2rem, 3.6vw, 2.85rem); }
p.lead { font-size: 1.15rem; color: var(--gray); max-width: 640px; }

.section { padding: 100px 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-alt { background: var(--cream); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--navy-dark); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-outline { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-dark { background: var(--navy-dark); color: var(--white); }
.btn-dark:hover { background: var(--navy); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* =========== Header / Nav =========== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  padding: 22px 0;
  transition: all 0.35s ease;
}
.site-header.is-scrolled {
  padding: 12px 0;
  background: rgba(14, 42, 71, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px -12px rgba(0,0,0,0.35);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo span { color: var(--gold); }
.logo-img {
  height: 46px;
  width: auto;
  display: block;
  transition: height 0.3s ease;
}
.site-header.is-scrolled .logo-img { height: 36px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  color: rgba(255,255,255,0.88);
  font-size: 0.94rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--white); border-radius: 2px; }

/* =========== Hero =========== */
.hero {
  position: relative;
  z-index: 0;
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--navy-dark);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -1;
  transform: scale(1.05);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,26,46,0.5), rgba(8,26,46,0.88));
}
.hero-content { max-width: 760px; padding-top: 90px; }
.hero-content h1 { color: var(--white); font-size: clamp(2.6rem, 5.5vw, 4.2rem); }
.hero-content p.lead { color: rgba(255,255,255,0.85); font-size: 1.2rem; max-width: 600px; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 36px; }

.hero-stats {
  margin-top: 74px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 34px;
}
.hero-stats div strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--gold-light);
}
.hero-stats div span { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* =========== Service cards =========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  transition: all 0.3s ease;
  position: relative;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card .icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  background: var(--navy-dark);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 22px;
}
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--gray); font-size: 0.96rem; margin-bottom: 18px; }
.card .card-link { font-weight: 600; color: var(--navy); font-size: 0.92rem; display: inline-flex; align-items: center; gap: 6px; }
.card .card-link::after { content: "→"; transition: transform 0.2s ease; }
.card:hover .card-link::after { transform: translateX(4px); }

/* =========== About =========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.about-media { position: relative; }
.about-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.about-media .badge {
  position: absolute;
  bottom: -26px; left: -26px;
  background: var(--navy-dark);
  color: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}
.about-media .badge strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--gold-light); }
.about-media .badge span { font-size: 0.8rem; color: rgba(255,255,255,0.75); }
.values-list { display: grid; gap: 16px; margin-top: 28px; }
.values-list li { display: flex; gap: 14px; align-items: flex-start; }
.values-list li .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); margin-top: 7px; flex-shrink: 0;
}
.values-list li strong { display: block; color: var(--navy-dark); }
.values-list li span { color: var(--gray); font-size: 0.94rem; }

/* =========== Detail / feature sections =========== */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  padding: 90px 0;
}
.feature:nth-of-type(even) .feature-media { order: 2; }
.feature-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.feature-number {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: block;
}
.feature-body ul { display: grid; gap: 12px; margin: 24px 0 30px; }
.feature-body ul li {
  display: flex; gap: 12px; align-items: flex-start;
  color: var(--ink); font-size: 0.98rem;
}
.feature-body ul li::before {
  content: "✓";
  color: var(--white);
  background: var(--navy-dark);
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.divider { height: 1px; background: var(--gray-light); }

/* =========== FAQ =========== */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--navy-dark);
}
.faq-question .plus {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
  font-size: 1.1rem;
}
.faq-item.active .faq-question .plus { background: var(--gold); transform: rotate(135deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer p { padding: 0 26px 24px; color: var(--gray); margin: 0; }

/* =========== Contact — widescreen, large-font ============ */
.contact-section {
  background: var(--navy-dark);
  color: var(--white);
  padding: 0;
}
.contact-wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  min-height: 720px;
}
.contact-info {
  padding: 100px 60px;
  background: linear-gradient(160deg, var(--navy-soft), var(--navy-dark));
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.contact-info .contact-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: var(--shadow);
}
.contact-info h2 { color: var(--white); font-size: clamp(2rem, 3vw, 2.6rem); }
.contact-info p { color: rgba(255,255,255,0.78); font-size: 1.05rem; }
.contact-methods { display: grid; gap: 20px; margin-top: 30px; }
.contact-methods li { display: flex; gap: 16px; align-items: flex-start; font-size: 1rem; }
.contact-methods li .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light); flex-shrink: 0; font-size: 1.1rem;
}
.contact-methods li strong { display: block; color: var(--white); }
.contact-methods li span, .contact-methods li a { color: rgba(255,255,255,0.7); }

.contact-form-panel {
  background: var(--white);
  color: var(--ink);
  padding: 100px 70px;
  display: flex;
  align-items: center;
}
.contact-form-panel form { width: 100%; }
.form-top { margin-bottom: 40px; }
.form-top h3 { font-size: 1.9rem; }
.form-top p { color: var(--gray); font-size: 1.05rem; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
}
.form-grid .full { grid-column: 1 / -1; }

.field { position: relative; }
.field input,
.field select,
.field textarea {
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--gray-light);
  background: transparent;
  padding: 14px 4px 14px 0;
  font-size: 1.15rem;
  font-family: var(--font-body);
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s ease;
}
.field select { appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; }
.field textarea { resize: vertical; min-height: 90px; }
.field label {
  position: absolute;
  left: 0; top: 14px;
  font-size: 1.15rem;
  color: var(--gray);
  pointer-events: none;
  transition: all 0.2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--gold); }
.field input:focus ~ label,
.field input:not(:placeholder-shown) ~ label,
.field select:focus ~ label,
.field select.has-value ~ label,
.field textarea:focus ~ label,
.field textarea:not(:placeholder-shown) ~ label {
  top: -14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}
.field .char-count {
  position: absolute;
  right: 4px; bottom: -20px;
  font-size: 0.75rem;
  color: var(--gray);
}
.field .hint { font-size: 0.78rem; color: var(--gray); margin-top: 6px; display: block; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); }
.field .error-msg { font-size: 0.78rem; color: var(--danger); margin-top: 6px; display: none; }
.field.has-error .error-msg { display: block; }

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.form-footer .btn { padding: 18px 44px; font-size: 1.05rem; }
.form-footer .privacy-note { font-size: 0.82rem; color: var(--gray); max-width: 340px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

.form-status {
  margin-top: 24px;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  display: none;
}
.form-status.success { display: block; background: rgba(47,143,91,0.1); color: var(--success); border: 1px solid rgba(47,143,91,0.35); }
.form-status.error { display: block; background: rgba(192,72,58,0.1); color: var(--danger); border: 1px solid rgba(192,72,58,0.35); }

/* =========== Footer =========== */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.7); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: var(--white); font-size: 1rem; margin-bottom: 18px; }
.footer-grid ul li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid ul li a:hover { color: var(--gold-light); }
.footer-logo { color: var(--white); font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 14px; }
.footer-logo span { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 50px;
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand .footer-logo-img { height: 30px; width: auto; }
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-dark); }

.back-to-top {
  position: fixed;
  right: 28px; bottom: 28px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 900;
  border: none;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-4px); }

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

/* =========== Responsive =========== */
@media (max-width: 980px) {
  .about-grid, .feature, .form-grid { grid-template-columns: 1fr; }
  .feature:nth-of-type(even) .feature-media { order: 0; }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-info, .contact-form-panel { padding: 60px 36px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav-wrap.open .nav-links {
    display: flex;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 24px 28px;
    gap: 18px;
  }
  .section { padding: 70px 0; }
  .contact-info .contact-photo { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-brand { flex-direction: column; gap: 8px; }
}
