/* ===============================
   GLOBAL RESPONSIVE FOUNDATION
   Ensures Zoom and Desktop Scalings
================================ */
:root {
  --tree-green: #2E7D32;
  --transition: all 0.3s ease;
  /* Fluid Base: prevents tiny text on huge screens and huge text on small screens */
  font-size: clamp(14px, 1vw, 18px); 
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  overflow-x: hidden; /* Prevent horizontal scroll on zoom */
  width: 100%;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%; /* Fluid side padding */
}

/* Image helpers */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===============================
   SECTION-SPECIFIC LAYOUTS
================================ */

/* Grid System for Sections */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Section 3: Urban Solution */
#projects .flex-row {
  display: flex;
  align-items: stretch;
  gap: 2rem;
}

#projects .arrow {
  width: 40px;
  height: 40px;
  align-self: center;
  flex-shrink: 0;
}

/* Section 4: Values Split Layout */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.section-image-box {
  width: 100%;
  height: 500px;
  border-radius: 24px;
  overflow: hidden;
}

/* Section 5: Who We Serve Tabs */
.tabs-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
}

/* ===============================
   ENQUIRY FORM CARD
================================ */
.form-card {
  max-width: 800px;
  margin: 4rem auto;
  background: #ffffff;
  padding: clamp(1.5rem, 5vw, 3.5rem); /* Responsive padding */
  border-radius: 24px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.05);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ===============================
   RESPONSIVE BREAKPOINTS (Mobile/Tablet)
================================ */

/* Tablet & Smaller Desktop Zoom (1024px) */
@media (max-width: 1024px) {
  .grid-2, .split-layout, .tabs-container {
    grid-template-columns: 1fr; /* Stack everything */
    gap: 2rem;
  }
  
  #projects .flex-row {
    flex-direction: column;
  }

  #projects .arrow {
    transform: rotate(90deg);
    margin: 1rem auto;
  }

  .reverse-layout {
    display: flex;
    flex-direction: column-reverse;
  }
}

/* Mobile Devices (768px and below) */
@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }

  .form-row {
    grid-template-columns: 1fr; /* Stack form fields */
  }

  .header-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    font-size: 0.8rem;
  }
}

/* Hidden Utility */
.hidden {
  display: none !important;
}
/* Navigation Dropdown Logic */
.dropdown {
  position: relative;
  display: inline-block;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 220px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-radius: 12px;
  padding: 0.5rem 0;
  z-index: 1000;
  top: 100%;
  left: 0;
  border: 1px solid rgba(46, 125, 50, 0.1);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: #1f2937;
  padding: 10px 20px;
  text-decoration: none;
  display: block;
  font-size: 0.8rem;
  transition: background 0.2s;
}

.dropdown-content a:hover {
  background-color: #f0fdf4;
  color: var(--tree-green);
}

.nav-icon {
  width: 14px;
  height: 14px;
}

/* Mobile Safety */
@media (max-width: 1024px) {
  .dropdown-content {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
  }
}

