/* Furos de Água Algarve — shared styles */
:root {
  --primary: #0e4d64;
  --primary-dark: #093245;
  --accent: #d97706;
  --accent-dark: #b85e04;
  --bg: #fafbfc;
  --surface-alt: #eef3f5;
  --text: #1c2b33;
  --muted: #5a6b73;
  --border: #d8e2e7;
  --radius: 10px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; max-width: 1080px; margin: 0 auto; }
.brand { font-weight: 700; font-size: 1.05rem; color: var(--primary-dark); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.brand svg { flex-shrink: 0; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { text-decoration: none; color: var(--text); font-size: 0.95rem; }
.nav a:hover { color: var(--primary); }
.nav .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--primary-dark); }
.lang-switch { font-size: 0.85rem; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; text-decoration: none; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s;
}
.btn:hover { background: var(--accent-dark); }
.btn-secondary { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 1.08rem; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 70%); color: #fff; padding: 64px 0 72px; }
.hero .eyebrow { display: inline-block; background: rgba(255,255,255,0.14); border-radius: 999px; padding: 5px 14px; font-size: 0.85rem; margin-bottom: 18px; letter-spacing: 0.02em; }
.hero h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); line-height: 1.2; margin-bottom: 16px; }
.hero p.sub { font-size: 1.12rem; max-width: 640px; opacity: 0.92; margin-bottom: 28px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero a { color: #fff; }
.hero .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.7); }
.hero .btn-secondary:hover { background: rgba(255,255,255,0.12); }

/* Hero with illustration */
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }
.hero-art { border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 36px rgba(0,0,0,0.28); }
.hero-art img { width: 100%; display: block; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { max-width: 480px; } }

/* Area banner */
.banner { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin: 0 0 28px; }
.banner img { width: 100%; display: block; }

/* Diagram */
.diagram { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin: 28px 0; }
.diagram img { margin: 0 auto; max-width: 460px; width: 100%; }
.diagram figcaption { text-align: center; font-size: 0.85rem; color: var(--muted); margin-top: 10px; }

/* Card icons */
.card .icon { width: 46px; height: 46px; border-radius: 10px; background: var(--surface-alt); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.card .icon svg { width: 26px; height: 26px; }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--surface-alt); }
h2 { font-size: 1.65rem; color: var(--primary-dark); margin-bottom: 18px; line-height: 1.25; }
h3 { font-size: 1.18rem; color: var(--primary-dark); margin: 26px 0 10px; }
p + p { margin-top: 14px; }
ul.checks { list-style: none; margin: 18px 0; }
ul.checks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
ul.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* Cards */
.grid { display: grid; gap: 20px; margin-top: 28px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-top: 0; }
.card a.more { font-weight: 600; text-decoration: none; }

/* Steps */
.steps { counter-reset: step; margin-top: 24px; }
.step { display: flex; gap: 18px; margin-bottom: 22px; align-items: flex-start; }
.step .num { counter-increment: step; background: var(--primary); color: #fff; border-radius: 50%; width: 38px; height: 38px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.step .num::before { content: counter(step); }

/* Factor list */
.factors { margin-top: 20px; }
.factor { border-left: 4px solid var(--accent); background: #fff; padding: 16px 20px; margin-bottom: 14px; border-radius: 0 var(--radius) var(--radius) 0; }
.factor strong { color: var(--primary-dark); }

/* FAQ */
details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; padding: 0; }
details summary { cursor: pointer; font-weight: 600; padding: 16px 20px; color: var(--primary-dark); }
details[open] summary { border-bottom: 1px solid var(--border); }
details .answer { padding: 16px 20px; }

/* Form */
.form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; max-width: 640px; }
.form label { display: block; font-weight: 600; margin: 16px 0 6px; font-size: 0.95rem; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 1rem; font-family: inherit; background: #fff;
}
.form textarea { min-height: 110px; resize: vertical; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; font-size: 0.88rem; color: var(--muted); }
.form .consent input { margin-top: 4px; }
.form button { width: 100%; margin-top: 8px; }
.form-honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Mini form */
.mini-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-top: 24px; }
.mini-form h3 { margin-top: 0; }

/* Trust badges */
.badges { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.badge { background: rgba(255,255,255,0.12); border-radius: 8px; padding: 8px 14px; font-size: 0.85rem; }
section .badge { background: var(--surface-alt); color: var(--primary-dark); font-weight: 600; }

/* Disclaimer */
.disclaimer { border-left: 4px solid var(--primary); background: var(--surface-alt); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.9rem; color: var(--muted); margin-top: 40px; }

/* Footer */
.site-footer { background: var(--primary-dark); color: #cfe0e8; padding: 48px 0 32px; margin-top: 0; font-size: 0.92rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 30px; }
.site-footer h4 { color: #fff; margin-bottom: 12px; font-size: 1rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; font-size: 0.82rem; }

/* WhatsApp floating button */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.28); transition: transform 0.15s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 32px; height: 32px; }
@media (max-width: 820px) { .wa-float { bottom: 84px; right: 14px; } }

/* Sticky mobile CTA */
.sticky-cta { display: none; }

@media (max-width: 820px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 18px 20px; border-bottom: 1px solid var(--border); gap: 14px; align-items: flex-start; }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .sticky-cta {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: #fff; border-top: 1px solid var(--border); padding: 10px 14px; gap: 10px;
  }
  .sticky-cta .btn { flex: 1; text-align: center; padding: 13px 10px; font-size: 0.95rem; }
  body { padding-bottom: 68px; }
}
