/*
Theme Name: DigeGain
Theme URI: https://digegain.com
Author: DigeGain
Author URI: https://digegain.com
Description: A modern, conversion-optimized landing page theme for DigeGain - Kerala's Google Business Profile experts. Single-page design with smooth scrolling, Kerala-inspired colors, and lead generation focus.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: digegain
Tags: one-column, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready

This theme is designed for lead generation and local SEO businesses.
*/

/* Root Variables & Design Tokens */
:root {
  --background: 0 0% 100%;
  --foreground: 215 25% 27%;

  --card: 0 0% 100%;
  --card-foreground: 215 25% 27%;

  --popover: 0 0% 100%;
  --popover-foreground: 215 25% 27%;

  /* Teal primary - trust & professionalism */
  --primary: 173 80% 40%;
  --primary-foreground: 0 0% 100%;
  --primary-hover: 173 80% 35%;

  /* Kerala green accent - growth & local */
  --secondary: 142 71% 45%;
  --secondary-foreground: 0 0% 100%;
  --secondary-hover: 142 71% 40%;

  --muted: 210 40% 96.1%;
  --muted-foreground: 215 16.3% 46.9%;

  --accent: 173 65% 95%;
  --accent-foreground: 173 80% 25%;

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

  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 173 80% 40%;

  --radius: 0.75rem;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, hsl(173 80% 40%), hsl(193 82% 45%));
  --gradient-subtle: linear-gradient(180deg, hsl(0 0% 100%), hsl(173 65% 98%));
  
  /* Shadows */
  --shadow-elegant: 0 10px 30px -10px hsl(173 80% 40% / 0.15);
  --shadow-card: 0 4px 20px -4px hsl(215 25% 27% / 0.08);
  --shadow-glow: 0 0 40px hsl(173 80% 60% / 0.2);

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: hsl(var(--foreground));
  background-color: hsl(var(--background));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

a {
  color: hsl(var(--primary));
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: hsl(var(--primary-hover));
}

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

html {
  scroll-behavior: smooth;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

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

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: hsl(var(--background) / 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid hsl(var(--border));
  transition: var(--transition-smooth);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--primary));
  font-family: 'Poppins', sans-serif;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  color: hsl(var(--foreground));
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  cursor: pointer;
}

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

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: hsl(var(--foreground));
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-center: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
}

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

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

.btn-hero {
  background: var(--gradient-hero);
  color: hsl(var(--primary-foreground));
  padding: 0.875rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: var(--shadow-elegant);
}

.btn-hero:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid hsl(var(--primary));
  color: hsl(var(--primary));
}

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

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* Hero Section */
.hero-section {
  padding-top: 8rem;
  padding-bottom: 8rem;
  background: var(--gradient-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.hero-image img {
  border-radius: 1rem;
  box-shadow: var(--shadow-elegant);
  width: 100%;
}

/* About Section */
.about-card {
  background: hsl(var(--card));
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.value-item {
  text-align: center;
}

.value-icon {
  width: 4rem;
  height: 4rem;
  background: hsl(var(--primary) / 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elegant);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  object-fit: contain;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.875rem;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
}

/* How It Works Section */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.step-card {
  background: hsl(var(--card));
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  text-center;
}

.step-number {
  width: 4rem;
  height: 4rem;
  background: hsl(var(--primary) / 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--primary));
}

/* Case Studies Section */
.case-study-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 3rem;
}

.case-study-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.case-study-badge {
  padding: 0.375rem 0.75rem;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.before-after {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.before-card {
  background: hsl(var(--destructive) / 0.05);
  border: 1px solid hsl(var(--destructive) / 0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.after-card {
  background: hsl(var(--secondary) / 0.05);
  border: 1px solid hsl(var(--secondary) / 0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.results-box {
  background: hsl(var(--accent));
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  color: hsl(var(--secondary));
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.testimonial-author {
  border-top: 1px solid hsl(var(--border));
  padding-top: 1rem;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  background: hsl(var(--accent));
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: hsl(var(--muted-foreground));
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.contact-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  background: hsl(var(--primary) / 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

/* Form */
.form-section {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-elegant);
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--input));
  border-radius: calc(var(--radius) - 0.25rem);
  font-size: 1rem;
  transition: var(--transition-smooth);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

/* WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-elegant);
  transition: var(--transition-smooth);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: white;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: hsl(var(--muted));
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--muted));
  color: hsl(var(--muted));
}

/* Utility Classes */
.text-center {
  text-align: center;
}

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

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

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

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

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .main-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-grid,
  .services-grid,
  .testimonials-grid,
  .footer-grid,
  .steps-grid,
  .about-values,
  .before-after,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .case-study-card {
    padding: 1.5rem;
  }
}

/* Icon Utilities */
.icon-check {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--secondary));
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

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

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