/* ===== Design tokens ===== */
:root {
  --blue: #23A9D9;
  --blue-dark: #1B87AF;
  --blue-deep: #0F4C63;
  --orange: #EA5F20;
  --orange-dark: #C94E17;

  --ink: #10202A;
  --body: #45575F;
  --muted: #7B8A91;
  --line: #E5ECEF;
  --bg: #FFFFFF;
  --bg-soft: #F4F9FB;
  --bg-tint: #EAF6FB;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(16, 76, 99, .22);
  --shadow-lg: 0 24px 60px -20px rgba(16, 76, 99, .3);
  --maxw: 1140px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --head: 'Poppins', var(--font);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--blue); }

h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }

.container { width: min(var(--maxw), 100% - 40px); margin-inline: auto; }

.eyebrow {
  font-family: var(--head);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin: 0 0 .8rem;
}
.eyebrow-accent { color: var(--orange-dark); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--head);
  font-weight: 600;
  font-size: .98rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(35, 169, 217, .8); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-accent { background: var(--orange); color: #fff; box-shadow: 0 8px 20px -8px rgba(234, 95, 32, .8); }
.btn-accent:hover { background: var(--orange-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--blue-deep); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-dark); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--blue-deep); }
.pillar-orange .btn-light:hover { color: var(--orange-dark); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.16); color: #fff; border-color: #fff; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(16, 76, 99, .5); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding: .6rem 0; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a {
  font-family: var(--head);
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink);
  padding: .3rem 0;
  position: relative;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--blue); transition: width .2s ease;
}
.nav a:hover { color: var(--blue-dark); }
.nav a:hover::after { width: 100%; }
.header-cta { padding: .55rem 1.1rem; }

/* Seletor de idioma */
.lang-switch {
  display: inline-flex;
  background: var(--bg-tint);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-switch button {
  font-family: var(--head);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .02em;
  color: var(--blue-deep);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: .35rem .7rem;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.lang-switch button:hover { color: var(--blue-dark); }
.lang-switch button.active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 8px -2px rgba(35, 169, 217, .8);
}

.nav-toggle { display: none; }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(120% 120% at 100% 0%, var(--bg-tint) 0%, rgba(234, 246, 251, 0) 55%),
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  padding: clamp(3rem, 6vw, 6rem) 0;
  overflow: hidden;
}
.hero-head { text-align: center; max-width: 720px; margin: 0 auto 2.6rem; }
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}
.hero h1 span { color: var(--blue); }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--body); margin: 0 auto; max-width: 52ch; }

/* Hero split — dois pilares */
.hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.pillar {
  position: relative;
  border-radius: 24px;
  padding: 2.4rem;
  color: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pillar::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(90% 70% at 85% 5%, rgba(255,255,255,.2), transparent 55%);
}
.pillar-blue { background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%); }
.pillar-orange { background: linear-gradient(160deg, var(--orange) 0%, var(--orange-dark) 100%); }
.pillar > * { position: relative; }
.pillar-logo { background: #fff; border-radius: 14px; padding: .7rem .9rem; width: 118px; margin-bottom: 1.3rem; }
.pillar h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 700; margin-bottom: .5rem; }
.pillar > p { opacity: .95; margin: 0 0 1.2rem; }
.pillar-list { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; gap: .55rem; }
.pillar-list li { position: relative; padding-left: 1.6rem; font-size: .98rem; opacity: .96; }
.pillar-list li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  font-weight: 700; color: #fff;
  background: rgba(255,255,255,.22); width: 1.15rem; height: 1.15rem;
  border-radius: 50%; display: grid; place-items: center; font-size: .7rem;
}
.pillar-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: auto; }

.hero-badges {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1.4rem; padding: 0; margin: 2.4rem 0 0;
  color: var(--muted); font-size: .95rem; font-weight: 500;
}

/* ===== Sections ===== */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 640px; margin: 0 auto 2.8rem; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; }
.section-sub { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* ===== Grids ===== */
.grid { display: grid; gap: 1.2rem; }
.services { grid-template-columns: repeat(3, 1fr); }
.benefits { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.7rem;
  background: var(--bg-tint);
  margin-bottom: 1.1rem;
}
.card h3 { font-size: 1.18rem; font-weight: 600; }
.card p { margin: 0; font-size: .98rem; }
.card-accent { border-color: #F6D8C8; background: linear-gradient(180deg, #fff, #FFF6F1); }
.card-accent .card-icon { background: #FCE4D8; }

.benefit { padding: .5rem; }
.benefit-num {
  font-family: var(--head); font-weight: 800; font-size: 1.1rem;
  color: var(--blue); background: var(--bg-tint);
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 1rem;
}
.benefit h3 { font-size: 1.12rem; font-weight: 600; }
.benefit p { margin: 0; font-size: .96rem; }

/* ===== Chaminés ===== */
.chimney { background: linear-gradient(180deg, #fff 0%, #FFF6F1 100%); }
.chimney-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: center; }
.chimney-media {
  display: grid; place-items: center;
  background: #fff; border-radius: 24px; padding: 2.5rem;
  box-shadow: var(--shadow); border: 1px solid #F6D8C8;
}
.chimney-text h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); font-weight: 700; }
.tip {
  background: #fff; border: 1px solid #F6D8C8; border-left: 4px solid var(--orange);
  border-radius: var(--radius-sm); padding: 1rem 1.2rem; font-size: .98rem; margin: 1.2rem 0 1.6rem;
}

/* ===== Steps ===== */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; }
.steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.step-n {
  font-family: var(--head); font-weight: 800; font-size: 1.1rem; color: #fff;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 1rem;
  background: linear-gradient(160deg, var(--blue), var(--blue-deep));
}
.steps h3 { font-size: 1.1rem; font-weight: 600; }
.steps p { margin: 0; font-size: .95rem; }

/* ===== Contactos ===== */
.contact-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: center; }
.ci {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.3rem; background: var(--bg-tint);
}
.cl { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.contact-list a, .contact-list div > span:last-child { font-size: 1.05rem; color: var(--ink); font-weight: 500; }
.contact-list a:hover { color: var(--blue-dark); }

.contact-card {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff; border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow-lg); display: grid; gap: .8rem;
}
.contact-card h3 { color: #fff; font-size: 1.4rem; }
.contact-card p { margin: 0 0 .6rem; opacity: .92; }
.contact-card .btn-ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff; }
.contact-card .btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }

/* ===== Footer ===== */
.site-footer { background: var(--blue-deep); color: rgba(255,255,255,.8); padding: 2.5rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; }
.footer-logo { background: #fff; border-radius: 10px; padding: .5rem .7rem; }
.footer-tag { margin: .8rem 0 0; font-size: .95rem; }
.footer-meta { text-align: right; font-size: .92rem; }
.footer-meta p { margin: .2rem 0; }
.footer-meta a { color: #fff; }
.copyright { color: rgba(255,255,255,.55); margin-top: .6rem !important; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-split { grid-template-columns: 1fr; }
  .chimney-inner, .contact-inner { grid-template-columns: 1fr; }
  .chimney-media { max-width: 320px; }

  .header-cta { display: none; }
  .lang-switch { margin-left: auto; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    background: none; border: none; padding: 8px; cursor: pointer;
  }
  .nav-toggle span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 20px 1rem;
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height .3s ease, opacity .2s ease;
  }
  .nav.open { max-height: 360px; opacity: 1; pointer-events: auto; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); width: 100%; }
  .nav a::after { display: none; }
}

@media (max-width: 520px) {
  .services, .benefits, .steps { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
  .hero-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .btn:hover, .card:hover { transform: none; }
}
