/* Costa Azul Corretora de Seguros — folha única, sem build.
 *
 * Paleta tirada do logo (azul #1b75bb com brilho até #4fb3ea) e do site antigo
 * (azul-petróleo #2a6888 nos textos, cinzas claros no fundo). Serifa nos títulos
 * porque o logo é em Caslon; Inter no corpo porque é texto de tela.
 */

:root {
  --azul: #1b75bb;
  --azul-claro: #4fb3ea;
  --azul-escuro: #0f4f86;
  --marinho: #0b2a4a;
  --petroleo: #2a6888;
  --espuma: #f3f8fc;
  --areia: #ffffff;
  --cinza: #5a6b7b;
  --cinza-claro: #e6edf3;
  --texto: #15293d;
  --radius: 18px;
  --sombra: 0 10px 30px rgba(11, 42, 74, .10);
  --sombra-forte: 0 24px 60px rgba(11, 42, 74, .18);
  --serif: "Cormorant Garamond", "Adobe Caslon Pro", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--texto);
  background: var(--areia);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--azul); text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: .005em; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--azul-claro); }
h2 em { color: var(--azul); }
p { margin: 0 0 1em; }
.muted { color: var(--cinza); }
.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--marinho); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip:focus { top: 1rem; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--azul); color: #fff; box-shadow: 0 8px 20px rgba(27, 117, 187, .28); }
.btn--primary:hover { background: var(--azul-escuro); box-shadow: 0 14px 28px rgba(27, 117, 187, .35); }
.btn--light { background: #fff; color: var(--azul-escuro); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.btn--light:hover { box-shadow: 0 16px 34px rgba(0, 0, 0, .24); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }

/* ---------- topo ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.topbar__in { display: flex; align-items: center; gap: 2rem; height: 88px; }
.brand img { width: 206px; height: auto; transition: width .35s var(--ease); }
/* Sobre o hero o logo é um PNG azul em fundo azul: um "cartão" branco o deixa legível. */
.brand { background: #fff; padding: .45rem .9rem; border-radius: 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, .14); transition: box-shadow .35s; }
.topbar.is-scrolled { background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(11, 42, 74, .08), 0 8px 24px rgba(11, 42, 74, .06); }
.topbar.is-scrolled .brand { box-shadow: none; padding: 0; }
.topbar.is-scrolled .topbar__in { height: 72px; }
.topbar.is-scrolled .brand img { width: 172px; }
.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a, .menu a {
  position: relative; font-weight: 500; font-size: .95rem; color: #fff; letter-spacing: .01em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .25);
  transition: color .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }
.topbar.is-scrolled .nav a { color: var(--marinho); text-shadow: none; }
.topbar.is-scrolled .nav a:hover { color: var(--azul); }
.topbar__cta { padding: .7rem 1.3rem; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.menu-btn span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s, background .3s; }
.topbar.is-scrolled .menu-btn span, .topbar.is-open .menu-btn span { background: var(--marinho); }
.topbar.is-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar.is-open .menu-btn span:nth-child(2) { opacity: 0; }
.topbar.is-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center;
  padding: 140px 0 120px; color: #fff; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, #0b2a4a 0%, #0f4f86 45%, #1b75bb 100%);
}
.hero__sea { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__in { max-width: 760px; }
.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255, 255, 255, .78); margin-bottom: 1.25rem;
}
.eyebrow--blue { color: var(--azul); }
.eyebrow--light { color: var(--azul-claro); }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); font-weight: 600; max-width: 17ch; text-shadow: 0 2px 30px rgba(0, 0, 0, .22); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 54ch; color: rgba(255, 255, 255, .88); margin: 1.5rem 0 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .55); border-radius: 14px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: #fff; border-radius: 2px; animation: scrollhint 1.8s infinite var(--ease);
}
@keyframes scrollhint { 0% { transform: translateY(0); opacity: 1 } 70% { transform: translateY(14px); opacity: 0 } 100% { opacity: 0 } }

/* ---------- seções ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.section__head { max-width: 640px; margin-bottom: 3rem; }
.section__head h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 1rem; color: var(--marinho); }
.section--tide { background: var(--espuma); }
.section--tide::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 60px;
  background: var(--areia);
  clip-path: ellipse(60% 100% at 50% 0%);
}
.section--deep { background: linear-gradient(135deg, var(--marinho), var(--azul-escuro) 70%, var(--azul)); color: #fff; }
.section--deep h2 { color: #fff; }
.section--deep h2 em { color: var(--azul-claro); }
.section--deep p { color: rgba(255, 255, 255, .86); }

.grid { display: grid; gap: 1.5rem; }
.cards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  position: relative; background: #fff; border: 1px solid var(--cinza-claro); border-radius: var(--radius);
  padding: 2rem; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(79, 179, 234, .16), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sombra-forte); border-color: transparent; }
.card:hover::before { opacity: 1; }
.card__icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.4rem;
  background: linear-gradient(135deg, var(--azul-claro), var(--azul));
  box-shadow: 0 8px 18px rgba(27, 117, 187, .28);
  transition: transform .5s var(--ease);
}
.card:hover .card__icon { transform: rotate(-6deg) scale(1.06); }
.card__icon svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.6rem; margin-bottom: .5rem; color: var(--marinho); }
.card p { margin: 0; color: var(--cinza); font-size: .98rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); counter-reset: s; }
.step { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--sombra); position: relative; transition: transform .5s var(--ease); }
.step:hover { transform: translateY(-4px); }
.step__n { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--azul-claro); font-weight: 600; display: block; margin-bottom: .75rem; }
.step h3 { font-size: 1.6rem; color: var(--marinho); margin-bottom: .4rem; }
.step p { margin: 0; color: var(--cinza); }

.about { display: grid; gap: 3rem; grid-template-columns: 1.1fr 1fr; align-items: center; }
.about h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 1.2rem; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.pillar {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px; padding: 1.2rem 1.4rem; backdrop-filter: blur(6px);
  transition: background .3s, transform .5s var(--ease);
}
.pillar:hover { background: rgba(255, 255, 255, .14); transform: translateX(6px); }
.pillar strong { display: block; font-family: var(--serif); font-size: 1.35rem; margin-bottom: .2rem; }
.pillar span { color: rgba(255, 255, 255, .82); font-size: .95rem; }

.contact { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.contact__card { background: var(--espuma); border-radius: var(--radius); padding: 2.2rem; border: 1px solid var(--cinza-claro); }
.contact__card h3 { font-size: 1.7rem; color: var(--marinho); margin-bottom: .8rem; }
.contact__card address { font-style: normal; color: var(--cinza); margin-bottom: 1.4rem; line-height: 1.7; }
.contact__card p { color: var(--cinza); margin-bottom: 1.4rem; }

.footer { background: var(--marinho); color: rgba(255, 255, 255, .7); padding: 2rem 0; font-size: .9rem; }
.footer__in { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer p { margin: 0; flex: 1; }
.footer a { color: #fff; opacity: .8; }
.footer a:hover { opacity: 1; text-decoration: underline; }

/* ---------- revelação ao rolar ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: .1s }
.hero .reveal:nth-child(3) { transition-delay: .2s }
.hero .reveal:nth-child(4) { transition-delay: .3s }
.cards .reveal:nth-child(2), .steps .reveal:nth-child(2), .pillars .reveal:nth-child(2) { transition-delay: .1s }
.cards .reveal:nth-child(3), .steps .reveal:nth-child(3), .pillars .reveal:nth-child(3) { transition-delay: .2s }
.cards .reveal:nth-child(4) { transition-delay: .3s }
.cards .reveal:nth-child(5) { transition-delay: .4s }
.cards .reveal:nth-child(6) { transition-delay: .5s }

/* ---------- responsivo ---------- */
@media (max-width: 860px) {
  .nav, .topbar__cta { display: none; }
  .menu-btn { display: flex; }
  .menu {
    display: grid; gap: .25rem; padding: 0 1rem 1rem;
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px);
    max-height: 0; overflow: hidden; padding-block: 0; transition: max-height .4s var(--ease), padding .4s;
  }
  .menu a { color: var(--marinho); text-shadow: none; padding: .8rem .5rem; border-bottom: 1px solid var(--cinza-claro); font-size: 1.05rem; }
  .topbar.is-open { background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px); }
  .topbar.is-open .brand { box-shadow: none; padding: 0; }
  .topbar.is-open .menu { max-height: 320px; padding-block: .25rem 1rem; }
  .topbar__in { height: 76px; }
  .brand img { width: 168px; }
  .about { grid-template-columns: 1fr; }
  .hero { padding: 120px 0 100px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .card, .step, .contact__card { padding: 1.5rem; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll span { animation: none; }
  .card, .step, .pillar, .btn, .card__icon { transition: none; }
}
