/* NAIP — Global Stylesheet */

/* CSS Variables */
:root {
  --green-primary: #76a33f;
  --green-dark: #5c8032;
  --green-light: #99cc60;
  --brown-dark: #4d260a;
  --brown-medium: #7a4a20;
  --gold: #d4a017;
  --cream: #f5f0e8;
  --white: #ffffff;
  --overlay-dark: rgba(0, 0, 0, 0.45);
  --text-dark: #2c2c2c;
  --text-light: #f5f0e8;
  --footer-bg: #1a2010;

  /* Glassmorphism & UI Tokens */
  --glass-white: rgba(255, 255, 255, 0.85);
  --glass-dark: rgba(0, 0, 0, 0.4);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-premium: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.2);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  background: #0f1208;
  /* Dark base to blend with video */
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-smooth);
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: 'Lato', sans-serif;
}

/* Shared Background Video */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  /* Behind everything */
}

.page-content {
  position: relative;
  z-index: 1;
}

/* Utility */
.section-padding {
  padding: 80px 60px;
  /* Reduced from 100px */
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.video-gap {
  height: 110px;
  /* Reduced from 140px */
  background: transparent;
}

/* HEADER & NAVIGATION */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 30px 75px 0 75px;
  background: transparent;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 35px;
}

/* Desktop navigation links on left of hamburger */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.desktop-nav a {
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 10px 15px;
  position: relative;
  transition: color var(--transition-smooth);
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15px;
  right: 15px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition-smooth);
}

.desktop-nav a:hover {
  color: var(--gold);
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.desktop-nav a.active {
  color: var(--gold);
}

.desktop-nav a.active::after {
  transform: scaleX(1);
  background: var(--gold);
}

/* LOGO */
.logo {
  display: block;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.logo:hover {
  transform: scale(1.05) rotate(5deg);
  box-shadow: var(--shadow-hover);
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* HAMBURGER MENU */
.hamburger-btn {
  width: 54px;
  height: 54px;
  background: var(--green-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(107, 124, 46, 0.3);
  transition: all var(--transition-smooth);
  backdrop-filter: blur(8px);
}

.hamburger-btn:hover {
  background: var(--green-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(107, 124, 46, 0.4);
}

.hamburger-btn span {
  color: var(--white);
  font-size: 26px;
  line-height: 1;
}

/* Nav Panel */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 100%;
  background: var(--white);
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 10px 0 50px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.nav-panel.active {
  transform: translateX(0);
}

.nav-panel-header {
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
}

.nav-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
}

.nav-close:hover {
  background: var(--green-primary);
  color: var(--white);
  transform: rotate(90deg);
}

.nav-links {
  list-style: none;
  padding: 40px 20px;
  flex-grow: 1;
}

.nav-links li {
  margin-bottom: 15px;
}

.nav-links a {
  display: block;
  padding: 15px 25px;
  font-size: 18px;
  font-weight: 700;
  color: var(--green-primary);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  background: #f4f6f0;
  padding-left: 35px;
}

.nav-links a.active {
  background: var(--green-primary);
  color: var(--white);
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 16px 45px;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 14px;
  transition: all var(--transition-smooth);
  text-align: center;
}

.btn-primary {
  background: var(--green-primary);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(107, 124, 46, 0.25);
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(107, 124, 46, 0.35);
}

.btn-outline {
  background: var(--white);
  color: var(--green-primary);
  border: 2px solid var(--green-primary);
}

.btn-outline:hover {
  background: var(--green-primary);
  color: var(--white);
  transform: translateY(-3px);
}

/* Contrast Button for colored strips */
.btn-contrast {
  background: var(--white);
  color: var(--green-primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-contrast:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(212, 160, 23, 0.3);
}

/* SECTION HEADINGS */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  margin-bottom: 25px;
}

.section-title-script {
  font-family: 'Dancing Script', cursive;
  font-size: 52px;
}

/* FOOTER */
.site-footer {
  background: var(--footer-bg);
  padding: 40px 30px;
  color: var(--white);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.footer-left {
  text-align: left;
}

.footer-logo {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 0 15px 0;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-premium);
}

.site-footer p {
  font-size: 14px;
  opacity: 0.6;
  letter-spacing: 1px;
}

.footer-right {
  text-align: right;
}

.footer-dev {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.footer-dev-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.footer-dev-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #171d26; /* Dark navy slate block exactly like the screenshot */
  padding: 6px 14px;
  border-radius: 4px;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), background-color var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-dev-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  background-color: #1f2733;
}

.footer-dev-logo {
  height: 28px;
  width: auto;
  filter: invert(1) hue-rotate(180deg);
  mix-blend-mode: screen;
  display: block;
}

/* RESPONSIVE FOOTER */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .footer-left {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-logo {
    margin: 0 auto 15px auto;
  }

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

  .footer-dev {
    align-items: center;
  }
}

/* ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* HELP SECTION (HOMEPAGE FEATURED BOREHOLE) */
.help-section {
  background: var(--cream);
  color: var(--text-dark);
}

.help-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 45px;
}

.help-visual {
  position: relative;
}

.help-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  aspect-ratio: 1.6 / 1;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

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

.help-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.help-image-card:hover img {
  transform: scale(1.05);
}

.help-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(77, 38, 10, 0.85) 0%, rgba(77, 38, 10, 0.4) 50%, rgba(0, 0, 0, 0.15) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  color: var(--white);
}

.help-img-tag {
  align-self: flex-start;
  background: var(--green-primary);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(118, 163, 63, 0.3);
}

.help-img-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  line-height: 1.3;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.help-header-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.help-title {
  font-family: 'Playfair Display', serif;
  font-size: 46px;
  color: var(--brown-dark);
  line-height: 1.1;
  position: relative;
  padding-bottom: 15px;
  text-transform: uppercase;
}

.help-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 80px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
}

.help-description-card {
  background: var(--white);
  padding: 40px 50px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-premium);
  border-left: 5px solid var(--green-primary);
}

.help-description-card p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-dark);
  margin: 0;
}


/* WIDE PROJECT CARD ON DESKTOP */
@media (min-width: 769px) {
  .project-card-wide {
    grid-column: span 2;
  }
}


/* RESPONSIVE */
@media (max-width: 768px) {
  .section-padding {
    padding: 60px 20px;
  }

  .section-title {
    font-size: 32px;
  }

  .video-gap {
    height: 120px;
  }

  .site-header {
    padding: 20px 20px 0 20px;
  }

  .desktop-nav {
    display: none;
  }

  .logo {
    width: 75px;
    height: 75px;
  }

  .hamburger-btn {
    width: 48px;
    height: 48px;
  }

  /* Help Section Responsive Adjustments */
  .help-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
  }

  .help-title {
    font-size: 32px;
    text-align: center;
    width: 100%;
  }

  .help-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .help-description-card {
    padding: 25px 30px;
  }

  .help-image-overlay {
    padding: 20px;
  }

  .help-img-title {
    font-size: 20px;
  }
}

/* CONTACT SECTION & FORM */
.contact-section {
  background: var(--cream);
  color: var(--text-dark);
}

.contact-card {
  background: var(--white);
  padding: 50px 60px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  border-top: 5px solid var(--green-primary);
  max-width: 900px;
  margin: 0 auto;
}

.contact-subtitle {
  color: var(--brown-medium);
  font-size: 16px;
  margin-bottom: 40px;
  opacity: 0.9;
}

.contact-form {
  margin-top: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--brown-dark);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.form-group input,
.form-group textarea {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(122, 74, 32, 0.2);
  border-radius: var(--radius-sm);
  background: #fcfbfa;
  color: var(--text-dark);
  transition: all var(--transition-smooth);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a0978d;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green-primary);
  background: var(--white);
  outline: none;
  box-shadow: 0 0 0 3px rgba(118, 163, 63, 0.15);
}

/* Error States */
.form-group.invalid input,
.form-group.invalid textarea {
  border-color: #d9534f;
  box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.1);
}

.error-msg {
  font-size: 12px;
  color: #d9534f;
  margin-top: 4px;
  display: none;
  font-weight: 700;
}

.form-group.invalid .error-msg {
  display: block;
}

.form-submit {
  margin-top: 30px;
}

.form-submit .btn-primary {
  min-width: 200px;
  position: relative;
}

/* Spinner for loading state */
.btn-primary .spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 0.8s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* MODAL OVERLAY & POPUP */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--white);
  padding: 50px 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  max-width: 480px;
  width: 90%;
  text-align: center;
  transform: scale(0.8) translateY(20px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-icon {
  width: 80px;
  height: 80px;
  background: rgba(118, 163, 63, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-primary);
  margin: 0 auto 25px;
}

.modal-icon svg {
  width: 42px;
  height: 42px;
}

.modal-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--brown-dark);
  margin-bottom: 15px;
}

.modal-card p {
  font-size: 16px;
  color: var(--brown-medium);
  line-height: 1.6;
  margin-bottom: 30px;
}

.modal-close-btn {
  width: 100%;
}

/* Style overrides and additions for contact section responsive */
@media (max-width: 768px) {
  .contact-card {
    padding: 30px 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}