/* =========================================================
   Majestic Homes Florida — base styles
   Re-theme via the custom properties below.
   Placeholder palette: deep navy + warm sand/gold (Florida-homes feel)
   ========================================================= */
:root {
  --navy: #1c2a3a;
  --navy-deep: #131e2a;
  --sand: #c9a45c;
  --sand-dark: #a8863f;
  --cream: #f7f4ee;
  --ink: #20262e;
  --muted: #5d6873;
  --line: #e4ded3;
  --white: #ffffff;
  --max: 1160px;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(28, 42, 58, 0.10);
  --font-head: "Poppins", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Helvetica, Arial, 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 { font-family: var(--font-head); line-height: 1.2; color: var(--navy); margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1rem; color: var(--muted); }
a { color: var(--sand-dark); text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tint { background: var(--cream); }
.eyebrow {
  text-transform: uppercase; letter-spacing: 2.5px; font-size: 0.78rem;
  font-weight: 600; color: var(--sand-dark); margin-bottom: 12px;
}
.center { text-align: center; }
.lead { font-size: 1.12rem; max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: 0.98rem; padding: 14px 30px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; transition: all .2s ease;
}
.btn--primary { background: var(--sand); color: var(--navy-deep); }
.btn--primary:hover { background: var(--sand-dark); color: var(--white); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--navy); letter-spacing: .3px; }
.brand span { color: var(--sand-dark); }
.nav { display: flex; gap: 30px; align-items: center; }
.nav a { color: var(--ink); font-weight: 500; font-size: 0.97rem; }
.nav a:hover { color: var(--sand-dark); }
.nav .btn { padding: 10px 22px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--navy); cursor: pointer; }

/* ---- Hero ---- */
.hero {
  position: relative; color: var(--white); text-align: center;
  background: linear-gradient(rgba(19,30,42,.72), rgba(19,30,42,.78)),
              linear-gradient(135deg, #243748, #1c2a3a);
  background-size: cover; background-position: center;
  padding: 120px 0 130px;
}
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero p { color: rgba(255,255,255,.9); font-size: 1.18rem; max-width: 620px; margin: 0 auto 32px; }
.hero .btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Feature cards ---- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.card .ico {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--cream); color: var(--sand-dark); font-size: 1.5rem; margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; }

/* ---- Model home cards ---- */
.model {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.model .ph {
  aspect-ratio: 4 / 3; background: linear-gradient(135deg, #e9e3d6, #d8cfbd);
  display: grid; place-items: center; color: var(--sand-dark); font-weight: 600;
  font-family: var(--font-head); letter-spacing: 1px;
}
.model .body { padding: 22px 24px 26px; }
.model h3 { margin-bottom: 4px; }
.model .specs { display: flex; gap: 18px; margin: 12px 0 0; font-size: .9rem; color: var(--muted); }
.model .specs b { color: var(--navy); }

/* ---- Contact / form ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; color: var(--ink); background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sand); box-shadow: 0 0 0 3px rgba(201,164,92,.2);
}
.field textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status.ok { color: #2b6f4d; }
.form-status.err { color: #b53d3d; }
.contact-info li { list-style: none; margin: 0 0 18px; padding-left: 0; color: var(--ink); }
.contact-info ul { padding: 0; margin: 18px 0 0; }
.contact-info .lbl { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--sand-dark); font-weight: 600; }

/* ---- Footer ---- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding: 50px 0 30px; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer .cols { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.site-footer .brand { color: var(--white); }
.site-footer small { display: block; margin-top: 30px; color: rgba(255,255,255,.5); font-size: .85rem; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .grid--3, .grid--2, .contact-grid { grid-template-columns: 1fr; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    background: var(--white); padding: 18px 24px; gap: 16px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .section { padding: 60px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
