/* ==========================================================================
   Raiven — AI Automation Landing Page
   Design system: warm neutral light base, single mint accent (#3CD59D),
   ink dark bands for rhythm, serif/sans type pairing.
   ========================================================================== */

:root {
  /* Brand accent */
  --mint: #3cd59d;
  --mint-deep: #1f9e6f;   /* for text-on-light, needs better contrast than raw mint */
  --mint-tint: #e9faf3;   /* very light backgrounds */
  --mint-tint-2: #d3f3e6; /* borders / hover fills */

  /* Ink (near-black, slight green undertone) */
  --ink: #101512;
  --ink-2: #1a2119;       /* raised surface on dark bands */
  --ink-border: #2b332e;
  --ink-soft: #59645d;    /* muted body copy on light bg */
  --ink-faint: #8d968f;

  /* Base surfaces */
  --bg: #ffffff;
  --bg-soft: #f6f8f6;
  --border: #e3e8e3;

  --text: var(--ink);
  --text-dim: var(--ink-soft);
  --text-faint: var(--ink-faint);

  --star: #f2a83d;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 2px 10px -4px rgba(16, 21, 18, 0.08);
  --shadow: 0 24px 48px -24px rgba(16, 21, 18, 0.22);
  --max-width: 1160px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: 100px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--mint-deep);
  background: var(--mint-tint);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

h1, h2, h3, h4 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h2.section-title {
  font-size: clamp(30px, 4vw, 42px);
  text-align: center;
  margin: 0 auto 14px;
  max-width: 700px;
}

p.section-sub {
  text-align: center;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 60px;
  font-size: 17px;
}

.accent-text {
  color: var(--mint-deep);
  font-style: italic;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 15px 26px;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--mint);
  color: var(--ink);
  box-shadow: 0 10px 24px -10px rgba(60, 213, 157, 0.55);
}

.btn-primary:hover { background: #33c491; transform: translateY(-1px); }

.btn-block { width: 100%; }

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}

.brand-lockup {
  display: flex;
  align-items: stretch;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding-left: 10px;
}

.mark,
.wordmark {
  display: block;
  height: 40px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 719px) {
  .mark,
  .wordmark {
    height: 34px;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-cta { display: none; }

@media (min-width: 720px) {
  .header-cta {
    display: inline-flex;
    padding: 11px 20px;
    font-size: 14px;
  }
}

.social-links {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 8px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
}

.nav-menu {
  position: relative;
}

.nav-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.nav-menu-toggle:hover { border-color: var(--mint-deep); background: var(--mint-tint); }

.nav-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.nav-menu.open .nav-menu-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-menu-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}

.nav-menu-panel a:hover { background: var(--mint-tint); color: var(--mint-deep); }

@media (max-width: 719px) {
  .social-links { display: none; }
}

/* ---------------- Hero ---------------- */

.hero {
  padding: 64px 0 80px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 52px;
  align-items: start;
}

@media (min-width: 980px) {
  .hero .container {
    grid-template-columns: minmax(380px, 1fr) minmax(460px, 540px);
  }
}

.hero-logo {
  height: 195px;
  width: auto;
  border-radius: 10px;
  margin-bottom: 28px;
}

.hero-copy h1 {
  font-size: clamp(30px, 4.2vw, 43px);
}

.hero-title-line {
  display: block;
  margin-bottom: 14px;
}

.hero-copy p {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 540px;
  margin-bottom: 30px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text-dim);
  font-weight: 600;
}

.hero-trust-item .tick {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-trust-item .tick svg { width: 11px; height: 11px; color: var(--ink); }

/* Lead form card */

.lead-form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 4px solid var(--mint);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  max-width: 86%;
  margin-inline: auto;
}

.lead-form-card h3 {
  font-size: 25px;
  margin-bottom: 5px;
}

.mobile-quote-cta {
  display: none;
}

@media (max-width: 719px) {
  .lead-form-card {
    display: none;
  }

  .mobile-quote-cta {
    display: block;
    text-align: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-top: 4px solid var(--mint);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
  }

  .mobile-quote-cta p {
    margin: 0 0 14px;
    font-weight: 600;
    color: var(--text-dim);
  }
}

.lead-form-card .form-sub {
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 24px;
}

.form-field { margin-bottom: 16px; }

.form-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  margin-bottom: 7px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-faint); }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--mint-deep);
  background: var(--bg);
}

.form-field textarea { resize: vertical; min-height: 84px; }

.form-disclaimer {
  font-size: 12px;
  color: var(--text-faint);
  text-align: center;
  margin-top: 16px;
}

/* GoHighLevel placeholder badge */
.ghl-placeholder-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink-soft);
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 20px;
}

.ghl-placeholder-note svg { flex-shrink: 0; color: var(--mint-deep); }

.ghl-embed {
  width: 100%;
  min-height: 620px;
}

.ghl-embed iframe {
  width: 100% !important;
  max-width: 100% !important;
  height: 100%;
  min-height: 620px;
  border: none;
}

/* ---------------- About ---------------- */

.about { background: var(--bg); }

.about .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 52px;
  align-items: center;
}

@media (min-width: 900px) {
  .about .container { grid-template-columns: 0.85fr 1.15fr; }
}

.about-visual {
  border-radius: var(--radius);
  background: var(--ink);
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.about-stat {
  text-align: center;
  padding: 30px 10px;
  background: var(--ink-2);
  border-radius: 10px;
}

.about-stat .num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--mint);
}

.about-stat .num.num-sm {
  font-size: 22px;
}

.about-stat .lbl {
  font-size: 12.5px;
  color: #b7bfb9;
  margin-top: 6px;
}

.about-copy h2 { font-size: clamp(28px, 3.6vw, 36px); }
.about-copy p { color: var(--text-dim); margin-bottom: 16px; font-size: 16px; }

.about-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.about-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text);
}

.about-list .tick {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mint-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.about-list .tick svg { width: 12px; height: 12px; color: var(--mint-deep); }

/* ---------------- Work / Gallery ---------------- */

.work { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.gallery-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.gallery-grid::-webkit-scrollbar { display: none; }

@media (min-width: 720px) {
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: visible;
    gap: 20px;
  }
}

.gallery-item {
  flex: 0 0 78%;
  scroll-snap-align: start;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 720px) {
  .gallery-item { flex: initial; }
}

.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.gallery-visual {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mint-tint);
}

.gallery-visual svg { width: 40px; height: 40px; color: var(--mint-deep); }

.gallery-item.tone-dark .gallery-visual {
  background: var(--ink);
}

.gallery-item.tone-dark .gallery-visual svg { color: var(--mint); }

.gallery-caption {
  padding: 18px 20px 22px;
}

.gallery-caption .g-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 5px;
}

.gallery-caption .g-desc {
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------------- Reviews (dark band) ---------------- */

.reviews {
  background: var(--ink);
  color: #fff;
}

.reviews .section-title { color: #fff; }
.reviews .section-sub { color: #a9b3ac; }

.stars { display: flex; gap: 3px; margin-bottom: 16px; }
.stars svg { width: 17px; height: 17px; color: var(--star); }

.reviews-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.reviews-grid::-webkit-scrollbar { display: none; }

@media (min-width: 780px) {
  .reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: visible;
    gap: 20px;
  }
}

.review-card {
  flex: 0 0 82%;
  scroll-snap-align: start;
  background: var(--ink-2);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius);
  padding: 28px;
}

@media (min-width: 780px) {
  .review-card { flex: initial; }
}

.review-card p.quote {
  font-size: 15px;
  color: #e7ebe8;
  margin-bottom: 22px;
}

.review-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  flex-shrink: 0;
}

.review-person .name { font-weight: 700; font-size: 14px; color: #fff; }
.review-person .role { font-size: 12.5px; color: #909a93; }

/* ---------------- Services ---------------- */

.services { background: var(--bg); }

.services-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.services-grid::-webkit-scrollbar { display: none; }

@media (min-width: 640px) {
  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow-x: visible;
    gap: 20px;
  }
}

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

.service-card {
  flex: 0 0 78%;
  scroll-snap-align: start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

@media (min-width: 640px) {
  .service-card { flex: initial; }
}

.service-card:hover { border-color: var(--mint-deep); box-shadow: var(--shadow-sm); transform: translateY(-2px); }

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--mint-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg { width: 24px; height: 24px; color: var(--mint-deep); }

.service-card h3 { font-family: var(--font-body); font-size: 17.5px; font-weight: 700; margin-bottom: 9px; }
.service-card p { color: var(--text-dim); font-size: 14.5px; margin: 0; }

/* ---------------- FAQ ---------------- */

.faq { background: var(--bg-soft); border-top: 1px solid var(--border); }

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
  padding: 20px 22px;
  font-size: 15.5px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-question .plus {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--mint-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background-color 0.25s ease;
  color: var(--mint-deep);
}

.faq-item.open .faq-question .plus {
  transform: rotate(45deg);
  background: var(--mint);
  color: var(--ink);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 22px 22px;
  color: var(--text-dim);
  font-size: 14.5px;
}

/* ---------------- Final CTA (dark band) ---------------- */

.final-cta {
  text-align: center;
  background: var(--ink);
  color: #fff;
}

.final-cta h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; color: #fff; }
.final-cta p { color: #a9b3ac; max-width: 520px; margin: 0 auto 32px; font-size: 17px; }

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 0 100px;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

@media (min-width: 720px) {
  .site-footer .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 38px;
}

.footer-social { display: none; }

@media (max-width: 719px) {
  .footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 22px;
  font-size: 13px;
  color: var(--text-dim);
}

.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--mint-deep); }

.footer-copy {
  font-size: 12.5px;
  color: var(--text-faint);
}

/* ---------------- Sticky mobile CTA ---------------- */

.sticky-cta { display: none; }

@media (max-width: 719px) {
  .lead-form-card {
    max-width: 100%;
  }

  .sticky-cta {
    display: flex;
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 200;
    align-items: center;
    gap: 8px;
    padding: 15px 22px;
    border-radius: 999px;
    background: var(--mint);
    color: var(--ink);
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
    box-shadow: 0 14px 28px -10px rgba(16, 21, 18, 0.35);
  }

  .site-footer { padding-bottom: 112px; }
}

/* ---------------- Back to top ---------------- */

.back-to-top {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 190;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--mint);
  box-shadow: 0 12px 24px -10px rgba(16, 21, 18, 0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.back-to-top:hover { background: var(--ink-2); }

@media (max-width: 719px) {
  .back-to-top {
    bottom: 82px;
    width: 42px;
    height: 42px;
  }
}

/* ---------------- Utility ---------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------------- GoHighLevel popup form patch ---------------- */
/* The GHL popup embed doesn't reliably set an opaque background on its
   generated card, so the page behind shows through the gaps. Force one. */

.ep-iFrameContainer {
  background: #ffffff !important;
}

/* The popup and the on-page hero form both get wrapped in this same
   GHL-generated class, so the popup's width must be scoped to only the
   popup container — otherwise it also forces the hero form wider than
   its own card. */
#quote-popup-container .ep-iFrameContainer {
  width: min(760px, 94vw) !important;
}

.ghl-embed .ep-iFrameContainer,
.ghl-embed .ep-wrapper {
  width: 100% !important;
  max-width: 100% !important;
}
