/* Tailwind CSS via CDN - using Play CDN for full Tailwind support */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Custom CSS Variables matching the React design */
/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

:root {
  --background: 0 0% 100%;
  --foreground: 210 20% 20%;

  --card: 0 0% 100%;
  --card-foreground: 210 20% 20%;

  --popover: 0 0% 100%;
  --popover-foreground: 210 20% 20%;

  /* Primary color - Sage green */
  --primary: 100 9% 49%;
  --primary-foreground: 0 0% 100%;
  
  /* Secondary color - Lighter sage green */
  --secondary: 100 8% 52%;
  --secondary-foreground: 210 20% 20%;

  /* Muted backgrounds */
  --muted: 15 10% 86%;
  --muted-foreground: 210 15% 45%;

  --accent: 100 8% 52%;
  --accent-foreground: 210 20% 20%;

  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 100%;

  --border: 100 8% 80%;
  --input: 100 8% 80%;
  --ring: 100 9% 49%;

  --radius: 0.75rem;

  /* Custom colors for the site */
  --mint: 100 9% 49%;
  --mint-light: 100 8% 52%;
  --mint-dark: 100 9% 40%;
  
  /* Gradients */
  --gradient-hero: linear-gradient(135deg, hsl(100 8% 52%), hsl(100 9% 45%));
  --gradient-overlay: linear-gradient(135deg, hsl(100 9% 49% / 0.95), hsl(100 9% 40% / 0.95));
}

* {
  border-color: hsl(var(--border));
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 300;
}

/* Utility classes for colors */
.bg-primary {
  background-color: hsl(var(--primary));
}

.text-primary {
  color: hsl(var(--primary));
}

.text-primary-foreground {
  color: hsl(var(--primary-foreground));
}

.bg-secondary {
  background-color: hsl(var(--secondary));
}

.text-secondary-foreground {
  color: hsl(var(--secondary-foreground));
}

.bg-muted {
  background-color: hsl(var(--muted));
}

.text-muted-foreground {
  color: hsl(var(--muted-foreground));
}

.bg-background {
  background-color: hsl(var(--background));
}

.text-foreground {
  color: hsl(var(--foreground));
}

.border-border {
  border-color: hsl(var(--border));
}

/* Card styles */
.card {
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.card-header {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
}

.card-content {
  padding: 1.5rem;
  padding-top: 0;
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  background-color: hsl(var(--primary) / 0.9);
}

.btn-secondary {
  background-color: hsl(var(--secondary));
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: hsl(var(--secondary) / 0.8);
}

.btn-outline {
  border: 1px solid hsl(var(--input));
  background-color: hsl(var(--background));
}

.btn-outline:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-ghost {
  background-color: transparent;
  color: hsl(var(--foreground));
}

.btn-ghost:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-lg {
  height: 2.75rem;
  padding: 0 2rem;
  border-radius: var(--radius);
}

.btn-sm {
  height: 2.25rem;
  padding: 0 0.75rem;
  border-radius: calc(var(--radius) - 2px);
}

.btn-icon {
  height: 2.5rem;
  width: 2.5rem;
}

/* Input styles */
.input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--input));
  background-color: hsl(var(--background));
  font-size: 0.875rem;
  transition: all 0.2s;
}

.input:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--input));
  background-color: hsl(var(--background));
  font-size: 0.875rem;
  transition: all 0.2s;
  resize: vertical;
}

.textarea:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

/* Navigation */
.nav-top {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.5rem 0;
}

.nav-main {
  background-color: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: hsl(var(--primary));
}

.nav-link.active {
  color: hsl(var(--primary));
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: hsl(var(--primary));
}

/* Container */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
}

/* Grid */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-12 {
  gap: 3rem;
}

/* Spacing */
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.pt-6 {
  padding-top: 1.5rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.py-32 {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-12 {
  padding-left: 3rem;
  padding-right: 3rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.pt-2 {
  padding-top: 0.5rem;
}

/* Typography */
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-5xl {
  font-size: 3rem;
  line-height: 1;
}

.font-light {
  font-weight: 300;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

/* Flexbox */
.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.justify-end {
  justify-content: flex-end;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

/* Hero section */
.hero-section {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.95), hsl(var(--primary) / 0.75));
}

.hero-content {
  position: relative;
  z-index: 10;
}

/* Animations */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.6s ease-out;
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up {
  animation: slide-up 0.6s ease-out;
}

/* Mobile menu */
.mobile-menu {
  display: none;
}

@media (max-width: 767px) {
  .mobile-menu {
    display: block;
  }
  
  .desktop-nav {
    display: none;
  }
}

/* Footer */
.footer {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 3rem 0;
}

.footer-link {
  color: hsl(var(--primary-foreground) / 0.9);
  transition: opacity 0.2s;
}

.footer-link:hover {
  opacity: 0.8;
}

/* Responsive utilities */
.hidden {
  display: none;
}

@media (min-width: 768px) {
  .md\:flex {
    display: flex;
  }
  
  .md\:hidden {
    display: none;
  }
  
  .md\:block {
    display: block;
  }
}

/* Table styles */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table td {
  padding: 1rem;
  border-bottom: 1px solid hsl(var(--border));
}

.table tr:last-child td {
  border-bottom: none;
}

/* Space utilities */
.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

/* Hover effects */
.hover\:shadow-lg:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.transition-shadow {
  transition: box-shadow 0.2s;
}

.transition-colors {
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

.transition-opacity {
  transition: opacity 0.2s;
}

.transition-transform {
  transition: transform 0.2s;
}

.transition-all {
  transition: all 0.2s;
}

.duration-300 {
  transition-duration: 300ms;
}

/* Scale on hover - when parent group is hovered */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* Group hover visibility */
.group:hover .group-hover\:opacity-100 {
  opacity: 1;
}

.group:hover .group-hover\:visible {
  visibility: visible;
}

/* Visibility utilities */
.invisible {
  visibility: hidden;
}

.visible {
  visibility: visible;
}

/* Z-index */
.z-50 {
  z-index: 50;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #20BA5A;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  color: white;
  width: 32px;
  height: 32px;
}

/* Form Success/Error Messages */
.bg-green-50 {
  background-color: #f0fdf4;
}

.border-green-200 {
  border-color: #bbf7d0;
}

.text-green-800 {
  color: #166534;
}

.bg-red-50 {
  background-color: #fef2f2;
}

.border-red-200 {
  border-color: #fecaca;
}

.text-red-800 {
  color: #991b1b;
}

/* Destructive colors for form validation */
.text-destructive {
  color: hsl(var(--destructive));
}

.border-destructive {
  border-color: hsl(var(--destructive));
}

.input.error,
.textarea.error {
  border-color: hsl(var(--destructive));
}

.input.error:focus,
.textarea.error:focus {
  outline-color: hsl(var(--destructive));
}

/* Loading state for buttons */
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Scroll Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-fade-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.scroll-fade-in.visible {
  opacity: 1;
}

/* Focus states for accessibility */
input:focus,
textarea:focus,
button:focus,
a:focus {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100;
  border-radius: 0 0 4px 0;
  font-weight: 500;
  transition: top 0.2s ease;
}

.skip-to-content:focus {
  top: 0;
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

/* Text alignment */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.uppercase {
  text-transform: uppercase;
}

/* Max width */
.max-w-2xl {
  max-width: 42rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-5xl {
  max-width: 64rem;
}

.max-w-6xl {
  max-width: 72rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Opacity */
.opacity-75 {
  opacity: 0.75;
}

.opacity-90 {
  opacity: 0.9;
}

.opacity-95 {
  opacity: 0.95;
}

/* Border radius */
.rounded {
  border-radius: 0.25rem;
}

.rounded-lg {
  border-radius: var(--radius);
}

.rounded-md {
  border-radius: calc(var(--radius) - 2px);
}

/* Width */
.w-full {
  width: 100%;
}

.w-48 {
  width: 12rem;
}

.w-56 {
  width: 14rem;
}

/* Height */
.h-20 {
  height: 5rem;
}

.h-4 {
  height: 1rem;
}

.h-5 {
  height: 1.25rem;
}

/* Position */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.z-10 {
  z-index: 10;
}

.z-50 {
  z-index: 50;
}

/* Links */
a {
  color: hsl(var(--primary));
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

.link-reset {
  color: inherit;
  text-decoration: none;
}

.link-reset:hover {
  opacity: 1;
}

/* Lists */
.list-none {
  list-style: none;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

/* Icons */
.icon {
  width: 1rem;
  height: 1rem;
  display: inline-block;
}

.icon-lg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Section backgrounds */
.section-bg-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.section-bg-muted {
  background-color: hsl(var(--muted));
}

/* Background with opacity */
.bg-primary\/10 {
  background-color: hsl(var(--primary) / 0.1);
}

/* Iframe */
iframe {
  border: 0;
  width: 100%;
  height: 100%;
}

/* Additional utilities */
.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.h-auto {
  height: auto;
}

.overflow-hidden {
  overflow: hidden;
}

.cursor-pointer {
  cursor: pointer;
}

.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

/* Order utilities */
.order-1 {
  order: 1;
}

.order-2 {
  order: 2;
}

@media (min-width: 768px) {
  .md\:order-1 {
    order: 1;
  }
  
  .md\:order-2 {
    order: 2;
  }
}

/* Last border utility */
.last\:border-b-0:last-child {
  border-bottom: none;
}

/* Tracking */
.tracking-wider {
  letter-spacing: 0.05em;
}

/* Min height */
.min-h-screen {
  min-height: 100vh;
}

/* Aspect ratio */
.aspect-video {
  aspect-ratio: 16 / 9;
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

/* Leading relaxed */
.leading-relaxed {
  line-height: 1.625;
}

.aspect-\[4\/3\] {
  aspect-ratio: 4 / 3;
}

/* Object fit */
.object-cover {
  object-fit: cover;
}

/* Opacity utilities */
.text-primary-foreground\/90 {
  color: hsl(var(--primary-foreground) / 0.9);
}

/* Flex-1 */
.flex-1 {
  flex: 1 1 0%;
}

/* Height full */
.h-full {
  height: 100%;
}

/* Margin top auto */
.mt-auto {
  margin-top: auto;
}

/* Shadow */
.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Border top */
.border-t {
  border-top-width: 1px;
  border-top-color: hsl(var(--border));
}

/* After pseudo element for active nav links */
a.relative.text-primary::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: hsl(var(--primary));
}

.logo {
  height: 5rem;
}

.footer-logo {
  height: 6rem;
}