/* Middleborough — Middleboro Prime — dark forest + harvest gold */
/* Fonts: Mulish (sans), Spectral (serif) */

:root {
  --bg-deep: #0f1410;
  --bg-base: #161e18;
  --bg-elev: #1d2820;
  --bg-card: rgba(29, 40, 32, 0.85);
  --gold: #d4a040;
  --gold-soft: #c89838;
  --ember: #b85c2e;
  --cream: #f0e8d8;
  --text: #e8e0d0;
  --text-dim: #a8a098;
  --border: rgba(212, 160, 64, 0.15);
  --glass: rgba(15, 20, 16, 0.7);
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Mulish', system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 4.5rem; /* room for sticky mobile call bar */
}

.aurora-bg {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -2;
  background: var(--bg-deep);
}
.aurora-bg::before {
  content: '';
  position: absolute;
  width: 60%; height: 60%;
  top: -10%; right: -10%;
  background: radial-gradient(ellipse, rgba(212, 160, 64, 0.08), transparent 70%);
  filter: blur(60px);
  animation: drift 20s ease-in-out infinite alternate;
}
.aurora-bg::after {
  content: '';
  position: absolute;
  width: 50%; height: 50%;
  bottom: -5%; left: -10%;
  background: radial-gradient(ellipse, rgba(184, 92, 46, 0.06), transparent 70%);
  filter: blur(50px);
  animation: drift2 25s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-5%, 3%); }
}
@keyframes drift2 {
  from { transform: translate(0, 0); }
  to { transform: translate(4%, -2%); }
}

.grain {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' /%3E%3C/svg%3E");
}

nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
  background: var(--glass);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 1.25rem;
}
nav .nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
nav .logo {
  font-family: 'Spectral', serif;
  font-size: 1.2rem; font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.02em;
  display: flex; flex-direction: column; line-height: 1.15;
}
nav .logo-sub {
  font-family: 'Mulish', sans-serif;
  font-size: 0.62rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-dim);
}
nav ul { display: flex; gap: 1.1rem; list-style: none; flex-wrap: wrap; }
nav ul a {
  color: var(--text-dim); text-decoration: none;
  font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  transition: color 0.2s;
}
nav ul a:hover, nav ul a.active { color: var(--gold); }
nav ul a.nav-cta { color: var(--cream); }
.nav-call {
  flex-shrink: 0;
  padding: 0.55rem 1rem !important;
  font-size: 0.82rem !important;
}
@media (max-width: 900px) {
  nav ul { display: none; }
}

.hero {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-compact { min-height: 58vh; }
.hero-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(15,20,16,0.88) 0%, rgba(15,20,16,0.55) 50%, rgba(15,20,16,0.8) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}
.hero-content-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 1.75rem;
  align-items: stretch;
}
@media (max-width: 900px) {
  .hero-content-grid { grid-template-columns: 1fr; }
}
.hero-eyebrow {
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.hero h1 {
  font-family: 'Spectral', serif;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--cream);
  margin-bottom: 0.5rem;
  max-width: 700px;
}
.hero-subtitle {
  font-family: 'Spectral', serif;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 1rem;
  max-width: 640px;
}
.hero p.lede, .lede {
  font-size: 1.0625rem;
  color: var(--text-dim);
  max-width: 580px;
  margin-bottom: 1.5rem;
}
.hero-cta {
  display: flex; gap: 0.85rem; flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-lg { padding: 1rem 1.75rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-block-sm { display: inline-flex; margin-top: 0.5rem; }
.btn-gold {
  background: var(--gold); color: var(--bg-deep);
  box-shadow: 0 6px 20px rgba(212, 160, 64, 0.28);
}
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--cream);
  border-color: rgba(240, 232, 216, 0.35);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.hero-form, form {
  background: rgba(15, 20, 16, 0.82);
  border: 1px solid rgba(212, 160, 64, 0.35);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.form-heading {
  font-family: 'Spectral', serif;
  font-size: 1.45rem; font-weight: 400;
  color: var(--cream); margin-bottom: 0.35rem;
}
.form-lead {
  font-size: 0.875rem; color: var(--text-dim);
  margin-bottom: 1rem;
}

section {
  max-width: 1200px; margin: 0 auto;
  padding: 4rem 1.5rem;
}
.section-title {
  font-family: 'Spectral', serif;
  font-size: 2rem; font-weight: 400;
  color: var(--cream); margin-bottom: 2rem;
}

.trust-strip {
  display: flex; gap: 2rem; flex-wrap: wrap;
  padding: 1.5rem 1.5rem;
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: var(--text-dim);
}
.trust-item::before {
  content: ''; width: 8px; height: 8px;
  border-radius: 50%; background: var(--gold);
  flex-shrink: 0;
}

.cta-band {
  padding-top: 2.5rem; padding-bottom: 2.5rem;
}
.cta-band-inner {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  background: var(--bg-elev);
  border: 1px solid rgba(212, 160, 64, 0.28);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.cta-band-inner h2 {
  font-family: 'Spectral', serif;
  font-size: 1.75rem; font-weight: 400;
  color: var(--cream); margin-bottom: 0.5rem;
}
.cta-band-inner p { color: var(--text-dim); max-width: 640px; }
.cta-band-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, transform 0.3s;
}
.card:hover {
  border-color: rgba(212, 160, 64, 0.3);
  transform: translateY(-2px);
}
.card h3 {
  font-family: 'Spectral', serif;
  font-size: 1.25rem; font-weight: 400;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.card p { color: var(--text-dim); font-size: 0.9375rem; margin-bottom: 0.85rem; }
.card-link {
  color: var(--gold); font-weight: 700; font-size: 0.875rem;
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.split img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.split h2 {
  font-family: 'Spectral', serif;
  font-size: 2rem; font-weight: 400;
  color: var(--cream); margin-bottom: 1rem;
}
.split p { color: var(--text-dim); margin-bottom: 1rem; }
@media (max-width: 768px) {
  .split { grid-template-columns: 1fr; }
}

.steps { display: flex; flex-direction: column; gap: 1rem; }
.step {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem; border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
}
.step-num {
  font-family: 'Spectral', serif;
  font-size: 1.5rem; color: var(--gold);
  flex-shrink: 0; width: 2rem;
}
.step p { color: var(--text-dim); font-size: 0.9375rem; }
.step a { color: var(--gold); font-weight: 700; text-decoration: none; }

.faq-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  font-family: 'Mulish', sans-serif;
  font-size: 1rem; font-weight: 700;
  color: var(--cream); margin-bottom: 0.5rem;
}
.faq-item p { color: var(--text-dim); font-size: 0.9375rem; }
.faq-item a { color: var(--gold); font-weight: 700; text-decoration: none; }

.contact-hero {
  max-width: 1200px; margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.contact-hero-copy { margin-bottom: 2rem; max-width: 720px; }
.contact-hero-copy h1 {
  font-family: 'Spectral', serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400; color: var(--cream);
  margin-bottom: 0.4rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-callout {
  background: var(--bg-elev);
  border: 2px solid rgba(212, 160, 64, 0.45);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  text-align: center;
}
.contact-callout h2 {
  font-family: 'Spectral', serif;
  font-size: 1.25rem; color: var(--cream);
  margin-bottom: 0.5rem;
}
.big-phone {
  font-family: 'Spectral', serif;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  margin: 0.35rem 0 0.5rem;
}
.big-phone a {
  color: var(--gold); text-decoration: none; font-weight: 600;
}
.muted { color: var(--text-dim); font-size: 0.9rem; }
.contact-secondary {
  margin-bottom: 1.25rem;
  color: var(--text-dim);
}
.contact-secondary strong { color: var(--cream); }
.dual-cta-box {
  padding: 1.25rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.dual-cta-box h3 {
  font-family: 'Spectral', serif;
  color: var(--gold); font-weight: 400;
  margin-bottom: 0.5rem;
}
.dual-cta-box p {
  font-size: 0.9rem; color: var(--text-dim);
  margin-bottom: 0.45rem;
}
.dual-cta-box a { color: var(--gold); font-weight: 700; text-decoration: none; }
.contact-info a {
  color: var(--gold); text-decoration: none; font-weight: 600;
}

form label {
  display: block; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-dim); margin-bottom: 0.25rem;
}
form input, form textarea, form select {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  color: var(--text); font-size: 0.95rem;
  margin-bottom: 0.9rem;
  font-family: inherit;
}
form input:focus, form textarea:focus, form select:focus {
  outline: none; border-color: var(--gold);
}
form button.btn-gold, form button {
  background: var(--gold); color: var(--bg-deep);
  border: none; border-radius: var(--radius);
  padding: 0.95rem 1.5rem;
  font-size: 1rem; font-weight: 700;
  cursor: pointer; font-family: inherit;
  width: 100%;
  box-shadow: 0 6px 20px rgba(212, 160, 64, 0.28);
}
form button:hover { background: var(--gold-soft); }
.form-note {
  font-size: 0.8rem; color: var(--text-dim);
  margin-top: 0.75rem; font-style: italic;
}
.form-note a { color: var(--gold); font-weight: 700; text-decoration: none; }

footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem 5.5rem;
  text-align: center;
}
footer .nap {
  font-size: 0.9rem; color: var(--text-dim);
  line-height: 1.85;
}
footer .nap a { color: var(--gold); text-decoration: none; font-weight: 700; }
.footer-call {
  font-size: 1.05rem !important;
}

/* Sticky mobile call bar — primary conversion */
.mobile-call-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 0.95rem 1rem;
  background: var(--gold);
  color: var(--bg-deep);
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow: 0 -6px 24px rgba(0,0,0,0.45);
}
@media (min-width: 901px) {
  .mobile-call-bar { display: none; }
  body { padding-bottom: 0; }
  footer { padding-bottom: 2.5rem; }
}

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s, transform 0.6s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
