/* 
* Main Stylesheet - domain.org
* Color palette:
* - Main background: gradient from #ffedd5 (warm sand) to #ffe5ec (powder pink)
* - Accent elements: #4f46e5 (indigo) and #f43f5e (scarlet)
* - Text: #1f2937 (dark gray)
* - Icons: #06b6d4 (turquoise)
* - Buttons: gradient from #3b82f6 to #9333ea
*/

/* Reset and base styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: #1f2937;
  background: linear-gradient(135deg, #ffedd5 0%, #ffe5ec 100%);
  min-height: 100vh;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  width: 100%; /* Ensure body takes full width */
  position: relative; /* For proper overflow handling */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: #4f46e5;
  transition: color 0.3s ease;
}

a:hover {
  color: #f43f5e;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 124rem;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
}

h1 {
  font-size: 4.2rem;
}

h2 {
  font-size: 3.6rem;
}

h3 {
  font-size: 2.4rem;
}

p {
  margin-bottom: 2rem;
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  border-radius: 0.8rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #7e22ce 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  color: white;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid #4f46e5;
  color: #4f46e5;
}

.btn-secondary:hover {
  background-color: #4f46e5;
  color: white;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2.8rem;
  color: #4f46e5;
}

/* Navigation */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.mobile-menu-toggle {
  display: none;
}

/* Mobile menu styles */
@media (max-width: 991px) {
  .mobile-menu-toggle {
    display: block;
    z-index: 101;
  }

  .menu-open, .menu-close {
    font-size: 2.4rem;
    color: #4f46e5;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 28rem;
    height: 100vh;
    background: white;
    padding: 8rem 2rem 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
  }

  .main-nav.menu-active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Hero Section */
.hero {
  padding: 8rem 0;
  text-align: center;
}

.hero-content {
  max-width: 80rem;
  margin: 0 auto;
}

.hero h1 {
  font-size: 5rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #4f46e5 0%, #f43f5e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 2rem;
  margin-bottom: 4rem;
  animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  animation: fadeInUp 1s ease 0.4s backwards;
}

/* Sections common styles */
.section {
  padding: 8rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 6rem;
}

.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 8rem;
  height: 0.4rem;
  background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
  border-radius: 0.2rem;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image img {
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    order: -1; /* Move image above text in mobile view */
    margin-bottom: 3rem;
  }
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 3rem;
}

.service-card {
  background: white;
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-image {
  width: 100%;
  height: 16rem;
  margin: 0 auto 2rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-title {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #4f46e5;
}

/* Benefits Section */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 3rem;
}

.benefit-item {
  text-align: center;
  padding: 2rem;
}

.benefit-icon {
  font-size: 3.2rem;
  color: #06b6d4;
  margin-bottom: 1.5rem;
}

/* Testimonials Section */
.testimonials-slider {
  max-width: 80rem;
  margin: 0 auto;
}

.testimonial-card {
  background: white;
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin: 2rem;
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 2rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author-image {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1.5rem;
}

.testimonial-author-name {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.testimonial-author-role {
  font-size: 1.4rem;
  color: #6b7280;
}

/* Certifications Section */
.certifications-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
}

.certification-item {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  width: 20rem;
  text-align: center;
}

/* FAQ Section - PHP implementation */
.faq-container {
  max-width: 80rem;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 2rem;
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
  background: white;
  padding: 2rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 2rem;
  color: #4f46e5;
}

.faq-answer {
  background: rgba(255, 255, 255, 0.8);
  padding: 0 2rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-question::after {
  content: '-';
}

.faq-item.active .faq-answer {
  padding: 2rem;
  max-height: 50rem;
}

/* Contact Form */
.contact-form {
  max-width: 60rem;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  padding: 4rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 2.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 1.2rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
  outline: none;
}

.form-check {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.form-check-input {
  margin-right: 1rem;
  margin-top: 0.3rem;
}

.form-submit {
  width: 100%;
}

/* Footer */
.site-footer {
  background: #1f2937;
  color: white;
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 4rem;
}

.footer-heading {
  color: white;
  margin-bottom: 2rem;
}

.footer-description {
  margin-bottom: 2rem;
}

.footer-contact p {
  margin-bottom: 1rem;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(31, 41, 55, 0.95);
  color: white;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-consent p {
  margin: 0;
  padding-right: 2rem;
}

.cookie-consent a {
  color: #06b6d4;
}

.btn-accept {
  background: #06b6d4;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-accept:hover {
  background: #0891b2;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive Styles */
@media (max-width: 1200px) {
  html {
    font-size: 60%;
  }
}

@media (max-width: 991px) {
  html {
    font-size: 58%;
  }
  
  .hero h1 {
    font-size: 4.2rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 56%;
  }
  
  .hero h1 {
    font-size: 3.6rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .section {
    padding: 6rem 0;
  }
  
  .contact-form {
    padding: 3rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 54%;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .section {
    padding: 4rem 0;
  }
} 