/* ==========================================================================
   Farol Promotora de Crédito — stylesheet
   Modern, framework-free CSS (custom properties, flexbox/grid)
   ========================================================================== */

:root {
  --color-red: #cc092f;
  --color-blue: #333b8f;
  --color-bg-light: #f3f5f8;
  --color-bg-page: #ffffff;
  --color-text: #313131;
  --color-text-soft: #5b5f6b;
  --color-heading: #1c244b;
  --color-off-white: #fbfbfb;
  --gradient-brand: linear-gradient(90deg, var(--color-red) 50%, var(--color-blue) 100%);
  --gradient-brand-reverse: linear-gradient(270deg, var(--color-red) 11%, var(--color-blue) 50%);

  --font-display: "Archivo", sans-serif;
  --font-heading: "Poppins", sans-serif;
  --font-label: "Montserrat", sans-serif;
  --font-body: "Roboto", sans-serif;

  --container-width: 1240px;
  --radius-sm: 6px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg-page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-heading);
  color: var(--color-heading);
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-blue);
  color: #fff;
  padding: 12px 20px;
  z-index: 10000;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background: var(--color-red);
  padding: 18px 48px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: scale(1.04);
  box-shadow: 0 10px 24px rgba(204, 9, 47, 0.35);
}

.btn--outline {
  background: transparent;
  border: 2px solid #fff;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--gradient-brand);
  box-shadow: 0 0 15px 4px rgba(0, 0, 0, 0.35);
  padding: 14px 5%;
  display: flex;
  justify-content: center;
}

.site-header__logo {
  width: 220px;
}

.site-header__logo img {
  width: 100%;
  height: auto;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url("../img/hero-bg.jpg") center center / cover no-repeat;
  padding: 60px 5%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-blue);
  opacity: 0.34;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.hero__eyebrow {
  font-family: var(--font-label);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-blue);
  margin: 0;
}

.hero__title {
  font-family: var(--font-display);
  font-size: 78px;
  line-height: 1em;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--color-off-white);
  margin: 0;
}

.hero__text {
  font-family: var(--font-label);
  font-weight: 300;
  font-size: 20px;
  line-height: 1.3em;
  color: #fff;
  padding: 0 10%;
}

.hero__socials {
  display: flex;
  gap: 18px;
  position: absolute;
  top: 28px;
  right: 5%;
  z-index: 3;
}

.hero__socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero__socials a:hover {
  transform: scale(1.12);
  background: rgba(255, 255, 255, 0.3);
}

.hero__socials svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

/* ---------- Section shell ---------- */

.section {
  padding: 90px 5%;
}

.section--light {
  background: var(--color-bg-light);
}

.section__eyebrow {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.5px;
  color: var(--color-red);
  margin-bottom: 8px;
  display: block;
}

.section__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 42px;
  line-height: 1.2em;
  text-transform: capitalize;
  color: var(--color-blue);
}

.section__title--on-dark {
  color: #fff;
}

/* ---------- Quem Somos ---------- */

.about {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--container-width);
  margin: 0 auto;
}

.about__lead {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.5em;
  color: var(--color-heading);
  margin-top: 22px;
}

.about__video {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 20px 40px rgba(28, 36, 75, 0.18);
}

.about__video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Como Fazemos ---------- */

.how {
  max-width: var(--container-width);
  margin: 0 auto;
  text-align: center;
}

.how .section__title {
  margin-bottom: 50px;
}

.how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: left;
}

.how__card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(28, 36, 75, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.how__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(28, 36, 75, 0.14);
}

.how__card img {
  width: 100%;
  aspect-ratio: 540 / 300;
  object-fit: cover;
}

.how__card-body {
  padding: 26px 28px 32px;
}

.how__card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 0.5px;
  color: var(--color-blue);
  margin-bottom: 12px;
}

.how__card-text {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.6em;
  color: var(--color-text);
}

/* ---------- Cadastro / Formulário ---------- */

.cadastro {
  background: var(--color-blue);
  text-align: center;
}

.cadastro__heading {
  max-width: 720px;
  margin: 0 auto 46px;
}

.cadastro__heading .section__eyebrow {
  color: #fff;
  text-align: center;
}

.cadastro-form {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 46px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  text-align: left;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-heading);
}

.form-field input,
.form-field select {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 16px;
  border: 1px solid #dfe2ea;
  border-radius: var(--radius-sm);
  background: #f9fafc;
  color: var(--color-text);
  width: 100%;
}

.form-field input:focus,
.form-field select:focus {
  outline: 2px solid var(--color-blue);
  outline-offset: 1px;
  background: #fff;
}

.form-field--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}

.form-field--checkbox input {
  margin-top: 4px;
  width: auto;
}

.form-field--checkbox label {
  font-weight: 400;
  font-size: 14px;
  color: var(--color-text-soft);
}

.cadastro-form .btn {
  width: 100%;
  margin-top: 6px;
}

.form-status {
  margin-top: 16px;
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--color-blue);
  text-align: center;
  min-height: 20px;
}

/* ---------- Depoimentos ---------- */

.testimonials {
  max-width: var(--container-width);
  margin: 0 auto;
  text-align: center;
}

.testimonials .section__title {
  margin-bottom: 46px;
}

.testimonial-carousel {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.testimonial-track {
  overflow: hidden;
}

.testimonial-slides {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-slide {
  flex: 0 0 100%;
  padding: 10px 60px;
}

.testimonial-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: 0 12px 30px rgba(28, 36, 75, 0.08);
}

.testimonial-card__text {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7em;
  color: var(--color-text);
  font-style: italic;
}

.testimonial-card__name {
  display: block;
  margin-top: 22px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-blue);
  font-style: normal;
}

.testimonial-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e4e7f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-blue);
  transition: background 0.2s ease;
}

.testimonial-nav:hover {
  background: var(--color-bg-light);
}

.testimonial-nav--prev {
  left: -10px;
}

.testimonial-nav--next {
  right: -10px;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.testimonial-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #d7dae5;
  cursor: pointer;
  padding: 0;
}

.testimonial-dots button.is-active {
  background: var(--color-red);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--gradient-brand-reverse);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.site-footer__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 70px 5%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.site-footer__logo img {
  width: 220px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 15px;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  fill: #fff;
  flex-shrink: 0;
}

.footer-socials {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

.footer-socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: transform 0.2s ease, background 0.2s ease;
}

.footer-socials a:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.3);
}

.footer-socials svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.site-footer__bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding: 22px 5% 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-width);
  margin: 0 auto;
  font-size: 14px;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.site-footer__legal a:hover {
  text-decoration: underline;
}

/* ---------- Legal pages ---------- */

.legal-hero {
  background: var(--gradient-brand);
  color: #fff;
  padding: 90px 5% 60px;
  text-align: center;
}

.legal-hero h1 {
  font-family: var(--font-heading);
  font-size: 42px;
  color: #fff;
}

.legal-hero p {
  margin-top: 12px;
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.85);
}

.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 70px 24px 100px;
  line-height: 1.75;
  color: var(--color-text);
}

.legal-content h2 {
  color: var(--color-blue);
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 14px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: 16px;
}

.legal-content ul {
  margin: 0 0 16px 0;
  padding-left: 22px;
  list-style: disc;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content strong {
  color: var(--color-heading);
}

/* ---------- Cookie banner ---------- */

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  padding: 26px 28px;
  z-index: 2000;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner h2 {
  font-size: 18px;
  color: var(--color-heading);
  margin-bottom: 10px;
}

.cookie-banner p {
  font-size: 14px;
  color: var(--color-text-soft);
  line-height: 1.6;
  margin-bottom: 18px;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-banner__actions button {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
}

.cookie-accept {
  background: var(--color-red);
  color: #fff;
}

.cookie-decline {
  background: transparent;
  border-color: #d7dae5;
  color: var(--color-text);
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .about {
    grid-template-columns: 1fr;
  }

  .how__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-contact {
    align-items: center;
  }

  .footer-socials {
    justify-content: center;
  }

  .hero__title {
    font-size: 56px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 60px 6%;
  }

  .hero {
    min-height: 90vh;
    padding-top: 100px;
  }

  .hero__title {
    font-size: 41px;
    line-height: 1.1em;
  }

  .hero__text {
    padding: 0;
    font-size: 17px;
  }

  .hero__socials {
    display: none;
  }

  .section__title {
    font-size: 28px;
  }

  .cadastro-form {
    padding: 28px 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-slide {
    padding: 10px 0;
  }

  .testimonial-nav {
    display: none;
  }

  .site-footer__bottom {
    justify-content: center;
    text-align: center;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 20px;
  }
}
