/* =====================================================================
   Cerrado Pedras - Design System
   Paleta: branco / preto / dourado (cobre) - inspirado no site atual
   Tipografia: Montserrat (corpo) + Playfair Display (titulos)
   ===================================================================== */

:root {
  /* Cores */
  --cp-white: #ffffff;
  --cp-bg: #fbfaf7;
  --cp-bg-alt: #f3efe7;
  --cp-bg-dark: #1a1a1a;
  --cp-bg-dark-2: #0e0e0e;

  --cp-text: #1a1a1a;
  --cp-text-soft: #4a4a4a;
  --cp-text-muted: #8a8a8a;
  --cp-text-on-dark: #f3efe7;

  --cp-gold: #b08a3e;
  --cp-gold-2: #c79a48;
  --cp-gold-soft: rgba(176, 138, 62, 0.1);

  --cp-border: rgba(0, 0, 0, 0.08);
  --cp-border-strong: rgba(0, 0, 0, 0.18);

  --cp-success: #2f8f4a;
  --cp-error: #c0392b;

  /* Tipografia */
  --cp-font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --cp-font-title: "Playfair Display", Georgia, "Times New Roman", serif;

  /* Espacamentos */
  --cp-radius: 4px;
  --cp-radius-lg: 12px;
  --cp-radius-xl: 24px;

  --cp-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --cp-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --cp-shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.18);

  --cp-container: 1200px;
  --cp-container-narrow: 980px;

  /* Transicoes */
  --cp-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset minimo --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--cp-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cp-text);
  background: var(--cp-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }

/* Tipografia ---------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--cp-font-title);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
p  { margin: 0 0 1em; color: var(--cp-text-soft); }

.cp-eyebrow {
  display: inline-block;
  font-family: var(--cp-font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cp-gold);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Layout -------------------------------------------------------------- */
.cp-container {
  width: 100%;
  max-width: var(--cp-container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.cp-container-narrow {
  width: 100%;
  max-width: var(--cp-container-narrow);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.cp-section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.cp-section-dark {
  background: var(--cp-bg-dark);
  color: var(--cp-text-on-dark);
}
.cp-section-dark p { color: rgba(243, 239, 231, 0.78); }

.cp-grid { display: grid; gap: 2rem; }
.cp-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cp-grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cp-grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Botoes -------------------------------------------------------------- */
.cp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.8rem;
  font-family: var(--cp-font-body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: var(--cp-radius);
  cursor: pointer;
  transition: transform 0.25s var(--cp-ease), background 0.25s var(--cp-ease),
              color 0.25s var(--cp-ease), box-shadow 0.25s var(--cp-ease);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.cp-btn:active { transform: scale(0.98); }

.cp-btn-primary {
  background: var(--cp-gold);
  color: var(--cp-white);
  border-color: var(--cp-gold);
}
.cp-btn-primary:hover {
  background: var(--cp-gold-2);
  border-color: var(--cp-gold-2);
  box-shadow: var(--cp-shadow);
}
.cp-btn-outline {
  background: transparent;
  color: var(--cp-text);
  border-color: var(--cp-border-strong);
}
.cp-btn-outline:hover {
  background: var(--cp-text);
  color: var(--cp-white);
  border-color: var(--cp-text);
}
.cp-btn-light {
  background: var(--cp-white);
  color: var(--cp-text);
  border-color: var(--cp-white);
}
.cp-btn-light:hover {
  background: var(--cp-bg-alt);
}
.cp-btn-whatsapp {
  background: #25d366;
  color: var(--cp-white);
  border-color: #25d366;
}
.cp-btn-whatsapp:hover {
  background: #1ebe5a;
  border-color: #1ebe5a;
}

.cp-btn-icon-wa::before {
  content: "";
  width: 1.1em; height: 1.1em;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893A11.821 11.821 0 0020.464 3.488'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
}

/* Cards --------------------------------------------------------------- */
.cp-card {
  background: var(--cp-white);
  border-radius: var(--cp-radius-lg);
  padding: 2rem;
  box-shadow: var(--cp-shadow-sm);
  border: 1px solid var(--cp-border);
  transition: transform 0.3s var(--cp-ease), box-shadow 0.3s var(--cp-ease);
}
.cp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cp-shadow);
}
.cp-card-icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cp-gold-soft);
  color: var(--cp-gold);
  border-radius: 50%;
  margin-bottom: 1.2rem;
  font-size: 1.6rem;
}

/* Header -------------------------------------------------------------- */
.cp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--cp-border);
}
.cp-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 0;
}
.cp-logo img { max-height: 48px; width: auto; }
.cp-nav {
  display: flex; gap: 1.8rem;
  list-style: none; padding: 0; margin: 0;
}
.cp-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cp-text);
  letter-spacing: 0.04em;
  position: relative;
}
.cp-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--cp-gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--cp-ease);
}
.cp-nav a:hover::after { transform: scaleX(1); }

.cp-mobile-toggle {
  display: none;
  background: transparent; border: 0; padding: 0.5rem;
  font-size: 1.4rem; color: var(--cp-text);
}

@media (max-width: 820px) {
  .cp-nav { display: none; }
  .cp-mobile-toggle { display: inline-flex; }
  .cp-nav.cp-nav-open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cp-white); padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--cp-border);
    box-shadow: var(--cp-shadow);
    gap: 1rem;
  }
  .cp-header-cta { display: none; }
}

/* Footer -------------------------------------------------------------- */
.cp-footer {
  background: var(--cp-bg-dark-2);
  color: var(--cp-text-on-dark);
  padding: 4rem 0 2rem;
}
.cp-footer p { color: rgba(243, 239, 231, 0.6); }
.cp-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
}
@media (max-width: 820px) { .cp-footer-grid { grid-template-columns: 1fr; } }
.cp-footer h4 {
  font-family: var(--cp-font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cp-gold);
  margin-bottom: 1.2rem;
}
.cp-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.cp-footer a {
  color: rgba(243, 239, 231, 0.72);
  text-decoration: none;
  font-size: 0.92rem;
}
.cp-footer a:hover { color: var(--cp-gold); }
.cp-footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(243, 239, 231, 0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.82rem;
  color: rgba(243, 239, 231, 0.5);
}

/* Modal --------------------------------------------------------------- */
.cp-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: cp-fade 0.25s var(--cp-ease);
}
.cp-modal-overlay.cp-open { display: flex; }
@keyframes cp-fade { from { opacity: 0; } to { opacity: 1; } }

.cp-modal {
  background: var(--cp-white);
  border-radius: var(--cp-radius-lg);
  width: 100%;
  max-width: 460px;
  padding: 2.5rem 2rem 2rem;
  position: relative;
  box-shadow: var(--cp-shadow-lg);
  animation: cp-slide-up 0.35s var(--cp-ease);
}
@keyframes cp-slide-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.cp-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  border: 0; border-radius: 50%;
  background: var(--cp-bg-alt);
  color: var(--cp-text); font-size: 1.2rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.cp-modal-close:hover { background: var(--cp-text); color: var(--cp-white); }

.cp-modal h2 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}
.cp-modal-sub { color: var(--cp-text-muted); font-size: 0.95rem; margin-bottom: 1.6rem; }

.cp-form-field {
  margin-bottom: 1rem;
}
.cp-form-field label {
  display: block;
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
  color: var(--cp-text);
}
.cp-form-field input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--cp-border-strong);
  border-radius: var(--cp-radius);
  font: inherit;
  background: var(--cp-white);
  color: var(--cp-text);
  transition: border-color 0.2s var(--cp-ease), box-shadow 0.2s var(--cp-ease);
}
.cp-form-field input:focus {
  outline: none;
  border-color: var(--cp-gold);
  box-shadow: 0 0 0 3px var(--cp-gold-soft);
}
.cp-form-field .cp-error-msg {
  display: none;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: var(--cp-error);
}
.cp-form-field.cp-has-error input { border-color: var(--cp-error); }
.cp-form-field.cp-has-error .cp-error-msg { display: block; }

/* honeypot */
.cp-hp { position: absolute !important; left: -9999px; top: -9999px; }

.cp-form-status {
  margin-top: 0.8rem;
  padding: 0.8rem 1rem;
  border-radius: var(--cp-radius);
  font-size: 0.9rem;
  display: none;
}
.cp-form-status.cp-show { display: block; }
.cp-form-status.cp-status-error {
  background: #fdecea; color: var(--cp-error);
}
.cp-form-status.cp-status-success {
  background: #e8f6ed; color: var(--cp-success);
}

.cp-modal-footer-note {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--cp-text-muted);
  text-align: center;
}

/* WhatsApp floating button -------------------------------------------- */
.cp-fab-wa {
  position: fixed;
  right: 1.2rem; bottom: 1.2rem;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: var(--cp-white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 60;
  border: 0;
  cursor: pointer;
  transition: transform 0.25s var(--cp-ease);
}
.cp-fab-wa:hover { transform: scale(1.08); }
.cp-fab-wa svg { width: 28px; height: 28px; }

/* Utilitarios --------------------------------------------------------- */
.cp-text-center { text-align: center; }
.cp-mt-0 { margin-top: 0; }
.cp-mt-2 { margin-top: 1rem; }
.cp-mb-0 { margin-bottom: 0; }
.cp-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Reveal on scroll ---------------------------------------------------- */
/* Comeca visivel; JS adiciona .cp-reveal-active no <html> assim que carrega */
.cp-reveal-active [data-cp-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--cp-ease), transform 0.7s var(--cp-ease);
}
.cp-reveal-active [data-cp-reveal].cp-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Acessibilidade: foco visivel sempre */
:focus-visible {
  outline: 3px solid var(--cp-gold);
  outline-offset: 2px;
}

/* Reduzir movimento ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}
