:root {
  --softwhite: #F5F2EC;
  --cement: #B6B3AA;
  --oak: #C89F63;
  --matte: #1C1C1B;
  --terracotta: #C1502E;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--softwhite);
  color: var(--matte);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid rgba(182,179,170,0.5);
  background: rgba(245,242,236,0.97);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--matte);
  font-weight: 700;
}
.logo-mark {
  width: 10px;
  height: 24px;
  border-radius: 8px;
  background: var(--terracotta);
}
.main-nav a {
  text-decoration: none;
  color: var(--matte);
  margin-left: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.95rem;
}
.main-nav a:hover {
  background: rgba(182,179,170,0.35);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(182,179,170,0.5);
  margin-top: 3rem;
  padding: 1.5rem 0;
  background: var(--softwhite);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
}
.footer-brand {
  font-weight: 600;
}
.footer-tagline {
  color: rgba(28,28,27,0.7);
  margin-top: 0.2rem;
}
.footer-links a {
  margin-left: 0.5rem;
  color: var(--terracotta);
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 2rem;
  align-items: stretch;
  padding: 2rem 0 1.5rem;
}
@media (max-width: 800px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
}
.hero p {
  max-width: 36rem;
}
.hero-subtext {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: rgba(28,28,27,0.7);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
}
.hero-panel {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(182,179,170,0.7);
  padding: 1rem 1.2rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.05);
  font-size: 0.95rem;
}
.hero-panel-header {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Sections */
.section {
  margin-top: 2.5rem;
}
.section-muted {
  background: rgba(182,179,170,0.15);
  padding: 2rem 1.5rem;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  border-radius: 16px;
}
.section h2 {
  margin-top: 0;
}
.section-lead {
  max-width: 40rem;
  color: rgba(28,28,27,0.78);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
}
.btn-small {
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
}
.btn-primary {
  background: var(--terracotta);
  color: var(--softwhite);
  border: none;
}
.btn-outline {
  border: 1px solid var(--matte);
  color: var(--matte);
  background: transparent;
}
.btn-primary:hover { opacity: 0.9; }
.btn-outline:hover { background: rgba(182,179,170,0.2); }

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(182,179,170,0.6);
  padding: 1rem 1.2rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}
.card p {
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: rgba(28,28,27,0.75);
}
.card-link {
  color: var(--terracotta);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.93rem;
}
.card-link:hover {
  text-decoration: underline;
}

/* Columns */
.columns-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 1.3rem;
}
.info-block {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(182,179,170,0.5);
  padding: 1rem 1.1rem;
  font-size: 0.95rem;
}
.info-block h3 {
  margin-top: 0;
  margin-bottom: 0.3rem;
}
.info-block p {
  margin: 0;
  color: rgba(28,28,27,0.78);
}
/* CONTACT FORM STYLES */
.contact-form {
  margin-top: 1.5rem;
  max-width: 800px;
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.form-row {
  margin-top: 1rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

input, select, textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(28, 28, 27, 0.3);
  font-size: 1rem;
  background: #fff;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 2px rgba(193, 80, 46, 0.2);
}
/* HEADER BASE */
.site-header {
  background: #1E3A8A; /* HOA-MX Blue field */
  padding: 0.5rem 0;
  border-bottom: 3px solid var(--terracotta);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.logo-text {
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* NAVIGATION */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.main-nav a {
  color: #f8f8f8;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: opacity 0.15s ease;
}

.main-nav a:hover {
  opacity: 0.7;
}

/* BUTTON IN NAV */
.main-nav .btn-outline {
  border-color: #ffffff;
  color: #ffffff;
}

.main-nav .btn-outline:hover {
  background: rgba(255,255,255,0.15);
}
