/* DMT Med Premium CSS */

:root {
  /* Palette - Deep Teal + Warm Neutral */
  --brand-dark: #0b3d3e;
  --brand-primary: #0f6b6e;
  --brand-light: #5fb2b4;
  --brand-soft: #eef7f6;
  --brand-accent: #c6a06a;

  --text-main: #1f2d2e;
  --text-muted: #5f6d6f;

  --bg-body: #f7f4ef;
  --bg-surface: #ffffff;

  --shadow-sm: 0 6px 18px rgba(11, 61, 62, 0.06);
  --shadow-md: 0 18px 45px rgba(11, 61, 62, 0.12);
  --shadow-lg: 0 28px 70px rgba(11, 61, 62, 0.16);
  --shadow-premium: 0 24px 60px rgba(11, 61, 62, 0.2);

  --font-head: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --grad: linear-gradient(135deg, #0f6b6e, #0c5356);
  --glass: rgba(255, 255, 255, 0.86);
  --glass-border: rgba(11, 61, 62, 0.08);

  /* Backward Compatibility / Aliases */
  --bg: var(--bg-body);
  --surface: var(--bg-surface);
  --text: var(--text-main);
  --muted: var(--text-muted);
  --border: rgba(11, 61, 62, 0.12);
  --radius: var(--radius-md);
  --shadow: var(--shadow-sm);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: radial-gradient(900px 600px at 10% -10%, rgba(15, 107, 110, 0.12), transparent 60%),
    radial-gradient(1200px 700px at 90% -20%, rgba(198, 160, 106, 0.12), transparent 55%),
    var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.btn,
.nav,
.chip {
  font-family: var(--font-head);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 8px 28px rgba(11, 61, 62, 0.08);
  transition: all .3s ease;
}

header:hover {
  background: rgba(255, 255, 255, 0.95);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo img {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.02);
}

nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
  font-size: .95rem;
  color: var(--text-main);
}

nav a {
  position: relative;
  padding: 8px 0;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-accent);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--brand-primary);
}

nav a:hover::after {
  width: 100%;
}

.nav-cta-group .btn.secondary {
  background: rgba(11, 61, 62, 0.06) !important;
  border-color: rgba(11, 61, 62, 0.2) !important;
}

.nav-cta-group .btn.secondary:hover {
  background: rgba(11, 61, 62, 0.12) !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--grad);
  color: #fff;
  border: 1px solid rgba(11, 61, 62, 0.08);
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 12px 28px rgba(15, 107, 110, 0.28);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 107, 110, 0.32);
}

.btn.secondary {
  background: #fff !important;
  color: var(--brand-dark) !important;
  border: 1px solid rgba(11, 61, 62, 0.18) !important;
  box-shadow: none;
}

.btn.secondary:hover {
  background: var(--brand-soft) !important;
  border-color: rgba(11, 61, 62, 0.3) !important;
}

.btn.ghost {
  background: #fff;
  color: var(--brand-dark);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn.ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(15, 90, 94, 0.18);
}

/* Responsiveness - Header & General */
@media (max-width: 991px) {
  .nav-cta-group .btn:not(.secondary) {
    display: none;
    /* Hide WA on Header (already has bot) */
  }

  .nav {
    height: 70px;
  }

  nav ul {
    display: none;
    /* Desktop menu */
  }

  /* Shared across pages v5 upgrade */
  #mainNav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 999;
  }

  #mainNav.active {
    display: flex;
  }

  #mainNav ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  #mainNav li a {
    display: block;
    padding: 12px;
    background: var(--brand-soft);
    border-radius: 12px;
    font-size: 1.1rem;
  }

  .menu-toggle {
    display: block;
    background: var(--brand-soft);
    border: 0;
    color: var(--brand-dark);
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
  }

  /* Grid & Hero Responsivity */
  .grid-3,
  .grid-2,
  .hero-grid,
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .hero {
    padding: 30px 20px;
    margin: 20px 10px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-trust {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    padding: 12px 14px;
  }

  .section-band {
    padding: 52px 0;
    margin: 18px 0;
  }

  .footer-grid {
    gap: 30px !important;
  }
}

@media (min-width: 992px) {
  .menu-toggle {
    display: none !important;
  }
}

.menu-toggle {
  display: none;
}

.stars {
  color: var(--brand-accent);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

/* Footer */
footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
}

.footer-social-links {
  display: flex;
  gap: 12px;
}

.footer-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 50%;
  transition: .3s;
}

.footer-social-links a:hover {
  background: var(--brand-primary);
  color: #fff;
  transform: translateY(-3px);
}

.footer-social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Hero */
.hero {
  margin: 40px auto 60px;
  padding: 60px;
  background: radial-gradient(80% 80% at 70% 20%, rgba(95, 178, 180, 0.18) 0%, #fff 100%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.9), rgba(238, 247, 246, 0.6));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(11, 61, 62, 0.08);
  box-shadow: var(--shadow-premium);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -10%;
  width: 70%;
  height: 100%;
  background: radial-gradient(circle, rgba(15, 107, 110, 0.12) 0%, transparent 60%);
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 24px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0 0 16px 0;
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--brand-dark);
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 22px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(11, 61, 62, 0.12);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.trust-item .value {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-dark);
}

.trust-item .label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

.marker {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.marker::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 0.08em;
  height: 0.32em;
  background: linear-gradient(90deg, rgba(198, 160, 106, 0.35), rgba(15, 107, 110, 0.18));
  z-index: -1;
  border-radius: 8px;
}

.hero-visual {
  position: relative;
}

.hero-visual picture {
  display: block;
}

.hero-img {
  width: 100%;
  height: 320px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(11, 61, 62, 0.08);
}

.hero-img.primary {
  height: 360px;
}

.hero-figure {
  position: absolute;
  bottom: -26px;
  right: 0;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 12px 14px;
  box-shadow: 0 18px 35px rgba(15, 23, 42, .12);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 220px;
  transition: .3s;
}

.hero-figure img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.hero-figure span {
  font-size: .9rem;
  color: var(--muted);
  display: block;
  line-height: 1.3;
}

/* Sections */
section {
  padding: 52px 0;
}

.section-band {
  position: relative;
  padding: 72px 0;
  margin: 28px 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(238, 247, 246, 0.85));
  border-top: 1px solid rgba(11, 61, 62, 0.08);
  border-bottom: 1px solid rgba(11, 61, 62, 0.08);
  overflow: hidden;
}

.section-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(380px 200px at 12% 10%, rgba(15, 107, 110, 0.12), transparent 60%),
    radial-gradient(420px 220px at 88% 0%, rgba(198, 160, 106, 0.14), transparent 55%);
  pointer-events: none;
}

.section-band.alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 244, 239, 0.95));
}

.section-band .container {
  position: relative;
  z-index: 1;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.section-head p {
  margin: 8px 0 0 0;
  color: var(--muted);
  max-width: 720px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Cards */
.card {
  background: var(--bg-surface);
  border: 1px solid rgba(11, 61, 62, 0.08);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: all .3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  opacity: 0;
  transition: opacity .3s;
}

.card:hover::after {
  opacity: 1;
}

.card h3 {
  margin-top: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(11, 61, 62, 0.12);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: .85rem;
  margin-right: 6px;
  margin-bottom: 6px;
}

.hero-chips {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.list {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.quick-links .btn {
  width: 100%;
  justify-content: center;
}

/* Forms */
.card form input,
.card form textarea {
  width: 100%;
  border: 1px solid rgba(11, 61, 62, 0.18);
  border-radius: 12px;
  padding: 12px;
  font-size: 1rem;
  margin-top: 10px;
  font-family: inherit;
  background: #fbfbfa;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.card form textarea {
  min-height: 120px;
  resize: vertical;
}

.card form button {
  margin-top: 10px;
}

.hp {
  display: none !important;
}

.container,
main,
.content,
.box,
.card,
.section,
.wrapper,
.policy,
.policy-box,
.servico,
.grid-item {
  /* Increased from clamp(18px, 2.2vw, 28px) to provide more space */
  padding-inline: clamp(24px, 4vw, 40px);
}

/* Be specific for containers that need top/bottom padding too */
.card,
.list,
.box {
  padding: 30px clamp(24px, 4vw, 40px);
}

/* Animations */
.appear-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}

.appear-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Chat Bot Styles */
.bot-launch {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 61;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
  border: 0;
  cursor: pointer;
}

.bot-launch .wa-icon {
  font-size: 20px;
  line-height: 1;
}

.bot-launch .bot-status {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #fff;
  opacity: .9;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .35);
  animation: ping 1.5s infinite ease-in-out;
}

.bot-launch:hover {
  filter: brightness(.97);
  transform: translateY(-1px);
}

.bot-box {
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 60;
  width: min(380px, 94vw);
  height: min(560px, 78vh);
  display: none;
  flex-direction: column;
  background: #e9f3f4;
  border: 1px solid rgba(15, 110, 114, .18);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(2, 44, 46, .22);
}

.bot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  color: #fff;
  background: var(--grad);
}

.bot-head .title {
  font-weight: 800;
  letter-spacing: .2px;
}

.bot-head .subtitle {
  font-size: .78rem;
  opacity: .9;
  font-weight: 600;
  display: block;
}

.bot-head button {
  background: rgba(255, 255, 255, .18);
  border: 0;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.bot-body {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background-color: #efeae2;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'><g fill='none' stroke='%23d9d3cc' stroke-width='2' opacity='0.6'><path d='M20 40c20-18 40-18 60 0s40 18 60 0'/><circle cx='210' cy='40' r='14'/><path d='M30 120l25-18 25 18-25 18z'/><path d='M140 110c10-12 22-12 32 0s22 12 32 0'/><circle cx='70' cy='200' r='18'/><path d='M160 190l18-25 18 25-18 25z'/></g></svg>");
  background-size: 260px 260px;
}

.msg {
  display: flex;
}

.msg .bubble {
  max-width: 88%;
  padding: 10px 12px 18px;
  border-radius: 14px;
  position: relative;
  line-height: 1.45;
  font-size: .98rem;
  box-shadow: 0 2px 8px rgba(2, 44, 46, .08);
  word-wrap: break-word;
}

.msg.bot {
  justify-content: flex-start;
}

.msg.bot .bubble {
  background: #fff;
  border: 1px solid rgba(15, 110, 114, .08);
  border-top-left-radius: 6px;
}

.msg.user {
  justify-content: flex-end;
}

.msg.user .bubble {
  background: #dff5e6;
  border: 1px solid rgba(15, 110, 114, .12);
  border-top-right-radius: 6px;
}

.msg-meta {
  position: absolute;
  right: 8px;
  bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  color: rgba(15, 23, 42, .65);
}

.ticks {
  font-size: .75rem;
  letter-spacing: -1px;
  color: rgba(15, 23, 42, .55);
}

.ticks.read {
  color: #1aa3ff;
}

.bot-input {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: #f7fbfb;
  border-top: 1px solid rgba(15, 110, 114, .12);
}

.bot-input input {
  flex: 1;
  border: 1px solid rgba(15, 110, 114, .18);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 1rem;
  outline: none;
  background: #fff;
}

.bot-input input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(15, 107, 110, 0.15);
}

.bot-input button {
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}

.bot-send {
  background: #25D366;
  border: 0;
  width: 40px;
  height: 40px;
  color: #fff;
  display: grid;
  place-items: center;
}

.typing .bubble {
  background: #fff;
  width: 56px;
  padding: 10px 12px;
  display: flex;
  gap: 4px;
  justify-content: center;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9aa6b2;
  animation: typing 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
  animation-delay: .2s;
}

.typing-dot:nth-child(3) {
  animation-delay: .4s;
}

@keyframes ping {
  0% {
    transform: scale(.85);
    opacity: 1;
  }

  70% {
    transform: scale(1.3);
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@keyframes typing {

  0%,
  80%,
  100% {
    transform: scale(.7);
    opacity: .5;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  background: var(--bg-surface);
  border: 1px solid rgba(15, 110, 114, .12);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  gap: 8px;
}

/* Bot Options Cards */
.quick-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.quick-card {
  display: block;
  padding: 12px 16px;
  background: var(--brand-soft);
  border: 1px solid rgba(15, 110, 114, .15);
  border-radius: 14px;
  color: var(--brand-dark);
  text-decoration: none;
  font-size: .95rem;
  transition: all .25s ease;
  text-align: center;
  cursor: pointer;
}

.quick-card:hover {
  background: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(15, 90, 94, .15);
  border-color: var(--brand-primary);
}

.quick-card::after {
  content: "Clique para acessar 👆";
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.7;
  margin-top: 4px;
  color: var(--brand-primary);
  transition: opacity .2s;
}

.quick-card:hover::after {
  opacity: 1;
}
