/* Matches the WordPress "Twenty Twenty-Four" theme the original site used. */
:root {
  --base: #f9f9f9;
  --base-2: #ffffff;
  --contrast: #111111;
  --contrast-2: #636363;
  --money-green: #2e7d32;
  --money-green-dark: #1b5e20;
  --font-body: "Inter", system-ui, sans-serif;
  --font-heading: "Cardo", Georgia, serif;
  --text-medium: 1.05rem;
  --text-small: 0.9rem;
  --text-large: clamp(1.39rem, 1.39rem + ((1vw - 0.2rem) * 0.767), 1.85rem);
  --text-x-large: clamp(1.85rem, 1.85rem + ((1vw - 0.2rem) * 1.083), 2.5rem);
  --space-20: min(1.5rem, 2vw);
  --space-30: min(2.5rem, 3vw);
  --space-40: min(4rem, 5vw);
  --space-50: min(6.5rem, 8vw);
  --gutter: max(16px, var(--space-50));
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--base);
  color: var(--contrast);
  font-family: var(--font-body);
  font-size: var(--text-medium);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 1rem;
}
h1 { font-size: var(--text-x-large); line-height: 1.15; }
h2 { font-size: var(--text-x-large); }
h3 { font-size: var(--text-large); }
p { margin: 0 0 1rem; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--contrast); color: var(--base); padding: .5rem 1rem; z-index: 10;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Layout widths */
.wide { max-width: 1280px; margin-inline: auto; }
.narrow { max-width: 620px; margin-inline: auto; }
.center { text-align: center; }

.section {
  padding: var(--space-50) var(--gutter);
}
.section-white { background: var(--base-2); }

/* Header */
.site-header {
  background: var(--base);
  padding: 20px var(--gutter);
}
.brand {
  display: inline-flex; align-items: center; gap: 1rem;
  text-decoration: none; font-weight: 500;
}
.brand img { width: 60px; height: auto; }
.brand:hover span { text-decoration: underline; }

/* Hero */
.lead { margin-top: 1.25rem; }
.hero-image { margin-top: var(--space-30); }
.hero-image img { width: 100%; border-radius: var(--space-20); }

/* Button */
/* Phone-number buttons: dollar green, about twice the theme's default size. */
.button {
  display: inline-block; margin-top: 20px;
  background: var(--money-green); color: #ffffff;
  border-radius: .5rem; padding: 1.2rem 2rem;
  font-size: 1.8rem; font-weight: 600; line-height: 1.2; text-decoration: none;
}
.button:hover, .button:focus-visible { background: var(--money-green-dark); }
/* The top button is a bit smaller than the one under the services. */
.button-top { padding: .9rem 1.5rem; font-size: 1.35rem; }

/* Twenty Twenty-Four "asterisk" heading ornament */
.asterisk::before {
  content: "";
  display: block;
  width: 1.5rem; height: 3rem;
  margin-bottom: .5rem;
  background: var(--contrast);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2v20M3.34 7l17.32 10M3.34 17l17.32-10' stroke='black' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat 0 50% / 1.5rem;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2v20M3.34 7l17.32 10M3.34 17l17.32-10' stroke='black' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat 0 50% / 1.5rem;
}
.center .asterisk::before { margin-inline: auto; }

/* Services grid: 3 columns on desktop */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-40) var(--space-40);
  margin-block: var(--space-40);
}
.services h3 {
  font-family: var(--font-body);
  font-size: var(--text-medium);
  font-weight: 600;
}
.services h3.asterisk::before { height: 2rem; }

/* About / contact rows */
.split {
  display: flex; align-items: center; gap: var(--space-50);
  margin-top: var(--space-40);
}
.split-text { flex: 0 1 40%; }
.split-image { flex: 0 1 50%; }
.split-image img { border-radius: var(--space-20); width: 100%; }

.checklist {
  list-style: none; padding: 0; margin: 0; line-height: 1.75;
}
.checklist li { padding-left: 1.5em; position: relative; }
.checklist li::before { content: "\2713"; position: absolute; left: 0; }
.checklist a { text-decoration: none; }
.checklist a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  padding: var(--space-40) var(--gutter);
  color: var(--contrast-2);
  font-size: var(--text-small);
  text-align: center;
}

/* Mobile */
@media (max-width: 781px) {
  .services { grid-template-columns: 1fr; gap: 1.5rem; }
  .split, .split-reverse { flex-direction: column; align-items: stretch; gap: 1.5rem; }
  .split-reverse .split-image { order: 2; }
  .section { padding-block: 3rem; }
}
.back-link { margin-top: 2rem; }
