/*
Theme Name: Marie Johanna
Theme URI: https://mjcreditoeseguros.pt
Author: Marie Johanna
Author URI: https://mjcreditoeseguros.pt
Description: Tema personalizado para Marie Johanna – Crédito e Seguros
Version: 1.0.0
License: Privado
Text Domain: marie-johanna
*/

/* ============================================
   MARIE JOHANNA – CRÉDITO E SEGUROS
   Folha de estilos principal
   ============================================ */

/* ---------- VARIÁVEIS ---------- */
:root {
  --azul:       #2C3E50;
  --azul-hover: #243141;
  --creme:      #F7F4EF;
  --verde:      #A8D5BA;
  --coral:      #FF6F61;
  --cinzento:   #8A8D91;
  --branco:     #FFFFFF;

  --font-body:    'Montserrat', sans-serif;
  --font-display: 'Cormorant Garamond', serif;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  3rem;
  --space-xl:  5rem;
  --space-xxl: 7rem;

  --container: 1200px;
  --radius:    8px;

  --shadow-sm: 0 2px 8px rgba(44,62,80,0.07);
  --shadow-md: 0 4px 20px rgba(44,62,80,0.10);
  --shadow-lg: 0 8px 40px rgba(44,62,80,0.14);

  --transition: 0.25s ease;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-body); font-weight: 400; line-height: 1.7; color: var(--azul); background: var(--branco); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--verde); outline-offset: 3px; border-radius: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- CONTAINER ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }

/* ---------- TIPOGRAFIA ---------- */
h1, h2, h3, h4 { font-family: var(--font-body); font-weight: 700; line-height: 1.2; color: var(--azul); }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
h2 em, h1 em { font-family: var(--font-display); font-style: italic; font-weight: 400; color: var(--coral); }
p { color: #4a5568; line-height: 1.75; }

/* ---------- BOTÕES ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.75rem; font-family: var(--font-body); font-size: .9rem; font-weight: 600; letter-spacing: .02em; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition); white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary { background-color: var(--azul); color: var(--branco); border-color: var(--azul); }
.btn-primary:hover { background-color: var(--azul-hover); border-color: var(--azul-hover); }
.btn-ghost { background-color: transparent; color: var(--azul); border-color: var(--azul); }
.btn-ghost:hover { background-color: var(--azul); color: var(--branco); }
.btn-coral { background-color: var(--coral); color: var(--branco); border-color: var(--coral); }
.btn-coral:hover { background-color: #e55a4d; border-color: #e55a4d; }
.btn-lg { padding: .9rem 2.2rem; font-size: .95rem; }

/* ---------- HELPERS ---------- */
.section-eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--verde); margin-bottom: .75rem; }
.section-eyebrow--light { color: var(--verde); opacity: .85; }
.section-header { text-align: center; max-width: 680px; margin-inline: auto; margin-bottom: var(--space-lg); }
.section-desc { margin-top: 1rem; font-size: 1.05rem; color: var(--cinzento); }

/* ============================================
   NAVEGAÇÃO
   ============================================ */
.nav-header { position: sticky; top: 0; z-index: 1000; background-color: var(--azul); border-bottom: 1px solid rgba(255,255,255,.08); transition: box-shadow var(--transition); }
.nav-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.15); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: 72px; }

.nav-logo { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.logo-mj { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; color: var(--branco); line-height: 1; letter-spacing: -.02em; }
.logo-text { display: flex; flex-direction: column; border-left: 1px solid rgba(255,255,255,.25); padding-left: .65rem; }
.logo-name { font-size: .8rem; font-weight: 600; color: var(--branco); letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; }
.logo-sub { font-size: .68rem; color: rgba(255,255,255,.55); letter-spacing: .03em; line-height: 1.3; }

.nav-menu ul { display: flex; align-items: center; gap: .25rem; }
.nav-menu a { font-size: .85rem; font-weight: 500; color: rgba(255,255,255,.8); padding: .5rem .75rem; border-radius: 4px; transition: color var(--transition), background-color var(--transition); }
.nav-menu a:hover { color: var(--branco); background-color: rgba(255,255,255,.1); }

.has-dropdown { position: relative; }
.has-dropdown > a::after { content: ' ▾'; font-size: .7rem; opacity: .6; }
.dropdown { position: absolute; top: calc(100% + 8px); left: 0; background: var(--branco); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 220px; padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity var(--transition), transform var(--transition), visibility var(--transition); pointer-events: none; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.dropdown a { display: block; color: var(--azul); font-size: .85rem; padding: .5rem .75rem; border-radius: 4px; }
.dropdown a:hover { background-color: var(--creme); }

.nav-cta { flex-shrink: 0; background: transparent; border-color: rgba(255,255,255,.5); color: var(--branco); font-size: .85rem; padding: .55rem 1.25rem; }
.nav-cta:hover { background: var(--branco); color: var(--azul); border-color: var(--branco); transform: none; box-shadow: none; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--branco); border-radius: 2px; transition: var(--transition); }

/* ============================================
   HERO
   ============================================ */
.hero { background-color: var(--creme); padding-block: var(--space-xl); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: var(--space-lg); }
.hero-eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cinzento); margin-bottom: 1rem; }
.hero-title { margin-bottom: 1.5rem; }
.hero-desc { font-size: 1.1rem; color: #555; max-width: 480px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-trust { display: flex; flex-direction: column; gap: .6rem; }
.hero-trust li { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--cinzento); font-weight: 500; }
.hero-trust li svg { color: var(--verde); flex-shrink: 0; }

.hero-image { position: relative; display: flex; justify-content: center; }
.hero-img-wrap { width: 100%; max-width: 520px; aspect-ratio: 4/5; border-radius: 12px; overflow: hidden; background-color: #ddd; }
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge { position: absolute; bottom: 2rem; left: -1.5rem; background: var(--azul); color: var(--branco); border-radius: var(--radius); padding: 1rem 1.5rem; text-align: center; box-shadow: var(--shadow-lg); }
.badge-number { display: block; font-size: 1.8rem; font-weight: 700; line-height: 1; font-family: var(--font-display); }
.badge-label { font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }

/* ============================================
   SERVIÇOS
   ============================================ */
.services { padding-block: var(--space-xxl); background: var(--branco); }
.services-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }

.service-card { display: flex; flex-direction: column; gap: .75rem; padding: 1.75rem 1.5rem; border: 1px solid #e8e8e8; border-radius: var(--radius); color: inherit; transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition); background: var(--branco); }
.service-card:hover { border-color: var(--verde); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-card--highlight { border-color: var(--verde); background: rgba(168,213,186,.08); }
.service-icon { width: 52px; height: 52px; background: var(--creme); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--azul); flex-shrink: 0; }
.service-card h3 { font-size: 1rem; font-weight: 700; }
.service-card p { font-size: .88rem; color: var(--cinzento); flex-grow: 1; line-height: 1.6; }
.service-link { font-size: .83rem; font-weight: 600; color: var(--coral); letter-spacing: .02em; transition: letter-spacing var(--transition); }
.service-card:hover .service-link { letter-spacing: .05em; }

/* ============================================
   PROCESSO
   ============================================ */
.process { padding-block: var(--space-xxl); background: var(--creme); }
.process-inner { display: grid; grid-template-columns: 1fr 2fr; gap: var(--space-xl); align-items: start; }
.process-left p { margin-top: 1rem; color: var(--cinzento); }
.process-steps { display: flex; flex-direction: column; }
.process-step { display: flex; gap: 2rem; align-items: flex-start; padding-bottom: 2.5rem; position: relative; }
.process-step:not(:last-child)::after { content: ''; position: absolute; left: 19px; top: 44px; width: 2px; height: calc(100% - 20px); background: linear-gradient(to bottom, var(--verde), transparent); }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--verde); color: var(--azul); font-size: .75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; letter-spacing: .03em; }
.step-content h3 { margin-bottom: .4rem; font-size: 1.05rem; }
.step-content p { font-size: .9rem; color: var(--cinzento); }

/* ============================================
   PORQUE NÓS
   ============================================ */
.why-us { padding-block: var(--space-xxl); background: var(--azul); }
.why-us .section-eyebrow { color: var(--verde); }
.why-us h2 { color: var(--branco); }
.why-us h2 em { color: var(--verde); }
.why-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; margin-top: var(--space-lg); }
.why-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 2rem 1.5rem; transition: background-color var(--transition), border-color var(--transition); }
.why-card:hover { background: rgba(255,255,255,.1); border-color: var(--verde); }
.why-icon { width: 48px; height: 48px; background: rgba(168,213,186,.15); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--verde); margin-bottom: 1.25rem; }
.why-card h3 { color: var(--branco); margin-bottom: .75rem; font-size: 1rem; }
.why-card p { color: rgba(255,255,255,.65); font-size: .88rem; line-height: 1.7; }

/* ============================================
   EQUIPA
   ============================================ */
.team { padding-block: var(--space-xxl); background: var(--branco); }
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.team-card { border-radius: var(--radius); overflow: hidden; border: 1px solid #eee; transition: box-shadow var(--transition), transform var(--transition); }
.team-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.team-card-link { display: block; }
.team-photo { width: 100%; aspect-ratio: 3/4; overflow: hidden; background: var(--creme); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.team-card:hover .team-photo img { transform: scale(1.03); }
.team-info { padding: 1.5rem; border-top: 3px solid var(--verde); }
.team-info h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.team-role { font-size: .82rem; color: var(--cinzento); margin-bottom: 1rem; }
.team-cta { font-size: .85rem; font-weight: 600; color: var(--coral); }

/* ============================================
   FAQ
   ============================================ */
.faq { padding-block: var(--space-xxl); background: var(--creme); }
.faq-inner { display: grid; grid-template-columns: 1fr 2fr; gap: var(--space-xl); align-items: start; }
.faq-left h2 { margin-bottom: 1rem; }
.faq-left p { margin-bottom: 2rem; color: var(--cinzento); }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid rgba(44,62,80,.12); }
.faq-item summary { padding: 1.25rem 0; font-weight: 600; font-size: .95rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; list-style: none; color: var(--azul); transition: color var(--transition); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; font-weight: 300; color: var(--cinzento); transition: transform var(--transition), color var(--transition); flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--coral); }
.faq-item[open] summary { color: var(--coral); }
.faq-item p { padding-bottom: 1.25rem; font-size: .9rem; color: var(--cinzento); line-height: 1.8; }

/* ============================================
   CTA FINAL
   ============================================ */
.cta-final { padding-block: var(--space-xxl); background: var(--azul); }
.cta-final-inner { display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
.cta-text h2 { color: var(--branco); margin-bottom: 1rem; }
.cta-text h2 em { color: var(--verde); }
.cta-text p { color: rgba(255,255,255,.7); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-illustration { opacity: .5; flex-shrink: 0; }

/* ============================================
   RODAPÉ
   ============================================ */
.site-footer { background: #1e2c3a; color: rgba(255,255,255,.7); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 3rem; padding-block: var(--space-xl); }
.footer-brand p { font-size: .88rem; color: rgba(255,255,255,.5); margin-top: 1.25rem; max-width: 260px; line-height: 1.7; }
.footer-logo .logo-name, .footer-logo .logo-mj { color: var(--branco); }
.footer-logo .logo-sub { color: rgba(255,255,255,.4); }
.footer-social { display: flex; gap: 1rem; margin-top: 1.5rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); transition: border-color var(--transition), color var(--transition); }
.footer-social a:hover { border-color: var(--verde); color: var(--verde); }
.footer-nav h4 { color: var(--branco); margin-bottom: 1.25rem; font-size: .8rem; letter-spacing: .1em; }
.footer-nav ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-nav a { font-size: .88rem; color: rgba(255,255,255,.55); transition: color var(--transition); }
.footer-nav a:hover { color: var(--verde); }
.footer-contact h4 { color: var(--branco); margin-bottom: 1.25rem; font-size: .8rem; letter-spacing: .1em; }
.footer-contact ul { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 2rem; }
.footer-contact li { display: flex; align-items: center; gap: .6rem; font-size: .88rem; color: rgba(255,255,255,.55); }
.footer-contact li svg { color: var(--verde); flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,.55); transition: color var(--transition); }
.footer-contact a:hover { color: var(--verde); }
.footer-newsletter h4 { margin-bottom: .5rem; }
.footer-newsletter p { font-size: .82rem; color: rgba(255,255,255,.45); margin-bottom: 1rem; line-height: 1.6; }
.newsletter-form { display: flex; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.15); }
.newsletter-form input { flex-grow: 1; padding: .65rem 1rem; background: rgba(255,255,255,.08); border: none; color: var(--branco); font-family: var(--font-body); font-size: .85rem; outline: none; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.35); }
.newsletter-form button { padding: 0 1rem; background: var(--verde); border: none; color: var(--azul); cursor: pointer; transition: background-color var(--transition); display: flex; align-items: center; }
.newsletter-form button:hover { background: #8fc9a5; }
.footer-legal { background: rgba(0,0,0,.2); padding-block: 1rem; border-top: 1px solid rgba(255,255,255,.06); }
.footer-legal p { font-size: .75rem; color: rgba(255,255,255,.4); line-height: 1.6; text-align: center; }
.footer-legal a { color: rgba(255,255,255,.5); text-decoration: underline; }
.footer-legal a:hover { color: #A8D5BA; }
.footer-legal strong { color: rgba(255,255,255,.55); font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 1.5rem; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.35); }
.footer-bottom nav { display: flex; gap: 1rem; align-items: center; }
.footer-bottom a { font-size: .82rem; color: rgba(255,255,255,.35); transition: color var(--transition); }
.footer-bottom a:hover { color: rgba(255,255,255,.7); }
.footer-bottom span[aria-hidden] { color: rgba(255,255,255,.2); }

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .why-grid { grid-template-columns: repeat(2,1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content { order: 2; }
  .hero-image { order: 1; }
  .hero-trust { align-items: center; }
  .hero-actions { justify-content: center; }
  .hero-desc { margin-inline: auto; }
  .hero-badge { left: auto; right: 1rem; }
  .process-inner { grid-template-columns: 1fr; gap: 2rem; }
  .faq-inner { grid-template-columns: 1fr; gap: 2rem; }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .cta-final-inner { flex-direction: column; text-align: center; }
  .nav-menu, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 600px) {
  :root { --space-xl: 3.5rem; --space-xxl: 5rem; }
  .services-grid, .why-grid, .team-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
}
@media (max-width: 900px) {
  .nav-menu { position: fixed; inset: 72px 0 0 0; background: var(--azul); display: flex !important; flex-direction: column; padding: 2rem 1.5rem; transform: translateX(100%); transition: transform var(--transition); overflow-y: auto; }
  .nav-menu.is-open { transform: translateX(0); }
  .nav-menu ul { flex-direction: column; align-items: flex-start; gap: 0; }
  .nav-menu > ul > li { width: 100%; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-menu a { display: block; padding: 1rem 0; font-size: 1rem; width: 100%; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(255,255,255,.05); border-radius: 0; padding: 0 0 0 1rem; display: none; }
  .has-dropdown.is-open .dropdown { display: block; }
  .dropdown a { color: rgba(255,255,255,.7); padding: .6rem 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
