/* 
 * Main stylesheet for domain.com
 * Financial Audit Services in Portugal
 */

/* =================== */
/* === CSS RESETS === */
/* =================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
  font-family: "Arial", sans-serif;
}

body {
  background-color: #f5f5f7;
  color: #0e0e0e;
  line-height: 1.6;
  overflow-x: hidden;
}

section[id] {
  scroll-margin-top: 80px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ====================== */
/* === COLOR CLASSES === */
/* ====================== */
.text-primary {
  color: #3b2f63;
}

.text-accent-green {
  color: #a2fc92;
}

.text-accent-coral {
  color: #ff7168;
}

.bg-gradient {
  background: linear-gradient(135deg, #3b2f63 0%, #657bca 100%);
  color: white;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #3b2f63 0%, #657bca 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(59, 47, 99, 0.3);
}

.btn-secondary {
  display: inline-block;
  background-color: #a2fc92;
  color: #0e0e0e;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-secondary:hover,
.btn-secondary:focus {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(162, 252, 146, 0.3);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: #3b2f63;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid #3b2f63;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-outline:hover,
.btn-outline:focus {
  background: #3b2f63;
  color: white;
}

/* =================== */
/* === TYPOGRAPHY === */
/* =================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  margin-bottom: 1.5rem;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #3b2f63 0%, #657bca 100%);
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  display: inline-block;
}

.section-title h2::after {
  left: 50%;
  transform: translateX(-50%);
}

/* =================== */
/* === HEADER === */
/* =================== */
header {
  background-color: rgba(245, 245, 247, 0.95);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #3b2f63 0%, #657bca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

/* Navigation Menu */
nav {
  position: relative;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-menu li a {
  font-weight: 600;
}

.nav-menu li a:hover {
  color: #657bca;
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 20;
}

.menu-icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #3b2f63;
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

.menu-icon span:nth-child(1) {
  top: 0px;
}

.menu-icon span:nth-child(2) {
  top: 10px;
}

.menu-icon span:nth-child(3) {
  top: 20px;
}

/* Mobile menu styles */
@media (max-width: 991px) {
  .menu-icon {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: #f5f5f7;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 80px;
    transition: right 0.3s ease;
    box-shadow: -5px 0px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu li a {
    padding: 15px;
    display: block;
    text-align: center;
  }

  /* CSS checkbox hack for mobile menu toggle */
  .menu-toggle:checked ~ .nav-menu {
    right: 0;
  }

  .menu-toggle:checked ~ .menu-icon span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
  }

  .menu-toggle:checked ~ .menu-icon span:nth-child(2) {
    opacity: 0;
    left: -60px;
  }

  .menu-toggle:checked ~ .menu-icon span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
  }
}

/* =================== */
/* === SECTIONS === */
/* =================== */
section {
  padding: 80px 0;
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  background: url("./img/XISMY.jpg") center/cover no-repeat;
  color: white;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgb(101 133 99 / 80%),
    rgb(208 213 229 / 70%)
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 2rem;
}

.service-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-card-img {
  height: 200px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .service-card-img img {
  transform: scale(1.1);
}

.service-card-content {
  padding: 1.5rem;
  color: #4a4987;
}

.service-card h3 {
  margin-bottom: 1rem;
}

/* About Section */
.about {
  background-color: white;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  align-items: center;
}

.about-image img {
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-content h2::after {
  left: 0;
  transform: none;
}

/* Advantages Section */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 30px;
}

.advantage-item {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.advantage-item:hover {
  transform: translateY(-5px);
}

.advantage-icon {
  font-size: 2.5rem;
  color: #657bca;
  margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials {
  background-color: white;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: #f5f5f7;
  border-radius: 10px;
  padding: 2rem;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 5rem;
  font-family: serif;
  color: rgba(101, 123, 202, 0.2);
  line-height: 1;
}

.testimonial-content {
  position: relative;
  z-index: 1;
}

.testimonial-author {
  margin-top: 1.5rem;
  font-weight: 700;
}

.testimonial-company {
  color: #657bca;
  font-style: italic;
}

/* Contact Form Section */
.contact-form-wrapper {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: #657bca;
  outline: none;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 1rem;
}

.form-check input[type="checkbox"] {
  margin-top: 5px;
}

.error-message {
  color: #ff7168;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Select field with custom background for option tags */
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233B2F63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

select.form-control option {
  background-color: #f5f5f7;
  color: #0e0e0e;
  padding: 10px;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: 5px;
  overflow: hidden;
}

.faq-question {
  background: white;
  padding: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: #657bca;
}

.faq-answer {
  background: #f5f5f7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
}

/* CSS checkbox hack for FAQ */
.faq-toggle {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 500px;
  padding: 1.5rem;
}

.faq-toggle:checked ~ .faq-question::after {
  content: "−";
}

/* =================== */
/* === FOOTER === */
/* =================== */
footer {
  background: linear-gradient(135deg, #3b2f63 0%, #657bca 100%);
  color: white;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.footer-col h3 {
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 40px;
  height: 3px;
  background-color: #a2fc92;
}

.contact-info li {
  margin-bottom: 1rem;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links li a:hover {
  color: #a2fc92;
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* =================== */
/* === COOKIE CONSENT === */
/* =================== */
#cookieConsent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(14, 14, 14, 0.95);
  color: white;
  padding: 20px;
  z-index: 9999;
  display: none;
  justify-content: center;
}

.cookie-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  gap: 20px;
}

#cookieConsent p {
  margin-bottom: 0;
}

#cookieConsent a {
  color: #a2fc92;
  text-decoration: underline;
}

#acceptCookies {
  background: #a2fc92;
  color: #0e0e0e;
  border: none;
  padding: 8px 20px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* =================== */
/* === POLICY PAGES === */
/* =================== */
.policy-page {
  padding: 80px 0;
}

.policy-container {
  background: white;
  border-radius: 10px;
  padding: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.policy-container h1 {
  margin-bottom: 2rem;
}

.policy-container h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.policy-container p {
  margin-bottom: 1.25rem;
}

.policy-container ul,
.policy-container ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.policy-container ul li,
.policy-container ol li {
  margin-bottom: 0.5rem;
}

/* =================== */
/* === THANK YOU PAGE === */
/* =================== */
.thank-you {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.thank-you-container {
  background: white;
  border-radius: 10px;
  padding: 3rem;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.thank-you-icon {
  font-size: 4rem;
  color: #a2fc92;
  margin-bottom: 1.5rem;
}

.thank-you h1 {
  margin-bottom: 1rem;
}

.thank-you p {
  margin-bottom: 2rem;
}

/* =================== */
/* === RESPONSIVE === */
/* =================== */
@media (max-width: 1200px) {
  html {
    font-size: 15px;
  }
}

@media (max-width: 991px) {
  html {
    font-size: 14px;
  }

  section {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 767px) {
  html {
    font-size: 13px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .cookie-container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  section {
    padding: 40px 0;
  }

  .hero {
    min-height: 80vh;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .policy-container,
  .contact-form-wrapper {
    padding: 1.5rem;
  }
}
