/* ProofSafe for Arborists — Global Styles */

:root {
  --yellow: #ffd740;
  --yellow-dark: #c8a800;
  --black: #1a1a1a;
  --dark: #2e2c2c;
  --white: #ffffff;
  --grey-light: #f5f5f5;
  --grey-mid: #e0e0e0;
  --grey-text: #666;
  --max-width: 1100px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── Nav ─────────────────────────────────── */

.nav {
  background: var(--black);
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav__logo img {
  height: 40px;
}

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav__links a {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--yellow);
}

.nav__links a.active {
  color: var(--yellow);
}

/* Mobile nav */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: 0.3s;
}

/* ── Hero ─────────────────────────────────── */

.hero {
  background: var(--black);
  color: var(--white);
  padding: 5rem 2rem;
  text-align: center;
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero__badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 1rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--yellow);
}

.hero p {
  font-size: 1.125rem;
  color: #ccc;
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero__cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Buttons ──────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn--primary {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}

.btn--primary:hover {
  background: var(--yellow-dark);
  border-color: var(--yellow-dark);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--black);
}

.btn--dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn--dark:hover {
  background: var(--dark);
}

/* ── Sections ─────────────────────────────── */

.section {
  padding: 5rem 2rem;
}

.section--grey {
  background: var(--grey-light);
}

.section--dark {
  background: var(--black);
  color: var(--white);
}

.section--yellow {
  background: var(--yellow);
  color: var(--black);
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__header h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section__header p {
  color: var(--grey-text);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}

.section--dark .section__header p {
  color: #aaa;
}

/* ── Pain Points ──────────────────────────── */

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.pain-card {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: 4px;
  padding: 2rem;
  border-top: 4px solid var(--yellow);
}

.pain-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--yellow);
}

.pain-card__icon .material-symbols-outlined {
  font-size: 2rem;
}

.equipment-item .material-symbols-outlined {
  font-size: 1.75rem;
  color: var(--yellow);
}

.pain-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pain-card p {
  color: var(--grey-text);
  font-size: 0.925rem;
}

/* ── Feature Cards (tools) ────────────────── */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.tool-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.tool-card__img {
  height: 200px;
  background: var(--grey-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-text);
  font-size: 0.875rem;
}

.tool-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-card__body {
  padding: 1.75rem;
}

.tool-card__badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 0.75rem;
}

.tool-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tool-card p {
  color: var(--grey-text);
  font-size: 0.925rem;
  margin-bottom: 1.25rem;
}

.tool-card .btn {
  width: 100%;
}

/* ── Credibility / Built by ───────────────── */

.credibility {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.credibility__text {
  flex: 1;
  min-width: 300px;
}

.credibility__text h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.credibility__text p {
  color: #aaa;
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.credibility__highlight {
  flex: 1;
  min-width: 280px;
  background: var(--dark);
  border-left: 4px solid var(--yellow);
  padding: 2rem;
  border-radius: 4px;
}

.credibility__highlight blockquote {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.credibility__highlight cite {
  font-style: normal;
  font-size: 0.875rem;
  color: var(--yellow);
  font-weight: 600;
}

/* ── Checklist ────────────────────────────── */

.checklist {
  list-style: none;
  margin: 1.5rem 0;
}

.checklist li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  font-size: 0.95rem;
}

.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--yellow);
  font-weight: 700;
}

.section--dark .checklist li {
  color: #ccc;
}

/* ── Equipment List ───────────────────────── */

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.equipment-item {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: 4px;
  padding: 1.25rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.equipment-item span {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* ── Form ─────────────────────────────────── */

.form-section {
  max-width: 560px;
  margin: 0 auto;
}

.form-section h2 {
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
}

.form-section > p {
  text-align: center;
  color: var(--grey-text);
  margin-bottom: 2rem;
}

.section--dark .form-section > p {
  color: #aaa;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form input {
  padding: 0.85rem 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  border: 2px solid var(--grey-mid);
  border-radius: 3px;
  background: var(--white);
  transition: border-color 0.2s;
}

.form input:focus {
  outline: none;
  border-color: var(--yellow);
}

.form .btn {
  margin-top: 0.5rem;
}

/* ── Two Column Layout ────────────────────── */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col--reverse {
  direction: rtl;
}

.two-col--reverse > * {
  direction: ltr;
}

.two-col__img {
  background: var(--grey-light);
  border-radius: 4px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-text);
  font-size: 0.875rem;
  overflow: hidden;
}

.two-col__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.two-col__text h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.two-col__text p {
  color: var(--grey-text);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── Footer ───────────────────────────────── */

.footer {
  background: var(--black);
  color: #888;
  padding: 3rem 2rem;
  text-align: center;
  font-size: 0.8rem;
}

.footer a {
  color: var(--yellow);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer__links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer__links a {
  color: #aaa;
  font-size: 0.85rem;
}

.footer__links a:hover {
  color: var(--yellow);
}

/* ── Ollee tooltip ────────────────────────── */

.ollee-credit {
  position: relative;
  display: inline-block;
}

.ollee-credit__tip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: #ccc;
  font-size: 0.7rem;
  line-height: 1.5;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: auto;
  transition: opacity 0.2s, visibility 0.2s;
}

.ollee-credit__tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--dark);
}

.ollee-credit:hover .ollee-credit__tip {
  visibility: visible;
  opacity: 1;
}

/* ── Responsive ───────────────────────────── */

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    padding: 1rem 2rem 2rem;
    gap: 1rem;
  }

  .nav__links.open {
    display: flex;
  }

  .nav__toggle {
    display: block;
  }

  .hero {
    padding: 3rem 1.5rem;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .two-col--reverse {
    direction: ltr;
  }

  .credibility {
    flex-direction: column;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }
}
