/* ============================================================
   Milford Land LLC — Shared Styles
   Look & feel adapted from jmenterprises.uk, rebranded.
   ============================================================ */

:root {
  --navy: #16283b;
  --navy-light: #1f3a54;
  --gold: #e0a63e;
  --gold-dark: #c68e2c;
  --text: #2a2f36;
  --muted: #5c6772;
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --border: #e2e6ea;
  --green: #2f7d4f;
  --red: #c0392b;
  --max: 1140px;
  --radius: 8px;
  --shadow: 0 6px 24px rgba(22, 40, 59, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: var(--gold-dark); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.2s ease, transform 0.1s ease;
}
.btn:hover { background: var(--gold-dark); transform: translateY(-1px); }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.brand {
  color: #fff;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.3px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav a {
  color: #dfe6ee;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.nav a:hover, .nav a.active { color: var(--gold); }
.nav .btn { color: var(--navy); }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #16283b 0%, #1f3a54 45%, #2f5d3f 100%);
  color: #fff;
  text-align: center;
  padding: 96px 20px;
}
/* To use a real photo instead, drop an image into site/images/ and set:
   background: linear-gradient(rgba(22,40,59,0.72), rgba(22,40,59,0.72)),
               url("images/your-photo.jpg") center/cover no-repeat; */
.hero h1 { color: #fff; font-size: 46px; margin-bottom: 0.3em; }
.hero p { font-size: 20px; max-width: 680px; margin: 0 auto 1.6em; color: #eef2f6; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head h2 { font-size: 34px; }
.section-head p { color: var(--muted); font-size: 18px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 14px;
}
.card h3 { font-size: 20px; }
.card p { color: var(--muted); margin-bottom: 0; }

/* ---------- Comparison ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.compare-col {
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.compare-col.them { background: #fff; border: 1px solid var(--border); }
.compare-col.us { background: var(--navy); color: #eef2f6; }
.compare-col.us h3 { color: var(--gold); }
.compare-col h3 { font-size: 24px; margin-bottom: 18px; }
.compare-col ul { list-style: none; padding: 0; margin: 0; }
.compare-col li { padding: 10px 0; border-bottom: 1px solid rgba(128,128,128,0.18); }
.compare-col li:last-child { border-bottom: none; }

/* ---------- Contact / Form ---------- */
.form-wrap {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 15px;
  color: var(--navy);
}
.form-group label .req { color: var(--red); }
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(224,166,62,0.18);
}
.form-group textarea { min-height: 84px; resize: vertical; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.consent input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--gold-dark);
}
.field-error {
  color: var(--red);
  font-size: 13px;
  margin-top: 5px;
  display: none;
}
.form-group.invalid input,
.form-group.invalid textarea { border-color: var(--red); }
.form-group.invalid .field-error { display: block; }

.form-note {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 18px;
}
.form-note a { color: var(--gold-dark); font-weight: 600; }

.form-success {
  display: none;
  background: #eaf5ee;
  border: 1px solid var(--green);
  color: var(--green);
  padding: 16px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  margin-bottom: 18px;
}
.form-error {
  display: none;
  background: #fdecea;
  border: 1px solid var(--red);
  color: var(--red);
  padding: 16px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  margin-bottom: 18px;
}

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 72px; }
.legal .container { max-width: 860px; }
.legal h1 { font-size: 36px; margin-bottom: 8px; }
.legal h2 {
  font-size: 24px;
  margin-top: 36px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 22px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #cdd6df;
  padding: 48px 20px 28px;
  text-align: center;
}
.site-footer .brand-lg {
  font-family: Georgia, serif;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}
.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-contact { margin: 12px 0 20px; font-size: 15px; }
.footer-contact div { margin: 4px 0; }
.footer-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.footer-legal { margin-top: 16px; font-size: 13px; color: #93a1af; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 17px; }
  .nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 20px; width: 100%; }
  .nav .btn { margin: 10px 20px; width: calc(100% - 40px); }
  .nav-toggle { display: block; }
}
