/* ============================================
   Rumo Topografia e Engenharia — rumotopo.com.br
   Mobile-first, sem dependências externas.
   ============================================ */

:root {
  /* Paleta oficial Rumo — Verde-Mata, Terracota ES, Grafite, Marfim, Pedra */
  --primary: #2D4A3E;          /* Verde-Mata */
  --primary-dark: #1d342a;     /* Verde-Mata escuro */
  --primary-light: #3a5d4d;    /* Verde-Mata claro */
  --accent: #B5694B;           /* Terracota ES */
  --accent-dark: #8e4f37;
  --wa: #25D366;
  --wa-dark: #1ebe5a;
  --bg: #F5F0E8;               /* Marfim */
  --surface: #ffffff;
  --text: #1A1D1F;             /* Grafite */
  --text-soft: #5a5d5e;
  --pedra: #7A7E78;
  --border: #e6e0d3;
  --max: 1180px;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(29, 52, 42, 0.08);
  --shadow-strong: 0 10px 30px rgba(29, 52, 42, 0.18);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-text {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo {
  height: 52px;
  width: auto;
  display: block;
}
@media (max-width: 600px) {
  .brand-logo { height: 42px; }
}

.nav { display: none; gap: 1.8rem; }
.nav a { color: #e8ece9; font-weight: 500; font-size: 0.95rem; }
.nav a:hover, .nav a.active { color: var(--accent); }

.nav-toggle {
  background: none; border: none; color: #fff; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px; padding: 0.4rem;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; }

.mobile-nav {
  display: none;
  background: var(--primary-dark);
  padding: 0.5rem 0;
}
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 0.8rem 1.25rem; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.07); }

@media (min-width: 880px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.btn-wa {
  background: var(--wa); color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}
.btn-wa:hover { background: var(--wa-dark); color: #fff; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--bg); color: var(--primary-dark); }
.btn-lg { padding: 1.1rem 2rem; font-size: 1.1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex; align-items: center;
  background: linear-gradient(rgba(20, 34, 25, 0.72), rgba(20, 34, 25, 0.55)),
              url('../img/obras/entregue-04.jpg') center/cover no-repeat;
  color: #fff;
  padding: 4rem 0 3rem;
}
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.15;
  font-weight: 800;
  max-width: 24ch;
  margin-bottom: 1rem;
}
.hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 50ch;
  margin-bottom: 2rem;
  color: #e8ece9;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 1.2rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: #cfd8d1;
}
.hero-meta strong { color: var(--accent); font-weight: 700; display: block; font-size: 1.4rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Sections ---------- */
section { padding: 4rem 0; }
@media (min-width: 768px) { section { padding: 5.5rem 0; } }

.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.eyebrow {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.6rem;
  display: block;
}
h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: 0.8rem;
  font-weight: 800;
}
h3 { font-size: 1.25rem; color: var(--primary); margin-bottom: 0.5rem; font-weight: 700; }
p { color: var(--text-soft); }

/* ---------- Services Grid ---------- */
.services { background: var(--surface); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.service-card .icon {
  width: 48px; height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.service-card p { margin-bottom: 0.8rem; }
.service-card .price { font-size: 0.85rem; color: var(--accent-dark); font-weight: 700; }

/* ---------- Why us ---------- */
.why { background: var(--bg); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
.why-list { list-style: none; padding: 0; }
.why-list li {
  padding: 1rem 0 1rem 2.2rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.why-list li:last-child { border-bottom: none; }
.why-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 1rem;
  width: 26px; height: 26px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 0.85rem;
}
.why-list strong { display: block; color: var(--primary); font-size: 1.05rem; margin-bottom: 0.15rem; }
.why-image img { border-radius: var(--radius); box-shadow: var(--shadow-strong); }

@media (min-width: 880px) {
  .why-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
}

/* ---------- Areas ---------- */
.areas { background: var(--primary); color: #fff; }
.areas h2 { color: #fff; }
.areas .eyebrow { color: var(--accent); }
.areas p { color: #cfd8d1; }
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.areas-grid span {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

/* ---------- Portfolio ---------- */
.portfolio { background: var(--surface); }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.portfolio-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.portfolio-grid figure:hover { transform: scale(1.02); }
.portfolio-grid img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
}
.portfolio-grid figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  color: var(--text-soft);
}
.portfolio-grid figcaption strong { color: var(--primary); display: block; }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  text-align: center;
  padding: 3.5rem 0;
}
.cta-strip h2 { color: #fff; margin-bottom: 1rem; }
.cta-strip p { color: #cfd8d1; margin-bottom: 1.8rem; max-width: 50ch; margin-left: auto; margin-right: auto; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg); }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.faq-item summary {
  padding: 1.1rem 1.4rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer { padding: 0 1.4rem 1.2rem; color: var(--text-soft); }

/* ---------- Contact ---------- */
.contact { background: var(--surface); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 880px) {
  .contact-grid { grid-template-columns: 1.1fr 1fr; gap: 3rem; }
}
.contact-item {
  display: flex; gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: none; }
.contact-item .ico {
  width: 42px; height: 42px;
  background: var(--bg);
  color: var(--primary);
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}
.contact-item h4 { color: var(--primary); margin-bottom: 0.2rem; font-size: 1rem; }
.contact-item p { color: var(--text-soft); font-size: 0.95rem; margin: 0; }
.contact-item a { color: var(--primary); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-dark);
  color: #cfd8d1;
  padding: 3rem 0 1.5rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; }
}
.footer-grid h4 { color: #fff; margin-bottom: 0.8rem; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-grid a { color: #cfd8d1; }
.footer-grid a:hover { color: var(--accent); }
.footer-grid ul { list-style: none; }
.footer-grid li { padding: 0.25rem 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: #8a9590;
  font-size: 0.82rem;
}

/* ---------- Floating WhatsApp ---------- */
.fab-wa {
  position: fixed;
  bottom: 1.2rem; right: 1.2rem;
  width: 60px; height: 60px;
  background: var(--wa);
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  z-index: 99;
  transition: transform 0.2s ease;
}
.fab-wa:hover { transform: scale(1.08); color: #fff; }

/* ---------- Lead Form ---------- */
.form-section { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: #fff; }
.form-section h2 { color: #fff; }
.form-section .eyebrow { color: var(--accent); }
.form-section p { color: #cfd8d1; }
.form-section .why-list li { border-color: rgba(255,255,255,0.12); }
.form-section .why-list li::before { background: var(--accent); }
.form-section .why-list strong { color: #fff; }

.form-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 980px) {
  .form-section-grid { grid-template-columns: 1fr 1.1fr; gap: 3.5rem; }
}

.lead-form {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-strong);
  color: var(--text);
}
.lead-form h3 {
  margin-bottom: 0.4rem;
  font-size: 1.3rem;
}
.lead-form .form-intro {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
}
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}
.form-field .req { color: var(--accent); }
.form-field .opt { color: var(--text-soft); font-weight: 400; font-size: 0.8rem; }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 58, 46, 0.12);
}
.form-field textarea { resize: vertical; min-height: 90px; }
.form-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-weight: 500 !important;
  color: var(--text) !important;
  font-size: 0.95rem !important;
  background: var(--bg);
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  border: 1.5px solid var(--border);
}
.form-check input { width: 18px; height: 18px; flex-shrink: 0; cursor: pointer; }
.form-submit {
  width: 100%;
  margin-top: 1.5rem;
  justify-content: center;
}
.form-foot {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-top: 1rem;
}
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .lead-form { padding: 1.5rem; }
}

/* ---------- Misc ---------- */
.lead-large { font-size: 1.15rem; line-height: 1.7; color: var(--text-soft); }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
