/* ============================================================
   EPIC Landscaping — Business Continuity Landing Page
   Palette derived from the existing logo assets.
   ============================================================ */

:root {
  /* Brand */
  --green: #009e74;          /* accent / dot / focus ring (from favicon.svg) */
  --green-dark: #007a59;     /* primary CTA bg — white text = 5.3:1 (AA) */
  --green-darker: #00654a;   /* primary CTA hover/active */
  --green-tint: #e8f5f0;     /* soft background wash */
  --charcoal: #3a3f3e;       /* wordmark tone */
  --ink: #212625;           /* body text */
  --muted: #5c6360;         /* secondary text */

  /* Surfaces */
  --bg: #ffffff;
  --surface: #f7f9f8;
  --border: #e2e7e5;

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, sans-serif;

  /* Layout */
  --maxw: 1120px;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(0, 60, 40, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Accessibility helpers ------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Header ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}
.brand-logo { width: auto; height: 48px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--green-tint);
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(0, 158, 116, 0.5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 158, 116, 0.45); }
  70%  { box-shadow: 0 0 0 8px rgba(0, 158, 116, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 158, 116, 0); }
}

/* Hero ------------------------------------------------------ */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--charcoal); /* fallback while image decodes */
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  z-index: -2;
}
/* Readability scrim: darkens the left where the copy sits, with a soft
   green tint tying it to the brand. */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 32, 28, 0.82) 0%,
                            rgba(18, 32, 28, 0.55) 45%,
                            rgba(18, 32, 28, 0.15) 100%),
    linear-gradient(180deg, rgba(0, 60, 40, 0.10) 0%,
                            rgba(0, 60, 40, 0.30) 100%);
}
/* On narrow screens the copy spans full width, so use a stronger vertical
   scrim instead of the left-weighted one to keep every line readable. */
@media (max-width: 640px) {
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(18, 32, 28, 0.55) 0%,
                              rgba(18, 32, 28, 0.72) 100%);
  }
  .hero-bg { object-position: center 55%; }
}
.hero-inner {
  position: relative;
  padding-block: clamp(4.5rem, 12vw, 8.5rem);
  max-width: 720px;
}
.hero-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a7e8d1;
}
.hero-title {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.28);
}
.hero-copy {
  margin: 0 0 2rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 56ch;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.3);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Buttons --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.12s ease, background-color 0.15s ease,
              border-color 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--green-dark);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:active { background: var(--green-darker); }
.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green);
}
.btn-outline:hover { background: var(--green-tint); }
/* Secondary CTA that sits on top of the hero photo. */
.btn-glass {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
}
.btn-glass:hover {
  background: #fff;
  color: var(--charcoal);
  border-color: #fff;
}
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.95rem; }
.btn-block { width: 100%; }

/* Sections -------------------------------------------------- */
/* Offset in-page anchors so headings clear the sticky header. */
:target { scroll-margin-top: 84px; }
#contact { scroll-margin-top: 84px; }
.contact { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-head { max-width: 620px; margin-bottom: 2.5rem; }
.section-head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  color: var(--charcoal);
  letter-spacing: -0.01em;
}
.section-sub { margin: 0; color: var(--muted); font-size: 1.05rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 800px) {
  .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
}

.contact-card {
  min-width: 0; /* allow grid item to shrink below content width */
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow);
}
/* Long unbroken values (e.g. the email address) must wrap, not overflow. */
.detail dd { overflow-wrap: anywhere; }
.card-title {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  color: var(--charcoal);
}

/* Contact details */
.contact-details { margin: 0 0 1.5rem; }
.detail { padding-block: 0.7rem; border-bottom: 1px solid var(--border); }
.detail:last-of-type { border-bottom: 0; }
.detail dt {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.detail dd { margin: 0; font-size: 1.02rem; }
.detail address { font-style: normal; }
.card-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* Contact panel (no online form while offline) -------------- */
.form-notice {
  background: var(--green-tint);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: var(--ink);
}
.cta-stack { display: flex; flex-direction: column; gap: 0.75rem; }
.cta-hours {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Footer ---------------------------------------------------- */
.site-footer {
  background: var(--charcoal);
  color: #d7dbd9;
  padding-block: 2.5rem 1.25rem;
  margin-top: 1rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.footer-logo { height: 44px; width: auto; }
.footer-message { margin: 0.75rem 0 0; max-width: 46ch; font-size: 0.95rem; }
.social {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.social a {
  color: #b9c2be;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.social a:hover { color: #fff; text-decoration: underline; }
.footer-legal {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-legal p { margin: 0; font-size: 0.85rem; color: #cfd5d2; }

/* Reduced motion -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .status-dot { animation: none; }
  * { transition: none !important; }
}
