/*
Theme Name: N-Life Classic
Theme URI: https://n-life.co.za/
Author: New Life
Description: A WordPress conversion of the established N-Life Mobirise website.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: nlife
*/

:root {
  --nlife-blue: #01118a;
  --nlife-green: #08eb21;
  --nlife-white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body.nlife-site {
  margin: 0;
}

.nlife-main {
  min-height: 45vh;
}

.nlife-site .navbar-logo img {
  width: auto;
}

.nlife-site .nav-link[aria-current="page"] {
  color: var(--nlife-green) !important;
}

.nlife-newsletter {
  width: min(760px, 100%);
  margin: 0 auto 2rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.07);
}

.nlife-newsletter h2 {
  margin: 0 0 0.5rem;
  color: var(--nlife-white);
}

.nlife-newsletter p {
  color: var(--nlife-white);
}

.nlife-newsletter-fields {
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  gap: 0.75rem;
  align-items: stretch;
}

.nlife-newsletter input[type="text"],
.nlife-newsletter input[type="email"] {
  min-width: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid #d7dbe0;
  border-radius: 0.25rem;
  background: #fff;
  color: #1f2933;
}

.nlife-newsletter button {
  margin: 0;
  border: 0;
  border-radius: 0.25rem;
  padding: 0.75rem 1.15rem;
  background: var(--nlife-green);
  color: #001055;
  font-weight: 700;
  cursor: pointer;
}

.nlife-newsletter-consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-top: 0.85rem;
  text-align: left;
  font-size: 0.9rem;
}

.nlife-newsletter-consent a {
  color: var(--nlife-green);
  text-decoration: underline;
}

.nlife-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.nlife-contact-status {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.25rem;
}

.nlife-contact-status.is-success {
  background: #dff6e4;
  color: #143c1e;
}

.nlife-contact-status.is-error {
  background: #ffe5e5;
  color: #651717;
}

.nlife-contact-form .form-control {
  width: 100%;
}

.nlife-contact-form textarea.form-control {
  min-height: 170px;
}

.nlife-contact-form .gdpr-block {
  display: block;
  margin-top: 1rem;
}

.nlife-contact-form .textGDPR a {
  color: var(--nlife-green);
  text-decoration: underline;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100000;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  background: #fff;
  color: #111;
}

.nlife-404 {
  min-height: 60vh;
  display: grid;
  place-items: center;
  padding: 6rem 1.5rem;
  background: var(--nlife-blue);
  color: #fff;
  text-align: center;
}

.nlife-404 a {
  color: var(--nlife-green);
}

@media (max-width: 767px) {
  .nlife-newsletter-fields {
    grid-template-columns: 1fr;
  }

  .nlife-newsletter {
    padding: 1.15rem;
  }
}
