/* 
 * Main Stylesheet
 * Color Palette:
 * - Deep Teal: #008080
 * - Bright Yellow: #FFD700
 * - White: #FFFFFF
 * - Charcoal: #2C2C2C
 * - Gradients: #5F9EA0 → #4B0082
 */

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

html {
  font-size: 62.5%; /* 10px base for easier rem calculations */
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: #2C2C2C;
  background-color: #FFFFFF;
  overflow-x: hidden;
}

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

/* Fix SVG images */
svg {
  width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: #008080;
  transition: color 0.3s ease;
}

a:hover {
  color: #5F9EA0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 8rem 0;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 2rem;
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: 4rem;
}

h2 {
  font-size: 3.2rem;
  position: relative;
  padding-bottom: 1.5rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 0.4rem;
  width: 8rem;
  background: linear-gradient(90deg, #008080, #5F9EA0);
  border-radius: 2px;
}

h3 {
  font-size: 2.4rem;
}

p {
  margin-bottom: 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 5rem;
}

.section-title h2::after {
  left: 50%;
  transform: translateX(-50%);
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  border-radius: 3rem;
  font-weight: 600;
  font-size: 1.6rem;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #008080;
  color: #FFFFFF;
  box-shadow: 0 4px 8px rgba(0, 128, 128, 0.2);
}

.btn-primary:hover {
  background-color: #006666;
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 128, 128, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: #008080;
  border: 2px solid #008080;
}

.btn-secondary:hover {
  background-color: #008080;
  color: #FFFFFF;
  transform: translateY(-3px);
}

/* ===== Header & Navigation ===== */
.main-header {
  padding: 2rem 0;
  position: sticky;
  top: 0;
  background-color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

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

.logo {
  max-width: 180px;
}

.logo img, .footer-logo img {
  width: 100%;
  height: auto;
}

.main-nav .nav-list {
  display: flex;
  align-items: center;
}

.main-nav .nav-list li:not(:last-child) {
  margin-right: 2rem;
}

.main-nav .nav-list a {
  color: #2C2C2C;
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
}

.main-nav .nav-list a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #008080;
  transition: width 0.3s ease;
}

.main-nav .nav-list a:hover::after,
.main-nav .nav-list a.active::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 3rem;
  height: 2rem;
  position: relative;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #2C2C2C;
  margin: 6px 0;
  transition: all 0.3s ease;
  border-radius: 3px;
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, rgba(95, 158, 160, 0.85), rgba(75, 0, 130, 0.85)), url('../img/service-pymes.jpg');
  background-size: cover;
  background-position: center;
  color: #FFFFFF;
  padding: 12rem 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 4.8rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease;
}

.hero p {
  font-size: 2rem;
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  animation: fadeIn 1.2s ease;
}

/* ===== About Section ===== */
.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4rem;
}

.about-text {
  flex: 1 1 50%;
  min-width: 280px;
}

.about-image {
  flex: 1 1 40%;
  min-width: 280px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.about-image:hover {
  transform: translateY(-10px);
}

.about-features {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
}

.about-feature {
  flex: 1 1 30%;
  min-width: 200px;
  padding: 2rem;
  background-color: #FFFFFF;
  border-radius: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.about-feature:hover {
  transform: translateY(-5px);
}

.about-feature-icon {
  width: 5rem;
  height: 5rem;
  margin-bottom: 1.5rem;
  color: #008080;
}

/* ===== Services Section ===== */
.services {
  background-color: #f9f9f9;
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
}

.service-card {
  flex: 1 1 30%;
  min-width: 280px;
  background: #FFFFFF;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-content {
  padding: 2.5rem;
}

.service-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: #008080;
  margin: 1rem 0;
}

.service-features {
  margin: 2rem 0;
}

.service-features li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 2.5rem;
}

.service-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #008080;
  font-weight: bold;
}

/* ===== Why Us Section ===== */
.why-us-content {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
}

.why-us-image {
  flex: 1 1 42%;
  min-width: 280px;
  position: relative;
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  max-height: 380px;
}

.why-us-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.why-us-image:hover img {
  transform: scale(1.05);
}

.why-us-text {
  flex: 1 1 48%;
  min-width: 280px;
}

.benefits-list {
  margin: 2rem 0;
}

.benefits-list li {
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 3rem;
}

.benefits-list li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 2rem;
  height: 2rem;
  background-color: #FFD700;
  border-radius: 50%;
}

.benefits-list li:after {
  content: "✓";
  position: absolute;
  left: 0.5rem;
  top: 0.3rem;
  color: #FFFFFF;
  font-weight: bold;
}

/* ===== Testimonials Section ===== */
.testimonials {
  background: linear-gradient(135deg, #5F9EA0, #4B0082);
  color: #FFFFFF;
}

.testimonials h2::after {
  background: #FFD700;
}

.testimonials-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
}

.testimonial-card {
  flex: 1 1 30%;
  min-width: 280px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 3rem;
  position: relative;
}

.testimonial-card:before {
  content: """;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 8rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.2);
  font-family: Georgia, serif;
}

.testimonial-content {
  margin-bottom: 2rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.testimonial-name {
  font-weight: 700;
}

.testimonial-position {
  font-size: 1.4rem;
  opacity: 0.8;
}

/* ===== Contact Form Section ===== */
.contact {
  background-color: #f9f9f9;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
}

.contact-info {
  flex: 1 1 35%;
  min-width: 280px;
}

.contact-form-container {
  flex: 1 1 55%;
  min-width: 280px;
}

.contact-form {
  background-color: #FFFFFF;
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

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

.form-label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 1.2rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-size: 1.6rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: #008080;
  outline: none;
}

.form-select {
  width: 100%;
  padding: 1.2rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-size: 1.6rem;
  appearance: none;
  background-image: url('../img/arrow-down.svg');
  background-repeat: no-repeat;
  background-position: right 1.5rem center;
  background-size: 1.5rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 1rem;
  margin-top: 0.3rem;
}

.checkbox-group label {
  font-size: 1.4rem;
}

.submit-btn {
  width: 100%;
  padding: 1.5rem;
  font-size: 1.8rem;
}

/* ===== Footer ===== */
.main-footer {
  background-color: #2C2C2C;
  color: #FFFFFF;
  padding: 6rem 0 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  padding-bottom: 4rem;
}

.footer-info {
  flex: 1 1 30%;
  min-width: 280px;
}

.footer-logo {
  margin-bottom: 2rem;
  max-width: 150px;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.footer-contact, .footer-links, .footer-legal {
  flex: 1 1 20%;
  min-width: 200px;
}

.footer-contact ul, .footer-links ul, .footer-legal ul {
  margin-top: 1.5rem;
}

.footer-contact li, .footer-links li, .footer-legal li {
  margin-bottom: 1rem;
}

.footer-contact a, .footer-links a, .footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-contact a:hover, .footer-links a:hover, .footer-legal a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== Cookie Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(44, 44, 44, 0.95);
  color: #FFFFFF;
  padding: 2rem;
  z-index: 1002;
  display: none;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-content p {
  margin-bottom: 0;
}

.cookie-content a {
  color: #FFD700;
  text-decoration: underline;
}

.cookie-content button {
  white-space: nowrap;
  padding: 1rem 2.5rem;
  background-color: #FFD700;
  color: #2C2C2C;
  font-weight: 700;
  border: none;
  border-radius: 3rem;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  transition: all 0.3s ease;
}

.cookie-content button:hover {
  background-color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== Legal Pages ===== */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 0;
}

.legal-page h1 {
  margin-bottom: 3rem;
}

.legal-page h2 {
  margin-top: 4rem;
}

.legal-page p, .legal-page ul, .legal-page ol {
  margin-bottom: 2rem;
}

.legal-page ul, .legal-page ol {
  margin-left: 2rem;
}

.legal-page ul {
  list-style-type: disc;
}

.legal-page ol {
  list-style-type: decimal;
}

/* ===== Thank You Page ===== */
.thank-you {
  text-align: center;
  padding: 8rem 0;
}

.thank-you img {
  width: 120px;
  margin: 0 auto 3rem;
}

.thank-you h1 {
  color: #008080;
}

.thank-you-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 3rem;
}

/* Form Error */
.form-error {
  background-color: #ffebee;
  color: #c62828;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  border-left: 4px solid #c62828;
}

/* Cookies Table */
.cookies-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.cookies-table th, .cookies-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.cookies-table th {
  background-color: #f5f5f5;
  font-weight: 600;
}

/* ===== Media Queries ===== */
@media (max-width: 992px) {
  html {
    font-size: 56.25%; /* 9px base */
  }
  
  section {
    padding: 6rem 0;
  }
  
  .testimonial-card {
    flex: 1 1 45%;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 50%; /* 8px base */
  }
  
  section {
    padding: 5rem 0;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #FFFFFF;
    flex-direction: column;
    align-items: flex-start;
    padding: 8rem 2rem 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 1000;
  }
  
  .nav-list.active {
    right: 0;
  }
  
  .main-nav .nav-list li {
    width: 100%;
    margin-right: 0;
    margin-bottom: 1.5rem;
  }
  
  .main-nav .nav-list a {
    display: block;
    width: 100%;
    padding: 1rem 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .hero {
    padding: 8rem 0;
  }
  
  .hero h1 {
    font-size: 3.6rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .testimonial-card {
    flex: 1 1 100%;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  section {
    padding: 4rem 0;
  }
  
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.4rem;
  }
  
  .hero {
    padding: 6rem 0;
  }
} 