@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Lora:ital,wght@0,400..700;1,400..700&display=swap');

:root {
  /* Premium Corporate Forest Green & Mint Palette */
  --primary: #1E5E3A;        /* Cosmo Forest Green */
  --primary-light: #2A7F50;  /* Lighter Green for Hover States */
  --primary-dark: #123C24;   /* Deep Dark Green */
  --primary-tint: #EAF2EE;   /* Mint Accent Highlight Background */
  
  --bg-main: #ffffff;        /* Crisp White Background */
  --bg-alt: #f4faf7;         /* Very Light Mint/Green Tinted Section BG */
  --bg-dark: #1A221E;        /* Dark Charcoal Slate Green for Footer/Dark panels */
  --bg-darker: #0E1311;      /* Deepest Black-Green */
  
  --text-main: #333C37;      /* High Readability Charcoal with Green Undertones */
  --text-heading: #0F1712;   /* Dark Charcoal Black for High Contrast Headings */
  --text-light: #F4FAF7;     /* Light Cream-Mint for Dark Backgrounds */
  --text-muted: #627269;     /* Soft Muted Sage/Grey for secondary text */
  
  --border-light: #DCE6E1;
  --border-accent: #B4C7BD;
  
  --shadow-sm: 0 2px 4px rgba(30, 94, 58, 0.04);
  --shadow-md: 0 4px 12px rgba(30, 94, 58, 0.06), 0 2px 4px rgba(30, 94, 58, 0.04);
  --shadow-lg: 0 12px 30px rgba(30, 94, 58, 0.08), 0 4px 8px rgba(30, 94, 58, 0.04);
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================
   Reset & Base Styles
 ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', serif;
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  color: var(--text-main);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================
   Accessibility Helpers
 ========================================= */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 2000;
  background: var(--primary);
  color: #ffffff;
  padding: 0.85rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* =========================================
   Layout Utilities
 ========================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section {
  padding: 7rem 0;
  position: relative;
}

.bg-alt {
  background-color: var(--bg-alt);
}

.bg-primary-tint {
  background-color: var(--primary-tint);
}

.bg-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.bg-dark h2, .bg-dark h3, .bg-dark p {
  color: var(--text-light);
}

/* =========================================
   Typography & Buttons
 ========================================= */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 1.5rem;
  height: 2px;
  background-color: var(--primary);
}

.section-title {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  color: var(--text-heading);
  margin-bottom: 1.75rem;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 3.5rem;
}

.text-center {
  text-align: center;
}

.text-center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.25rem;
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  border: 1px solid var(--primary);
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(30, 94, 58, 0.15);
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.25rem;
  background-color: transparent;
  color: var(--text-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  border: 2px solid var(--border-accent);
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: rgba(30, 94, 58, 0.02);
  transform: translateY(-2px);
}

/* =========================================
   Navigation (Clean Cosmo Style)
 ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.75rem 0;
  background: var(--bg-main);
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid var(--border-light);
}

.navbar.scrolled {
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex-shrink: 1;
}

.logo-img {
  height: 44px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: hue-rotate(90deg) brightness(0.9) contrast(1.1);
}

.logo-text {
  font-family: 'Lora', serif;
  font-size: clamp(1rem, 3.6vw, 1.35rem);
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.logo-accent {
  color: var(--primary);
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.85rem, 3.1vw, 1.15rem);
  margin-left: 0.25rem;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-cta {
  display: none;
}

@media (min-width: 992px) {
  .nav-cta {
    display: inline-flex;
    padding: 0.65rem 1.75rem;
    background: var(--primary);
    color: #ffffff;
    font-weight: 600;
    border-radius: 4px;
    font-size: 0.875rem;
  }
  .nav-cta:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
  }
}

/* Mobile Menu Button */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-heading);
  transition: var(--transition);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
    flex-shrink: 0;
  }
  .nav-container {
    padding: 0 1.25rem;
  }
  .logo-img {
    height: 36px;
  }
}

/* =========================================
   Hero Section (Split Panel Design)
 ========================================= */
.hero {
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
  background: var(--bg-main);
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.4) 30%, transparent 100%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: var(--bg-main);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 580px;
}

.hero-title {
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-heading);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-weight: 400;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
}

@media (max-width: 992px) {
  .hero-bg {
    width: 100%;
    opacity: 0.25;
  }
  .hero-bg::after {
    background: radial-gradient(circle, transparent 0%, var(--bg-main) 80%);
  }
  .hero-overlay {
    width: 100%;
    background: transparent;
  }
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
}

/* =========================================
   Split Sections (Clean 50-50 Splits)
 ========================================= */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.split-image {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.split-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/11;
  object-fit: cover;
  transition: var(--transition);
}

.split-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(30, 94, 58, 0.1);
  pointer-events: none;
}

@media (max-width: 992px) {
  .split-section {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .split-section > div:first-child {
    order: 2;
  }
  .split-image {
    order: 1;
  }
}

/* =========================================
   Cosmo-Style Services (Split Checklist)
 ========================================= */
.service-checklist {
  list-style: none;
  margin: 2rem 0;
}

.service-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.service-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: var(--primary-tint);
  color: var(--primary);
  font-weight: bold;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.service-content h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.35rem;
}

.service-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* =========================================
   Service Image Cards (2-column grid)
 ========================================= */
.services-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.service-img-card {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.service-img-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-accent);
}

.service-img-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-img-card:hover .service-img-wrap img {
  transform: scale(1.05);
}

.service-img-body {
  padding: 2.25rem 2.5rem 2.5rem;
}

.service-img-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-img-body h3 {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}

.service-img-body p {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.service-learn-more {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  letter-spacing: 0.02em;
  transition: var(--transition);
}

.service-learn-more:hover {
  color: var(--primary-light);
  padding-left: 0.25rem;
}

@media (max-width: 768px) {
  .services-card-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   Numbered Core Values / Mission Cards
 ========================================= */
.numbered-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.numbered-card {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--primary);
  border-radius: 4px;
  padding: 3rem 2.5rem;
  position: relative;
  transition: var(--transition);
}

.numbered-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-tint);
  border-top-color: var(--primary-light);
}

.card-number-badge {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  font-family: 'Lora', serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(30, 94, 58, 0.12);
  line-height: 1;
}

.numbered-card h3 {
  font-family: 'Lora', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 1.25rem;
}

.numbered-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* =========================================
   Portfolio Gallery Section
 ========================================= */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.portfolio-card {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition);
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-accent);
}

.portfolio-img-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background-color: var(--bg-alt);
}

.portfolio-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.portfolio-card:hover .portfolio-img-wrap img {
  transform: scale(1.06);
}

.portfolio-content {
  padding: 2rem;
  border-top: 1px solid var(--border-light);
}

.portfolio-content h3 {
  font-family: 'Lora', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.portfolio-content p {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* =========================================
   Contact Form Split Style
 ========================================= */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 6rem;
  align-items: start;
}

.contact-info-block h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1.5rem;
}

.contact-details {
  margin-top: 3rem;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background-color: var(--primary-tint);
  color: var(--primary);
  border-radius: 50%;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}

.contact-detail-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-form-card {
  background: var(--bg-main);
  padding: 4rem 3.5rem;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-heading);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.9rem 1.25rem;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 16px; /* keeps iOS Safari from auto-zooming on focus */
  color: var(--text-main);
  background-color: #ffffff;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 94, 58, 0.08);
}

@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .contact-form-card {
    padding: 3rem 2rem;
  }
}

/* =========================================
   Footer (Solid Forest Green & Mint)
 ========================================= */
.footer {
  background: var(--bg-dark);
  padding: 6rem 0 2rem;
  color: var(--text-light);
  border-top: 4px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.25fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand .logo-text {
  color: #ffffff;
}

.footer-brand p {
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer h4 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 1.75rem;
  font-family: 'Lora', serif;
  font-weight: 600;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.85rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--primary-tint);
  padding-left: 0.25rem;
}

.footer-accreditations {
  list-style: none;
}

.footer-accreditations li {
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(220, 230, 225, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .footer-grid > div:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid > div:first-child {
    grid-column: span 1;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }
}

/* =========================================
   Mobile Menu Overlay Style
 ========================================= */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 18, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100%;
  background: var(--bg-main);
  z-index: 1002;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3.5rem;
}

.mobile-close {
  background: none;
  border: none;
  font-size: 2.5rem;
  color: var(--text-heading);
  cursor: pointer;
  line-height: 1;
}

.mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.mobile-link {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-heading);
  display: block;
  transition: var(--transition);
}

.mobile-link:hover {
  color: var(--primary);
  padding-left: 0.5rem;
}

.mobile-cta-link {
  margin-top: 2rem;
  background: var(--primary);
  color: #ffffff;
  padding: 0.9rem 1.5rem;
  text-align: center;
  border-radius: 4px;
}

.mobile-cta-link:hover {
  background: var(--primary-light);
  color: #ffffff;
  padding-left: 0;
}

/* =========================================
   Additional Mobile Tweaks (Max-width 768px)
 ========================================= */
@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .hero {
    min-height: auto;
    padding: 120px 0 4rem;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .btn-primary, .btn-outline {
    width: 100%;
    margin-bottom: 0.5rem;
    text-align: center;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .split-section {
    gap: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .services-card-grid {
    gap: 1.5rem;
  }
  
  .numbered-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
  }
  
  .contact-container {
    gap: 3rem;
  }
  
  .contact-form-card {
    padding: 2.5rem 1.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr !important;
  }
}