/* ==========================================================================
   Calheiro — Instalação e Manutenção de Calhas
   ========================================================================== */

:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #20241f;
  --ink-80: rgba(32, 36, 31, 0.8);
  --ink-70: rgba(32, 36, 31, 0.7);
  --ink-55: rgba(32, 36, 31, 0.55);
  --ink-40: rgba(32, 36, 31, 0.4);
  --line: rgba(32, 36, 31, 0.12);
  --line-strong: rgba(32, 36, 31, 0.22);

  --steel: #3f5a73;
  --steel-dark: #2c4155;
  --steel-tint: rgba(63, 90, 115, 0.1);

  --dark: #1c211e;
  --dark-surface: #262c27;

  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;

  --radius: 4px;
  --shadow-md: 0 12px 32px rgba(28, 33, 30, 0.1);
  --shadow-lg: 0 24px 60px rgba(28, 33, 30, 0.16);

  --container: 1200px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Oswald', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; cursor: pointer; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--steel);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--steel);
  display: inline-block;
}

/* Placeholder fields — highlighted for the client to replace before publishing */
.ph {
  border-bottom: 1.5px dashed var(--steel);
  background: var(--steel-tint);
  padding: 0 4px;
  border-radius: 2px;
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}
.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-outline:hover {
  border-color: var(--steel);
  color: var(--steel);
}

.btn-ghost-dark {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.btn-ghost-dark:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-lg { padding: 18px 34px; font-size: 15px; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 245, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 112px;
  width: auto;
  border-radius: 6px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
.main-nav a {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-70);
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--steel); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-actions .btn { padding: 12px 20px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 72px 0 88px;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
.hero-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-55);
}
.hero-eyebrow-row svg { width: 16px; height: 16px; color: var(--steel); }

.hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 1.08;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 span { color: var(--steel); }

.hero-sub {
  font-size: 18px;
  color: var(--ink-70);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
}
.trust-strip .item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-70);
}
.trust-strip svg { width: 18px; height: 18px; color: var(--steel); flex-shrink: 0; }

.hero-media {
  position: relative;
  min-width: 0;
}
.hero-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* ==========================================================================
   Section shared
   ========================================================================== */

.section { padding: 96px 0; }
.section-header {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  text-transform: uppercase;
  margin: 18px 0 16px;
}
.section-header p {
  font-size: 16px;
  color: var(--ink-70);
}

.section-servicos { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ==========================================================================
   Serviços
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--steel);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon svg { width: 26px; height: 26px; }

.service-card h3 {
  font-size: 20px;
  text-transform: uppercase;
}

.service-card > p {
  color: var(--ink-70);
  font-size: 15px;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.service-list li {
  display: flex;
  gap: 10px;
}
.service-list svg {
  width: 16px;
  height: 16px;
  color: var(--steel);
  flex-shrink: 0;
  margin-top: 3px;
}
.service-list .term { font-weight: 600; font-size: 14px; }
.service-list .def { font-size: 13px; color: var(--ink-55); display: block; margin-top: 2px; }

/* ==========================================================================
   Diferenciais
   ========================================================================== */

.section-diferenciais {
  background: var(--dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-diferenciais::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.section-diferenciais .section-header { max-width: 680px; }
.section-diferenciais .eyebrow { color: #9db2c4; }
.section-diferenciais .eyebrow::before { background: #9db2c4; }
.section-diferenciais h2 { color: #fff; }
.section-diferenciais .section-header p { color: rgba(255,255,255,0.6); }

.diferenciais-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  overflow: hidden;
}
.diferencial-card {
  background: var(--dark-surface);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.diferencial-card .num {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #9db2c4;
}
.diferencial-card h3 {
  color: #fff;
  font-size: 19px;
  text-transform: uppercase;
  line-height: 1.25;
}
.diferencial-card p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

/* ==========================================================================
   Galeria
   ========================================================================== */

.section-galeria { background: var(--bg); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
/* ==========================================================================
   CTA final + Contato
   ========================================================================== */

.section-contato {
  background:
    linear-gradient(180deg, rgba(63,90,115,0.06), rgba(63,90,115,0) 60%),
    var(--bg);
}

.contato-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.contato-cta {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}
.contato-cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  text-transform: uppercase;
  line-height: 1.15;
}
.contato-cta p {
  color: var(--ink-70);
  font-size: 16px;
  max-width: 42ch;
}
.contato-cta .btn { width: fit-content; }

.contato-card {
  background: var(--steel-dark);
  color: #fff;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.contato-card .row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contato-card svg { width: 20px; height: 20px; color: #a9c0d4; flex-shrink: 0; margin-top: 2px; }
.contato-card .label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a9c0d4;
  margin-bottom: 4px;
}
.contato-card .value { font-size: 15px; font-weight: 500; }
.contato-card .ph {
  border-bottom-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 28px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand .logo img { height: 96px; }
.footer-brand p { max-width: 40ch; font-size: 14px; color: rgba(255,255,255,0.55); }

.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.footer-col h4 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.6); transition: color 0.2s ease; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-media { order: -1; max-width: 460px; }
  .services-grid { grid-template-columns: 1fr; }
  .diferenciais-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contato-panel { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
}

@media (max-width: 820px) {
  .header-inner { height: 96px; }
  .logo img { height: 80px; }
  .main-nav {
    display: none;
    position: absolute;
    top: 96px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: none; }
  .header-actions .btn span.btn-text-full { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { white-space: normal; text-align: center; }
  .trust-strip { flex-direction: column; gap: 12px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .contato-cta, .contato-card { padding: 36px 26px; }
  .footer-cols { gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
