/* Main styles for domain */

/* Color palette */
:root {
  --primary: #16E0BD;    /* Main color: turquoise-green */
  --secondary: #1E1E2F;  /* Secondary: deep graphite */
  --accent: #FF5A5F;     /* Accent: coral-red */
  --background: #E9F0F4; /* Background: light blue-gray */
  --text: #0A2342;       /* Text: dark blue */
  --white: #ffffff;
  --light-gray: #f5f5f5;
}

/* Base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
  font-family: 'Arial', sans-serif;
  font-size: 16px;
  color: var(--text);
}

body {
  background-color: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
}

section[id] {
  scroll-margin-top: 40px;
  padding: 4rem 1rem;
}

div {
  word-break: break-word;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1.5rem;
  color: var(--secondary);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

h2:after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background-color: var(--primary);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
}

button, .btn {
  background-color: var(--primary);
  color: var(--white);
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

button:hover, .btn:hover {
  background-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header and navigation */
header {
  background-color: var(--secondary);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary);
  text-decoration: none;
}

/* Hamburger menu */
.menu-toggle {
  display: none;
}

.menu-btn {
  display: none;
  cursor: pointer;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 2rem;
}

.nav-menu a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Hero section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 35, 66, 0.7);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Card grid layouts */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 2rem 0;
}

.card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img {
  height: 200px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-img img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
  flex: 1;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--secondary);
}

/* About section */
.about {
  background-color: var(--white);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Services section */
.services {
  background-color: var(--background);
}

/* Advantages section */
.advantages {
  background-color: var(--white);
}

.advantage-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.advantage-icon {
  background-color: var(--primary);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

/* Case studies section */
.cases {
  background-color: var(--background);
}

/* Testimonials section */
.testimonials {
  background-color: var(--white);
}

.testimonial-card {
  padding: 2rem;
  text-align: center;
}

.testimonial-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-name {
  font-weight: bold;
  color: var(--primary);
}

/* FAQ Section */
.faq {
  background-color: var(--background);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: 5px;
  overflow: hidden;
}

.faq-question {
  display: block;
  padding: 1rem;
  background-color: var(--white);
  font-weight: bold;
  cursor: pointer;
  position: relative;
  border-left: 4px solid var(--primary);
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.faq-checkbox {
  display: none;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: var(--white);
  transition: max-height 0.3s ease;
  padding: 0 1rem;
}

.faq-checkbox:checked + .faq-question::after {
  content: '−';
}

.faq-checkbox:checked + .faq-question + .faq-answer {
  max-height: 500px;
  padding: 1rem;
}

/* Contact form section */
.form-section {
  background-color: var(--white);
  padding: 4rem 0;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--background);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.form-input,
.form-select {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  background-color: var(--white);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(22, 224, 189, 0.2);
}

.form-select option {
  background-color: var(--white);
  color: var(--text);
}

.form-checkbox {
  margin-right: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.form-submit {
  width: 100%;
  margin-top: 1rem;
}

/* Thank you page */
.thank-you {
  margin: 8rem auto 5rem;
  max-width: 600px;
  padding: 3rem;
  background-color: var(--white);
  border-radius: 10px;
  border: 2px solid var(--primary);
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  background-color: var(--secondary);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-section p {
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--white);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.contact-icon {
  margin-right: 10px;
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie popup */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--secondary);
  color: var(--white);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.cookie-content {
  flex: 1;
}

.cookie-btn {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  margin-left: 1rem;
}

.cookie-btn:hover {
  background-color: var(--accent);
}

/* Policy pages */
.policy-page {
  max-width: 800px;
  margin: 4rem auto;
  padding: 2rem;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.policy-page h1 {
  text-align: center;
  margin-bottom: 2rem;
}

.policy-page h2 {
  margin-top: 2rem;
  text-align: left;
}

.policy-page h2:after {
  left: 0;
  transform: none;
  width: 70px;
}

/* Media queries for responsive design */
@media screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1;
  }
  
  .menu-btn span,
  .menu-btn span::before,
  .menu-btn span::after {
    display: block;
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease-in-out;
  }
  
  .menu-btn span::before {
    content: '';
    top: -10px;
  }
  
  .menu-btn span::after {
    content: '';
    top: 10px;
  }
  
  .menu-toggle:checked ~ .menu-btn span {
    transform: rotate(45deg);
  }
  
  .menu-toggle:checked ~ .menu-btn span::before {
    top: 0;
    transform: rotate(0deg);
    opacity: 0;
  }
  
  .menu-toggle:checked ~ .menu-btn span::after {
    top: 0;
    transform: rotate(90deg);
  }
  
  .nav-menu {
    position: absolute;
    top: 60px;
    left: 0;
    background-color: var(--secondary);
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
  }
  
  .nav-menu li {
    margin: 1rem 0;
  }
  
  .menu-toggle:checked ~ .nav-menu {
    max-height: 100dvh;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}
