/* 
* Main Stylesheet
* domain - Auditoria Financeira 
*/

/* ===== RESET & VARIABLES ===== */
:root {
  /* Color Palette */
  --bg-color: #0c1c2c;
  --accent-red: #e63946;
  --accent-light: #f1faee;
  --accent-blue: #457b9d;
  --accent-teal: #a8dadc;

  /* Text Colors */
  --text-color: #ffffff;
  --heading-color: #f1faee;

  /* Spacing */
  --section-padding: 80px 0;
  --container-padding: 0 20px;

  /* Border Radius */
  --border-radius: 8px;
  --card-radius: 10px;

  /* Transitions */
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

section[id] {
  scroll-margin-top: 40px;
}

body {
  font-family: "Arial", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--accent-teal);
  transition: var(--transition);
}

a:hover {
  color: var(--accent-light);
}

ul,
ol {
  list-style-position: inside;
  margin-bottom: 20px;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: 15px;
}

h2::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--accent-red);
  bottom: 0;
  left: 0;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 20px;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

section {
  padding: var(--section-padding);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  background-color: var(--accent-red);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #c52d3a;
  color: #fff;
  transform: translateY(-3px);
}

.btn-secondary {
  background-color: var(--accent-blue);
}

.btn-secondary:hover {
  background-color: #3a6a8a;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* ===== COOKIE CONSENT ===== */
.cookie-consent {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background-color: rgba(12, 28, 44, 0.95);
  padding: 20px;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  transition: bottom 0.5s ease-in-out;
}

.cookie-consent.active {
  bottom: 0;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-content p {
  margin: 0;
  margin-right: 20px;
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-content p {
    margin-right: 0;
    margin-bottom: 15px;
  }
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(12, 28, 44, 0.95);
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  padding: 15px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: var(--heading-color);
  font-size: 1.8rem;
  font-weight: bold;
  text-transform: lowercase;
  letter-spacing: 1px;
}

/* ===== NAVIGATION ===== */
.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  flex-direction: column;
  width: 30px;
  cursor: pointer;
}

.menu-line {
  background-color: var(--accent-light);
  height: 3px;
  width: 100%;
  margin: 3px 0;
  transition: var(--transition);
}

.main-nav ul {
  display: flex;
  margin-bottom: 0;
  list-style-type: none;
}

.main-nav li {
  margin-left: 20px;
}

.main-nav a {
  color: var(--text-color);
  font-weight: 500;
  padding: 5px 10px;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--accent-red);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: var(--transition);
}

.main-nav a:hover {
  color: var(--heading-color);
}

.main-nav a:hover::after {
  width: 80%;
}

@media (max-width: 991px) {
  .menu-icon {
    display: flex;
  }

  .menu-toggle:checked ~ .menu-icon .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle:checked ~ .menu-icon .menu-line:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked ~ .menu-icon .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
  }

  .menu-toggle:checked ~ .main-nav {
    max-height: 400px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  }

  .main-nav ul {
    flex-direction: column;
    padding: 20px;
  }

  .main-nav li {
    margin: 10px 0;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  height: 80vh;
  min-height: 500px;
  background: linear-gradient(rgba(12, 28, 44, 0.7), rgba(12, 28, 44, 0.9)),
    url("./img/h1Tis.jpg") no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  animation: fadeIn 1s ease-in;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  animation: fadeIn 1.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== ABOUT SECTION ===== */
.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  border-radius: var(--card-radius);
  overflow: hidden;
}

@media (max-width: 767px) {
  .about-content {
    flex-direction: column-reverse;
  }

  .about-image {
    margin-bottom: 30px;
    width: 100%;
  }
}

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.card {
  background-color: rgba(69, 123, 157, 0.1);
  border-radius: var(--card-radius);
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 20px rgba(0, 0, 0, 0.2);
}

.card img {
  border-radius: var(--card-radius) var(--card-radius) 0 0;
  height: 180px;
  object-fit: cover;
  margin: 0 auto 1rem;
  width: calc(100% + 40px);
}

.card h3 {
  color: var(--accent-light);
}

.card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ===== SERVICES ===== */
.services {
  background-color: rgba(17, 38, 59, 0.5);
}

/* ===== WHY CHOOSE US ===== */
.why-us-content {
  display: flex;
  gap: 40px;
}

.why-list {
  flex: 3;
  list-style: none;
}

.why-image {
  flex: 2;
  border-radius: var(--card-radius);
  overflow: hidden;
}

.why-list li {
  display: flex;
  margin-bottom: 30px;
  align-items: flex-start;
}

.why-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--accent-red);
  color: white;
  border-radius: 50%;
  margin-right: 15px;
  flex-shrink: 0;
}

.why-text h3 {
  margin-bottom: 5px;
}

.why-text p {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .why-us-content {
    flex-direction: column;
  }

  .why-image {
    order: -1;
    margin-bottom: 30px;
  }
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  background-color: rgba(17, 38, 59, 0.3);
}

.testimonial {
  text-align: center;
  padding: 30px;
}

.testimonial img {
  display: none;
}

.testimonial-text {
  font-style: italic;
  font-size: 1.1rem;
  position: relative;
  padding: 0 20px;
}

.testimonial-text::before,
.testimonial-text::after {
  content: '"';
  font-size: 2rem;
  color: var(--accent-red);
  position: absolute;
}

.testimonial-text::before {
  left: 0;
  top: -10px;
}

.testimonial-text::after {
  right: 0;
  bottom: -15px;
}

.testimonial-author {
  color: var(--accent-teal);
  font-weight: bold;
  margin-top: 20px;
}

/* ===== FORM SECTION ===== */
.form-section {
  background-color: rgba(69, 123, 157, 0.1);
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.contact-form input,
.contact-form select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(168, 218, 220, 0.3);
  border-radius: var(--border-radius);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-color);
  font-size: 1rem;
}

.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 15px) center;
  padding-right: 35px;
}

/* Style the select option background */
.contact-form select option {
  background-color: var(--bg-color);
  color: var(--text-color);
}

.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;
}

.contact-form button {
  margin-top: 10px;
  width: 100%;
}

/* ===== FAQ SECTION ===== */
.faq-item {
  background-color: rgba(69, 123, 157, 0.1);
  border-radius: var(--border-radius);
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-toggle {
  display: none;
}

.faq-question {
  position: relative;
  padding: 20px;
  display: block;
  cursor: pointer;
  font-weight: bold;
  color: var(--heading-color);
}

.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 {
  transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  padding: 0 20px;
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 500px;
  padding-bottom: 20px;
}

/* ===== CONTACT SECTION ===== */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-item {
  margin-bottom: 30px;
}

.contact-map {
  height: 100%;
  min-height: 300px;
  border-radius: var(--card-radius);
  overflow: hidden;
}

.contact-map iframe {
  height: 100%;
  min-height: 300px;
  border-radius: var(--card-radius);
}

@media (max-width: 767px) {
  .contact-content {
    grid-template-columns: 1fr;
  }

  .contact-map {
    grid-row: 1;
  }
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: rgba(12, 28, 44, 0.95);
  padding: 60px 0 20px;
  margin-top: 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  color: var(--heading-color);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact p {
  margin-bottom: 10px;
}

.footer-links ul,
.footer-legal ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-legal li {
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== THANK YOU PAGE ===== */
.thank-you {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.thank-you-content {
  max-width: 700px;
  padding: 40px;
  background-color: rgba(69, 123, 157, 0.1);
  border-radius: var(--card-radius);
  border: 1px solid rgba(168, 218, 220, 0.3);
}

.thank-you h1 {
  color: var(--accent-teal);
}

.thank-you .btn {
  margin-top: 20px;
}

/* ===== POLICY PAGES ===== */
.policy-page {
  padding-top: 60px;
  padding-bottom: 60px;
}

.policy-content {
  max-width: 900px;
  margin: 0 auto;
  background-color: rgba(69, 123, 157, 0.1);
  padding: 40px;
  border-radius: var(--card-radius);
  border: 1px solid rgba(168, 218, 220, 0.3);
}

.policy-section {
  margin-bottom: 30px;
}

.policy-section:last-of-type {
  margin-bottom: 40px;
}

.policy-date {
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  text-align: right;
  border-top: 1px solid rgba(168, 218, 220, 0.3);
  padding-top: 20px;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 1200px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 991px) {
  :root {
    --section-padding: 60px 0;
  }

  .hero {
    height: 70vh;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }
}

@media (max-width: 767px) {
  :root {
    --section-padding: 50px 0;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .hero {
    height: 60vh;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .policy-content {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .hero {
    height: auto;
    min-height: 400px;
  }
}
