/* CTM Engenharia & Refrigeração — shared design system for interior pages
   (blog, posts, legal). Same visual language as the homepage (home.css):
   light theme, Sora + Inter, all-blue palette, glassmorphism.
   Fonts (Sora + Inter) are loaded via <link> in each page's <head> — no @import here. */

:root {
  --blue: #0369A1;
  --blue-dark: #075985;
  --blue-light: #E0F2FE;
  --green: #0B84C6;       /* accent (blue) — matches homepage design */
  --green-2: #38A5DC;     /* accent light (blue) */
  --green-light: #D6ECFA; /* light blue tint (page background) */
  --ok: #059669;          /* semantic success/info (green) */
  --ok-light: #D1FAE5;
  --ink: #0F2A3D;
  --muted: #41637A;
  --bg: #FBFDFF;
  --amber: #F59E0B;
  --line: rgba(3, 105, 161, 0.10);
  --panel: rgba(255, 255, 255, 0.78);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(1100px 640px at 88% -8%, var(--blue-light) 0%, rgba(224,242,254,0) 55%),
    radial-gradient(820px 520px at -8% 8%, var(--green-light) 0%, rgba(209,250,229,0) 52%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; }
button { font-family: inherit; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
[data-reveal].rv { opacity: 1; transform: none; }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.45); } 70% { box-shadow: 0 0 0 18px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { animation: none !important; }
}

/* ============ Nav (shared with homepage look) ============ */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  width: min(1160px, calc(100% - 32px)); z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 10px 14px 10px 20px; border-radius: 999px;
  background: rgba(255,255,255,0.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.9); box-shadow: 0 8px 32px rgba(3,105,161,0.10);
}
.nav-logo img { height: 42px; width: auto; display: block; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 500; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--blue); }
.nav-cta {
  background: linear-gradient(135deg, var(--blue), var(--green)); color: #fff !important; font-weight: 600; font-size: 14px;
  padding: 11px 22px; border-radius: 999px; box-shadow: 0 6px 18px rgba(3,105,161,0.35);
  transition: transform .25s ease, box-shadow .25s ease; white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(3,105,161,0.45); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--ink); }
.mobile-menu {
  display: none; position: fixed; top: 80px; left: 50%; transform: translateX(-50%); width: min(1160px, calc(100% - 32px));
  z-index: 99; background: rgba(255,255,255,0.96); backdrop-filter: blur(18px); border-radius: 24px; padding: 16px;
  box-shadow: 0 8px 32px rgba(3,105,161,0.16); flex-direction: column; gap: 2px;
}
.mobile-menu.show { display: flex; }
.mobile-menu a { padding: 12px 10px; color: var(--muted); font-weight: 500; border-radius: 12px; }
.mobile-menu a:hover { color: var(--blue); background: var(--blue-light); }
@media (max-width: 900px) {
  .nav-links { display: none !important; }
  .nav-toggle { display: block !important; }
}

/* ============ Buttons ============ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, var(--blue), var(--green)); color: #fff !important;
  font-weight: 700; font-size: 16px; padding: 15px 30px; border-radius: 999px; box-shadow: 0 10px 28px rgba(3,105,161,0.32);
  transition: transform .25s ease, box-shadow .25s ease; border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 36px rgba(3,105,161,0.42); }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(3,105,161,0.25); color: var(--blue); font-weight: 600; font-size: 15px; padding: 14px 26px; border-radius: 999px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.btn-outline:hover { transform: translateY(-3px); border-color: var(--blue); background: #fff; }
.btn-dark {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: #fff !important; font-weight: 600; font-size: 15px;
  padding: 14px 28px; border-radius: 999px; transition: transform .25s ease, box-shadow .25s ease;
}
.btn-dark:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15,42,61,0.3); }

/* ============ Page hero (blog index / listing) ============ */
.page-shell { padding: 130px 24px 40px; }
.page-hero { max-width: 720px; margin: 0 auto 8px; text-align: center; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.page-hero h1 {
  font-family: 'Sora', sans-serif; font-size: clamp(38px, 5vw, 60px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
  margin: 0 0 16px; color: var(--ink); text-wrap: balance;
}
.page-hero h1 .grad { background: linear-gradient(100deg, var(--blue) 20%, var(--green-2) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero p { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ============ Blog listing ============ */
.blog-layout { display: grid; grid-template-columns: 1fr; gap: 40px; max-width: 1160px; margin: 40px auto 0; padding: 0 24px; }
@media (min-width: 1000px) { .blog-layout { grid-template-columns: 2fr 1fr; align-items: start; } }
.col-title { font-family: 'Sora', sans-serif; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 24px; color: var(--ink); }

.post-card {
  background: var(--panel); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 26px; overflow: hidden;
  margin-bottom: 28px; transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease, border-color .35s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: 0 26px 54px rgba(3,105,161,0.16); border-color: rgba(3,105,161,0.26); }
.post-card-media { height: 210px; display: flex; align-items: flex-end; padding: 22px; position: relative; overflow: hidden; }
.post-card-media .pin { position: relative; z-index: 1; color: #fff; font-family: 'Sora',sans-serif; font-weight: 700; font-size: 18px; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.post-card-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 80% 0%, rgba(255,255,255,.28), rgba(255,255,255,0) 55%); }
.post-card-body { padding: 26px 28px 28px; }
.post-cat { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.post-card-body h3 { font-family: 'Sora', sans-serif; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin: 10px 0 12px; }
.post-card-body h3 a { color: var(--ink); }
.post-card-body h3 a:hover { color: var(--blue); }
.post-card-body p { font-size: 15px; line-height: 1.7; color: var(--muted); margin: 0 0 20px; }
.post-foot { display: flex; align-items: center; justify-content: space-between; }
.post-time { font-size: 13px; color: #7C96A8; }
.card-link { font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; transition: gap .25s ease; }
.card-link:hover { gap: 12px; }

/* Sidebar */
.sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 14px; }
.side-card { background: var(--panel); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; transition: transform .25s ease, box-shadow .25s ease; }
.side-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(3,105,161,0.12); }
.side-card .post-cat { font-size: 11px; }
.side-card h4 { font-size: 15px; font-weight: 700; line-height: 1.35; margin: 8px 0 6px; }
.side-card h4 a { color: var(--ink); }
.side-card h4 a:hover { color: var(--blue); }
.side-card .post-time { font-size: 12px; }
.help-box { margin-top: 12px; border-radius: 24px; padding: 28px 26px; color: #fff; background: linear-gradient(160deg, var(--ink) 0%, #0B3A55 60%, var(--green) 150%); box-shadow: 0 24px 50px rgba(3,105,161,0.16); }
.help-box h3 { font-family: 'Sora',sans-serif; font-size: 20px; font-weight: 800; margin: 0 0 10px; color: #fff; }
.help-box p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.78); margin: 0 0 18px; }

/* Gradient palettes for post media + article hero */
.grad-blue   { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); }
.grad-green  { background: linear-gradient(135deg, var(--green-2), var(--green)); }
.grad-mixed  { background: linear-gradient(135deg, var(--blue), var(--green)); }
.grad-teal   { background: linear-gradient(135deg, #0EA5E9, var(--blue)); }
.grad-deep   { background: linear-gradient(135deg, var(--green), var(--blue) 70%, #1D4ED8); }

/* ============ Article (blog post) ============ */
.article-hero { padding: 128px 24px 0; }
.article-hero .inner { max-width: 780px; margin: 0 auto; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 22px; }
.back-link:hover { color: var(--blue); gap: 10px; transition: gap .2s ease; }
.article-hero h1 { font-family: 'Sora',sans-serif; font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; margin: 12px 0 18px; color: var(--ink); text-wrap: balance; }
.article-meta { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.article-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: #B9D3E3; }
.article-banner { max-width: 900px; margin: 34px auto 0; height: 220px; border-radius: 26px; box-shadow: 0 26px 56px rgba(15,42,61,0.2); position: relative; overflow: hidden; }
.article-banner::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 120% at 85% -10%, rgba(255,255,255,.3), rgba(255,255,255,0) 55%); }

.prose { max-width: 780px; margin: 0 auto; padding: 44px 24px 20px; }
.prose .lead { font-size: 20px; line-height: 1.6; color: #2A4A5F; margin: 0 0 30px; }
.prose h2 { font-family: 'Sora',sans-serif; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin: 44px 0 16px; color: var(--ink); }
.prose h3 { font-family: 'Sora',sans-serif; font-size: 20px; font-weight: 700; margin: 30px 0 12px; color: var(--ink); }
.prose p { font-size: 16.5px; line-height: 1.75; color: #33566C; margin: 0 0 18px; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose ul { padding-left: 4px; margin: 0 0 22px; list-style: none; }
.prose ul li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.7; color: #33566C; margin-bottom: 10px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--green-2)); }
.prose a { font-weight: 600; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; }

/* Callouts */
.callout { border-radius: 16px; padding: 20px 22px; margin: 8px 0 26px; font-size: 15.5px; line-height: 1.65; border: 1px solid transparent; }
.callout p { margin: 0; font-size: 15.5px; color: inherit; }
.callout strong { color: inherit; }
.callout.tip { background: var(--blue-light); border-color: rgba(3,105,161,.18); color: #0B4A6B; border-left: 4px solid var(--blue); }
.callout.info { background: var(--ok-light); border-color: rgba(5,150,105,.18); color: #075E4A; border-left: 4px solid var(--ok); }
.callout.warn { background: #FEF6E7; border-color: rgba(245,158,11,.22); color: #92600A; border-left: 4px solid var(--amber); }
.callout.danger { background: #FDECEC; border-color: rgba(220,38,38,.18); color: #99201B; border-left: 4px solid #DC2626; }
.callout h3 { font-family:'Sora',sans-serif; font-size: 18px; margin: 0 0 8px; color: inherit; display:flex; align-items:center; gap:8px; }
.callout ul { margin: 8px 0 0; }
.callout ul li { color: inherit; }
.callout ul li::before { background: currentColor; opacity: .5; }
/* "✗" marker variant (alert checklists) */
.prose ul.x-mark li, .callout ul.x-mark li { padding-left: 26px; }
.prose ul.x-mark li::before, .callout ul.x-mark li::before {
  content: "✗"; background: none; border-radius: 0; width: auto; height: auto;
  left: 2px; top: 0; color: currentColor; opacity: .85; font-weight: 800; font-size: 14px;
}

/* Framed info box (feature/eco/etc) */
.framed { background: var(--panel); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 20px; padding: 26px 28px; margin: 26px 0; }
.framed h3 { font-family:'Sora',sans-serif; font-size: 19px; margin: 0 0 12px; color: var(--ink); }
.framed .price { font-size: 14px; font-weight: 700; color: var(--green); }

/* Step cards */
.steps { display: flex; flex-direction: column; gap: 14px; margin: 8px 0 26px; }
.step { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 14px; padding: 18px 22px; box-shadow: 0 8px 22px rgba(3,105,161,0.06); }
.step h4 { font-family:'Sora',sans-serif; font-size: 16.5px; margin: 0 0 6px; color: var(--ink); }
.step p { margin: 0; font-size: 15px; color: var(--muted); }

/* Numbered grid (tips) */
.num-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 10px 0 28px; }
.num-item { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; gap: 14px; box-shadow: 0 8px 22px rgba(3,105,161,0.06); transition: transform .3s ease, box-shadow .3s ease; }
.num-item:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(3,105,161,0.12); }
.num-badge { flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--blue), var(--green-2)); color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Sora',sans-serif; font-weight: 800; font-size: 15px; }
.num-item h4 { font-size: 15.5px; font-weight: 700; margin: 2px 0 6px; color: var(--ink); }
.num-item p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* Plan grid (schedule cards) */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 10px 0 28px; }
.plan-card { border-radius: 18px; padding: 22px; text-align: center; border: 1px solid var(--line); background: #fff; box-shadow: 0 8px 22px rgba(3,105,161,0.06); }
.plan-card h4 { font-family:'Sora',sans-serif; font-size: 17px; margin: 0 0 12px; color: var(--ink); }
.plan-card ul { list-style: none; padding: 0; margin: 0; text-align: left; }
.plan-card ul li { font-size: 14px; color: var(--muted); padding-left: 22px; position: relative; margin-bottom: 7px; }
.plan-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.plan-card.blue { background: var(--blue-light); border-color: rgba(3,105,161,.16); }
.plan-card.green { background: var(--ok-light); border-color: rgba(5,150,105,.16); }

/* End-of-article CTA */
.cta-box { max-width: 780px; margin: 40px auto 0; text-align: center; border-radius: 28px; padding: 48px 40px;
  background: linear-gradient(160deg, var(--ink) 0%, #0B3A55 55%, var(--green) 145%); color: #fff; box-shadow: 0 30px 70px rgba(3,105,161,0.16); }
.cta-box h3 { font-family:'Sora',sans-serif; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; color: #fff; }
.cta-box p { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,0.78); margin: 0 0 26px; }
.cta-box .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ============ Legal / doc pages ============ */
.doc { max-width: 800px; margin: 0 auto; padding: 128px 24px 40px; }
.doc-head { margin-bottom: 36px; }
.doc h1 { font-family:'Sora',sans-serif; font-size: clamp(34px, 4.4vw, 50px); font-weight: 800; letter-spacing: -0.03em; margin: 12px 0 10px; color: var(--ink); }
.doc-updated { font-size: 14px; color: var(--muted); }
.doc section { background: var(--panel); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 20px; padding: 26px 30px; margin-bottom: 16px; }
.doc section h2 { font-family:'Sora',sans-serif; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 12px; color: var(--ink); display: flex; align-items: baseline; gap: 12px; }
.doc section h2 .n { font-size: 14px; font-weight: 800; color: var(--blue); }
.doc section p { font-size: 15.5px; line-height: 1.75; color: #33566C; margin: 0 0 12px; }
.doc section p:last-child { margin-bottom: 0; }
.doc section ul { list-style: none; padding-left: 4px; margin: 4px 0 12px; }
.doc section ul li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.65; color: #33566C; margin-bottom: 8px; }
.doc section ul li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--green-2)); }
.doc .contact-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.doc .contact-box p { margin: 0 0 4px; font-size: 15px; }

/* ============ Footer (shared with homepage look) ============ */
.site-footer { background: #0D1F3C; color: rgba(255,255,255,0.7); padding: 64px 24px 34px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 40px; margin-bottom: 48px; max-width: 1160px; margin-left: auto; margin-right: auto; }
.footer-brand { font-family:'Sora',sans-serif; font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-col-title { font-weight: 700; font-size: 15px; color: #fff; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-links a { color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: #fff; }
.social-row { display: flex; gap: 12px; }
.social-btn { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.8); transition: background .25s ease, transform .25s ease; }
.social-btn:hover { background: rgba(255,255,255,0.22); transform: translateY(-3px); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: 13px; color: rgba(255,255,255,0.45); max-width: 1160px; margin: 0 auto; }
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: #fff; }
.footer-bottom-links { display: flex; gap: 16px; }

/* WhatsApp float */
.wa-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 100; width: 60px; height: 60px; border-radius: 50%; background: #25D366;
  color: #fff !important; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(37,211,102,0.45);
  animation: pulseRing 2.6s infinite; transition: transform .25s ease;
}
.wa-float:hover { transform: scale(1.1); }

/* ============ A11y & motion fundamentals ============ */
[id] { scroll-margin-top: 96px; }
::selection { background: #BAE6FD; color: #0F2A3D; }
:focus-visible { outline: 3px solid rgba(11,132,198,0.55); outline-offset: 2px; border-radius: 6px; }
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -70%; width: 45%; height: 100%;
  background: linear-gradient(105deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.38) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg); pointer-events: none; transition: left .65s ease;
}
@media (hover: hover) { .btn-primary:hover::after { left: 125%; } }
.btn-primary:active, .btn-outline:active, .btn-dark:active, .nav-cta:active { transform: scale(.97); }
