/* ============================================================
   RAFANI — TEMPLATE EDITÁVEL
   Edite as cores principais aqui:
   ============================================================ */
:root {
  --navy-950: #041126;
  --navy-900: #07152e;
  --navy-800: #0b2146;
  --blue-600: #1b5fb8;
  --blue-500: #2e70c9;
  --gold-600: #c9942d;
  --gold-500: #d9ad49;
  --gold-300: #f0cf7a;
  --cream: #f7f3ea;
  --paper: #ffffff;
  --ink: #0b1730;
  --muted: #67738a;
  --line: rgba(11, 23, 48, 0.12);
  --success: #21a366;
  --radius-lg: 32px;
  --radius-md: 20px;
  --shadow: 0 24px 70px rgba(4, 17, 38, 0.14);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold-600); font-size: .79rem; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.section { padding: 104px 0; }
.section-soft { background: linear-gradient(180deg, #fbfcfe 0%, #f5f7fb 100%); }
.section-dark { background: var(--navy-900); color: white; }
.section-head { display: grid; grid-template-columns: 1fr .85fr; gap: 70px; align-items: end; margin-bottom: 52px; }
.section-head h2, .display-title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700; line-height: 1.02; letter-spacing: -.035em; margin: 12px 0 0;
}
.section-head h2 { font-size: clamp(2.4rem, 4.5vw, 4.6rem); }
.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }
.section-dark .section-head p { color: rgba(255,255,255,.68); }

/* Top bar */
.topbar { background: var(--navy-950); color: rgba(255,255,255,.76); font-size: .85rem; }
.topbar .container { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar-links { display: flex; gap: 20px; align-items: center; }
.topbar a:hover { color: var(--gold-300); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.94); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(8,24,53,.08); }
.nav-wrap { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 14px; min-width: 270px; }
.brand img { width: 58px; height: 58px; object-fit: contain; flex: 0 0 auto; }
.brand-copy { line-height: 1.04; }
.brand-copy strong { display: block; font-family: Georgia, serif; font-size: 1.75rem; color: var(--navy-900); }
.brand-copy span { display: block; margin-top: 6px; font-size: .68rem; text-transform: uppercase; letter-spacing: .13em; color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: 30px; font-size: .93rem; font-weight: 700; }
.main-nav a { position: relative; padding: 31px 0; }
.main-nav a::after { content: ""; position: absolute; height: 2px; left: 0; right: 100%; bottom: 22px; background: var(--gold-500); transition: right .25s ease; }
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.nav-cta { display: inline-flex; align-items: center; justify-content: center; padding: 13px 20px; border-radius: 999px; color: var(--navy-950) !important; background: var(--gold-500); box-shadow: 0 10px 28px rgba(201,148,45,.24); }
.nav-cta::after { display: none; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--navy-900); color: white; cursor: pointer; }
.menu-toggle span { display: block; width: 21px; height: 2px; background: currentColor; margin: 4px auto; }

/* Hero */
.hero { position: relative; min-height: 720px; display: grid; align-items: center; color: white; background: var(--navy-900); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: url('../img/hero-grid.svg') center/cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: auto -10% -180px 35%; height: 330px; border: 1px solid rgba(217,173,73,.55); border-radius: 50% 50% 0 0; transform: rotate(-4deg); }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; padding-top: 58px; padding-bottom: 58px; }
.hero-copy { max-width: 720px; }
.hero-kicker { color: var(--gold-300); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: .82rem; }
.hero h1 { font-family: Georgia, serif; font-size: clamp(3rem, 6vw, 6rem); line-height: .98; letter-spacing: -.045em; margin: 20px 0 24px; max-width: 900px; }
.hero h1 em { color: var(--gold-500); font-style: normal; }
.hero p { max-width: 650px; color: rgba(255,255,255,.74); font-size: 1.13rem; margin: 0 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 800; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { color: var(--navy-950); background: var(--gold-500); box-shadow: 0 16px 40px rgba(217,173,73,.24); }
.btn-outline { color: white; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.04); }
.btn-navy { color: white; background: var(--navy-900); }
.hero-card { position: relative; margin-left: auto; width: min(100%, 420px); padding: 28px; border: 1px solid rgba(255,255,255,.16); border-radius: 34px; background: rgba(255,255,255,.08); backdrop-filter: blur(18px); box-shadow: 0 30px 80px rgba(0,0,0,.24); }
.hero-card::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(217,173,73,.38); border-radius: 26px; pointer-events: none; }
.hero-card-logo { position: relative; width: 108px; height: 108px; margin-bottom: 68px; object-fit: contain; }
.hero-card small { position: relative; color: var(--gold-300); font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.hero-card h2 { position: relative; font-family: Georgia, serif; font-size: 2.25rem; line-height: 1.05; margin: 16px 0 20px; }
.hero-card-list { position: relative; display: grid; gap: 12px; }
.hero-card-list span { display: flex; align-items: center; gap: 11px; color: rgba(255,255,255,.78); }
.hero-card-list i { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-style: normal; color: var(--navy-950); background: var(--gold-500); }

/* Contact strip */
.contact-strip { position: relative; z-index: 5; margin-top: -34px; }
.contact-strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 24px; overflow: hidden; background: white; box-shadow: var(--shadow); }
.contact-item { display: flex; align-items: center; gap: 16px; padding: 25px 26px; border-right: 1px solid var(--line); }
.contact-item:last-child { border-right: 0; }
.contact-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; flex: 0 0 auto; color: var(--gold-600); background: var(--cream); font-weight: 900; }
.contact-item small { display: block; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; }
.contact-item strong { display: block; font-size: .97rem; margin-top: 3px; }

/* About */
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 82px; align-items: center; }
.about-visual { position: relative; }
.about-visual img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.floating-stat { position: absolute; right: -30px; bottom: 38px; width: 210px; padding: 22px; border-radius: 22px; color: white; background: var(--navy-900); box-shadow: var(--shadow); }
.floating-stat strong { display: block; color: var(--gold-500); font-size: 2.5rem; line-height: 1; }
.about-copy h2 { font-family: Georgia, serif; font-size: clamp(2.5rem, 4vw, 4.4rem); line-height: 1.03; margin: 14px 0 24px; }
.about-copy p { color: var(--muted); }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 24px; margin: 30px 0 34px; }
.check-list span { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.check-list i { display: inline-grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: rgba(217,173,73,.18); color: var(--gold-600); font-style: normal; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { position: relative; min-height: 330px; padding: 30px; border: 1px solid rgba(255,255,255,.1); border-radius: 26px; background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); overflow: hidden; transition: transform .25s ease, border-color .25s ease; }
.service-card:hover { transform: translateY(-7px); border-color: rgba(217,173,73,.48); }
.service-number { color: var(--gold-500); font-family: Georgia, serif; font-size: 3.2rem; line-height: 1; opacity: .9; }
.service-card h3 { font-family: Georgia, serif; font-size: 1.65rem; line-height: 1.15; margin: 60px 0 14px; }
.service-card p { color: rgba(255,255,255,.62); margin: 0; }
.service-arrow { position: absolute; right: 24px; bottom: 22px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--navy-900); background: var(--gold-500); font-weight: 900; }

/* Process */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: item; }
.process-card { padding: 28px; border-radius: 24px; background: white; border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(8,24,53,.06); }
.process-card::before { counter-increment: item; content: "0" counter(item); display: block; color: var(--gold-600); font-family: Georgia, serif; font-size: 2.4rem; font-weight: 700; margin-bottom: 28px; }
.process-card h3 { margin: 0 0 10px; }
.process-card p { color: var(--muted); margin: 0; }

/* Publications */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { border-radius: 26px; background: white; overflow: hidden; box-shadow: 0 18px 55px rgba(8,24,53,.09); border: 1px solid var(--line); }
.post-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.post-body { padding: 26px; }
.post-meta { color: var(--gold-600); font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: .13em; }
.post-card h3 { font-family: Georgia, serif; font-size: 1.45rem; line-height: 1.22; margin: 12px 0 14px; }
.post-card p { color: var(--muted); margin: 0 0 18px; }
.text-link { color: var(--blue-600); font-weight: 900; }

/* Testimonial */
.testimonial-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; }
.quote-mark { color: var(--gold-500); font-family: Georgia, serif; font-size: 9rem; line-height: .55; }
.testimonial-text { font-family: Georgia, serif; font-size: clamp(1.8rem, 3.2vw, 3.2rem); line-height: 1.2; margin: 12px 0 26px; }
.testimonial-author { color: rgba(255,255,255,.68); }
.testimonial-dots { display: flex; gap: 9px; margin-top: 32px; }
.testimonial-dots button { width: 11px; height: 11px; border: 0; border-radius: 50%; background: rgba(255,255,255,.26); cursor: pointer; }
.testimonial-dots button.active { background: var(--gold-500); }

/* Clients */
.client-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.client-logo { min-height: 110px; display: grid; place-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 20px; color: var(--navy-800); background: #fff; font-weight: 900; text-align: center; }

/* CTA */
.cta-box { position: relative; overflow: hidden; padding: 64px; border-radius: 34px; color: white; background: var(--navy-900); box-shadow: var(--shadow); }
.cta-box::after { content: ""; position: absolute; width: 390px; height: 390px; right: -90px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(217,173,73,.35), transparent 68%); }
.cta-box h2 { position: relative; z-index: 1; font-family: Georgia, serif; font-size: clamp(2.5rem, 5vw, 5rem); line-height: 1.02; max-width: 780px; margin: 0 0 24px; }
.cta-box p, .cta-box .btn { position: relative; z-index: 1; }
.cta-box p { max-width: 650px; color: rgba(255,255,255,.7); font-size: 1.08rem; }

/* Inner pages */
.page-hero { padding: 92px 0 78px; color: white; background: linear-gradient(120deg, var(--navy-950), var(--navy-800)); }
.page-hero h1 { font-family: Georgia, serif; font-size: clamp(3rem, 6vw, 5.6rem); line-height: 1; margin: 16px 0 20px; }
.page-hero p { max-width: 700px; color: rgba(255,255,255,.72); font-size: 1.1rem; }
.breadcrumb { color: rgba(255,255,255,.58); font-size: .9rem; }
.content-grid { display: grid; grid-template-columns: 1fr 340px; gap: 60px; align-items: start; }
.article-content h2, .article-content h3 { font-family: Georgia, serif; color: var(--navy-900); }
.article-content h2 { font-size: 2.3rem; margin-top: 44px; }
.article-content p, .article-content li { color: var(--muted); }
.sidebar-card { position: sticky; top: 116px; padding: 26px; border-radius: 24px; background: var(--cream); border: 1px solid rgba(201,148,45,.2); }
.sidebar-card h3 { margin-top: 0; }
.sidebar-card .btn { width: 100%; }
.service-list-page { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.service-detail { padding: 34px; border-radius: 24px; background: white; border: 1px solid var(--line); box-shadow: 0 16px 45px rgba(8,24,53,.06); }
.service-detail h3 { font-family: Georgia, serif; font-size: 1.65rem; margin: 0 0 12px; }
.service-detail p { color: var(--muted); }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; }
.contact-cards { display: grid; gap: 16px; }
.info-card { padding: 24px; border-radius: 22px; background: var(--cream); border: 1px solid rgba(201,148,45,.18); }
.info-card small { color: var(--gold-600); text-transform: uppercase; letter-spacing: .13em; font-weight: 900; }
.info-card strong { display: block; margin-top: 6px; }
.contact-form { padding: 34px; border-radius: 28px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 800; margin-bottom: 7px; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 14px 15px; outline: none; background: #fbfcfe; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(217,173,73,.12); }
.field textarea { min-height: 140px; resize: vertical; }

/* Footer */
.site-footer { background: var(--navy-950); color: white; }
.footer-main { display: grid; grid-template-columns: 1.25fr .75fr .8fr 1fr; gap: 44px; padding: 78px 0 50px; }
.footer-brand img { width: 86px; margin-bottom: 20px; }
.footer-brand p, .footer-col p, .footer-col a { color: rgba(255,255,255,.62); }
.footer-col h4 { margin: 0 0 18px; color: var(--gold-300); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.48); font-size: .85rem; }

/* WhatsApp */
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 999; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--success); box-shadow: 0 15px 40px rgba(33,163,102,.38); font-size: 1.35rem; font-weight: 900; }

/* Cookie notice */
.cookie-notice { position: fixed; left: 22px; right: 22px; bottom: 20px; z-index: 1100; display: none; align-items: center; justify-content: space-between; gap: 24px; max-width: 980px; margin: auto; padding: 18px 20px; border-radius: 18px; background: white; color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.22); border: 1px solid var(--line); }
.cookie-notice.show { display: flex; }
.cookie-notice p { margin: 0; color: var(--muted); font-size: .88rem; }
.cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-actions button { border: 0; padding: 10px 14px; border-radius: 999px; cursor: pointer; font-weight: 800; }
.cookie-reject { background: #edf0f5; }
.cookie-accept { color: var(--navy-950); background: var(--gold-500); }

@media (max-width: 1020px) {
  .main-nav { position: fixed; inset: 122px 20px auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 16px; border-radius: 22px; background: white; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px; }
  .main-nav a::after { display: none; }
  .menu-toggle { display: block; }
  .hero .container, .about-grid, .testimonial-wrap, .contact-grid { grid-template-columns: 1fr; }
  .hero-card { margin: 0; }
  .services-grid, .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .content-grid { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .topbar .container { justify-content: center; }
  .topbar-links span:nth-child(2), .topbar-social { display: none; }
  .brand { min-width: 0; }
  .brand img { width: 50px; height: 50px; }
  .brand-copy strong { font-size: 1.45rem; }
  .brand-copy span { font-size: .58rem; max-width: 180px; }
  .hero { min-height: auto; }
  .hero .container { gap: 44px; padding-top: 54px; padding-bottom: 90px; }
  .hero h1 { font-size: clamp(3.15rem, 15vw, 4.6rem); }
  .hero-actions .btn { width: 100%; }
  .hero-card { padding: 24px; }
  .contact-strip { margin-top: -36px; }
  .contact-strip-grid { grid-template-columns: 1fr; }
  .contact-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-item:last-child { border-bottom: 0; }
  .section { padding: 76px 0; }
  .services-grid, .posts-grid, .process-grid, .client-grid, .service-list-page, .form-row { grid-template-columns: 1fr; }
  .service-card { min-height: 280px; }
  .floating-stat { position: static; width: 100%; margin-top: 16px; }
  .check-list { grid-template-columns: 1fr; }
  .cta-box { padding: 38px 26px; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cookie-notice { flex-direction: column; align-items: stretch; }
  .cookie-actions { width: 100%; }
  .cookie-actions button { flex: 1; }
  .page-hero { padding: 72px 0 62px; }
}
