/* Simple styling for Miller Property Services */

:root {
  --bg: #ffffff;
  /* Palette tuned to match MPSlogo.png (greens/gold). */
  --text: #0B2F17;          /* deep forest text */
  --muted: #3B6B47;         /* softer green/gray */
  --card: #F4FFF8;          /* light mint background */
  --border: rgba(11, 47, 23, 0.16);
  --primary: #0D5B22;       /* main button/links */
  --primary-2: #0A4A1B;     /* hover state */
  --accent: #28C76B;        /* bright highlight */
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  /* Fallback colors in case CSS variables are not supported. */
  background: #ffffff;
  color: #0B2F17;
  color: var(--text);
  line-height: 1.5;
}

.container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  z-index: 999;
}
.skip-link:focus {
  left: 12px;
}

.site-header {
  padding: 34px 0 22px;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: unset;
  flex-direction: column;
  text-align: center;
}

.brand-logo {
  width: clamp(190px, 32vw, 360px);
  height: auto;
  object-fit: contain;
}

.brand-name {
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 22px);
}

.brand-tagline {
  font-size: clamp(13px, 1.6vw, 15px);
  color: var(--muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
}
.nav a:visited {
  color: var(--text);
}
.nav a:hover {
  background: rgba(13, 91, 34, 0.07);
}

/* Prevent mobile browsers from showing default visited-link blue/purple. */
a:visited {
  color: inherit;
}

.page {
  padding-bottom: 20px;
}

.hero {
  padding: 34px 0 8px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: start;
}

.hero-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--primary);
  color: #fff;
}
.button-primary:visited {
  color: #fff;
}
.button-primary:hover {
  background: var(--primary-2);
}

.button-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.button-ghost:visited {
  color: var(--text);
}
.button-ghost:hover {
  background: rgba(13, 91, 34, 0.07);
}

.quick-contact {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}
.quick-contact a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.quick-contact a:hover {
  text-decoration: underline;
}

.hero-card {
  background: linear-gradient(180deg, #ffffff, var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.hero-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.hero-list {
  margin: 0;
  padding-left: 18px;
}

.muted {
  color: var(--muted);
}

.section {
  padding: 42px 0;
}

.section-alt {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.grid {
  display: grid;
  gap: 16px;
}

.cards {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.about-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.about-badges {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  background: rgba(13, 91, 34, 0.08);
  border: 1px solid rgba(13, 91, 34, 0.16);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}

.about-contact {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  padding: 16px;
}

.about-contact-title {
  font-weight: 800;
  margin-bottom: 10px;
}

.about-contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 10px 0;
}

.about-contact-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 800;
}
.about-contact-item a:hover {
  text-decoration: underline;
}

.label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.about-contact-note {
  margin-top: 12px;
  color: var(--muted);
}

.contact-grid {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.contact-info .info-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
}

.contact-form-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
}

.contact-form h3 {
  margin-top: 0;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

label {
  font-weight: 800;
  font-size: 13px;
}

input, select, textarea {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 12px;
  font-size: 14px;
  background: #fff;
  color: var(--text);
}

textarea {
  resize: vertical;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(13, 91, 34, 0.42);
  box-shadow: 0 0 0 4px rgba(13, 91, 34, 0.14);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.fineprint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.sent-banner {
  background: rgba(10, 122, 90, 0.12);
  border: 1px solid rgba(10, 122, 90, 0.22);
  color: #0a5f49;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-weight: 800;
}

.site-footer {
  padding: 18px 0 26px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .about-inner {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

