/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color System */
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(30, 15%, 15%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(30, 15%, 15%);
  --primary: hsl(157, 45%, 35%);
  --primary-foreground: hsl(0, 0%, 98%);
  --secondary: hsl(35, 25%, 85%);
  --secondary-foreground: hsl(30, 15%, 15%);
  --muted: hsl(35, 20%, 95%);
  --muted-foreground: hsl(30, 10%, 45%);
  --accent: hsl(200, 85%, 55%);
  --accent-foreground: hsl(0, 0%, 98%);
  --border: hsl(35, 15%, 88%);
  --input: hsl(35, 15%, 88%);
  --ring: hsl(157, 45%, 35%);

  /* Tiling specific colors */
  --stone: hsl(35, 15%, 75%);
  --stone-foreground: hsl(30, 15%, 15%);
  --earth: hsl(30, 35%, 65%);
  --earth-foreground: hsl(0, 0%, 98%);
  --slate: hsl(210, 15%, 45%);
  --slate-foreground: hsl(0, 0%, 98%);

  /* Gradients */
  --gradient-hero: linear-gradient(
    135deg,
    hsl(157, 45%, 35%),
    hsl(110, 35%, 65%)
  );
  --gradient-section: linear-gradient(
    180deg,
    hsl(35, 20%, 95%),
    hsl(0, 0%, 100%)
  );
  --gradient-card: linear-gradient(145deg, hsl(0, 0%, 100%), hsl(35, 25%, 85%));

  /* Shadows */
  --shadow-elegant: 0 10px 30px -10px hsl(25, 45%, 35%, 0.2);
  --shadow-card: 0 4px 20px -4px hsl(35, 15%, 75%, 0.3);
  --shadow-hover: 0 8px 30px -8px hsl(200, 85%, 55%, 0.4);

  --radius: 0.5rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("images/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    hsla(110, 45%, 35%, 0.8),
    hsla(157, 35%, 65%, 0.6)
  );
}

.hero-content {
  position: relative;
  text-align: center;
  color: var(--primary-foreground);
  z-index: 2;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  animation: fade-in 1s ease-out;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  margin-bottom: 2.5rem;
  opacity: 0.95;
  animation: fade-in 1s ease-out 0.3s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fade-in 1s ease-out 0.6s both;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-arrow {
  color: var(--primary-foreground);
  font-size: 1.5rem;
  animation: float 3s ease-in-out infinite;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-elegant);
}

.btn-primary:hover {
  background-color: hsl(25, 45%, 30%);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-foreground);
  border: 2px solid var(--primary-foreground);
}

.btn-secondary:hover {
  background-color: var(--primary-foreground);
  color: var(--primary);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-full {
  width: 100%;
}

.submit-success-message {
  display: none;
  text-align: center;
  color: var(--primary);
  font-weight: 500;
  padding: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

.submit-success-message.show {
  display: block;
  opacity: 1;
}

.submit-error-message {
  display: none;
  text-align: center;
  color: red;
  font-weight: 500;
  padding: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

.submit-error-message.show {
  display: block;
  opacity: 1;
}

/* Section Styles */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 800px;
  margin: 0 auto;
}

/* About Section */
.about {
  background: var(--gradient-section);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.about-content {
  display: grid;
  gap: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--gradient-card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

.card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}

.stat-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  text-align: center;
  border: 1px solid var(--border);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--muted-foreground);
  font-weight: 500;
}

/* Gallery Section */
.gallery {
  background-color: var(--background);
}

.gallery-container {
  position: relative;
}

.gallery-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery-scroll::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex-shrink: 0;
  width: 320px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.gallery-item img {
  width: 100%;
  height: 256px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, hsl(25, 45%, 35%, 0.8), transparent);
  color: var(--primary-foreground);
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: hsl(0, 0%, 100%, 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.gallery-nav:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.gallery-nav-left {
  left: 1rem;
}

.gallery-nav-right {
  right: 1rem;
}

.gallery-cta {
  text-align: center;
  margin-top: 3rem;
}

/* Testimonials Section */
.testimonials {
  background: var(--gradient-section);
}

.testimonials-container {
  position: relative;
}

.testimonials-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.testimonials-scroll::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex-shrink: 0;
  width: 350px;
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

.stars {
  color: #fbbf24;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--muted-foreground);
}

.testimonial-author strong {
  color: var(--primary);
  display: block;
  margin-bottom: 0.25rem;
}

.testimonial-author span {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.testimonials-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: hsl(0, 0%, 100%, 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.testimonials-nav:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.testimonials-nav-left {
  left: 1rem;
}

.testimonials-nav-right {
  right: 1rem;
}

.testimonials-cta {
  text-align: center;
  margin-top: 3rem;
}

/* Contact Section */
.contact {
  background-color: var(--background);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--foreground);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background-color: var(--background);
  color: var(--foreground);
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px hsl(25, 45%, 35%, 0.2);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.contact-item strong {
  color: var(--primary);
}

.contact-info ul {
  list-style: none;
  padding-left: 0;
}

.contact-info li {
  padding: 0.25rem 0;
  color: var(--muted-foreground);
}

.map-container {
  margin-top: 3rem;
}

.map-placeholder {
  background: var(--muted);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-content {
  text-align: center;
  color: var(--muted-foreground);
}

.map-content h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Animations */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsive Design */
@media (min-width: 768px) {
  .hero-buttons {
    flex-wrap: nowrap;
  }

  .about-grid {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }

  .about-content {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }

  section {
    padding: 6rem 0;
  }
}
