/* ===========================
   GRC — Green Roto Construction
   Global Stylesheet
   =========================== */

:root {
  --green-dark:   #1B4332;
  --green-mid:    #2D6A4F;
  --green-light:  #52B788;
  --green-pale:   #D8F3DC;
  --off-white:    #F8FAF8;
  --text-dark:    #111;
  --text-mid:     #444;
  --border:       #d0dbd3;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-dark);
  background: #fff;
}

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

a { color: var(--green-mid); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: 'DM Serif Display', serif;
  line-height: 1.2;
  color: var(--green-dark);
}

/* ---- NAV ---- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green-dark);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.nav-logo img {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: #fff;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .02em;
  opacity: .85;
  transition: opacity .2s;
}

.nav-links a:hover,
.nav-links a.active { opacity: 1; text-decoration: none; }

.nav-cta {
  background: var(--green-light);
  color: var(--green-dark) !important;
  opacity: 1 !important;
  font-weight: 700 !important;
  padding: 8px 18px;
  border-radius: 4px;
  transition: background .2s !important;
}

.nav-cta:hover { background: #40a070 !important; }

/* ---- HERO ---- */
.hero {
  position: relative;
  height: min(90vh, 680px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  background: var(--green-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/mf-dual-boom-hero.jpg');
  background-size: cover;
  background-position: center 40%;
  opacity: .45;
}

.hero-content {
  position: relative;
  max-width: 540px;
  padding: 0 24px 0 48px;
  color: #fff;
  flex: 0 0 auto;
}

.hero-logo {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px 0 16px;
}

.hero-logo img {
  width: 100%;
  max-width: 720px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #fff;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 1.15rem;
  opacity: .9;
  margin-bottom: 28px;
  max-width: 540px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: background .2s, transform .1s;
  border: none;
}

.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--green-light);
  color: var(--green-dark);
}

.btn-primary:hover { background: #40a070; text-decoration: none; }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  margin-left: 12px;
}

.btn-outline:hover { background: rgba(255,255,255,.1); text-decoration: none; }

.btn-dark {
  background: var(--green-dark);
  color: #fff;
}

.btn-dark:hover { background: var(--green-mid); text-decoration: none; }

/* ---- SECTIONS ---- */
section {
  padding: 72px 24px;
}

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

.section-label {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--green-light);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.section-body {
  color: var(--text-mid);
  max-width: 640px;
  margin-bottom: 40px;
}

/* ---- STATS BAR ---- */
.stats-bar {
  background: var(--green-dark);
  color: #fff;
  padding: 40px 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 2.4rem;
  color: var(--green-light);
  display: block;
}

.stat-label {
  font-size: .85rem;
  opacity: .7;
  margin-top: 4px;
}

/* ---- SERVICE CARDS ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow .2s;
}

.service-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); }

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-card-body {
  padding: 20px;
}

.service-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.service-card-body p {
  color: var(--text-mid);
  font-size: .9rem;
}

/* ---- WHY GRC ---- */
.why-bg {
  background: var(--green-pale);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.why-item {
  padding: 24px;
  background: #fff;
  border-radius: 8px;
  border-left: 4px solid var(--green-light);
}

.why-item h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.why-item p {
  font-size: .9rem;
  color: var(--text-mid);
}

/* ---- CLIENTS ---- */
.clients-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.client-badge {
  background: var(--green-pale);
  color: var(--green-dark);
  font-weight: 600;
  font-size: .9rem;
  padding: 8px 18px;
  border-radius: 100px;
}

/* ---- PORTFOLIO GRID ---- */
.portfolio-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.tab-btn {
  padding: 8px 20px;
  border: 2px solid var(--green-mid);
  border-radius: 100px;
  background: transparent;
  color: var(--green-mid);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: all .2s;
  font-family: 'DM Sans', sans-serif;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--green-mid);
  color: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.portfolio-item {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}

.portfolio-item:hover img { transform: scale(1.04); }

.portfolio-item.hidden { display: none; }

/* ---- CAREERS / FORM ---- */
.form-section { background: var(--off-white); }

.stage-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  max-width: 720px;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  color: var(--text-dark);
  background: #fff;
  transition: border-color .2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-mid);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.knockout-box {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 6px;
  padding: 14px;
  font-size: .9rem;
  margin-bottom: 20px;
  display: none;
}

.form-section-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--green-dark);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin: 28px 0 16px;
}

.range-group { display: flex; align-items: center; gap: 12px; }
.range-group input[type=range] { flex: 1; accent-color: var(--green-mid); }
.range-val { font-weight: 700; min-width: 24px; color: var(--green-dark); }

/* ---- CONTACT ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.contact-info p, .contact-info a {
  color: var(--text-mid);
  display: block;
  margin-bottom: 8px;
}

.contact-info a { color: var(--green-mid); }

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  margin-bottom: 16px;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--green-mid);
}

.contact-form textarea { min-height: 130px; resize: vertical; }

/* ---- FOOTER ---- */
footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.7);
  padding: 40px 24px;
  text-align: center;
  font-size: .85rem;
}

footer a { color: var(--green-light); }
footer p + p { margin-top: 8px; }

/* ---- THANK YOU BANNER ---- */
.thankyou-banner {
  display: none;
  background: var(--green-pale);
  border: 1px solid var(--green-light);
  border-radius: 8px;
  padding: 20px 24px;
  color: var(--green-dark);
  font-weight: 600;
  margin-bottom: 24px;
}

/* ---- HAMBURGER BUTTON ---- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 200;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- RESPONSIVE ---- */
@media (max-width: 700px) {
  /* Nav */
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--green-dark);
    padding: 16px 0 24px;
    gap: 0;
    z-index: 150;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .nav-links li:last-child a {
    margin: 16px 24px 0;
    border-bottom: none;
    border-radius: 4px;
    text-align: center;
  }

  /* Hero */
  .hero {
    height: auto;
    min-height: 420px;
    padding: 48px 0 40px;
    justify-content: center;
  }

  .hero-content {
    padding: 0 24px;
    max-width: 100%;
    text-align: center;
  }

  .hero-content h1 { font-size: 2rem; }

  .hero-content p { font-size: 1rem; }

  .hero-content .btn { margin-bottom: 10px; }
  .btn-outline { margin-left: 0; }

  .hero-logo { display: none; }

  /* Sections */
  section { padding: 48px 16px; }

  .services-grid,
  .why-grid { grid-template-columns: 1fr; }

  /* Portfolio */
  .portfolio-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .portfolio-tabs { gap: 6px; }
  .tab-btn { padding: 6px 14px; font-size: .82rem; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stage-form { padding: 24px 16px; }

  /* Careers grid */
  div[style*="grid-template-columns:1fr 1fr"] { display: block !important; }
  div[style*="grid-template-columns:1fr 1fr"] > div + div { margin-top: 24px; }
}
