/* ==============================
   1. ROOT VARIABLES (BRAND SYSTEM)
============================== */

:root {
  /* Colors */
  --sage: #A8C3A0;
  --sage-dark: #8EAD86;
  --forest: #2F4F3E;
  --beige: #F5F3EE;
  --sunlight: #F2D6A2;
  --gray-light: #D9D9D9;
  --white: #FFFFFF;
  --text-muted: #4A5A52;

  /* NEW BRAND BLUES */
  --blue-light: #6ecbff;
  --blue: #5CB6E6;
  --blue-dark: #3d91c0;
  --blue-deep: #2f6f96; /* ← this is your new darker anchor */


  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* UI */
  --radius: 12px;
  --radius-sm: 8px;

  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.08);

  --transition: all 0.25s ease;
}

/* ==============================
   2. RESET + BASE
============================== */

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

body {
  background: var(--beige);
  color: var(--forest);
  font-family: var(--font-body);
  line-height: 1.6;
}

/* ==============================
   3. TYPOGRAPHY
============================== */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--forest);
  font-weight: 600;
}

h1 {
  font-size: 48px;
  line-height: 1.2;
}

h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

p {
  font-size: 17px;
  color: var(--text-muted);
}

/* ==============================
   4. LAYOUT
============================== */

.section {
  padding: 80px 20px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* ==============================
   5. GRID SYSTEM
============================== */

.grid {
  display: grid;
  gap: 20px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ==============================
   6. CARDS
============================== */

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-content {
  padding: 20px;
}

/* ==============================
   7. BUTTONS
============================== */

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

/* Primary */
.btn-primary {
  background: var(--sage);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--sage-dark);
  transform: translateY(-1px);
}

/* Outline */
.btn-outline {
  background: transparent;
  border: 2px solid var(--forest);
  color: var(--forest);
}

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

/* Accent */
.btn-accent {
  background: var(--sunlight);
  color: var(--forest);
}

.btn-accent:hover {
  filter: brightness(0.95);
}

/* ==============================
   8. FORMS
============================== */

input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-light);
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--white);
  transition: var(--transition);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(168, 195, 160, 0.2);
}

.form-group {
  margin-bottom: 16px;
}

/* ==============================
   9. MEDIA
============================== */

img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}

/* ==============================
   10. HEADER / NAV
============================== */

#mainHeader {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

#mainHeader .nav-link {
  color: var(--forest);
  font-weight: 500;
}

/* Sticky State */
#mainHeader.scrolled {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: var(--shadow-soft);
}

/* Logo Animation */
#mainHeader img {
  transition: var(--transition);
}

#mainHeader.scrolled img {
  height: 32px;
}

/* Navbar toggle */
.navbar-toggler {
  border: none;
}

/* ==============================
   11. HERO
============================== */

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  background: linear-gradient(to bottom, #ffffff, var(--beige));
  padding-top: 100px;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 30px;
}

/* ==============================
   13. UTILITIES
============================== */

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

.mt-2 { margin-top: 10px; }
.mt-4 { margin-top: 20px; }
.mt-6 { margin-top: 40px; }

.mb-2 { margin-bottom: 10px; }
.mb-4 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 40px; }

/* ==============================
   HERO VIDEO (POLISHED)
============================== */

.hero-video {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;

  /* 👇 fallback image */
  background: 
    linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0.2)),
    url('img/fallback.jpg') center/cover no-repeat;

  background-color: white; /* safety base */
}

/* Video */
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 1; /* 👈 FIX: remove transparency */
  z-index: 1;
}

.hero-video::after {
  content: "";
  position: absolute;
  inset: 0;

  background: rgba(255,255,255,0.4); 
  /* 👆 THIS replaces your video opacity */

  z-index: 2;
}

/* Content layer */
.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
}



/* ==============================
   GLASS CARD (WIDER + CLEANER)
============================== */

.glass-card {
  max-width: 900px; /* 👈 wider */
  width: 90%;
  padding: 50px;

  border-radius: 18px;

  background: rgba(255,255,255,0.55); /* 👈 more readable */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 10px 40px rgba(0,0,0,0.1);

  text-align: center;
  color: var(--forest); /* 👈 better contrast now */
}

/* Typography tweak */
.glass-card h1 {
  font-size: 44px;
  margin-bottom: 15px;
}

.glass-card p {
  font-size: 18px;
  opacity: 0.85;
}

/* ==============================
   HERO BRAND LAYOUT
============================== */

.brand-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* Logo */
.hero-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
}

/* Brand text */
.hero-title {
  font-family: var(--font-heading);
  font-size: 50px;
  font-weight: 800;
  color: var(--forest);
}

.hero-sub {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Divider */
.hero-divider {
  width: 75%;
  height: 2px;
  background: var(--sage);
  margin: 10px 0;
  border-radius: 2px;
}

/* Tagline */
.hero-tagline {
  font-size: 20px;
  max-width: 600px;
  line-height: 1.4;
  color: var(--forest);
  text-align: center;
}

@media (max-width: 768px) {

  .hero-logo {
    height: 100px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-sub {
    font-size: 12px;
  }
bg-video
  .hero-tagline {
    font-size: 18px;
  }

}

.brand-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px; /* 👈 tighter spacing */
  padding: 35px 40px; /* 👈 slightly reduced padding */
}

/* Bigger logo */
.hero-logo {
  height: 95px; /* 👈 bigger */
  width: auto;
  object-fit: contain;
  margin-bottom: 5px; /* 👈 less gap */
}

/* Brand */

/* HERO TITLE */
.hero-title {
  font-size: 3rem;          /* increased */
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--forest);
  margin-bottom: 8px;
}

/* HERO SUBTITLE */
.hero-sub {
  font-size: 1.05rem;       /* increased */
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}


/* Main tagline */
.hero-tagline {
  font-size: 20px;
  max-width: 620px;
  line-height: 1.35;
  color: var(--forest);
  text-align: center;
}

/* Supporting line */
.hero-support {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 4px;
}

@media (max-width: 768px) {

  .brand-hero {
    padding: 25px 20px;
    gap: 8px;
  }

  .hero-logo {
    height: 75px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-tagline {
    font-size: 18px;
  }

  .hero-support {
    font-size: 14px;
  }

}


/* ==============================
   MOBILE NAV IMPROVEMENTS
============================== */

@media (max-width: 768px) {

  /* Increase nav link size */
  #mainHeader .nav-link {
    font-size: 18px;
    padding: 12px 0;
  }

  /* Stack spacing */
  .navbar-nav {
    gap: 10px;
    margin-top: 15px;
  }

  /* Make Apply button more prominent */
  .btn-primary {
    font-size: 16px;
    padding: 12px 18px;
    width: 100%;
    text-align: center;
  }

  /* Improve dropdown menu spacing */
  .navbar-collapse {
    background: white;
    padding: 15px;
    border-radius: 12px;
    margin-top: 10px;
  }

}

@media (max-width: 768px) {

  #mainHeader .nav-link {
    font-size: 20px; /* 👈 go bigger if you want bold */
    font-weight: 500;
  }

}

/* ==============================
   BRANDING (LOGO + TEXT)
============================== */

.navbar-brand {
  gap: 10px;
}

/* Logo image */
.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Text block */
.brand-text {
  line-height: 1.1;
}

/* Main name */
.brand-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--forest);
}

/* Subtext */
.brand-sub {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ==============================
   FEATURE SECTION BACKGROUND
============================== */

.feature-section {
  padding: 100px 0;

  background: linear-gradient(
    135deg,
    #ffffff 0%,
    rgba(168, 195, 160, 0.25) 30%,   /* sage */
    rgba(242, 214, 162, 0.25) 65%,   /* sunlight */
    #f5f3ee 100%                     /* beige */
  );
}

/* ==============================
   GLASS CARDS
============================== */

.feature-card {
  margin-bottom: 60px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;

  padding: 40px;
  border-radius: 20px;

  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}


/* ==============================
   IMAGE
============================== */

.feature-image img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

/* ==============================
   TEXT
============================== */

.feature-text h2 {
  font-size: 34px;
  margin-bottom: 15px;
}

.feature-text p {
  font-size: 18px;
  max-width: 500px;
}

/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 768px) {

  .feature-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .feature-grid.reverse {
    direction: ltr;
  }

}

.feature-image img {
  height: 260px;
}

/* ==============================
   FOOTER
============================== */

.footer {
  background: linear-gradient(
    to top,
    var(--forest),
    #3a5f4b
  );
  color: rgba(255,255,255,0.85);
  padding: 60px 20px 30px;
}

/* GRID */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

/* HEADINGS */
.footer h3 {
  color: white;
  margin-bottom: 10px;
}

.footer h4 {
  color: var(--sunlight);
  margin-bottom: 12px;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* TEXT */
.footer p {
  font-size: 14px;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.75);
}

/* ICON + TEXT ROW */
.footer-col p {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ICON STYLE */
.footer-icon {
  font-size: 18px;
  color: var(--sunlight);
  min-width: 20px; /* keeps alignment clean */
  transition: var(--transition);
}

/* HOVER EFFECT */
.footer-col p:hover .footer-icon {
  color: var(--white);
}

/* ==============================
   BOTTOM BAR
============================== */

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

/* ==============================
   MOBILE
============================== */

@media (max-width: 768px) {

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 420px;       /* 👈 keeps everything in a clean column */
    margin: 0 auto;         /* 👈 centers the column itself */
  }

  .footer-col {
    display: block;         /* remove forced centering */
  }

  .footer-col p {
    justify-content: flex-start; /* 👈 keep icon + text aligned left */
  }

  /* Optional: subtle section separation */
  .footer-col:not(:last-child) {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 20px;
  }
}

/* ==============================
   MODAL BASE
============================== */

.custom-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.custom-modal.active {
  display: block;
}

/* Overlay */
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Content */
.custom-modal .modal-content {
  position: relative;
  max-width: 500px;
  margin: 10vh auto;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-hover);

  transform: translateY(20px) scale(0.98);
  opacity: 0;
  transition: all 0.3s ease;
}

/* ACTIVE STATE */
.custom-modal.active .modal-overlay {
  opacity: 1;
}

.custom-modal.active .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* TEXT */
.modal-content h3 {
  color: var(--forest);
  margin-bottom: 15px;
}

.modal-content p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* BUTTON ROW */
.modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}

/* Modal Header with Logo */
.modal-header-custom {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

/* Logo sizing */
.modal-logo {
  height: 40px;
  width: auto;
}

/* Heading tweak */
.modal-header-custom h3 {
  margin: 0;
  font-family: var(--font-heading);
  color: var(--forest);
  font-size: 1.3rem;
}



/* SECONDARY BUTTON */
.btn-secondary {
  background: transparent;
  border: 1px solid var(--gray-light);
  color: var(--text-muted);
}

.btn-secondary:hover {
  background: var(--gray-light);
}

.footer-link {
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.footer-link:hover {
  color: var(--sunlight);
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;

  font: inherit;
  color: inherit;

  text-decoration: underline;
  cursor: pointer;

  outline: none; /* removes focus outline */
}

/* REMOVE weird highlight on click */
.btn-link:focus,
.btn-link:active {
  background: none;
  outline: none;
  box-shadow: none;
}

/* Hover state */
.btn-link:hover {
  color: var(--sunlight);
}

#mainHeader .nav-page-link {
  color: var(--forest);
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  padding: 0.5rem 1rem;
  transition: var(--transition);
}

#mainHeader .nav-page-link:hover {
  color: var(--sage);
}

#mainHeader.scrolled .nav-page-link {
  color: var(--forest);
}

/* PRIMARY BUTTON — GREEN SYSTEM */
/* PRIMARY BUTTON — SOLID GREEN */
.btn-primary {
  background-color: var(--sage-dark);
  border: none;
  color: #fff;
  transition: all 0.2s ease;
}

/* HOVER (slightly lighter) */
.btn-primary:hover {
  background-color: var(--sage);
  color: #fff;
  transform: translateY(-1px);
}

/* ACTIVE / CLICK (slightly darker) */
.btn-primary:active,
.btn-primary.active {
  background-color: var(--forest) !important;
  transform: scale(0.97);
  box-shadow: none !important;
}

/* FOCUS */
.btn-primary:focus,
.btn-primary:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(168, 195, 160, 0.4) !important;
}



/* Placeholder styling (ALL browsers) */
::placeholder {
  color: rgba(74, 90, 82, 0.45); /* soft muted green-gray */
  opacity: 1; /* ensures consistency */
}

/* Safari / older support */
::-webkit-input-placeholder {
  color: rgba(74, 90, 82, 0.45);
}

:-ms-input-placeholder {
  color: rgba(74, 90, 82, 0.45);
}

.services-modal {
  max-height: 80vh;
  overflow-y: auto;
  padding-right: 10px;
}

.service-section {
  margin-bottom: 28px;
}

.service-section h4 {
  margin-bottom: 10px;
  color: #1e3a5f;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-start; /* or center if you prefer */
}

.modal-actions .btn {
  flex: 1;               /* makes them equal width */
  text-align: center;
}
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;

  transition: all 0.2s ease;
}

.footer-link:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.footer-icon {
  font-size: 18px;
  opacity: 0.75;
  transition: all 0.2s ease;
}

.footer-link:hover .footer-icon {
  opacity: 1;
  transform: scale(1.1);
}