:root {
  --primary-dark: #1A323A;
  --accent-green: #4CAF50;
  --accent-green-dark: #3E8E41;
  --off-white: #F0F0F0;
  --dark-gray: #333333;
  --light-blue-gray: #B0BEC5;
  --light-bg: #FFFFFF;
  --primary-font: 'Montserrat', sans-serif;
  --fallback-font: 'Inter', sans-serif;
  --nav-height: 80px;
  --nav-height-mobile: 60px;
}

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

body {
  font-family: var(--primary-font), var(--fallback-font);
  color: var(--dark-gray);
  background-color: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
p { margin-bottom: 1.5rem; font-size: 1.1rem; }

a {
  text-decoration: none;
  color: var(--primary-dark);
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: var(--accent-green);
}

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

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

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--primary-dark);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: height 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header.site-header.scrolled {
  height: var(--nav-height-mobile);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-lockup img {
  height: 40px;
  width: auto;
}

.logo-text {
  color: var(--off-white);
  display: flex;
  flex-direction: column;
}

.logo-text strong {
  font-size: 1.2rem;
  line-height: 1;
}

.logo-text span {
  font-size: 0.8rem;
  color: var(--light-blue-gray);
}

.primary-nav {
  display: none;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.primary-nav a {
  color: var(--off-white);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--accent-green);
  transition: width 0.2s ease-in-out;
}

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

.header-actions {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--off-white);
  margin-bottom: 5px;
  transition: 0.3s;
}

.mobile-menu-toggle span:last-child {
  margin-bottom: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1em 2em;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
}

.btn-primary {
  background-color: var(--accent-green);
  color: var(--primary-dark);
  border-radius: 9999px;
}

.btn-primary:hover {
  background-color: var(--accent-green-dark);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.btn-secondary {
  background-color: var(--primary-dark);
  color: var(--off-white);
  border-radius: 0.25em;
  border: 1px solid var(--light-blue-gray);
  padding: 0.75em 1.5em;
}

.btn-secondary:hover {
  background-color: #2A424A;
  color: var(--off-white);
  transform: translateY(-2px);
}

.text-link {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  display: inline-block;
}

.text-link::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--accent-green);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.text-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Sections */
section {
  padding: 5rem 0;
}

.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--primary-dark); color: var(--off-white); }
.bg-dark h2, .bg-dark h3 { color: var(--off-white); }
.bg-off-white { background-color: var(--off-white); }

/* Hero Section */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--off-white);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(26, 50, 58, 0.8), rgba(26, 50, 58, 0.5));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease-out 0.2s forwards;
}

.hero h1 {
  color: var(--off-white);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image img {
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.service-card {
  background-color: var(--light-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-content h3 {
  margin-bottom: 0.5rem;
}

.service-content p {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.value-card {
  text-align: center;
  padding: 2rem;
  background-color: var(--light-bg);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background-color: rgba(76, 175, 80, 0.1);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  color: var(--accent-green);
  transition: transform 0.3s ease;
}

.value-card:hover .value-icon {
  transform: scale(1.1) rotate(5deg);
}

.value-icon svg {
  width: 40px;
  height: 40px;
  fill: currentColor;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 50, 58, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.project-item:hover .project-overlay {
  opacity: 1;
}

.project-overlay h3 {
  color: var(--off-white);
  margin-bottom: 0.25rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.project-item:hover .project-overlay h3 {
  transform: translateY(0);
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.team-card {
  background: var(--light-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  text-align: center;
}

.team-image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.team-info {
  padding: 1.5rem;
}

.team-info h3 {
  margin-bottom: 0.25rem;
}

.team-info p {
  color: var(--accent-green);
  font-weight: 600;
  margin-bottom: 0;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-form {
  background: var(--light-bg);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

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

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

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--light-blue-gray);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.contact-info-block {
  margin-bottom: 2rem;
}

.contact-info-block h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.contact-info-block h3 svg {
  width: 24px;
  height: 24px;
  fill: var(--accent-green);
}

.map-container {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
}

/* Footer */
.site-footer {
  background-color: var(--primary-dark);
  color: var(--off-white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--off-white);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-green);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: var(--light-blue-gray);
}

.footer-col a:hover {
  color: var(--accent-green);
}

.footer-logo {
  max-width: 180px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--off-white);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-icons a:hover {
  background-color: var(--accent-green);
  transform: translateY(-2px);
  color: var(--primary-dark);
}

.social-icons svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--light-blue-gray);
}

.footer-bottom a {
  color: var(--light-blue-gray);
}

.footer-bottom a:hover {
  color: var(--accent-green);
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Responsive */
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 1024px) {
  h1 { font-size: 4rem; }
  h2 { font-size: 2.5rem; }
  
  .primary-nav { display: block; }
  .header-actions { display: flex; }
  .mobile-menu-toggle { display: none; }
  
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .values-grid { grid-template-columns: repeat(4, 1fr); }
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* Mobile Menu Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: var(--nav-height-mobile);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--nav-height-mobile));
  background-color: var(--primary-dark);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  overflow-y: auto;
}

.mobile-nav-overlay.active {
  transform: translateX(0);
}

.mobile-nav-overlay ul {
  list-style: none;
  margin-bottom: 2rem;
}

.mobile-nav-overlay ul li {
  margin-bottom: 1.5rem;
}

.mobile-nav-overlay a {
  color: var(--off-white);
  font-size: 1.5rem;
  font-weight: 600;
}

.mobile-nav-overlay .header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
