/* ============================================
   CLICK PRIME SEGUROS — Main Styles
   Secoes 02-11 + Footer
   ============================================ */

/* --- Hero Variant: Photo --- */
.hero--photo .hero__title,
.hero--photo .hero__subtitle {
  color: #FFFFFF;
}

.hero--photo .hero__subtitle {
  color: rgba(255,255,255,0.85);
}

.hero--photo .hero__topic {
  background-color: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
  color: #FFFFFF;
}

/* Glassmorphism header over photo hero */
body.has-hero-photo .header,
body:has(.hero--photo) .header {
  background: transparent;
}

body.has-hero-photo .header--scrolled,
body:has(.hero--photo) .header--scrolled {
  background: var(--color-primary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.has-hero-photo .header:not(.header--scrolled) .header__nav a,
body:has(.hero--photo) .header:not(.header--scrolled) .header__nav a,
body.has-hero-photo .header:not(.header--scrolled) .header__logo img,
body:has(.hero--photo) .header:not(.header--scrolled) .header__logo img {
  filter: brightness(0) invert(1);
}

body.has-hero-photo .header:not(.header--scrolled) .header__menu-toggle span,
body:has(.hero--photo) .header:not(.header--scrolled) .header__menu-toggle span {
  background-color: #FFFFFF;
}

/* --- Section Base --- */
.section__title {
  text-align: center;
  margin-bottom: var(--space-md);
}

.section__intro {
  text-align: center;
  max-width: var(--max-width-narrow);
  margin: 0 auto var(--space-xl);
  color: var(--color-muted);
  font-size: var(--text-lg);
}

.section__cta {
  text-align: center;
  margin-top: var(--space-xl);
}

/* --- Secao 02: Dores --- */
.dores__grid {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

@media (min-width: 768px) {
  .dores__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dores__item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background-color: var(--color-surface);
  border-radius: 8px;
  border-left: 4px solid #CA9A43;
  border-image: var(--gold-gradient) 1;
  border-image-slice: 1;
  border-left-width: 4px;
  border-left-style: solid;
}

.dores__icon {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
  width: 36px;
}

.dores__item p {
  margin-bottom: 0;
  color: var(--color-text);
}

/* --- Secao 03: Transformacao --- */
#transformacao {
  background-image: url('../assets/images/transparencia-2.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.comparison {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

@media (min-width: 768px) {
  .comparison {
    grid-template-columns: 1fr 1fr;
  }
}

.comparison__col {
  padding: var(--space-lg);
  border-radius: 8px;
}

.comparison__col--without {
  background-color: var(--color-surface);
  border: 1px solid var(--color-surface-alt);
}

.comparison__col--with {
  background-color: var(--color-surface);
  border: 1px solid var(--color-surface-alt);
}

.comparison__heading {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
  text-align: center;
}

.comparison__heading--without {
  color: var(--color-negative);
}

.comparison__heading--with {
  color: var(--color-positive);
}

.comparison__col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.comparison__col li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  line-height: 1.5;
}

.comparison__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
}

.comparison__icon--x {
  background-color: #DC3545;
  color: #FFFFFF;
}

.comparison__icon--check {
  background-color: #28A745;
  color: #FFFFFF;
}

/* --- Secao 04: Servicos --- */
.services__grid {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

@media (min-width: 768px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background-color: var(--color-primary);
  padding: var(--space-lg);
  border-radius: 8px;
  border: none;
  box-shadow: var(--shadow-lg);
}

.service-card__number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.service-card__title {
  font-size: var(--text-lg);
  margin: var(--space-sm) 0;
  color: #FFFFFF;
}

.service-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-sm);
  margin-bottom: 0;
}

/* --- Metricas acima dos cards de servicos --- */
.services__metrics {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.services__metric {
  text-align: center;
}

.services__metric-value {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  background: linear-gradient(45deg, #8B6B1A 5%, #B8891F 52%, #CA9A43 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.services__metric-label {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* --- Secao 05: Depoimentos --- */
#depoimentos {
  background-image: url('../assets/images/transparencia-2.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.testimonials__grid {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  max-width: var(--max-width-narrow);
  margin-left: auto;
  margin-right: auto;
}

.testimonial-card {
  background-color: var(--color-surface);
  padding: var(--space-lg);
  border-radius: 8px;
  border: 1px solid var(--color-surface-alt);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}


.testimonial-card blockquote {
  font-size: var(--text-base);
  font-style: italic;
  color: var(--color-text);
  line-height: 1.6;
  position: relative;
  padding-left: var(--space-md);
  border-left: 3px solid #CA9A43;
  border-image: var(--gold-gradient) 1;
  border-image-slice: 1;
}

.testimonial-card cite {
  font-size: var(--text-sm);
  color: var(--color-muted);
  font-style: normal;
  font-weight: 500;
}

.testimonials__media {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

@media (min-width: 768px) {
  .testimonials__media {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Media Placeholders --- */
.media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-xl) var(--space-md);
  background-color: var(--color-surface-alt);
  border-radius: 8px;
  text-align: center;
  min-height: 180px;
}

.media-placeholder--landscape {
  aspect-ratio: 16 / 9;
  min-height: auto;
}

.media-placeholder--portrait {
  aspect-ratio: 3 / 4;
  min-height: auto;
  max-width: 300px;
  margin: 0 auto;
}

.media-placeholder__icon {
  font-size: var(--text-3xl);
  opacity: 0.4;
}

.media-placeholder__text {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* --- Secao 06: Manifesto --- */
.manifesto__quote {
  text-align: center;
  padding: var(--space-xl) 0;
}

.manifesto__quote p {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-style: italic;
  color: var(--color-secondary);
  line-height: 1.4;
}

.manifesto__quote p + p {
  margin-top: var(--space-md);
}

/* --- Secao 07: Quem Somos --- */
.about__content {
  max-width: var(--max-width-narrow);
  margin: 0 auto var(--space-xl);
}

.about__origin {
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  background-color: var(--color-surface);
  border-radius: 8px;
  border-left: 4px solid #CA9A43;
  border-image: var(--gold-gradient) 1;
  border-image-slice: 1;
}

.about__origin h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.about__origin blockquote {
  font-style: italic;
  font-size: var(--text-lg);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-md);
  padding-left: var(--space-sm);
  border-left: 2px solid #E5BC5F;
}

.gallery__grid {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-sm);
  -webkit-overflow-scrolling: touch;
}

.gallery__grid::-webkit-scrollbar {
  height: 4px;
}

.gallery__grid::-webkit-scrollbar-track {
  background: var(--color-surface-alt);
  border-radius: 2px;
}

.gallery__grid::-webkit-scrollbar-thumb {
  background: var(--gold-gradient-btn);
  border-radius: 2px;
}

.gallery__item {
  min-width: calc(33.333% - var(--space-md));
  scroll-snap-align: start;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

.gallery__item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

@media (max-width: 767px) {
  .gallery__item {
    min-width: 80%;
  }
}

/* --- Secao 08: Fundadores --- */
.founders__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}

.founder-card {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
}

@media (max-width: 767px) {
  .founder-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.founder__photo {
  width: 200px;
  height: 267px;
  border-radius: 8px;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
}

.founder__info h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}

.founder__role {
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-sm) !important;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.founder__bio-text {
  color: var(--color-text);
  line-height: 1.7;
  font-size: var(--text-base);
}

/* --- Secao 09: Como Funciona --- */
#como-funciona {
  background-image: url('../assets/images/transparencia-1.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.steps--cards {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

@media (min-width: 768px) {
  .steps--cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background-color: var(--color-primary);
  padding: var(--space-lg);
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.step-card__number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  display: block;
  margin-bottom: var(--space-sm);
}

.step-card__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
  color: #FFFFFF;
}

.step-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-sm);
  margin-bottom: 0;
}

/* --- Secao 10: Contato --- */
.contact__grid {
  display: grid;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}

@media (min-width: 768px) {
  .contact__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact__item h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}

.contact__item a:not(.btn) {
  font-weight: 500;
  background: linear-gradient(45deg, #8B6B1A 5%, #B8891F 52%, #CA9A43 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity var(--transition-fast);
}

.contact__item a:not(.btn):hover {
  opacity: 0.75;
}

.contact__item address {
  font-style: normal;
  color: var(--color-muted);
  line-height: 1.6;
}

.btn--sm {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-xs);
  margin-top: var(--space-sm);
}

.contact__map {
  border-radius: 8px;
  overflow: hidden;
  min-height: 300px;
  background-color: var(--color-surface-alt);
}

/* --- Secao 11: CTA Final --- */
.cta-final {
  text-align: center;
}

.cta-final__title {
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
}

.cta-final__text {
  color: rgba(240, 237, 229, 0.85);
  font-size: var(--text-lg);
  max-width: var(--max-width-narrow);
  margin: 0 auto var(--space-lg);
}

.btn--lg {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-base);
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-gradient-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(202, 154, 67, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-base);
  color: var(--color-btn-text);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(202, 154, 67, 0.5);
  background: var(--gold-gradient-btn-hover);
}

/* --- Footer --- */
.footer {
  padding: 16px 0;
  border-top: 1px solid var(--color-surface-alt);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__logo img {
  height: clamp(30px, 3vw + 10px, 42px);
  width: auto;
  filter: brightness(0.6) contrast(1.3);
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-bottom: 0;
}

.footer__social {
  font-size: var(--text-sm);
  font-weight: 500;
  background: linear-gradient(45deg, #8B6B1A 5%, #B8891F 52%, #CA9A43 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity var(--transition-fast);
}

.footer__social:hover {
  opacity: 0.75;
}
