/* ==========================================================================
   Design Tokens & Resets (Exact Tailwind/shadcn replica)
   ========================================================================== */
:root {
  --primary: #16a34a;          /* Tailwind green-600 */
  --primary-hover: #15803d;    /* Tailwind green-700 */
  --text-main: #111827;        /* Tailwind gray-900 */
  --text-muted: #4b5563;       /* Tailwind gray-700 */
  --border-color: #e5e7eb;     /* Tailwind gray-200 */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --header-height: 112px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: #ffffff;
  line-height: 1.5;
  padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 640px) {
  :root {
    --header-height: 96px;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* ==========================================================================
   Header & Mobile Navigation (1:1 with Header.jsx)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #ffffff;
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Logo sizing: h-24 (96px) on mobile, sm:h-20 (80px) on tablet/desktop */
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img {
  height: 96px;
  width: auto;
  object-fit: contain;
}

@media (min-width: 640px) {
  .site-logo img {
    height: 80px;
  }
}

/* Desktop navigation links */
.desktop-nav {
  display: none;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

.desktop-nav a {
  font-weight: 500;
  color: #374151;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--primary);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  width: 100%;
}

/* Desktop Call Button */
.desktop-call-btn {
  display: none;
}

@media (min-width: 1024px) {
  .desktop-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
  }

  .desktop-call-btn:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
  }
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #374151;
}

@media (min-width: 1024px) {
  .mobile-toggle {
    display: none;
  }
}

/* Mobile Drawer Menu */
.mobile-nav-drawer {
  display: none;
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mobile-nav-drawer.is-open {
  display: block;
}

.mobile-nav-content {
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: block;
  font-weight: 500;
  color: #374151;
  padding: 0.5rem 0;
  font-size: 1.05rem;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--primary);
}

.mobile-call-btn {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--primary);
  color: #ffffff;
  padding: 0.85rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  width: 100%;
}

/* ==========================================================================
   Hero Section (1:1 with HomePage.jsx)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
}

@media (min-width: 1024px) {
  .hero-section {
    min-height: 700px;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.90), rgba(15, 23, 42, 0.70));
}

.hero-container {
  position: relative;
  z-index: 10;
  width: 100%;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.hero-max-width {
  max-width: 48rem;
}

.hero-title {
  color: #ffffff;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-size: 2.25rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-subtitle {
  color: #e5e7eb;
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--primary);
  color: #ffffff;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1.125rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.btn-hero-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #ffffff;
  color: #111827;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1.125rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.btn-hero-secondary:hover {
  background-color: #f3f4f6;
}

/* ==========================================================================
   Services Grid & Responsive Cards
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  display: block;
  padding: 2rem;
  border-radius: 0.75rem;
  border-width: 2px;
  border-style: solid;
  transition: all 0.2s ease;
  height: 100%;
}

.service-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.card-green { background-color: #f0fdf4; border-color: #bbf7d0; }
.card-green:hover { border-color: #4ade80; }

.card-blue { background-color: #eff6ff; border-color: #bfdbfe; }
.card-blue:hover { border-color: #60a5fa; }

.card-purple { background-color: #faf5ff; border-color: #e9d5ff; }
.card-purple:hover { border-color: #c084fc; }

.card-teal { background-color: #f0fdfa; border-color: #99f6e4; }
.card-teal:hover { border-color: #2dd4bf; }

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #111827;
}

.service-card p {
  color: #374151;
  line-height: 1.6;
}

/* ==========================================================================
   Steps Grid (Responsive: 1 col on mobile, 2 col tablet, 4 col desktop)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

@media (min-width: 640px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-badge {
  width: 4rem;
  height: 4rem;
  background-color: var(--primary);
  color: #ffffff;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

/* ==========================================================================
   Why Choose Us (Two column layout on desktop, stacked on mobile)
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.why-card {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Testimonials Grid (Stacked on mobile, 3-column desktop)
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: linear-gradient(to bottom right, #f0fdf4, #eff6ff);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   CTA Banner & Footer
   ========================================================================== */
.cta-section {
  background: linear-gradient(to bottom right, #16a34a, #15803d);
  color: #ffffff;
  text-align: center;
}

.site-footer {
  background: linear-gradient(to right, #064e3b, #78350f);
  color: #ffffff;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* ==========================================================================
   Floating Quick Action Buttons
   ========================================================================== */
.floating-widgets {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.floating-btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.floating-btn:hover {
  transform: scale(1.1);
}

.btn-whatsapp { background-color: #22c55e; }
.btn-phone { background-color: #2563eb; }

/* ==========================================================================
   Smooth Scroll Reveal Effect
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* ==========================================================================
   Contact Page Styles & Form UI
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-card {
  background-color: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 2rem;
  border: 1px solid #f3f4f6;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font-family: inherit;
  font-size: 1rem;
  color: #111827;
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

.form-status {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  display: none;
  font-size: 0.95rem;
}

.form-status.success {
  display: block;
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.form-status.error {
  display: block;
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.map-container {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  height: 400px;
  width: 100%;
  background-color: #e5e7eb;
  position: relative;
}

.map-container iframe {
  border: 0;
  width: 100%;
  height: 100%;
}

/* Exact button style matching Tailwind bg-green-600 rounded-lg py-4 */
.btn-send-message {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #16a34a; /* bg-green-600 */
  color: #ffffff;
  padding: 1rem 2rem;        /* px-8 py-4 */
  border-radius: 0.5rem;     /* rounded-lg */
  font-weight: 700;          /* font-bold */
  font-size: 1.125rem;       /* text-lg */
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-send-message:hover {
  background-color: #15803d; /* bg-green-700 */
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.btn-send-message:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

/* ==========================================================================
   Footer Bottom Exact Layout & Credit Link
   ========================================================================== */
.footer-bottom-bar {
  border-top: 1px solid #065f46;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: #d1d5db;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom-bar {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.designer-credit {
  color: #a7f3d0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.designer-credit:hover {
  color: #ffffff;
  text-decoration: underline;
}