/* ============================================
   CSS CUSTOM PROPERTIES (Design System)
   ============================================ */

/* Light theme (default) */
:root {
  /* Colors from shadcn */
  --background: oklch(0.9711 0.0074 80.7211);
  --foreground: oklch(0.3000 0.0358 30.2042);
  --card: oklch(0.9711 0.0074 80.7211);
  --card-foreground: oklch(0.3000 0.0358 30.2042);
  --popover: oklch(0.9711 0.0074 80.7211);
  --popover-foreground: oklch(0.3000 0.0358 30.2042);
  --primary: oklch(0.5234 0.1347 144.1672);
  --primary-foreground: oklch(1.0000 0 0);
  --secondary: oklch(0.9571 0.0210 147.6360);
  --secondary-foreground: oklch(0.4254 0.1159 144.3078);
  --muted: oklch(0.9370 0.0142 74.4218);
  --muted-foreground: oklch(0.4495 0.0486 39.2110);
  --accent: oklch(0.8952 0.0504 146.0366);
  --accent-foreground: oklch(0.4254 0.1159 144.3078);
  --destructive: oklch(0.5386 0.1937 26.7249);
  --destructive-foreground: oklch(1.0000 0 0);
  --border: oklch(0.8805 0.0208 74.6428);
  --input: oklch(0.8805 0.0208 74.6428);
  --ring: oklch(0.5234 0.1347 144.1672);

  /* Chart colors */
  --chart-1: oklch(0.6731 0.1624 144.2083);
  --chart-2: oklch(0.5752 0.1446 144.1813);
  --chart-3: oklch(0.5234 0.1347 144.1672);
  --chart-4: oklch(0.4254 0.1159 144.3078);
  --chart-5: oklch(0.2157 0.0453 145.7256);

  /* Sidebar colors */
  --sidebar: oklch(0.9370 0.0142 74.4218);
  --sidebar-foreground: oklch(0.3000 0.0358 30.2042);
  --sidebar-primary: oklch(0.5234 0.1347 144.1672);
  --sidebar-primary-foreground: oklch(1.0000 0 0);
  --sidebar-accent: oklch(0.8952 0.0504 146.0366);
  --sidebar-accent-foreground: oklch(0.4254 0.1159 144.3078);
  --sidebar-border: oklch(0.8805 0.0208 74.6428);
  --sidebar-ring: oklch(0.5234 0.1347 144.1672);

  /* Fonts */
  --font-sans: Montserrat, sans-serif;
  --font-serif: Merriweather, serif;
  --font-mono: Source Code Pro, monospace;

  /* Border radius */
  --radius: 0.5rem;
  --radius-sm: calc(0.5rem - 4px);
  --radius-md: calc(0.5rem - 2px);
  --radius-lg: 0.5rem;
  --radius-xl: calc(0.5rem + 4px);

  /* Shadows */
  --shadow-2xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
  --shadow-xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
  --shadow-sm: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10);
  --shadow: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10);
  --shadow-md: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 2px 4px -1px hsl(0 0% 0% / 0.10);
  --shadow-lg: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 4px 6px -1px hsl(0 0% 0% / 0.10);
  --shadow-xl: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 8px 10px -1px hsl(0 0% 0% / 0.10);
  --shadow-2xl: 0 1px 3px 0px hsl(0 0% 0% / 0.25);

  /* Brand Colors from Specification */
  --forest-green: #637F4F;
  --deep-blue: #1A3D6D;
  --fresh-leaf-green: #A3D977;
  --soft-sand: #F5F5DC;
  --clay-brown: #A0522D;
  --slate-gray: #444444;
  --action-orange: #E67E22;
  --action-orange-hover: #D86F1B;
  --compliance-green: #4CAF50;
  --compliance-green-hover: #45A049;
  --white: #FFFFFF;
}

/* Dark theme */
.dark {
  --background: oklch(0.2683 0.0279 150.7681);
  --foreground: oklch(0.9423 0.0097 72.6595);
  --card: oklch(0.3327 0.0271 146.9867);
  --card-foreground: oklch(0.9423 0.0097 72.6595);
  --popover: oklch(0.3327 0.0271 146.9867);
  --popover-foreground: oklch(0.9423 0.0097 72.6595);
  --primary: oklch(0.6731 0.1624 144.2083);
  --primary-foreground: oklch(0.2157 0.0453 145.7256);
  --secondary: oklch(0.3942 0.0265 142.9926);
  --secondary-foreground: oklch(0.8970 0.0166 142.5518);
  --muted: oklch(0.2926 0.0212 147.7496);
  --muted-foreground: oklch(0.8579 0.0174 76.0955);
  --accent: oklch(0.5752 0.1446 144.1813);
  --accent-foreground: oklch(0.9423 0.0097 72.6595);
  --destructive: oklch(0.5386 0.1937 26.7249);
  --destructive-foreground: oklch(0.9423 0.0097 72.6595);
  --border: oklch(0.3942 0.0265 142.9926);
  --input: oklch(0.3942 0.0265 142.9926);
  --ring: oklch(0.6731 0.1624 144.2083);

  --chart-1: oklch(0.7660 0.1179 145.2950);
  --chart-2: oklch(0.7185 0.1417 144.8887);
  --chart-3: oklch(0.6731 0.1624 144.2083);
  --chart-4: oklch(0.6291 0.1543 144.2031);
  --chart-5: oklch(0.5752 0.1446 144.1813);

  --sidebar: oklch(0.2683 0.0279 150.7681);
  --sidebar-foreground: oklch(0.9423 0.0097 72.6595);
  --sidebar-primary: oklch(0.6731 0.1624 144.2083);
  --sidebar-primary-foreground: oklch(0.2157 0.0453 145.7256);
  --sidebar-accent: oklch(0.5752 0.1446 144.1813);
  --sidebar-accent-foreground: oklch(0.9423 0.0097 72.6595);
  --sidebar-border: oklch(0.3942 0.0265 142.9926);
  --sidebar-ring: oklch(0.6731 0.1624 144.2083);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--white);
  color: var(--slate-gray);
  line-height: 1.4;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--deep-blue);
}

h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--deep-blue);
}

h3 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--forest-green);
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--forest-green);
}

p {
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

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

/* ============================================
   UTILITY CLASSES
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 3rem 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--forest-green);
  margin-bottom: 1.5rem;
}

.section-text {
  font-size: 1.125rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.center {
  text-align: center;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary-cta {
  background-color: var(--action-orange);
  color: var(--white);
}

.btn-primary-cta:hover {
  background-color: var(--action-orange-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-secondary-cta {
  background-color: var(--compliance-green);
  color: var(--white);
}

.btn-secondary-cta:hover {
  background-color: var(--compliance-green-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn:focus {
  outline: 2px solid var(--forest-green);
  outline-offset: 2px;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
  background-color: var(--forest-green);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}

.logo-image {
  height: 50px;
  width: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.logo-image:hover {
  opacity: 0.9;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--white);
  font-weight: 500;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--fresh-leaf-green);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--fresh-leaf-green);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--forest-green);
  min-width: 280px;
  padding: 1rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  margin-top: 1rem;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--white);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.dropdown-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--fresh-leaf-green);
}

.nav-cta {
  padding: 0.625rem 1.5rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--deep-blue) 0%, var(--forest-green) 100%);
}

.hero-bg-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(''); /* Add background image here */
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 61, 109, 0.9) 0%, rgba(46, 94, 78, 0.8) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 2.5rem 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--soft-sand);
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   TWO-COLUMN LAYOUTS
   ============================================ */

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.column-text {
  padding: 1rem 0;
}

.column-image {
  width: 100%;
}

.section-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

.image-placeholder {
  background-color: var(--muted);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  color: var(--slate-gray);
  border: 2px dashed var(--border);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services-overview {
  background-color: var(--soft-sand);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  text-align: center;
  border: 1px solid var(--border);
}

.service-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-5px);
}

.service-icon {
  color: var(--fresh-leaf-green);
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--forest-green);
}

.service-subtitle {
  font-size: 0.95rem;
  color: var(--compliance-green);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.service-description {
  font-size: 1rem;
  color: var(--slate-gray);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.service-card-highlight {
  background: linear-gradient(135deg, var(--forest-green) 0%, var(--deep-blue) 100%);
  border: 2px solid var(--action-orange);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.service-card-highlight::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--action-orange), var(--compliance-green), var(--action-orange));
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card-highlight:hover::before {
  opacity: 0.6;
}

.service-card-highlight .service-title {
  color: var(--white);
  font-size: 1.75rem;
}

.service-card-highlight .service-description {
  color: rgba(255, 255, 255, 0.9);
}

.service-card-highlight:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-2xl);
}

/* ============================================
   THREE-COLUMN LAYOUTS
   ============================================ */

.three-column {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.value-column,
.value-item {
  text-align: center;
}

.value-icon {
  color: var(--fresh-leaf-green);
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.value-title {
  font-size: 1.5rem;
  color: var(--forest-green);
  margin-bottom: 0.75rem;
}

.value-text {
  font-size: 1rem;
  line-height: 1.4;
  color: var(--slate-gray);
}

/* ============================================
   WHY CHOOSE SECTION
   ============================================ */

.why-choose {
  background-color: var(--soft-sand);
}

.why-choose .value-column {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.why-choose .value-column:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-5px);
}

.value-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.value-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.value-content {
  padding: 1.5rem;
}

/* ============================================
   OUR VALUES SECTION
   ============================================ */

.our-values {
  background-color: var(--white);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-emoji {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.value-name {
  font-size: 1.125rem;
  color: var(--forest-green);
}

/* ============================================
   FINAL CTA SECTION
   ============================================ */

.final-cta {
  position: relative;
  background: linear-gradient(135deg, var(--deep-blue) 0%, var(--forest-green) 100%);
  color: var(--white);
  text-align: center;
  padding: 3rem 0;
  overflow: hidden;
}

.cta-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.cta-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 61, 109, 0.85);
  z-index: 1;
}

.final-cta .container {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background-color: var(--forest-green);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-heading {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--fresh-leaf-green);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--fresh-leaf-green);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   ALTERNATING SECTIONS
   ============================================ */

.about-preview {
  background-color: var(--white);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* Mobile (< 768px) */
@media (max-width: 768px) {
  /* Typography */
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  /* Logo responsive sizing */
  .logo-image {
    height: 40px;
  }

  .section {
    padding: 2rem 0;
  }

  .hero {
    min-height: 350px;
  }

  .hero-content {
    padding: 2rem 1.5rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Navigation */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    max-width: 300px;
    height: calc(100vh - 70px);
    background-color: var(--forest-green);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
    box-shadow: var(--shadow-xl);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    margin-top: 0.5rem;
    box-shadow: none;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }

  /* Grids */
  .two-column {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .three-column {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  .cta-title {
    font-size: 1.75rem;
  }
}

/* Large Desktop (> 1440px) */
@media (min-width: 1441px) {
  .container {
    max-width: 1400px;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--forest-green);
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
