/* Ellis Builds — deep forest green + warm cream + charcoal.
   Designed for older homeowners: large type, high contrast, big targets. */

:root {
  --green-900: #14291d;
  --green-800: #1e3a2b;
  --green-700: #2a4f3a;
  --cream-50: #fdfaf2;
  --cream-100: #f7f2e4;
  --cream-200: #efe6cf;
  --charcoal: #23282a;
  --charcoal-soft: #4a5152;
  --gold: #b98a2f;
  --gold-dark: #96690f;
  --white: #ffffff;
  --radius: 12px;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--cream-50);
  -webkit-text-size-adjust: 100%;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
}

h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.2;
  color: var(--green-900);
  font-weight: 700;
}

a { color: var(--green-700); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
  text-align: center;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--green-800);
  color: var(--cream-50);
}
.btn-primary:hover { background: var(--green-700); }

.btn-secondary {
  background: transparent;
  color: var(--green-800);
  border-color: var(--green-800);
}
.btn-secondary:hover { background: var(--cream-200); }

.btn-call {
  background: var(--gold);
  color: var(--green-900);
  min-height: 48px;
  padding: 10px 20px;
  font-size: 17px;
}
.btn-call:hover { background: var(--gold-dark); color: var(--white); }

.btn-lg { min-height: 58px; padding: 14px 30px; font-size: 19px; }
.btn-xl { min-height: 68px; padding: 16px 34px; font-size: 22px; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream-50);
  border-bottom: 2px solid var(--cream-200);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.wordmark-mark { width: 40px; height: 40px; display: block; flex: none; }
.wordmark-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}
.wordmark-name {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--green-900);
}
.wordmark-sub {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--green-700);
  margin-top: 4px;
}

.site-nav { display: none; gap: 26px; }
.site-nav a {
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 600;
  font-size: 17px;
}
.site-nav a:hover { color: var(--green-700); }

.header-call { display: none; }
.header-call svg { width: 18px; height: 18px; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--green-900);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 22px 18px;
  border-top: 1px solid var(--cream-200);
}
.mobile-nav.open { display: flex; }
.mobile-nav a:not(.btn) {
  padding: 12px 4px;
  font-size: 19px;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 1px solid var(--cream-200);
}
.mobile-nav .btn { margin-top: 12px; }

@media (min-width: 860px) {
  .site-nav { display: flex; }
  .header-call { display: inline-flex; }
  .nav-toggle, .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--green-800);
  color: var(--cream-50);
  padding: 64px 0 56px;
}
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 14px;
}
.hero h1 {
  color: var(--cream-50);
  font-size: clamp(32px, 6vw, 52px);
  max-width: 20ch;
  margin-bottom: 18px;
}
.hero-sub {
  font-size: 20px;
  max-width: 56ch;
  color: var(--cream-100);
  margin-bottom: 28px;
}
.hero-sub strong { color: var(--white); }
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 26px;
}
.hero-ctas .btn-secondary {
  color: var(--cream-50);
  border-color: var(--cream-50);
}
.hero-ctas .btn-secondary:hover { background: rgba(255,255,255,.12); }
.hero-area {
  font-size: 16px;
  color: var(--cream-200);
  border-top: 1px solid rgba(255,255,255,.2);
  padding-top: 18px;
}
@media (min-width: 640px) {
  .hero-ctas { flex-direction: row; }
  .hero { padding: 84px 0 72px; }
}

/* ---------- Trust bar ---------- */
.trustbar {
  background: var(--green-900);
  color: var(--cream-100);
  padding: 20px 0;
}
.trustbar-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}
.trust-item svg { width: 30px; height: 30px; flex: none; color: var(--gold); }
.trust-item strong { color: var(--white); }
@media (min-width: 860px) {
  .trustbar-inner { grid-template-columns: repeat(3, 1fr); }
  .work-grid { grid-template-columns: repeat(4, 1fr); }
  .work-item img { height: 210px; }
}

/* ---------- Our Work ---------- */
.more-strip {
  margin-top: 30px;
  background: var(--cream-100);
  border: 1px solid var(--cream-200);
  border-radius: 12px;
  padding: 20px 24px;
}
.more-strip p { margin: 0; font-size: 17px; }
.more-strip a { font-weight: 700; color: var(--green-700); }
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}
.work-item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--cream-100);
  border: 1px solid var(--cream-200);
  cursor: zoom-in;
}
.work-item img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}
.work-item figcaption {
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--charcoal);
}
/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 41, 29, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: 100%;
  max-height: 74vh;
  border-radius: 8px;
  object-fit: contain;
}
.lightbox-cap {
  color: var(--cream-50);
  margin-top: 14px;
  font-size: 16px;
  text-align: center;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  padding: 14px;
}
.lightbox-close { top: 6px; right: 10px; }
.lightbox-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 6px; top: 50%; transform: translateY(-50%); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--cream-100); }
.section-title {
  font-size: clamp(28px, 4.5vw, 40px);
  text-align: center;
  margin-bottom: 14px;
}
.section-lede {
  text-align: center;
  font-size: 20px;
  color: var(--charcoal-soft);
  max-width: 60ch;
  margin: 0 auto 40px;
}

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius);
  padding: 34px 28px;
}
.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--green-800);
  color: var(--cream-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 40px; height: 40px; }
.card h3 { font-size: 26px; margin-bottom: 10px; }
.card p { color: var(--charcoal-soft); font-size: 18px; }
@media (min-width: 860px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  gap: 26px;
  max-width: 880px;
  margin: 0 auto;
}
.why-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.why-item > svg {
  width: 44px;
  height: 44px;
  flex: none;
  color: var(--green-700);
  margin-top: 4px;
}
.why-item h3 { font-size: 23px; margin-bottom: 6px; }
.why-item p { color: var(--charcoal-soft); }
@media (min-width: 860px) {
  .why-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* ---------- Process steps ---------- */
.steps {
  list-style: none;
  display: grid;
  gap: 22px;
  max-width: 860px;
  margin: 0 auto;
  counter-reset: step;
}
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius);
  padding: 26px;
}
.step-num {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green-800);
  color: var(--cream-50);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { font-size: 22px; margin-bottom: 6px; }
.step p { color: var(--charcoal-soft); }
@media (min-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; }
}

/* ---------- Service area ---------- */
.area-inner {
  display: grid;
  gap: 32px;
}
@media (min-width: 860px) {
  .area-inner { grid-template-columns: 1.4fr 1fr; align-items: center; }
}
.area-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}
.area-list li {
  background: var(--green-800);
  color: var(--cream-50);
  font-weight: 700;
  font-size: 18px;
  padding: 10px 20px;
  border-radius: 999px;
}
.area-card {
  background: var(--white);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}
.area-card h3 { font-size: 24px; margin-bottom: 8px; }
.area-card p { color: var(--charcoal-soft); margin-bottom: 18px; }

/* ---------- Contact ---------- */
.contact-inner {
  display: grid;
  gap: 40px;
}
@media (min-width: 960px) {
  .contact-inner { grid-template-columns: 1fr 1.1fr; align-items: start; }
}
.contact-lede { font-size: 20px; margin: 12px 0 24px; color: var(--charcoal-soft); }
.phone-big { margin-bottom: 22px; }
.contact-note, .contact-area { font-size: 17px; color: var(--charcoal-soft); }
.contact-note { margin-bottom: 10px; }

.lead-form {
  background: var(--white);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius);
  padding: 32px 26px;
}
.lead-form h3 { font-size: 25px; margin-bottom: 20px; }
.form-row { display: grid; gap: 0; }
@media (min-width: 560px) {
  .form-row { grid-template-columns: 1fr 1fr; gap: 16px; }
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--green-900);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-size: 18px;
  font-family: var(--sans);
  padding: 14px 16px;
  border: 2px solid var(--cream-200);
  border-radius: 10px;
  background: var(--cream-50);
  color: var(--charcoal);
  min-height: 54px;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green-700);
  background: var(--white);
}
.form-field textarea { resize: vertical; }
.form-submit { width: 100%; }
.form-submit[disabled] { opacity: .6; cursor: wait; }
.form-error {
  color: #8f1d1d;
  background: #fbe9e9;
  border: 1px solid #e5b3b3;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 17px;
  margin-bottom: 16px;
}
.form-success {
  text-align: center;
  padding: 18px 6px 4px;
}
.form-success svg { width: 56px; height: 56px; color: var(--green-700); margin-bottom: 12px; }
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--charcoal-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: var(--cream-200);
  padding: 44px 0 30px;
}
.footer-inner {
  display: grid;
  gap: 24px;
}
.footer-brand .wordmark-name { color: var(--cream-50); font-size: 22px; }
.footer-brand .wordmark-sub { color: var(--cream-200); }
.footer-brand p { font-size: 16px; margin-top: 6px; }
.footer-meta p { font-size: 16px; margin-bottom: 6px; }
.footer-meta a { color: var(--cream-50); font-weight: 700; }
.footer-copy {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 18px;
  font-size: 15px;
  color: var(--cream-200);
}
@media (min-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-copy { grid-column: 1 / -1; }
}
