/* ============================================================
   Safesite.info — Home page styles
   Extends style.css with landing-page specific components
   Mobile-first; desktop breakpoints at 768px and 1024px
   ============================================================ */

/* ---- Page shell ---- */

.page-home .container {
  max-width: min(1120px, 100%);
  padding-left: 20px;
  padding-right: 20px;
}

.page-home {
  background: linear-gradient(180deg, #f0f4f2 0%, var(--bg) 520px);
}

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

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

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(1120px, 100%);
  margin: 0 auto;
  padding: 10px 20px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
}

.site-logo:hover {
  text-decoration: none;
}

.site-logo__icon {
  flex-shrink: 0;
}

.site-logo__text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-logo__dot {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
  text-decoration: none;
}

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

.hero {
  text-align: center;
  padding: 40px 0 28px;
}

.hero__content {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero__badge {
  display: inline-block;
  background: rgba(10, 135, 84, 0.08);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
  line-height: 1.12;
  color: var(--text);
}

.hero__lead {
  font-size: 1.0625rem;
  margin-bottom: 12px;
  line-height: 1.5;
  color: var(--text);
}

.hero p {
  color: var(--text-muted);
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 20px;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 8px rgba(10, 135, 84, 0.2);
}

.hero__cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(10, 135, 84, 0.25);
  text-decoration: none;
  color: #fff;
}

.hero__img {
  margin-top: 28px;
  border-radius: var(--radius);
  width: 100%;
  max-width: 520px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ---- Stats bar ---- */

.stats-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 8px;
  margin-bottom: 20px;
}

.stats-bar__item {
  flex: 1;
  text-align: center;
  position: relative;
}

.stats-bar__item + .stats-bar__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border);
}

.stats-bar__number {
  display: block;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stats-bar__label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

/* ---- Section row (two columns on desktop) ---- */

.section-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.section--stack {
  flex: 1;
  margin-bottom: 0;
}

/* ---- Section icons ---- */

.section__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(10, 135, 84, 0.08);
  color: var(--accent);
  margin-bottom: 14px;
}

.section__badge {
  display: inline-block;
  background: rgba(10, 135, 84, 0.08);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 16px;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

/* ---- Sections ---- */

.section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.section h2 {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  color: var(--text);
}

.section h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.section p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 10px;
}

.section p:last-child {
  margin-bottom: 0;
}

.section__lead {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
}

.section__img {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius);
  margin: 0 auto 20px;
  display: block;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
}

.section--accent {
  text-align: center;
}

.section--split__body {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Section: Our Story ---- */

.section--story__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.section--story__inner h2 {
  font-size: 1.5rem;
}

.section--story__inner p {
  font-size: 1rem;
  line-height: 1.7;
}

/* ---- Values ---- */

.values__subtitle {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 6px;
}

.values__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 16px;
}

.values__item {
  padding: 20px 18px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.values__item:hover {
  border-color: rgba(10, 135, 84, 0.18);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.values__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(10, 135, 84, 0.08);
  color: var(--accent);
  margin-bottom: 10px;
}

.values__item h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.values__item p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* ---- Contact ---- */

.contact__intro {
  margin-bottom: 4px;
}

.contact__intro h2 {
  margin-bottom: 10px;
}

.contact__meta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.contact__meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.contact__meta-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

.contact__form {
  margin-top: 18px;
  max-width: 480px;
}

.form__row {
  margin-bottom: 14px;
}

.form__row label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text);
}

.form__row .req {
  color: #c0392b;
}

.form__row input,
.form__row textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9375rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form__row input::placeholder,
.form__row textarea::placeholder {
  color: #b0b0b5;
}

.form__row input:focus,
.form__row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 135, 84, 0.1);
  background: var(--surface);
}

.form__row textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: inherit;
  padding: 12px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(10, 135, 84, 0.18);
  width: 100%;
}

.btn-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(10, 135, 84, 0.22);
}

.btn-submit:active {
  transform: translateY(0);
}

/* ---- Home footer ---- */

.page-home .site-footer {
  padding: 28px 0 32px;
  max-width: none;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 12px;
}

.site-footer__links a {
  color: var(--text-muted);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* ---- Tablet (>=768px) ---- */

@media (min-width: 768px) {
  .page-home .container {
    padding-left: 28px;
    padding-right: 28px;
  }

  .site-header__inner {
    padding: 12px 28px;
  }

  .hero {
    padding: 52px 0 40px;
  }

  .hero h1 {
    font-size: 2.625rem;
  }

  .hero__lead {
    font-size: 1.125rem;
  }

  .stats-bar {
    padding: 24px 16px;
  }

  .stats-bar__number {
    font-size: 1.625rem;
  }

  .stats-bar__label {
    font-size: 0.8125rem;
  }

  .section {
    padding: 34px 30px;
  }

  .section h2 {
    font-size: 1.5rem;
  }

  .values__grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .section-row {
    flex-direction: row;
    align-items: stretch;
    gap: 20px;
  }

  .section-row .section {
    flex: 1;
    min-width: 0;
  }

  .btn-submit {
    width: auto;
  }
}

/* ---- Desktop (>=1024px) ---- */

@media (min-width: 1024px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
    text-align: left;
    padding: 64px 0 52px;
  }

  .hero__content {
    margin: 0;
    max-width: none;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 3.5vw, 3.25rem);
    margin-bottom: 20px;
  }

  .hero__lead {
    font-size: 1.1875rem;
    max-width: 34ch;
  }

  .hero p:not(.hero__lead) {
    max-width: 42ch;
    margin-left: 0;
    font-size: 1rem;
  }

  .hero__img {
    margin-top: 0;
    max-width: none;
    width: 100%;
  }

  .section--split {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
    gap: 44px;
    align-items: center;
    text-align: left;
    padding: 44px 40px;
  }

  .section--split .section__img {
    margin: 0;
    max-width: none;
    width: 100%;
  }

  .section--split__body {
    margin: 0;
    max-width: none;
  }

  .section--split__body .section__lead {
    font-size: 1.125rem;
    line-height: 1.45;
  }

  .values .values__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }

  .values__item {
    padding: 24px 20px;
    min-height: 100%;
  }

  .contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    gap: 56px;
    align-items: start;
    padding: 44px 40px;
  }

  .contact__intro {
    margin-bottom: 0;
    padding-top: 4px;
  }

  .contact__intro p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .contact__form {
    margin-top: 0;
    max-width: none;
  }

  .section--story__inner p {
    max-width: 72ch;
    margin-left: auto;
    margin-right: auto;
  }
}
