/* --- Variables --- */
:root {
  --green-deep: #0a4d3c;
  --green-mid: #0d6b52;
  --green-soft: #1a8f6d;
  --gold: #c9a227;
  --gold-light: #e8d48a;
  --cream: #faf8f5;
  --cream-warm: #f5f1eb;
  --charcoal: #1a1a1a;
  --charcoal-soft: #2d2d2d;
  --gray: #5c5c5c;
  --white: #ffffff;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
  --shadow: 0 4px 20px rgba(10, 77, 60, 0.08);
  --radius: 8px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--cream);
}

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

a {
  color: var(--green-deep);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* --- Layout --- */
.container {
  width: min(90%, 1100px);
  margin-inline: auto;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(10, 77, 60, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.5rem;
  max-width: 1200px;
  margin-inline: auto;
}

.logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--green-deep);
}

.logo span {
  margin-left: 0.35em;
  font-weight: 600;
  font-size: 0.95em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 1px;
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-weight: 500;
  color: var(--charcoal-soft);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--green-deep);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 4rem;
  background: linear-gradient(165deg, var(--cream-warm) 0%, var(--cream) 50%, rgba(201, 162, 39, 0.06) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at 80% 30%, rgba(10, 77, 60, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  max-width: 720px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-tag {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 2rem;
  max-width: 560px;
  margin-inline: auto;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* --- Hero Slider --- */
.hero-slider {
  padding: 0;
  min-height: 100vh;
  position: relative;
}

.hero-slider .slider-track {
  position: absolute;
  inset: 0;
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slider .slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 77, 60, 0.75) 0%, rgba(10, 77, 60, 0.5) 50%, rgba(26, 26, 26, 0.6) 100%);
}

.hero-slider .slide-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 5rem;
  text-align: center;
}

.hero-slider .hero-tag { color: var(--gold-light); }
.hero-slider h1 { color: var(--white); }
.hero-slider .hero-lead { color: rgba(255, 255, 255, 0.9); }
.hero-slider .btn-secondary { border-color: var(--white); color: var(--white); }
.hero-slider .btn-secondary:hover { background: var(--white); color: var(--green-deep); }

.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.slider-prev { left: 1.5rem; }
.slider-next { right: 1.5rem; }

.slider-prev::before { content: "‹"; }
.slider-next::before { content: "›"; }

.slider-prev:hover,
.slider-next:hover {
  background: var(--white);
  color: var(--green-deep);
}

.slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.5rem;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), border-color var(--transition);
}

.slider-dots button:hover,
.slider-dots button.active {
  background: var(--white);
  border-color: var(--white);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--green-deep);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-mid);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: transparent;
  color: var(--green-deep);
  border-color: var(--green-deep);
}

.btn-secondary:hover {
  background: var(--green-deep);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* --- About --- */
.about {
  padding: 5rem 0;
  background: var(--white);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.section-cta {
  text-align: center;
  margin-top: 2rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

.subsection-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.about-intro,
.about-text {
  color: var(--charcoal-soft);
  max-width: 90ch;
  margin-bottom: 1rem;
}

.what-we-do {
  list-style: none;
  margin-top: 1rem;
}

.what-we-do li {
  padding: 0.6rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--charcoal-soft);
  border-bottom: 1px solid rgba(10, 77, 60, 0.08);
}

.what-we-do li:last-child {
  border-bottom: none;
}

.what-we-do li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 600;
}

.what-we-do strong {
  color: var(--charcoal);
}

/* --- Impact --- */
.impact {
  padding: 5rem 0;
  background: var(--cream-warm);
}

.impact-intro {
  color: var(--gray);
  margin-bottom: 2rem;
  max-width: 60ch;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.impact-card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(10, 77, 60, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.impact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(10, 77, 60, 0.12);
}

.impact-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.impact-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 0.5rem;
}

.impact-card p {
  font-size: 0.95rem;
  color: var(--gray);
}

/* --- Services --- */
.services {
  padding: 5rem 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 1.75rem;
  border-left: 3px solid var(--gold);
  background: var(--cream);
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: border-color var(--transition), background var(--transition);
}

.service-card:hover {
  border-left-color: var(--green-deep);
  background: var(--cream-warm);
}

.service-card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--gray);
}

/* --- Sectors --- */
.sectors {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--cream-warm) 0%, rgba(10, 77, 60, 0.04) 100%);
}

.sectors-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.sectors-list li {
  padding: 0.5rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
  font-weight: 500;
  color: var(--charcoal-soft);
  border: 1px solid rgba(10, 77, 60, 0.1);
  transition: border-color var(--transition), color var(--transition);
}

.sectors-list li:hover {
  border-color: var(--gold);
  color: var(--green-deep);
}

/* Sectors gallery (home) */
.sectors-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.sector-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}

.sector-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sector-item:hover img {
  transform: scale(1.05);
}

.sector-item span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(transparent, rgba(10, 77, 60, 0.9));
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
}

/* --- CTA --- */
.cta {
  padding: 5rem 0;
  background: var(--green-deep);
  color: var(--white);
  text-align: center;
}

.cta .section-title {
  color: var(--white);
}

.cta-lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.cta .btn-primary {
  background: var(--gold);
  color: var(--charcoal);
}

.cta .btn-primary:hover {
  background: var(--gold-light);
  color: var(--charcoal);
}

/* --- Footer --- */
.site-footer {
  background: white;
  color: black;
  padding: 3rem 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .logo {
  color: var(--white);
}

.footer-tagline {
  font-size: 0.9rem;
  color: black;
  margin-top: 0.35rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  color: black;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: black;
  margin-bottom: 0.5rem;
  display: block;
}

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

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

.footer-contact p {
  margin-bottom: 0.35rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.9);
}

.footer-contact a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  padding: 1.00rem 1.25rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* --- Page Hero (internal pages) --- */
.page-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 4rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 77, 60, 0.8) 0%, rgba(26, 26, 26, 0.6) 100%);
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* --- Internal page content --- */
.page-content {
  padding: 4rem 0;
}

.page-content .container {
  max-width: 800px;
}

.page-content .container.wide {
  max-width: 1100px;
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--charcoal);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(10, 77, 60, 0.2);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 1rem;
  transition: border-color var(--transition);
}

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

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

.map-placeholder {
  background: var(--cream-warm);
  border: 2px dashed rgba(10, 77, 60, 0.2);
  border-radius: var(--radius);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 0.95rem;
}


/* Service detail (internal) */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 4rem;
}

.service-detail:last-of-type {
  margin-bottom: 2rem;
}

.service-detail.reverse {
  direction: rtl;
}

.service-detail.reverse > * {
  direction: ltr;
}

.service-detail-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.service-detail-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.service-detail-content .section-title {
  margin-bottom: 1rem;
}

.service-detail-content p {
  color: var(--charcoal-soft);
  margin-bottom: 1.25rem;
}

/* Contact details block */
.contact-details p {
  margin-bottom: 1.25rem;
  color: var(--charcoal-soft);
}

.contact-details a {
  color: var(--green-deep);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 99;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .hero {
    padding: 6rem 1rem 3rem;
  }

  .hero-slider .slide-content {
    padding: 6rem 1rem 4rem;
  }

  .slider-prev { left: 0.5rem; }
  .slider-next { right: 0.5rem; }

  .slider-prev,
  .slider-next {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  .sectors-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-detail,
  .service-detail.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    margin-bottom: 3rem;
  }

  .service-detail-image {
    order: -1;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

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

@media (max-width: 480px) {
  .impact-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }
}
