/* Global Styles */
/* keep your existing body styles */
body {
  font-family: "Montserrat", "Roboto", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #222;
  background: #ffffff;
  position: relative;
}

/* non-interactive, fixed overlay behind content */
.bg-dots {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1; /* sits behind page content */
}

/* each <span> is a dot; position via CSS vars */
.bg-dots span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--r);
  height: var(--r);
  background: limegreen;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  animation: dotPulse var(--d, 12s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0.8;
}

@keyframes dotPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.6; }
  50%      { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}


/* Header */
header {
  text-align: center;
  padding: 1.5rem 1rem;
}

.brand-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.brand-logo {
  height: 80px;
}

.brand-word {
  color: rgb(96, 175, 96);
  font-size: 22px;
  font-weight: 800;
  letter-spacing:.02em;
}

h1 {
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  font-size: 2rem;
  margin: 0;
  color: rgb(46, 208, 46);
  letter-spacing: 6px;
  font-weight: 100;
}

h2 {
  font-weight: 500;
  margin-top: 0.5rem;
  color: #3f7f3fff;
}

h3 {
  font-weight: 100;
  margin-top: 0.5rem;
  color: rgb(130, 136, 130);
}

.tagline {
  max-width: 600px;
  margin: 1rem auto;
  font-size: 1.1rem;
  color: #333;
}

/* CTA Button */
.cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 12px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  background: #0a2d6a;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}

.cta:hover {
  background: #133f99;
}

/* Main Content */
main {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

section {
  margin-bottom: 2.5rem;
}

ol {
  padding-left: 1.2rem;
}

/* Form */
form {
  margin-top: 1rem;
}

form input[type="email"] {
  padding: 10px;
  width: 250px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-right: 8px;
}

form button {
  padding: 10px 20px;
  background: limegreen;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

form button:hover {
  background: #195738;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background: #ffffff;
  font-size: 0.9rem;
}

footer a {
  margin: 0 8px;
  color: #0a2d6a;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}


/* Layout helpers */
:root{
  --ink:rgb(46, 208, 46);
  --muted:#3f7f3fff;
  --brand:#3f7f3fff;         
  --brand-strong:#114f11ff;
  --radius:18px;
}


.container{
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HERO */
.hero{
  padding: 18px 0 10px;
}

.hero-grid{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 24px;
}

/* Side images */
.hero-img{
  margin: 0;
}
.hero-img img{
  width: 100%;
  height: 520px;                 /* tall card look */
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

/* Center copy */
.hero-copy{
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  color: var(--ink);
}

.hero-title{
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-size: clamp(2.2rem, 4.5vw, 4rem); /* big headline */
  margin: 0 0 16px;
}

.hero-sub{
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.6;
  margin: 0 auto 28px;
  max-width: 56ch;
}

/* CTA */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
}

.btn-primary{
  background: var(--brand);
  color: #fff;
  padding: 14px 26px;
  box-shadow: 0 10px 20px rgba(86,36,21,.15);
}
.btn-primary:hover{
  background: var(--brand-strong);
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(86,36,21,.22);
}
.btn-icon{
  font-size: 1.1em;
  line-height: 1;
}

/* Responsive */
@media (max-width: 1024px){
  .hero-img img{ height: 460px; }
}
@media (max-width: 900px){
  .hero-grid{
    grid-template-columns: 1fr;           /* stack */
    gap: 22px;
  }
  .hero-img:first-child{ order: 1; }
  .hero-copy{ order: 2; }
  .hero-img:last-child{ order: 3; }
  .hero-img img{ height: 360px; }
}
@media (max-width: 520px){
  .hero{ padding: 28px 0 24px; }
  .hero-img img{ height: 280px; border-radius: 14px; }
  .btn-primary{ padding: 12px 20px; }
}

/* Overlay */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

/* Popup box */
.popup-content {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  position: relative;
  text-align: center;
  animation: slideUp 0.35s ease;
}

/* Close button */
.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 1.3rem;
  cursor: pointer;
  color: #666;
}
.popup-close:hover {
  color: #000;
}

/* Form */
.popup-content form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.popup-content input[type="email"] {
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.popup-submit {
  padding: 12px;
  font-size: 1rem;
  background: #562415;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.25s ease;
}
.popup-submit:hover {
  background: #6c2b19;
}

/* Status message */
.popup-status {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  color: #333;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; } 
  to { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Header layout */
.site-header {
  position: sticky;          /* stick to the top */
  top: 0;                    /* from top edge */
  z-index: 1000;             /* ensure it sits above other content */
  display: flex;
  align-items: center;
  justify-content: space-between; /* logo left, buttons right */
  gap: 12px;
  padding: 12px 20px;
  background: #fff;          /* give it a background so content doesn't show through */
  border-bottom: 1px solid #eee; /* optional subtle divider */
}


.brand-logo{
  height:40px;                  /* adjust size */
  width:auto;
  display:block;
}

.header-actions{
  margin-left:auto;             /* pushes actions to the right */
  display:flex;
  align-items:center;
  gap:10px;                     /* space between buttons */
}

/* Optional: make anchors look consistently like buttons if needed */
.header-actions .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:10px;
  text-decoration:none;
}

/* Optional: on very small screens stack buttons but keep them right-aligned */
@media (max-width: 520px){
  .site-header{ flex-wrap:wrap; }
  .header-actions{ width:100%; justify-content:flex-end; }
}

.hero-video{
  display: block;
  width: 100%;
  height: 520px;       /* same as your .hero-img img */
  object-fit: cover;   /* crops nicely */
  border-radius: var(--radius, 12px);
}

/* load Montserrat if you haven't already (put this in <head>) */
/* <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&display=swap" rel="stylesheet"> */

/* Logo link */
.brand-link{
  display: inline-flex;
  align-items: center;
  gap: 14px; /* space between icon and text */
  text-decoration: none;
  color: inherit;
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  font-size: clamp(18px, 2.6vw, 30px); /* responsive size */
  line-height: 1;
  letter-spacing: 0.02em;              /* subtle tracking for readability */
  white-space: nowrap;
}

/* Make spacing a touch tighter on huge screens */
@media (min-width: 1400px){
  .brand-link{ letter-spacing: 0.015em; }
}

/* Logo image */
.brand-mark{
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 8px;                   /* optional */
  filter: drop-shadow(0 1px 6px rgba(0,0,0,.12));
}

/* Accent colors for the wordmark */
.blue-letter { color: #18a82b; }
.red-letter  { color: #10673d; }

/* If any global <a> rules fight these, keep this stronger rule: */
.site-header .brand-link{ text-decoration: none; color: inherit; }

/* normal dot style stays the same */
.bg-dots span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--r);
  height: var(--r);
  background: limegreen;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  animation: dotPulse var(--d, 12s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  transition: all 2s ease-in-out; /* smooth movement */
}

/* when converging */
.bg-dots.converge span {
  left: 2% !important;
  top: 2% !important;
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0.7;
}
