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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: white;
}

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

/* Navigation */
.nav {
  position: fixed;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
  padding: 0.75rem 0;
  position: relative;
}

.nav-title {
  color: #1a4d2e;
  font-family: 'Architects Daughter', cursive;
  font-size: 40px;
  letter-spacing: -0.025em;
  /* Truly centered relative to the full nav bar */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 100px);
  text-align: center;
  display: none; /* hidden on mobile */
}

.nav-links {
  display: none;
  gap: 2rem;
}

.nav-link {
  color: #6B7280;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #1a4d2e;
}

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

.menu-icon {
  width: 24px;
  height: 24px;
  color: #1a4d2e;
}

.mobile-menu {
  display: none;
  background: white;
  border-top: 1px solid #e5e7eb;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-content {
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-menu-link {
  display: block;
  color: #6B7280;
  text-decoration: none;
}

.mobile-menu-link:hover {
  color: #1a4d2e;
}

@media (min-width: 768px) {
  .nav-title {
    display: block;
    position: static;
    transform: none;
    width: auto;
    max-width: none;
    text-align: left;
  }

  .nav-links {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: none;
  }
  
  .nav-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .nav-container {
    padding: 0 2rem;
  }
}

/* Hero Section */
.hero {
  padding-top: 96px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.video-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.video-background-slide {
  position: absolute;
  inset: 0;
  transition: opacity 2000ms;
  opacity: 0;
}

.video-background-slide.active {
  opacity: 1;
}

.video-background-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-background-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26, 77, 46, 0.5), rgba(26, 77, 46, 0.4));
  z-index: 10;
}

.hero-content-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 1rem;
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-content {
  max-width: 768px;
  margin: 0 auto;
  text-align: center;
  color: white;
}

.logo-container {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.logo-box {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.logo {
  height: 480px;
  width: auto;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: #4E342E;
  font-family: 'Aboreto', serif;
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  display: inline-block;
  backdrop-filter: blur(8px);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
  display: inline-block;
  background: white;
  color: #1a4d2e;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.hero-cta:hover {
  background: #f9fafb;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
  
  .hero-content-wrapper {
    padding: 5rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-content-wrapper {
    padding: 5rem 2rem;
  }
}

/* Ken Burns Animations */
@keyframes kenBurnsZoomIn {
  0% { transform: scale(1.1); }
  100% { transform: scale(1.3); }
}

@keyframes kenBurnsZoomOut {
  0% { transform: scale(1.3); }
  100% { transform: scale(1.1); }
}

@keyframes kenBurnsPanLeft {
  0% { transform: scale(1.2) translateX(0); }
  100% { transform: scale(1.3) translateX(-5%); }
}

@keyframes kenBurnsPanRight {
  0% { transform: scale(1.2) translateX(0); }
  100% { transform: scale(1.3) translateX(5%); }
}

@keyframes kenBurnsDiagonal {
  0% { transform: scale(1.1) translate(0, 0); }
  100% { transform: scale(1.3) translate(-3%, -3%); }
}

.kb-zoom-in { animation: kenBurnsZoomIn 7s ease-out infinite; }
.kb-zoom-out { animation: kenBurnsZoomOut 7s ease-out infinite; }
.kb-pan-left { animation: kenBurnsPanLeft 7s ease-out infinite; }
.kb-pan-right { animation: kenBurnsPanRight 7s ease-out infinite; }
.kb-diagonal { animation: kenBurnsDiagonal 7s ease-out infinite; }

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

.section-gray {
  background: #f9fafb;
}

.section-white {
  background: white;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-narrow {
  max-width: 896px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.25rem;
  color: #1a4d2e;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.25rem;
  color: #6B7280;
  max-width: 768px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  .container-narrow {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
  
  .container-narrow {
    padding: 0 2rem;
  }
}

/* Features Grid */
.features-grid {
  display: grid;
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: #1a4d2e;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.icon {
  width: 24px;
  height: 24px;
  color: white;
}

.feature-title {
  color: #1a4d2e;
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
  font-weight: 500;
}

.feature-text {
  color: #6B7280;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Services Grid */
.services-grid {
  display: grid;
  gap: 3rem;
}

.service-card {
  position: relative;
}

.service-slideshow {
  position: relative;
  height: 320px;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.service-slideshow-slide {
  position: absolute;
  inset: 0;
  transition: opacity 2000ms;
  opacity: 0;
}

.service-slideshow-slide.active {
  opacity: 1;
}

.service-slideshow-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-slideshow:hover .service-slideshow-slide.active img {
  transform: scale(1.05);
  transition: transform 300ms;
}

.service-title {
  color: #1a4d2e;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  font-weight: 500;
}

.service-text {
  color: #6B7280;
  margin-bottom: 1rem;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-item {
  display: flex;
  align-items: flex-start;
  color: #6B7280;
}

.check-icon {
  width: 20px;
  height: 20px;
  color: #1a4d2e;
  margin-right: 0.5rem;
  margin-top: 2px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  gap: 2rem;
}

.portfolio-item {
  position: relative;
  height: 320px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms;
}

.portfolio-item:hover .portfolio-image {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 77, 46, 0.8), transparent);
  opacity: 0;
  transition: opacity 300ms;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

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

.portfolio-info {
  color: white;
}

.portfolio-title {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.portfolio-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  display: block;
  color: #1a4d2e;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: box-shadow 0.3s, border-color 0.3s;
}

.form-input:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px #1a4d2e;
}

textarea.form-input {
  resize: none;
}

.form-submit {
  width: 100%;
  background: #1a4d2e;
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.form-submit:hover {
  background: #2d5f3f;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Footer */
.footer {
  background: #1a4d2e;
  color: white;
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-title {
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.footer-text {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-link:hover {
  color: white;
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
