/* Main styles for domain - Financial Audit Services
   Author: Professional Web Developer
   Date: 2023
*/

/* Global Styles */
:root {
  --bg-color: #f1f7f6;
  --primary: #0c426f;
  --accent: #f25c54;
  --white: #ffffff;
  --highlight: #fcefef;
  --text-dark: #222;
  --text-light: rgb(170, 170, 170);
  --container-width: 1200px;
  --header-height: 80px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

section[id] {
  scroll-margin-top: 40px;
}

body {
  font-family: "Poppins", Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--primary);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
  color: rgb(68, 68, 68);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--accent);
}
.contact-info p,
footer p {
  color: var(--text-light);
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--primary);
  color: var(--white);
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  transition: all 0.3s;
  border: 2px solid var(--primary);
  cursor: pointer;
}

.btn:hover {
  background: transparent;
  color: var(--primary);
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-accent:hover {
  background: transparent;
  color: var(--accent);
}

.section-padding {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  display: block;
  width: 60%;
  height: 3px;
  background: var(--accent);
  margin: 10px auto 0;
}

.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* Header Styles */
header {
  background: var(--white);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  font-weight: 500;
}

/* Mobile Navigation */
.menu-toggle {
  display: none;
}

#menu-checkbox {
  display: none;
}

/* Hero Section */
.hero {
  height: calc(100vh - var(--header-height));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--white);
}

/* About Section */
.about {
  background: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* Services Section */
.services .service-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.services .service-card:hover {
  transform: translateY(-10px);
}

.service-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.service-content {
  padding: 25px;
}

.service-content h3 {
  margin-bottom: 15px;
}

/* Why Us Section */
.why-us {
  background: var(--highlight);
}

.why-us-item {
  background: var(--white);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.why-us-item img {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

/* Testimonials Section */
.testimonials {
  background: var(--white);
}

.testimonial-card {
  background: var(--highlight);
  padding: 30px;
  border-radius: 8px;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 60px;
  color: var(--primary);
  opacity: 0.2;
}

.client-info {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.client-info img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
}

/* FAQ Section */
.faq {
  background: var(--highlight);
}

.faq-item {
  background: var(--white);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  position: relative;
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  display: block;
  color: var(--primary);
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
}

.faq-checkbox {
  display: none;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-content {
  padding: 0 20px 20px;
}

.faq-checkbox:checked ~ .faq-answer {
  max-height: 1000px;
}

.faq-checkbox:checked + .faq-question::after {
  content: "-";
}

/* Contact Form Section */
.contact {
  background: var(--white);
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  outline: none;
}

select {
  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='currentColor' 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 15px center;
  background-size: 15px;
  padding-right: 45px;
}

/* Style select option backgrounds */
select option {
  background-color: var(--white);
  color: var(--text-dark);
  padding: 10px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 5px;
  margin-right: 10px;
}

/* Contact Info Section */
.contact-info {
  background: var(--primary);
  color: var(--white);
  padding: 50px 0;
}

.contact-info h3 {
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
}

.contact-item i {
  margin-right: 15px;
  font-size: 24px;
  color: var(--accent);
}

/* Footer */
footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 30px 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-links h4 {
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #aaa;
}

.footer-links ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

/* Obrigado Page */
.thank-you {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 300px);
}

.thank-you-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background: var(--white);
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffc1c1;
  color: var(--white);
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
}

.cookie-text {
  margin-right: 20px;
}

/* Policy Pages */
.policy-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 30px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.policy-container h1 {
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--accent);
}

.policy-container h2 {
  margin-top: 40px;
  margin-bottom: 20px;
}

.policy-container p,
.policy-container ul,
.policy-container ol {
  margin-bottom: 20px;
}

.policy-container ul,
.policy-container ol {
  margin-left: 20px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .menu-toggle {
    display: block;
    font-size: 24px;
    cursor: pointer;
  }

  nav {
    position: absolute;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    background: var(--white);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
  }

  #menu-checkbox:checked ~ nav {
    left: 0;
  }

  nav ul {
    flex-direction: column;
    padding: 20px 0;
  }

  nav ul li {
    margin: 0;
    width: 100%;
    text-align: center;
  }

  nav ul li a {
    display: block;
    padding: 15px;
    border-bottom: 1px solid #eee;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .cookie-consent {
    flex-direction: column;
  }

  .cookie-text {
    margin-right: 0;
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 13px;
  }
}
