/*
  Airhelp landing styles
  - Mobile-first; enhance at >= 960px for desktop split layout
*/

:root {
  --bg-left: rgb(241, 244, 248);
  --text: #0c1b2a;
  --muted: #4b5a6a;
  --brand: #0D73FF;
  --brand-dark: #0A58CA; /* darker blue for markers */
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --maxw: 720px;
}

/* Basic reset */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #fff;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout */
.layout {
  display: grid;
  grid-template-columns: 1fr; /* mobile */
  min-height: 100vh;
}

.layout__left {
  display: none; /* hidden on mobile */
}

.layout__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* footer lives inside; center content via wrapper */
  padding: var(--space-5) var(--space-4) var(--space-5);
  min-height: 100vh; /* allow sticky footer within right pane */
}

.main-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 0 auto; /* occupy available space and push footer down */
  border-bottom: 0; /* ensure no bottom border */
}

/* Brand */
.brand { margin-bottom: var(--space-4); display: flex; align-items: center; justify-content: center; align-self: center; }
.brand__link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.brand__logo { display: block; height: auto; width: 250px; }

/* Hero */
.hero { width: 100%; max-width: none; text-align: center; }
.hero__form { margin-top: var(--space-4); margin-bottom: var(--space-4); }
.form-embed { width: 100%; }
.form-embed > * { max-width: 100% !important; width: 100% !important; }
.hero__title {
  margin: 0 0 var(--space-2);
  font-size: clamp(1.25rem, 1rem + 1vw, 2rem);
  line-height: 1.2;
  text-align: center;
}
.hero__title-link { color: inherit; text-decoration: none; }
.hero__title-link:hover { text-decoration: underline; }
.hero__desc {
  margin: 0 auto;
  color: var(--muted);
  max-width: 60ch;
}

/* Benefits */
.benefits {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-5);
}
.benefits__item {
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  padding: var(--space-4);
  text-align: center;
  aspect-ratio: 1 / 1; /* make square */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* top-align so titles line up */
  gap: var(--space-2);
  width: clamp(160px, 28vw, 200px);
}
.benefits__title {
  margin: 0 0 var(--space-1);
  font-size: 18px;
  color: var(--text);
}
.benefits__desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Benefits color variants */
.benefits__item:nth-child(1) {
  background: #f0f6ff; /* light blue */
  border-color: #d6e6ff;
}
.benefits__item:nth-child(2) {
  background: #e8f1ff; /* light blue 2 */
  border-color: #cbdcff;
}
.benefits__item:nth-child(3) {
  background: #dfeaff; /* light blue 3 */
  border-color: #bcd0ff;
}

/* Footer (sticky at page bottom using flex layout) */
.site-footer {
  margin-top: auto; /* stick to bottom of right pane */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid #e6ebf2;
  background: #fff;
  width: 100%;
}
.site-footer__nav { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.site-footer__link { color: var(--muted); text-decoration: none; font-size: 14px; }
.site-footer__link:hover { color: var(--brand); text-decoration: underline; }
.site-footer__copy { color: var(--muted); font-size: 14px; }

/* Desktop enhancements */
@media (min-width: 960px) {
  .layout { grid-template-columns: 20% 80%; }
  .layout__left {
    display: block;
    position: relative;
    background: var(--bg-left);
    padding: var(--space-5) var(--space-4);
  }
  .layout__left::after {
    /* footer.svg fixed in left bottom */
    content: "";
    position: fixed; /* fixed to viewport bottom-left */
    left: 0;
    bottom: 0;
    width: 20vw; /* match left column width */
    height: 30vh;
    background: url('/assets/img/footer.svg') no-repeat right bottom / contain;
    pointer-events: none;
  }
  .layout__right {
    padding: var(--space-5) var(--space-5) var(--space-5);
    align-items: center; /* keep centered in right pane */
    text-align: center;
  }
  .hero { text-align: center; }
  .benefits { justify-content: center; }
}

/* Left list styles (desktop) */
.left-title { margin: 0 0 var(--space-3); font-size: 18px; font-weight: 700; color: var(--text); }
.left-list { list-style: disc; margin: 0; padding-left: 1.2rem; color: var(--text); }
.left-list li { margin-bottom: var(--space-3); }
.left-list li::marker { color: var(--brand-dark); }
.left-list__title { margin: 0 0 var(--space-1); font-size: 18px; line-height: 1.2; color: var(--text); }
.left-list__desc { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; }

/* Utility: visually hidden (for future use) */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
