/*
  livingstories.life — Living Stories hub styles.
  Brand: Primary #204620, Secondary #11120B, Accent #2BAD2B, Text #FFFFFF.
  Titles: Trajan Pro 3 (Typekit). Body: Avenir LT Pro (Typekit).
  Design intent: minimalist, elegant, low clutter, high readability —
  fewer competing animations than the berzenjimedia.com pages this
  content is drawn from; generous whitespace; restrained motion.
*/

:root {
  --elf-primary: #204620;
  --elf-secondary: #11120B;
  --elf-accent: #2BAD2B;
  --elf-text: #FFFFFF;
  --elf-text-muted: rgba(255, 255, 255, 0.72);
  --elf-text-soft: rgba(255, 255, 255, 0.56);
  --elf-border: rgba(255, 255, 255, 0.12);
  --elf-surface: #171812;

  /* Confirm these Typekit family names match your Adobe Fonts kit's actual CSS names. */
  --elf-font-title: "trajan-pro-3", Georgia, "Times New Roman", serif;
  --elf-font-body: "avenir-lt-pro", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;

  --elf-max-width: 1180px;
  --elf-radius: 6px;
  --elf-transition: all 0.3s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--elf-secondary);
  color: var(--elf-text);
  font-family: var(--elf-font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.elf-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--elf-accent);
  color: var(--elf-secondary);
  padding: 0.75rem 1.25rem;
  z-index: 2000;
}
.elf-skip-link:focus { left: 1rem; top: 1rem; }

.elf-container {
  max-width: var(--elf-max-width);
  margin: 0 auto;
  padding: 0 1.75rem;
}

h1, h2, h3, h4 {
  font-family: var(--elf-font-title);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.25rem; color: var(--elf-text-muted); }

em { font-style: italic; color: var(--elf-accent); }

/* ---------- Buttons ---------- */
.elf-btn {
  display: inline-block;
  font-family: var(--elf-font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  padding: 0.95rem 1.9rem;
  border-radius: var(--elf-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--elf-transition);
  text-align: center;
}

.elf-btn-primary {
  background: var(--elf-accent);
  color: var(--elf-secondary);
  border-color: var(--elf-accent);
}
.elf-btn-primary:hover { background: #34c934; transform: translateY(-2px); }

.elf-btn-outline {
  background: transparent;
  color: var(--elf-text);
  border-color: rgba(255, 255, 255, 0.5);
}
.elf-btn-outline:hover { border-color: var(--elf-accent); color: var(--elf-accent); }

.elf-btn-sm { padding: 0.6rem 1.3rem; font-size: 0.7rem; }
.elf-btn-lg { padding: 1.1rem 2.6rem; font-size: 0.82rem; }
.elf-btn-full { width: 100%; }

.elf-inline-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--elf-accent);
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.elf-text-link {
  color: var(--elf-accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.elf-text-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.elf-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(17, 18, 11, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--elf-border);
}

.elf-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 1.75rem;
}

.elf-logo img { height: 34px; width: auto; }

.elf-nav {
  display: none;
  gap: 2rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.elf-nav a:hover { color: var(--elf-accent); }

.elf-header-cta { display: none; align-items: center; gap: 1.25rem; }
.elf-header-phone { font-size: 0.85rem; color: var(--elf-text-muted); white-space: nowrap; }
.elf-header-phone:hover { color: var(--elf-accent); }

.elf-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.elf-menu-toggle span {
  display: block;
  height: 2px;
  background: var(--elf-text);
  border-radius: 2px;
}

.elf-mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--elf-border);
  background: var(--elf-secondary);
}
.elf-mobile-nav.is-open { display: flex; }
.elf-mobile-nav a,
.elf-mobile-nav button {
  padding: 1rem 1.75rem;
  border-bottom: 1px solid var(--elf-border);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  text-align: left;
  border-radius: 0;
}

@media (min-width: 960px) {
  .elf-nav { display: flex; }
  .elf-header-cta { display: flex; }
  .elf-menu-toggle { display: none; }
  .elf-mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
.elf-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.elf-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.elf-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,18,11,0.55) 0%, rgba(17,18,11,0.85) 100%);
}

.elf-hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.elf-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--elf-accent);
  margin-bottom: 1rem;
}
.elf-eyebrow-light { color: rgba(255,255,255,0.8); }

.elf-hero-sub {
  font-size: 1.15rem;
  max-width: 560px;
  color: var(--elf-text-muted);
}

.elf-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.75rem 0 2.25rem;
}

.elf-trust-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  padding: 0;
  margin: 0;
  font-size: 0.8rem;
  color: var(--elf-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Sections (generic) ---------- */
.elf-section { padding: 6rem 0; }

.elf-section-head {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}
.elf-section-sub { color: var(--elf-text-muted); }

/* ---------- Compare ---------- */
.elf-compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.elf-compare-card {
  border: 1px solid var(--elf-border);
  border-top: 2px solid var(--elf-accent);
  border-radius: var(--elf-radius);
  padding: 2.25rem;
  background: var(--elf-surface);
}

.elf-compare-tag {
  font-family: var(--elf-font-title);
  color: var(--elf-accent);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.elf-compare-price {
  font-weight: 700;
  color: var(--elf-text);
  margin-bottom: 1rem;
}

.elf-compare-footer {
  text-align: center;
  max-width: 520px;
  margin: 3rem auto 0;
  color: var(--elf-text-muted);
}

@media (min-width: 760px) {
  .elf-compare-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- About ---------- */
.elf-about { background: var(--elf-primary); }

.elf-about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.elf-about-media img {
  border-radius: var(--elf-radius);
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 460px;
}

.elf-partner-callout {
  margin-top: 2rem;
  padding: 1.75rem;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--elf-radius);
  background: rgba(0,0,0,0.18);
}
.elf-partner-callout h3 { margin-bottom: 0.75rem; }
.elf-partner-callout-sub { margin-bottom: 0; font-size: 0.9rem; }
.elf-partner-callout-sub a { color: var(--elf-accent); text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 860px) {
  .elf-about-grid { grid-template-columns: 1.1fr 0.9fr; }
}

/* ---------- Service sections ---------- */
.elf-service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.elf-service-media img {
  border-radius: var(--elf-radius);
  width: 100%;
  object-fit: cover;
}

.elf-service-alt { background: var(--elf-surface); }

.elf-check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
}
.elf-check-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.75rem;
  color: var(--elf-text-muted);
}
.elf-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--elf-accent);
}

.elf-price-line { color: var(--elf-text); }
.elf-price-line strong { color: var(--elf-accent); }

.elf-service-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (min-width: 860px) {
  .elf-service-grid { grid-template-columns: 1fr 1fr; }
  .elf-service-grid-reverse .elf-service-media { order: 2; }
  .elf-service-grid-reverse .elf-service-copy { order: 1; }
}

/* ---------- Testimonials ---------- */
.elf-testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.elf-testimonial-card {
  margin: 0;
  padding: 2rem;
  border: 1px solid var(--elf-border);
  border-radius: var(--elf-radius);
  background: var(--elf-surface);
}
.elf-testimonial-card p {
  font-style: italic;
  color: var(--elf-text-muted);
  margin-bottom: 1rem;
}
.elf-testimonial-card cite {
  font-style: normal;
  font-weight: 600;
  color: var(--elf-accent);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

@media (min-width: 760px) {
  .elf-testimonial-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Final CTA ---------- */
.elf-final-cta {
  background: linear-gradient(160deg, var(--elf-primary), var(--elf-secondary));
  text-align: center;
}
.elf-final-cta-inner { max-width: 640px; margin: 0 auto; }
.elf-final-cta p { color: var(--elf-text-muted); margin-bottom: 2rem; }

/* ---------- Lead modal ---------- */
.elf-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--elf-transition);
}
.elf-modal-overlay.is-active { opacity: 1; visibility: visible; }

.elf-modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  background: var(--elf-surface);
  border: 1px solid var(--elf-border);
  border-radius: 10px;
  padding: 2.5rem 2rem 2rem;
  transform: translateY(16px);
  transition: var(--elf-transition);
}
.elf-modal-overlay.is-active .elf-modal { transform: translateY(0); }

.elf-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--elf-text-soft);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}
.elf-modal-close:hover { color: var(--elf-text); }

.elf-modal-sub { font-size: 0.9rem; margin-bottom: 1.5rem; }

.elf-form-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--elf-border);
  color: var(--elf-text);
  padding: 0.85rem 1rem;
  border-radius: var(--elf-radius);
  margin-bottom: 0.9rem;
  font-family: var(--elf-font-body);
  font-size: 0.95rem;
}
.elf-form-input:focus { outline: none; border-color: var(--elf-accent); }
.elf-form-input::placeholder { color: var(--elf-text-soft); }

.elf-form-select-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--elf-text-soft);
  margin-bottom: 0.4rem;
}
.elf-form-select { margin-bottom: 1.5rem; appearance: auto; }

.elf-form-error {
  color: #ff9b9b;
  font-size: 0.82rem;
  margin: 0.75rem 0 0;
  min-height: 1.2em;
}

/* ---------- Footer ---------- */
.elf-footer {
  background: #0a0a08;
  border-top: 1px solid var(--elf-border);
  padding-top: 4rem;
}

.elf-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.elf-footer-logo { height: 30px; width: auto; margin-bottom: 1rem; }
.elf-footer-brand p { font-size: 0.85rem; }

.elf-footer h4 {
  font-family: var(--elf-font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--elf-accent);
  margin-bottom: 1.1rem;
}

.elf-footer ul { list-style: none; padding: 0; margin: 0; }
.elf-footer li { margin-bottom: 0.6rem; font-size: 0.88rem; color: var(--elf-text-muted); }
.elf-footer a:hover { color: var(--elf-accent); }

.elf-footer-bottom {
  border-top: 1px solid var(--elf-border);
  padding: 1.5rem 1.75rem;
  font-size: 0.78rem;
  color: var(--elf-text-soft);
}
.elf-footer-bottom p { margin: 0; }

@media (min-width: 760px) {
  .elf-footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
