/* 
* Main styles for domain website
* Colors:
* - Background: #0F172A
* - Accent: #38BDF8, #FBBF24
* - Text: #F8FAFC
* - Blocks: gradient from #1E3A8A to #0E7490
*/

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0f172a;
  color: #f8fafc;
  line-height: 1.6;
}

section[id] {
  scroll-margin-top: 40px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 20px;
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 15px;
}

a {
  color: #38bdf8;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #fbbf24;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #38bdf8, #fbbf24);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(90deg, #38bdf8, #0e7490);
  color: #f8fafc;
  box-shadow: 0 4px 10px rgba(14, 116, 144, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(90deg, #0e7490, #38bdf8);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(14, 116, 144, 0.4);
  color: #f8fafc;
}

.btn-secondary {
  background: linear-gradient(90deg, #fbbf24, #ea580c);
  color: #f8fafc;
  box-shadow: 0 4px 10px rgba(251, 191, 36, 0.3);
}

.btn-secondary:hover {
  background: linear-gradient(90deg, #ea580c, #fbbf24);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(251, 191, 36, 0.4);
  color: #f8fafc;
}

.btn-text {
  color: #38bdf8;
  padding: 0;
  background: transparent;
  text-transform: none;
  font-weight: 500;
}

.btn-text:hover {
  color: #fbbf24;
  background: transparent;
  transform: none;
  box-shadow: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(15, 23, 42, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  padding: 15px 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #f8fafc;
  text-transform: lowercase;
  position: relative;
  text-shadow: 0 0 10px #38bdf8, 0 0 20px #38bdf8, 0 0 30px #38bdf8;
  letter-spacing: 1px;
}

.logo:hover {
  color: #f8fafc;
}

/* Menu Toggle (Burger) */
.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.bar {
  height: 3px;
  width: 100%;
  background-color: #f8fafc;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Navigation */
.nav-list {
  display: flex;
  list-style: none;
}

.nav-list li {
  margin-left: 25px;
}

.nav-list a {
  color: #f8fafc;
  font-weight: 500;
  padding: 5px 0;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #38bdf8, #fbbf24);
  transition: width 0.3s ease;
}

.nav-list a:hover::after {
  width: 100%;
}

.language-selector {
  display: flex;
  margin-left: 25px;
}

.language-selector a {
  padding: 5px 8px;
  margin-left: 5px;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 600;
}

.language-selector a.active {
  background-color: #38bdf8;
  color: #0f172a;
}

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  background-image: url("./img/THri1.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(30, 58, 138, 0.85),
    rgba(14, 116, 144, 0.85)
  );
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

/* Card Styles */
.card {
  background: linear-gradient(135deg, #1e3a8a 0%, #0e7490 100%);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.card img {
  width: 100%;
  object-fit: cover;
}

.card h3 {
  padding: 20px 20px 10px;
  color: #f8fafc;
}

.card p {
  padding: 0 20px 20px;
  flex-grow: 1;
}

.card .btn {
  margin: 0 20px 20px;
  align-self: flex-start;
}

/* Sections */
section {
  padding: 80px 0;
}

.advantages,
.services,
.blog {
  background-color: #0f172a;
}

.testimonials,
.contact,
.faq,
.map-section {
  background-color: #0c1323;
}

/* Testimonial Cards */
.testimonial-card {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: rgba(56, 189, 248, 0.2);
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
}

.client-name {
  font-weight: 600;
  color: #fbbf24;
}

/* Contact Form */
.contact-container {
  background: linear-gradient(135deg, #1e3a8a 0%, #0e7490 100%);
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 2fr;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.contact-info {
  padding: 40px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form {
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  color: #f8fafc;
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.3);
}

.form-group select option {
  background-color: #0f172a;
  color: #f8fafc;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
}

.checkbox-group input {
  width: auto;
  margin-right: 10px;
  margin-top: 5px;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: 400;
  font-size: 0.9rem;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.faq-toggle {
  display: none;
}

.faq-question {
  display: block;
  padding: 20px;
  background: linear-gradient(90deg, #1e3a8a, #0e7490);
  color: #f8fafc;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-toggle:checked + .faq-question::after {
  content: "-";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
  transition: max-height 0.3s ease;
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 20px;
}

/* Blog Cards */
.blog-card {
  background-color: #1e293b;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.blog-card img {
  width: 100%;
  height: 250px; /* Fixed height for consistent appearance */
  object-fit: cover;
  object-position: center;
}

.blog-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-content h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  line-height: 1.3;
  color: #f8fafc;
}

.blog-date {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.blog-excerpt {
  margin-bottom: 15px;
  flex-grow: 1;
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.blog-card .btn-text {
  margin-top: auto;
  align-self: flex-start;
}

/* Map Section */
.map-container {
  height: 450px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.map-container iframe {
  border: none;
  display: block;
}

/* Footer */
.site-footer {
  background-color: #0c1323;
  padding: 60px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(56, 189, 248, 0.3);
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 15px;
  display: block;
  text-shadow: 0 0 10px #38bdf8, 0 0 20px #38bdf8;
}

.footer-description {
  color: #94a3b8;
  font-size: 0.9rem;
}

.contact-list,
.footer-links {
  list-style: none;
}

.contact-list li,
.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #38bdf8;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #94a3b8;
}

/* Cookie Consent Popup */
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background-color: rgba(15, 23, 42, 0.95);
  padding: 20px;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  transition: bottom 0.5s ease;
  backdrop-filter: blur(10px);
}

.cookie-popup.show {
  bottom: 0;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-content p {
  margin-bottom: 0;
  margin-right: 20px;
  flex: 1;
}

/* Policy Pages */
.policy-section {
  padding: 100px 0;
}

.policy-content {
  background: linear-gradient(135deg, #1e3a8a 0%, #0e7490 100%);
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  max-width: 1000px;
  margin: 0 auto;
}

.policy-content h1 {
  margin-bottom: 30px;
  text-align: center;
  border-bottom: 2px solid rgba(56, 189, 248, 0.3);
  padding-bottom: 20px;
}

.policy-text h2 {
  margin-top: 40px;
  font-size: 1.5rem;
  color: #fbbf24;
}

.policy-text ul,
.policy-text ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.policy-text li {
  margin-bottom: 10px;
}

/* Cookie Table */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.cookie-table th,
.cookie-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-table th {
  background-color: rgba(0, 0, 0, 0.2);
  font-weight: 600;
}

.cookie-table tr:last-child td {
  border-bottom: none;
}

/* Gracias Page */
.gracias-section {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80vh;
  min-height: 500px;
}

.gracias-content {
  text-align: center;
  background: linear-gradient(135deg, #1e3a8a 0%, #0e7490 100%);
  padding: 50px;
  border-radius: 10px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  margin: 0 auto;
}

.gracias-content h1 {
  margin-bottom: 20px;
}

.gracias-content p {
  margin-bottom: 30px;
}

/* Main Content Wrapper */
.site-content {
  min-height: calc(100vh - 270px); /* Account for header and footer */
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .contact-info {
    padding: 30px;
    text-align: center;
  }

  .blog-card img {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .menu-icon {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
  }

  .menu-toggle:checked ~ .main-nav {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .nav-list {
    flex-direction: column;
  }

  .nav-list li {
    margin: 0 0 15px;
  }

  .language-selector {
    margin: 15px 0 0;
    justify-content: center;
  }

  .hero {
    height: 70vh;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-content p {
    margin-bottom: 15px;
    margin-right: 0;
  }

  .policy-content {
    padding: 30px 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .blog .card-grid {
    gap: 25px;
  }

  .blog-card img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 60vh;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .contact-form,
  .contact-info {
    padding: 20px;
  }

  .gracias-content {
    padding: 30px 20px;
  }

  .blog-card img {
    height: 180px;
  }

  .blog-content h3 {
    font-size: 1.2rem;
  }
}

.blog .card-grid {
  gap: 30px;
  margin-top: 20px;
}
