/* ============================================================
   FILE: css/base.css
   Basic reset and typography styles.
   You usually don't need to edit this file.
============================================================ */

/* Reset — removes default browser spacing */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --font-heading: "Poppins", sans-serif;
}

body {
  font-family: var(--font-heading);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-dark);
  background-color: var(--off-white);
  overflow-x: hidden;
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
}

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

/* Lists */
ul,
ol {
  list-style: none;
}

/* Buttons reset */
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
}

/* Form elements */
input,
textarea,
select {
  font-family: var(--font-body);
  font-size: 0.9375rem;
}

/* Paragraphs */
p {
  margin-bottom: 1rem;
}
p:last-child {
  margin-bottom: 0;
}

/* =====================
   HEADINGS
===================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  /* font-family: var(--font-heading); */
  line-height: 1.15;
  color: var(--black-soft);
}

/* EDIT: Change heading sizes here */
h1 {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-family: sans-serif;
}
h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
}
h3 {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
}
h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

/* =====================
   LAYOUT
===================== */

/* Container — centers content on the page */
/* EDIT: Change max-width to make content wider or narrower */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

/* Section padding */
/* EDIT: Change 5rem to add more or less space between sections */
.section {
  padding: 5rem 0;
}

/* Section background colors */
.section--dark {
  background-color: var(--dark-green);
}
.section--green {
  background-color: var(--main-green);
}
.section--cream {
  background-color: var(--cream);
}

/* =====================
   SECTION LABELS
   (The small badge above headings)
===================== */
.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  background: rgba(181, 229, 80, 0.12);
  border: 1px solid rgba(181, 229, 80, 0.22);
  padding: 0.32rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

/* Dark version of label (used on light backgrounds) */
.sec-label--dark {
  color: var(--mid-green);
  background: rgba(45, 106, 79, 0.1);
  border-color: rgba(45, 106, 79, 0.22);
}

/* Section header block */
.sec-head {
  max-width: 680px;
  margin-bottom: 3.5rem;
}
.sec-head h2 {
  margin-bottom: 0.875rem;
}
.sec-head p {
  color: var(--text-grey);
  font-size: 1.02rem;
  line-height: 1.7;
}

/* Centered section header */
.sec-head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* =====================
   SCROLL REVEAL ANIMATION
===================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* FINAL MOBILE FORM FIX */
@media (max-width:768px){

.hero__inner,
.hero-grid,
.lead__grid{
display:flex !important;
flex-direction:column !important;
}

.hero__content,
.hero__form,
.form-card,
.lead-form{
width:100% !important;
max-width:100% !important;
flex:0 0 100% !important;
}

.form-card,
.hero__form{
margin-top:20px !important;
padding:20px !important;
}

.sp-form,
.sp-form .form-field,
.sp-form input,
.sp-form select,
.sp-form button{
width:100% !important;
max-width:100% !important;
box-sizing:border-box !important;
}

h1{
font-size:42px !important;
line-height:1.1 !important;
word-break:break-word !important;
}

body,html{
overflow-x:hidden !important;
}
}
