/* Reset and normalize */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Tailwind-like utility classes */

/* CSS Variables - Exact copy from Next.js globals.css */
:root {
  --background: #ffffff;
  --foreground: #0f172a;
  --primary: #eab308;
  --primary-hover: #ca8a04;
  --primary-light: #fef9c3;
  --primary-dark: #854d0e;
  --secondary: #1e293b;
  --accent: #f8fafc;
  --muted: #f1f5f9;
  
  /* Mobile-specific sizing */
  --header-height-mobile: 4rem;
  --touch-target-size: 44px;
  --mobile-padding: 1rem;
  --mobile-section-spacing: 3rem;
  
  /* Font size scaling (smaller than default) */
  --text-scale: 0.9;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Testimonials scrolling animation */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-scroll {
  animation: scroll 30s linear infinite;
  display: flex;
  width: max-content;
  gap: 2rem;
}

.animate-scroll:hover {
  animation-play-state: paused;
}

.brand-section {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 2rem 0;
}

.brand-container {
  display: flex;
  gap: 2rem;
  width: max-content;
}

/* Partner logos responsive styles */
.partner-logo {
  transition: all 0.3s ease;
  filter: grayscale(100%);
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.partner-logo:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

@media (max-width: 640px) {
  .partner-logo {
    max-width: 120px;
    height: 60px;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .partner-logo {
    max-width: 160px;
    height: 80px;
  }
}

@media (min-width: 1025px) {
  .partner-logo {
    max-width: 200px;
    height: 100px;
  }
}

/* Hide scrollbar but allow scrolling */
.scrollbar-hide {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;  /* Chrome, Safari and Opera */
}

/* Base typography with reduced sizes */
body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: calc(1rem * var(--text-scale));
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Font families */
.font-sans {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Custom utility classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Section headings */
.section-heading {
  text-align: center;
  margin-bottom: 2rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}

/* Contact form layout */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

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

.contact-form {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .contact-form {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-form .full-width {
    grid-column: span 2;
  }
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

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

/* Color utilities */
.text-primary {
  color: var(--primary);
}

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

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

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

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

.hover\:bg-primary:hover {
  background-color: var(--primary);
}

/* Header specific styles */
#header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Mobile menu animations */
#mobile-menu {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
  height: calc(100vh - 4rem);
  opacity: 1;
}

#mobile-menu-btn.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

#mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

#mobile-menu-btn.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero section specific styles */
.hero-bg-text {
  font-size: 15vw;
}

@media (min-width: 640px) {
  .hero-bg-text {
    font-size: 20vw;
  }
}

/* Services section styles */
.service-card {
  transition: all 0.3s ease;
}

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

.service-icon {
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background-color: rgba(234, 179, 8, 0.2);
  color: var(--primary);
}

/* Portfolio section styles */
.portfolio-filter-btn {
  transition: all 0.2s ease;
}

.portfolio-filter-btn.active {
  background-color: #FFD93D;
  color: #1f2937;
}

.portfolio-item {
  transition: all 0.3s ease;
}

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

.portfolio-item img {
  transition: transform 0.3s ease;
}

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

/* Testimonials styles */
.testimonial-card {
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

/* Animation utilities */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive utilities */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--foreground);
  border: 2px solid var(--foreground);
}

.btn-secondary:hover {
  background-color: var(--foreground);
  color: white;
}

/* Form styles */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
}

.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.2s ease;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Footer Styles */
footer {
  background-color: #fffbeb; /* Light yellow background */
}

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

/* Map alongside columns */
.footer-map {
  grid-column: 1 / -1; /* full width on small screens */
  height: 16rem;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)); /* 4 sections + map spans 2 */
  }
  .footer-map {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .footer-map {
    height: 14rem;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles */
*:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
}
