@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@400;500;600&display=swap");

:root {
  --bg: #f0f2ee;
  --surface: #ffffff;
  --text: #1a2312;
  --muted: #5a6b52;
  --border: #d8ddd4;
  --primary: #2d5016;
  --accent: #6aab2e;
  --accent-light: #e8f4d9;
  --dark: #111c08;
  --warm: #f7f5f0;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; }

.navbar {
  position: sticky; top: 0; z-index: 999;
  position: -webkit-sticky;
  background: #000000;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 6%;
}

.nav-logo { display: flex; align-items: center; gap: 14px; }
.nav-logo img:not(.new-logo) { width: 48px; height: 48px; border-radius: 12px; }
.nav-logo-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 18px; color: var(--primary); }
.nav-logo-sub { font-size: 11px; color: var(--muted); letter-spacing: 0.5px; }

.nav-links { display: flex; list-style: none; gap: 32px; align-items: center; }
.nav-links li { position: relative; font-weight: 600; font-size: 14px; color: #ffffff; }
.nav-links a:hover { color: var(--accent); }

.dropdown-menu {
  position: absolute; top: 150%; left: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: 16px; padding: 10px 0; min-width: 240px;
  opacity: 0; visibility: hidden; transition: .25s;
  box-shadow: 0 20px 40px rgba(0,0,0,.10);
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; top: 120%; }
.dropdown-menu a { display: block; padding: 11px 18px; color: #475467; font-size: 13.5px; }
.dropdown-menu a:hover { background: var(--accent-light); color: var(--primary); }

.btn { padding: 11px 22px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; transition: .2s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--dark); }
.btn-ghost { border: 2px solid var(--dark); color: var(--dark); background: transparent; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--accent-light); }

.hero {
  padding: 110px 6% 90px;
  background: linear-gradient(160deg, #fff 55%, var(--accent-light) 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: none;
}
.hero-label {
  display: inline-block;
  background: var(--accent-light);
  color: var(--primary);
  font-weight: 700; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 60px; line-height: 1.05;
  max-width: 800px; margin-bottom: 24px;
  color: var(--dark);
}
.hero p { max-width: 620px; color: var(--muted); font-size: 17px; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.section { padding: 90px 6%; }
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px; display: block;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 40px; font-weight: 700; color: var(--dark);
  margin-bottom: 16px; line-height: 1.15;
}
.section-sub { color: var(--muted); font-size: 16px; max-width: 560px; margin-bottom: 48px; }

/* ALTERNATING SPLIT */
.split-section {
  padding: 80px 6%;
  display: flex; align-items: center; gap: 70px;
}
.split-section.reverse { flex-direction: row-reverse; background: #fff; }
.split-section.alt-bg { background: var(--warm); }

.split-img {
  flex: 0 0 46%;
  border-radius: 24px; overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}
.split-img img {
  width: 100%; height: 450px;
  object-fit: cover; display: block;
}
.split-img-badge {
  position: absolute; bottom: 18px; left: 18px;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(8px);
  padding: 7px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: var(--primary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.split-text { flex: 1; }
.split-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 34px; font-weight: 700; color: var(--dark);
  margin-bottom: 16px; line-height: 1.2;
}
.split-text p { color: var(--muted); font-size: 16px; margin-bottom: 20px; }

.feature-list { list-style: none; margin-top: 20px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 13px; color: var(--text); font-size: 15px;
}
.feature-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: var(--accent-light);
  color: var(--primary);
  font-weight: 800; font-size: 12px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}

/* CARDS */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px,1fr)); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--border);
  padding: 28px; border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  overflow: hidden;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.card-img {
  width: 100%; height: 190px;
  object-fit: cover; border-radius: 14px;
  margin-bottom: 20px; display: block;
}
.card-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.card h3 { margin-bottom: 10px; font-size: 20px; font-family: 'Playfair Display', serif; color: var(--dark); }
.card p, .card li { color: var(--muted); font-size: 15px; }

/* PAGE HERO */
.page-hero {
  padding: 100px 6% 80px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  color: #fff;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 52px; margin-bottom: 14px; line-height: 1.1;
  position: relative;
}
.page-hero p { font-size: 17px; opacity: 0.78; max-width: 580px; position: relative; }

.content { padding: 60px 6%; }
.content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px; margin: 40px 0 14px; color: var(--dark);
}
.content p { max-width: 860px; color: var(--muted); font-size: 16px; }

/* STATS STRIP */
.stats-strip {
  display: flex;
  background: var(--primary); color: #fff;
  border-radius: 20px; overflow: hidden;
  margin: 0 6% 60px;
}
.stat-item {
  flex: 1; padding: 36px 28px; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 40px; font-weight: 900; color: var(--accent);
  display: block; line-height: 1;
}
.stat-label { font-size: 12px; opacity: 0.72; margin-top: 6px; text-transform: uppercase; letter-spacing: 1px; }

/* FOOTER */
.footer {
  padding: 40px 6%; background: var(--dark); color: rgba(255,255,255,0.5);
  font-size: 14px; margin-top: 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-brand { font-family: 'Playfair Display', serif; color: #fff; font-size: 16px; font-weight: 700; }
.footer-fb {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.7); font-size: 14px; font-weight: 600;
  text-decoration: none;
  padding: 8px 18px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(24,119,242,0.15);
  transition: background .2s, color .2s, border-color .2s;
  cursor: pointer;
  position: relative; z-index: 1;
}
.footer-fb:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.footer-fb:visited { color: rgba(255,255,255,0.7); }

@media(max-width: 900px) {
  .nav-links { gap: 16px; font-size: 13px; }
  .hero h1, .page-hero h1 { font-size: 38px; }
  .section-title { font-size: 30px; }
  .split-section, .split-section.reverse { flex-direction: column !important; gap: 36px; }
  .split-img { flex: none; width: 100%; }
  .stats-strip { flex-direction: column; margin: 0 4% 40px; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
}

/* ── NEW LOGO NAV ── */
.nav-logo img.new-logo {
  width: auto;
  height: 60px;
  max-width: 260px;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}

/* ── TEAM PAGE ── */
.team-split {
  padding: 80px 6%;
  display: flex; align-items: center; gap: 70px;
  background: var(--warm);
}
.team-split.dark-bg { background: var(--dark); }

.team-list-box {
  flex: 1;
}
.team-list-box .section-label { color: var(--accent); }
.team-list-box h2 {
  font-family: 'Playfair Display', serif;
  font-size: 36px; color: var(--dark);
  margin-bottom: 28px; line-height: 1.2;
}
.team-list-box.light h2 { color: #fff; }

.discipline-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.discipline-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 500; color: var(--text);
  background: #fff;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.discipline-list li::before {
  content: '';
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── HISTORY BOX ── */
.history-box {
  background: var(--dark);
  border-radius: 24px;
  padding: 52px 56px;
  margin: 0 6% 60px;
  color: #fff;
  display: flex; gap: 60px; align-items: flex-start;
}
.history-box-text { flex: 1; }
.history-box-text .section-label { color: var(--accent); }
.history-box-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 34px; color: #fff; margin-bottom: 18px; line-height: 1.2;
}
.history-box-text p {
  color: rgba(255,255,255,0.72);
  font-size: 15.5px; line-height: 1.8;
  max-width: 100%;
}
.history-box-side {
  flex: 0 0 220px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.history-year {
  font-family: 'Playfair Display', serif;
  font-size: 72px; font-weight: 900;
  color: var(--accent); line-height: 1;
}
.history-since {
  font-size: 13px; text-transform: uppercase; letter-spacing: 2px;
  color: rgba(255,255,255,0.5); text-align: center;
}
.history-divider {
  width: 1px; background: rgba(255,255,255,0.15);
  align-self: stretch;
}

/* ── COMPANY BOX ── */
.company-box {
  background: var(--accent-light);
  border-radius: 24px;
  padding: 48px 52px;
  margin: 0 6% 80px;
  display: flex; gap: 52px; align-items: flex-start;
  border: 1px solid rgba(106,171,46,0.25);
}
.company-box-text { flex: 1; }
.company-box-text .section-label { color: var(--primary); }
.company-box-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px; color: var(--dark); margin-bottom: 14px;
}
.company-box-text p { color: var(--muted); font-size: 15.5px; margin-bottom: 18px; }
.company-services {
  list-style: none; margin-top: 4px;
}
.company-services li {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 11px; color: var(--text); font-size: 15px;
}
.company-services li::before {
  content: '→';
  color: var(--primary); font-weight: 700; flex-shrink: 0; margin-top: 1px;
}

@media(max-width: 900px) {
  .team-split { flex-direction: column; gap: 36px; }
  .discipline-list { grid-template-columns: 1fr; }
  .history-box { flex-direction: column; gap: 24px; margin: 0 4% 40px; padding: 36px 28px; }
  .history-box-side { flex-direction: row; align-items: center; }
  .history-divider { display: none; }
  .company-box { flex-direction: column; gap: 24px; margin: 0 4% 40px; padding: 32px 24px; }
}

/* ── VISION & MISSION ── */
.vm-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── SERVICES INFO STRIP ── */
.services-info-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: var(--dark);
  margin: 0;
}

.svc-info-card {
  padding: 40px 32px;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: background 0.2s;
}
.svc-info-card:last-child { border-right: none; }
.svc-info-card:hover { background: rgba(106,171,46,0.08); }

.svc-info-icon {
  font-size: 32px;
  margin-bottom: 14px;
  display: block;
}

.svc-info-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.3;
}

.svc-info-card ul {
  list-style: none;
  padding: 0;
}

.svc-info-card ul li {
  color: rgba(255,255,255,0.65);
  font-size: 13.5px;
  line-height: 1.7;
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
}

.svc-info-card ul li::before {
  content: '·';
  position: absolute; left: 0;
  color: var(--accent);
  font-size: 18px; line-height: 1.3;
  font-weight: 700;
}

@media(max-width: 900px) {
  .services-info-strip { grid-template-columns: 1fr 1fr; }
  .svc-info-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
}
@media(max-width: 540px) {
  .services-info-strip { grid-template-columns: 1fr; }
}

/* Nav Actions */
.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-contact {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition: .2s;
}
.btn-contact:hover { background: #5a9a24; color: #fff; }

/* Contact Page */
.contact-hero {
  padding: 80px 6% 60px;
  background: linear-gradient(160deg, #fff 55%, var(--accent-light) 100%);
  text-align: center;
}
.contact-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  color: var(--dark);
  margin-bottom: 16px;
}
.contact-hero p { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 auto; }

.contact-wrapper {
  display: flex;
  gap: 60px;
  padding: 80px 6%;
  background: var(--warm);
  align-items: flex-start;
}

.contact-info { flex: 0 0 300px; }
.contact-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--dark);
  margin-bottom: 20px;
}
.contact-info-item {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 20px;
}
.contact-info-icon {
  width: 42px; height: 42px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-info-text strong { display: block; color: var(--dark); font-size: 14px; margin-bottom: 2px; }
.contact-info-text span { color: var(--muted); font-size: 14px; }

.contact-form-card {
  flex: 1;
  background: #fff;
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}
.contact-form-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  color: var(--dark);
  margin-bottom: 8px;
}
.contact-form-card p { color: var(--muted); font-size: 15px; margin-bottom: 32px; }

.form-row { display: flex; gap: 20px; margin-bottom: 20px; }
.form-group { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 700; color: var(--text); letter-spacing: 0.3px; }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); background: #fff; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input.error,
.form-group textarea.error { border-color: #e53e3e; }

.form-submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  margin-top: 8px;
}
.form-submit-btn:hover { background: var(--dark); }
.form-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success .success-icon { font-size: 56px; margin-bottom: 16px; }
.form-success h3 { font-family: 'Playfair Display', serif; font-size: 28px; color: var(--dark); margin-bottom: 10px; }
.form-success p { color: var(--muted); font-size: 16px; }

@media(max-width: 900px) {
  .contact-wrapper { flex-direction: column; }
  .contact-info { flex: unset; width: 100%; }
  .form-row { flex-direction: column; }
  .contact-form-card { padding: 30px 20px; }
}

/* ════════════════════════════════════════════════
   MOBILE RESPONSIVE — Hamburger Nav
   ════════════════════════════════════════════════ */

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
/* Animated X when open */
.nav-hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 820px) {

  /* Show hamburger, hide full nav */
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(10, 28, 6, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    z-index: 999;
    padding: 8px 0 16px;
    overflow-y: auto;
    max-height: calc(100vh - 93px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.mobile-open { display: flex; }

  .nav-links li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .nav-links a {
    display: block;
    padding: 16px 6%;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
  }
  .nav-links a:hover { color: var(--accent); background: rgba(255,255,255,0.04); }

  /* Dropdowns become accordion-style */
  .dropdown-menu {
    position: static;
    opacity: 1; visibility: visible;
    box-shadow: none; border: none; border-radius: 0;
    background: rgba(255,255,255,0.05);
    display: none;
    padding: 0;
    min-width: unset;
  }
  .dropdown.open .dropdown-menu { display: block; }
  .dropdown-menu a {
    padding: 12px 10%;
    color: rgba(255,255,255,0.65);
    font-size: 14px;
  }
  .dropdown-menu a:hover { color: var(--accent); background: transparent; }

  /* Hide Contact Us text on small screens, keep Login pill */
  .btn-contact { display: none; }

  /* Nav actions stay visible for session pill/logout */
  .nav-actions { gap: 6px; }
}

@media (max-width: 480px) {
  /* Hero */
  .hero { padding: 80px 5% 60px; }
  .hero h1 { font-size: 28px; }
  .hero p  { font-size: 15px; }
  .hero-cta { flex-direction: column; gap: 10px; }
  .hero-cta .btn { width: 100%; text-align: center; }

  /* Page hero */
  .page-hero h1 { font-size: 26px; }
  .page-hero p  { font-size: 14px; }

  /* Stats */
  .stats-strip { padding: 24px 5%; gap: 20px; }
  .stat-number { font-size: 32px; }

  /* Section titles */
  .section-title { font-size: 24px; }

  /* Cards */
  .service-card, .industry-card { padding: 24px 18px; }

  /* Footer */
  .footer { flex-direction: column; gap: 8px; text-align: center; padding: 20px 5%; }

  /* Navbar */
  .navbar { padding: 14px 5%; }
}
