/*
 * Learning Islam Online - Main Stylesheet
 * Brand colors: Emerald Green (#0a4d33) & Champagne Gold (#c5a880)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --primary: #0a4d33;
  --primary-light: #126b4a;
  --primary-dark: #052a1c;
  --secondary: #c5a880;
  --secondary-light: #dfc299;
  --secondary-dark: #a88d63;
  --accent: #d4af37; /* Metallic gold */
  
  --bg-primary: #fcfbfa; /* Warm cream/white */
  --bg-secondary: #f4f1eb; /* Soft beige */
  --bg-dark: #08281d; /* Luxury deep green for dark sections */
  --bg-card: #ffffff;
  
  --text-main: #1f2937; /* Dark slate */
  --text-muted: #4b5563; /* Medium grey */
  --text-light: #f3f4f6; /* Off-white */
  
  /* WhatsApp Brand Color */
  --whatsapp-color: #25d366;
  --whatsapp-dark: #128c7e;

  /* Typography */
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s ease;

  /* Box Shadows */
  --shadow-sm: 0 2px 4px rgba(10, 77, 51, 0.05);
  --shadow-md: 0 10px 25px rgba(10, 77, 51, 0.08);
  --shadow-lg: 0 20px 40px rgba(10, 77, 51, 0.12);
  --shadow-gold: 0 10px 20px rgba(197, 168, 128, 0.2);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

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

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

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

.text-gold { color: var(--secondary-dark); }
.text-emerald { color: var(--primary); }

.bg-dark-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}
.bg-dark-section h1,
.bg-dark-section h2,
.bg-dark-section h3,
.bg-dark-section h4 {
  color: #ffffff;
}
.bg-dark-section .feature-card {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}
.bg-dark-section .feature-card h3 {
  color: #ffffff !important;
}
.bg-dark-section .feature-card p {
  color: #cbd5e1;
}
.bg-dark-section .feature-card .feature-icon-wrapper {
  background-color: rgba(197, 168, 128, 0.15);
  color: var(--secondary-light);
}
.bg-dark-section .feature-card:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: var(--secondary);
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-headings);
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-normal);
  text-align: center;
  position: relative;
  overflow: hidden;
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 77, 51, 0.2);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 12px 26px;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline-white {
  border: 2px solid #ffffff;
  color: #ffffff;
  padding: 12px 26px;
}

.btn-outline-white:hover {
  background-color: #ffffff;
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: var(--whatsapp-color);
  color: #ffffff !important;
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
}

/* Header & Navigation */
.header {
  height: var(--header-height);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: rgba(252, 251, 250, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(10, 77, 51, 0.05);
  transition: var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
  height: 70px;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary-dark);
}

.logo svg {
  height: 40px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--secondary-dark);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-headings);
  font-weight: 500;
  color: var(--text-main);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition-normal);
}

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

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary-dark);
  border-radius: 3px;
  transition: var(--transition-normal);
}

/* Floating Actions */
.floating-actions {
  position: fixed;
  bottom: 32px;
  right: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
}

.float-btn {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: var(--transition-normal);
  color: #ffffff;
}

.float-btn:hover {
  transform: scale(1.1);
}

.float-whatsapp {
  background-color: var(--whatsapp-color);
}

.float-whatsapp:hover {
  background-color: var(--whatsapp-dark);
}

/* Hero Section */
.hero {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 100px;
  background: radial-gradient(circle at 80% 20%, #f4f1eb 0%, var(--bg-primary) 60%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0l40 40-40 40L0 40z' fill='%230a4d33' fill-opacity='0.015' fill-rule='evenodd'/%3E%3C/svg%3E");
  z-index: 1;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 620px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(10, 77, 51, 0.08);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  font-family: var(--font-headings);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.15;
}

.hero-title span {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-title span::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: var(--secondary-light);
  z-index: -1;
  border-radius: 4px;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid rgba(10, 77, 51, 0.1);
  padding-top: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-headings);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-container {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  border: 4px solid #ffffff;
}

.hero-image-deco {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 20px;
  left: 20px;
  border: 2px solid var(--secondary);
  border-radius: var(--radius-lg);
  z-index: 1;
  pointer-events: none;
}

/* Features Grid */
.section-title-wrapper {
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.feature-card {
  background-color: var(--bg-card);
  padding: 40px 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  border-top: 4px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--secondary);
}

.feature-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background-color: rgba(10, 77, 51, 0.05);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition-fast);
}

.feature-card:hover .feature-icon-wrapper {
  background-color: var(--primary);
  color: #ffffff;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Program Card Grid */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.program-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(10, 77, 51, 0.05);
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.program-img {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.program-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.program-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary-dark);
  margin-bottom: 12px;
}

.program-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.program-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.program-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(10, 77, 51, 0.08);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.program-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.program-meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

/* How It Works Steps */
.steps-container {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.step-card {
  position: relative;
  background-color: var(--bg-card);
  padding: 40px 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.step-num {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background-color: var(--secondary);
  color: var(--primary-dark);
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
  border: 4px solid var(--bg-primary);
}

.step-card h3 {
  margin-top: 15px;
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Testimonials / Reviews */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.testimonial-card {
  background-color: var(--bg-card);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10, 77, 51, 0.05);
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.testimonial-quote {
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 24px;
  position: relative;
  font-weight: 400;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}

.author-img {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-full);
  border: 2px solid var(--secondary-light);
  object-fit: cover;
}

.author-name {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1rem;
}

.author-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.faq-item {
  background-color: var(--bg-card);
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(10, 77, 51, 0.05);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition-normal);
}

.faq-header {
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-question {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary-dark);
}

.faq-icon {
  transition: var(--transition-normal);
  color: var(--primary);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  background-color: #fafbfc;
  padding: 0 32px;
}

.faq-content-inner {
  padding: 24px 0;
  color: var(--text-muted);
  border-top: 1px solid rgba(10, 77, 51, 0.05);
}

.faq-item.active {
  box-shadow: var(--shadow-md);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-item.active .faq-content {
  max-height: 300px; /* Big enough to fit any answer */
}

/* Footer Styles */
.footer {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 80px 0 30px 0;
  border-top: 5px solid var(--secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-col h3 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-about p {
  color: #a0aec0;
  margin-top: 16px;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: var(--transition-fast);
}

.social-icon:hover {
  background-color: var(--secondary);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #a0aec0;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 6px;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: #a0aec0;
}

.contact-info svg {
  width: 20px;
  height: 20px;
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #a0aec0;
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: #a0aec0;
}

.footer-bottom-links a:hover {
  color: var(--secondary);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 42, 28, 0.7);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: var(--bg-card);
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 48px;
  position: relative;
  transform: translateY(30px);
  transition: var(--transition-normal);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--primary-dark);
}

.modal-close:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.modal-title {
  font-size: 2rem;
  margin-bottom: 12px;
}

.modal-description {
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-family: var(--font-headings);
  font-size: 0.9rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 20px;
  border: 1.5px solid rgba(10, 77, 51, 0.15);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 77, 51, 0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
}

.checkbox-input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

/* Custom Alert Notification Toast */
.toast-container {
  position: fixed;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background-color: var(--primary-dark);
  color: #ffffff;
  padding: 16px 32px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideDownUp 4s ease forwards;
  pointer-events: none;
}

.toast-success {
  border-left: 4px solid var(--whatsapp-color);
}

.toast-error {
  border-left: 4px solid #ef4444;
}

/* Page Headers */
.page-header {
  padding-top: calc(var(--header-height) + 80px);
  padding-bottom: 80px;
  background: radial-gradient(circle at 10% 90%, #f4f1eb 0%, var(--bg-primary) 70%);
  border-bottom: 1px solid rgba(10, 77, 51, 0.05);
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 16px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
}

/* Filter Controls */
.filter-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-headings);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  background-color: var(--bg-secondary);
  color: var(--text-muted);
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--primary);
  color: #ffffff;
}

/* Contact Page Layout */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.contact-card-box {
  background-color: var(--bg-card);
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(10, 77, 51, 0.05);
}

.contact-card-box h2 {
  font-size: 1.75rem;
  margin-bottom: 24px;
}

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

@keyframes slideDownUp {
  0% { transform: translateY(-40px); opacity: 0; }
  10% { transform: translateY(0); opacity: 1; }
  90% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-40px); opacity: 0; }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1.25fr;
  }
  .footer-col-quicklinks {
    display: none; /* Hide quicklinks to avoid cluttering */
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .hero {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .badge {
    justify-content: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-image-wrapper {
    order: -1; /* Image first on mobile */
    max-width: 480px;
    margin: 0 auto;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    gap: 24px;
    transition: var(--transition-normal);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    z-index: 999;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
  }

  .header-ctas .btn-primary {
    display: none; /* Hide header demo button on mobile, floating widget will cover it */
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .testimonial-card {
    padding: 32px 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
