/* Maranatha Housing — brand tokens */
:root {
  --navy: #1a2d4a;
  --navy-dark: #0f1c2e;
  --navy-light: #2a4066;
  --gold: #b8956a;
  --gold-light: #d4b896;
  --gold-dark: #967a52;
  --white: #ffffff;
  --off-white: #f8f6f3;
  --cream: #f3efe8;
  --text: #2c2c2c;
  --text-muted: #5a5a5a;
  --border: #e5e0d8;
  --shadow: 0 4px 24px rgba(26, 45, 74, 0.08);
  --shadow-lg: 0 12px 48px rgba(26, 45, 74, 0.12);
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Montserrat", system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold-dark);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 680px;
}

.gold-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.gold-line::before,
.gold-line::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gold);
  max-width: 60px;
}

.gold-line span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-primary:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-link img {
  height: 52px;
  width: auto;
}

.logo-text {
  display: none;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
}

@media (min-width: 480px) {
  .logo-text { display: block; }
}

.main-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.main-nav a:not(.btn) {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}

.main-nav a:not(.btn):hover {
  color: var(--gold);
}

.main-nav a.btn-primary {
  color: var(--white);
}

.main-nav a.btn-primary:hover {
  color: var(--white);
}

.nav-cta {
  margin-left: 0.5rem;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .menu-toggle { display: none; }
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  padding: 2rem 1.5rem;
  z-index: 999;
  overflow-y: auto;
}

.mobile-nav.open {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav a {
  display: block;
  padding: 1rem 0;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  color: var(--navy);
}

.mobile-nav .btn {
  margin-top: 1.5rem;
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(184, 149, 106, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(184, 149, 106, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
  max-width: 720px;
}

.hero .section-label {
  color: var(--gold-light);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}

.hero-text {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-accent {
  position: absolute;
  right: -5%;
  bottom: 10%;
  width: min(45vw, 400px);
  opacity: 0.12;
  filter: brightness(2);
  pointer-events: none;
}

@media (min-width: 768px) {
  .hero-accent {
    opacity: 0.2;
    right: 5%;
  }
}

/* About */
.about {
  padding: 6rem 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-image {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.about-content p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* Services / What we do */
.services {
  padding: 6rem 0;
  background: var(--off-white);
}

.services-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 600px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: 4px;
  margin-bottom: 1.25rem;
  color: var(--gold);
  font-size: 1.5rem;
}

.service-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Audience sections */
.audience {
  padding: 6rem 0;
}

.audience.landlords {
  background: var(--white);
}

.audience.providers {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
}

.audience.providers h2,
.audience.providers h3 {
  color: var(--white);
}

.audience.providers .section-label {
  color: var(--gold-light);
}

.audience.providers .section-intro {
  color: rgba(255, 255, 255, 0.75);
}

.benefits-list {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .benefits-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.benefit-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.benefit-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.125rem;
}

.audience.providers .benefit-icon {
  background: rgba(184, 149, 106, 0.2);
  color: var(--gold-light);
}

.benefit-item h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  font-family: var(--font-sans);
  font-weight: 600;
}

.benefit-item p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.audience.providers .benefit-item p {
  color: rgba(255, 255, 255, 0.7);
}

/* How it works */
.process {
  padding: 6rem 0;
  background: var(--cream);
}

.process-steps {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
  counter-reset: step;
}

@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem;
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 50%;
}

.process-step h3 {
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* FAQ */
.faq {
  padding: 6rem 0;
  background: var(--white);
}

.faq-grid {
  display: grid;
  gap: 3rem;
  margin-top: 3rem;
}

@media (min-width: 900px) {
  .faq-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.faq-group h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--gold-dark);
}

.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding-bottom: 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

/* Contact */
.contact {
  padding: 6rem 0;
  background: var(--off-white);
}

.contact-grid {
  display: grid;
  gap: 3rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }
}

.contact-info h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.contact-details {
  margin-top: 2rem;
}

.contact-details li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.contact-details strong {
  color: var(--navy);
  min-width: 80px;
}

.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 4px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.form-group label .required {
  color: var(--gold);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 480px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.form-success {
  display: none;
  padding: 1rem;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 2px;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.form-success.visible {
  display: block;
}

.form-error {
  display: none;
  padding: 1rem;
  background: #ffebee;
  color: #c62828;
  border-radius: 2px;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.form-error.visible {
  display: block;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand img {
  height: 64px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(1.1);
}

.footer-brand p {
  font-size: 0.9375rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-links h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}

.footer-links ul li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.8125rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.6);
  margin-right: 1.5rem;
}

.footer-legal a:hover {
  color: var(--gold-light);
}

/* Legal pages */
.legal-page {
  padding: calc(var(--header-height) + 3rem) 0 4rem;
  min-height: 60vh;
}

.legal-page h1 {
  margin-bottom: 0.5rem;
}

.legal-page .updated {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin: 2rem 0 1rem;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.legal-page ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-page a {
  color: var(--gold-dark);
  text-decoration: underline;
}
