/* Isabel Fernandes — personal real estate site
   Inspired by the structure and feel of a clean agent marketing page.
   Colors: navy + red accents (RE/MAX-appropriate, no trademarked logos). */

:root {
  --navy: #0c2d4a;
  --navy-mid: #123a5c;
  --deep: #081f33;
  --red: #c8102e;
  --red-dark: #9d0c24;
  --white: #fff;
  --gray: #f5f7fa;
  --ink: #2d2d2d;
  --line: #e3e8ee;
  --muted: #4a5560;
  --field-border: #c5ced6;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: min(1120px, calc(100% - 32px));
  --shadow: 0 16px 28px rgba(8, 31, 51, 0.08);
  --radius: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

h1, h2, h3, p, ul, ol, figure {
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  margin-bottom: 16px;
}

h3 {
  font-size: 1.4rem;
  line-height: 1.25;
  color: var(--deep);
}

a {
  color: var(--navy);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--white);
  color: var(--deep);
  padding: 8px 14px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

@media (min-width: 760px) {
  :root { --wrap: min(1120px, calc(100% - 48px)); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-red {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.btn-red:hover,
.btn-red:focus {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
  box-shadow: inset 0 0 0 1px var(--red);
}

.btn-outline:hover,
.btn-outline:focus {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: none;
}

.btn-navy {
  background: transparent;
  border-color: var(--navy);
  color: var(--deep);
}

.btn-navy:hover,
.btn-navy:focus {
  background: var(--navy);
  color: var(--white);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--navy);
}

/* Top bar */
.topbar {
  background: var(--navy);
  color: var(--white);
  font-size: 0.875rem;
  line-height: 1.4;
}

.topbar-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0;
}

.topbar a {
  color: var(--white);
  font-weight: 600;
  text-underline-offset: 3px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

@media (min-width: 760px) {
  .topbar-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
  }
  .topbar a { min-height: 0; }
}

/* Header / nav */
.site-header {
  position: relative;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  z-index: 30;
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 74px;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--deep);
  margin-right: auto;
}

.logo-mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.1;
}

.logo-sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.header-cta { display: none; }

.burger {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--navy);
  background: var(--white);
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.burger:has(.nav-toggle:focus-visible) {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.burger-lines,
.burger-lines::before,
.burger-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  position: relative;
}

.burger-lines::before,
.burger-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger-lines::before { top: -6px; }
.burger-lines::after { top: 6px; }

.nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  padding: 8px 16px 16px;
  box-shadow: var(--shadow);
  z-index: 30;
}

.site-header:has(.nav-toggle:checked) .nav {
  display: flex;
}

.nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 980px) {
  .burger { display: none; }
  .header-cta { display: inline-flex; }
  .nav,
  .site-header:has(.nav-toggle:checked) .nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .nav a {
    border: 0;
    padding: 0 10px;
    min-height: 44px;
  }
}

/* Hero */
.hero {
  background: radial-gradient(ellipse at top left, var(--navy-mid) 0%, var(--deep) 58%);
  color: var(--white);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px 0 48px;
}

.hero-photo {
  order: -1;
  background: #061e30;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center 18%;
  background: #061e30;
}

.kicker {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(2.05rem, 5vw, 3.35rem);
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 16px;
}

.hero-sub {
  color: var(--white);
  margin-bottom: 22px;
  max-width: 40rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-actions .btn { width: 100%; }

.hero-now {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.hero-now a,
.hero-now .phone-placeholder {
  color: var(--white);
  font-weight: 600;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 640px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .hero-actions .btn { width: auto; }
}

@media (min-width: 900px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 48px;
    padding: 48px 0 72px;
  }
  .hero-copy { flex: 1.15; }
  .hero-photo { flex: 0.85; order: 0; }
  .hero-img { height: 560px; }
}

/* Sections */
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 92px 0; } }

.band-gray { background: var(--gray); }
.band-white { background: var(--white); }
.band-navy { background: var(--navy); color: var(--white); }
.band-navy h2,
.band-navy p { color: var(--white); }

.lead {
  max-width: 42rem;
  margin-bottom: 20px;
}

.fine {
  margin-top: 12px;
  font-size: 1rem;
  color: var(--muted);
}

/* Home value form */
.hv-section { padding: 0 0 64px; background: var(--navy); }
.hv-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  margin-top: -28px;
  position: relative;
  z-index: 2;
}

@media (min-width: 760px) {
  .hv-card { padding: 36px 40px; }
}

.hv-card h2 { margin-bottom: 8px; }
.hv-line { margin-bottom: 20px; max-width: 40rem; }

.form-note {
  /* Form is front-end only until a backend is connected. */
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.form-grid {
  display: grid;
  gap: 0 20px;
}

@media (min-width: 700px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
}

.field {
  display: block;
  margin: 0 0 14px;
  font-weight: 600;
  font-size: 1rem;
}

.opt { font-weight: 400; color: var(--muted); }

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 400;
}

.field textarea { min-height: 110px; resize: vertical; }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 8px 0 18px;
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
}

.consent input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  flex: 0 0 auto;
  accent-color: var(--navy);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--gray);
  border-left: 4px solid var(--navy);
  font-size: 1rem;
}

.form-status.is-visible { display: block; }
.form-status.is-error { border-left-color: var(--red); }

/* Value props */
.proof h2 {
  text-align: center;
  max-width: 18em;
  margin-inline: auto;
}

.proof-grid {
  display: grid;
  gap: 28px;
  margin-top: 28px;
}

.proof-item {
  border-top: 3px solid var(--red);
  padding-top: 16px;
}

.proof-item h3 { margin-bottom: 8px; }

@media (min-width: 800px) {
  .proof-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

/* Steps */
.steps {
  display: grid;
  gap: 18px;
  margin: 24px 0;
  counter-reset: step;
  list-style: none;
}

.steps li {
  background: var(--white);
  padding: 18px 18px 18px 72px;
  position: relative;
  min-height: 48px;
}

.steps li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 16px;
  top: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h3 { margin-bottom: 6px; }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

/* Cards / paths / reasons */
.path-grid,
.reason-grid,
.sold-grid {
  display: grid;
  gap: 16px;
}

.card {
  border: 1px solid var(--line);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--white);
  height: 100%;
}

.card p { flex: 1; }

.help {
  font-weight: 600;
  color: var(--navy);
  flex: 0 0 auto !important;
}

.reason-grid .card p + p { margin-top: 0; }

@media (min-width: 700px) {
  .path-grid,
  .reason-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 980px) {
  .path-grid,
  .reason-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* Towns */
.town-note { max-width: 42rem; margin-bottom: 12px; }

.town-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.town {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 48px;
  padding: 10px 8px;
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

.town:hover,
.town:focus {
  background: var(--navy);
  color: var(--white);
}

@media (min-width: 700px) {
  .town-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 980px) {
  .town-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Recently sold placeholders */
.sold-card {
  background: transparent;
}

.sold-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #d5dde4;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 16px;
}

.sold-card figcaption {
  margin-top: 8px;
  font-weight: 600;
  color: var(--deep);
  background: #f3d6dc;
  display: inline-block;
  padding: 2px 6px;
}

@media (min-width: 700px) {
  .sold-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* About */
.about-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.about-photo {
  order: -1;
  background: #d9e1e8;
  overflow: hidden;
}

.about-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 20%;
  height: auto;
  background: #d9e1e8;
}

.about-copy p + p { margin-top: 14px; }

.broker-line {
  font-weight: 600;
  color: var(--navy);
  margin-top: 16px;
  margin-bottom: 12px;
}

@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.1fr 0.9fr; }
  .about-photo { order: 0; }
}

/* FAQ */
.faq-group {
  margin: 28px 0 8px;
  font-size: 1.15rem;
  color: var(--navy);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  background: var(--gray);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--deep);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--navy);
  flex: 0 0 auto;
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item p {
  padding: 0 16px 18px;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 800px) {
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0 20px;
}

.contact-methods a,
.contact-methods .phone-placeholder {
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Footer */
.site-footer {
  background: var(--deep);
  color: var(--white);
  padding: 48px 0 32px;
  font-size: 1rem;
}

.site-footer a { color: var(--white); }

.footer-grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

.footer-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover { text-decoration: underline; }

.eho-row {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.5;
}

.eho-mark {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 2px solid var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-legal {
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Mobile sticky */
.sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  gap: 8px;
}

.sticky a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  border: 1px solid var(--navy);
  border-radius: var(--radius);
}

.sticky .sticky-value {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

@media (min-width: 980px) {
  .sticky { display: none; }
  body { padding-bottom: 0; }
}

.placeholder {
  font-style: normal;
  background: #fff3c4;
  padding: 0 0.2em;
  color: var(--deep);
  font-weight: 600;
  white-space: nowrap;
}

.placeholder.wrap {
  white-space: normal;
}

.hero .placeholder,
.topbar .placeholder {
  background: #f3d6a0;
  color: var(--deep);
}

img.sold-photo { object-fit: cover; padding: 0; display: block; }
.sold-meta { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }
.sold-more { background: var(--deep); color: #fff; padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.sold-more p { color: #fff; margin: 0; }
.sold-more .sold-big { font-size: 3rem; font-weight: 700; line-height: 1; margin-bottom: 8px; }

/* Legal / thank-you pages */
.legal-wrap {
  max-width: 42rem;
}
.legal-page h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 12px;
  font-family: var(--serif);
  color: var(--navy);
}
.legal-page .updated {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 1rem;
}
.legal-page h2 {
  margin: 28px 0 10px;
  font-size: 1.25rem;
  color: var(--navy);
}
.legal-page p,
.legal-page li {
  font-size: 1.05rem;
  line-height: 1.65;
}
.legal-page ul {
  margin: 0 0 16px 1.25rem;
}
.legal-page li {
  margin-bottom: 8px;
}
.legal-page a {
  color: var(--navy);
  text-decoration: underline;
}
