/* Designeo Lite — global.css */

/* ── Reset & base ─────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ── Typography refinements ───────────────────────────────────────────────── */

.wp-block-heading + .wp-block-paragraph {
  margin-top: calc( var(--wp--preset--spacing--3) * -0.25 );
}

p:last-child { margin-bottom: 0; }

/* Overline utility — small label above headings */
.dl-overline {
  display: block;
  font-family: var(--wp--preset--font-family--corpo);
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wp--preset--color--texto-suave);
  margin-bottom: 0.75rem;
}

/* ── Layout helpers ───────────────────────────────────────────────────────── */

/* Full-bleed section wrapper */
.dl-section {
  padding-top: var(--wp--preset--spacing--8);
  padding-bottom: var(--wp--preset--spacing--8);
}

.dl-section-sm {
  padding-top: var(--wp--preset--spacing--6);
  padding-bottom: var(--wp--preset--spacing--6);
}

/* Constrain content width */
.dl-content-width { max-width: var(--wp--style--global--content-size); }
.dl-wide-width    { max-width: var(--wp--style--global--wide-size); }

/* ── Divider line ─────────────────────────────────────────────────────────── */

.dl-divider {
  border: none;
  border-top: 0.5px solid var(--wp--preset--color--borda);
  margin: 0;
}

/* ── Cards ────────────────────────────────────────────────────────────────── */

.dl-card {
  background: var(--wp--preset--color--fundo);
  border: 0.5px solid var(--wp--preset--color--borda);
  border-radius: 4px;
  padding: var(--wp--preset--spacing--5) var(--wp--preset--spacing--5);
}

.dl-card-surface {
  background: var(--wp--preset--color--fundo-suave);
  border-radius: 4px;
  padding: var(--wp--preset--spacing--5);
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

/* Secondary / outline button */
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--wp--preset--color--texto) !important;
  border: 1px solid var(--wp--preset--color--texto) !important;
  transition: background 0.15s, color 0.15s;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--wp--preset--color--texto) !important;
  color: var(--wp--preset--color--fundo) !important;
}

/* Ghost / text button */
.wp-block-button.is-style-ghost .wp-block-button__link {
  background: transparent !important;
  color: var(--wp--preset--color--texto) !important;
  border: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wp-block-button.is-style-ghost .wp-block-button__link:hover {
  color: var(--wp--preset--color--texto-suave) !important;
}

/* Primary hover */
.wp-block-button__link {
  transition: opacity 0.15s;
}
.wp-block-button__link:hover { opacity: 0.82; }

/* ── Navigation ───────────────────────────────────────────────────────────── */

.wp-block-navigation a {
  text-decoration: none !important;
  transition: color 0.15s;
}
.wp-block-navigation a:hover {
  color: var(--wp--preset--color--texto-suave) !important;
}

/* Mobile nav toggle */
.wp-block-navigation__responsive-container-open svg,
.wp-block-navigation__responsive-container-close svg {
  width: 20px;
  height: 20px;
}

/* ── Hero specifics ───────────────────────────────────────────────────────── */

.dl-hero-eyebrow {
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wp--preset--color--texto-suave);
}

/* ── Services grid ────────────────────────────────────────────────────────── */

.dl-service-number {
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--wp--preset--color--texto-suave);
  display: block;
  margin-bottom: var(--wp--preset--spacing--2);
}

/* ── FAQ ──────────────────────────────────────────────────────────────────── */

details.dl-faq-item {
  border-bottom: 0.5px solid var(--wp--preset--color--borda);
  padding: var(--wp--preset--spacing--4) 0;
}

details.dl-faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  font-size: var(--wp--preset--font-size--medio);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

details.dl-faq-item summary::-webkit-details-marker { display: none; }

details.dl-faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.2s;
}

details.dl-faq-item[open] summary::after {
  transform: rotate(45deg);
}

details.dl-faq-item .dl-faq-body {
  margin-top: var(--wp--preset--spacing--3);
  font-size: var(--wp--preset--font-size--base);
  color: var(--wp--preset--color--texto-suave);
  line-height: 1.7;
  padding-right: 2rem;
}

/* ── Testimonial ──────────────────────────────────────────────────────────── */

.dl-testimonial {
  padding: var(--wp--preset--spacing--6);
  background: var(--wp--preset--color--fundo-suave);
  border-radius: 4px;
}

.dl-testimonial-text {
  font-family: var(--wp--preset--font-family--display);
  font-size: var(--wp--preset--font-size--xl);
  font-style: italic;
  line-height: 1.45;
  color: var(--wp--preset--color--texto);
  margin-bottom: var(--wp--preset--spacing--4);
}

.dl-testimonial-author {
  font-size: var(--wp--preset--font-size--pequeno);
  font-weight: 500;
  color: var(--wp--preset--color--texto-suave);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Contact form ─────────────────────────────────────────────────────────── */

.wp-block-group.dl-contact-form input,
.wp-block-group.dl-contact-form textarea,
.wp-block-group.dl-contact-form select {
  width: 100%;
  padding: 0.75rem 0;
  font-size: var(--wp--preset--font-size--base);
  font-family: var(--wp--preset--font-family--corpo);
  background: transparent;
  border: none;
  border-bottom: 0.5px solid var(--wp--preset--color--borda);
  border-radius: 0;
  color: var(--wp--preset--color--texto);
  outline: none;
  transition: border-color 0.15s;
}

.wp-block-group.dl-contact-form input:focus,
.wp-block-group.dl-contact-form textarea:focus {
  border-bottom-color: var(--wp--preset--color--texto);
}

.wp-block-group.dl-contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

/* ── Animations ───────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .dl-fade-in {
    opacity: 0;
    transform: translateY(16px);
    animation: dl-fade-in 0.6s ease forwards;
  }

  @keyframes dl-fade-in {
    to { opacity: 1; transform: none; }
  }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .dl-section { padding-top: var(--wp--preset--spacing--6); padding-bottom: var(--wp--preset--spacing--6); }
  .dl-section-sm { padding-top: var(--wp--preset--spacing--5); padding-bottom: var(--wp--preset--spacing--5); }
}

/* ── Print ────────────────────────────────────────────────────────────────── */

@media print {
  .wp-block-navigation { display: none; }
}
