/*
 Theme Name:   Divisórias Curitiba (child)
 Template:     generatepress
 Version:      1.0.0
 Text Domain:  divicuri-child
*/

/* ==========================================================
   1. Tokens
   ========================================================== */
:root {
  --dc-red:        #C71F1F;
  --dc-red-dark:   #9E1818;
  --dc-red-tint:   #FBECEC;
  --dc-graphite:   #25282C;
  --dc-steel:      #5F646B;
  --dc-line:       #DADDE1;
  --dc-surface:    #F3F4F6;
  --dc-white:      #FFFFFF;

  --dc-font: "Reddit Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* escala 1.25 */
  --dc-fs-sm:  0.875rem;
  --dc-fs-md:  1rem;
  --dc-fs-lg:  1.25rem;
  --dc-fs-xl:  1.5625rem;
  --dc-fs-2xl: clamp(1.75rem, 1.4rem + 1.2vw, 2.44rem);
  --dc-fs-3xl: clamp(2.25rem, 1.4rem + 3.2vw, 3.8rem);

  --dc-wrap: 1200px;
  --dc-gutter: clamp(1.25rem, 4vw, 2.5rem);
  --dc-section: clamp(3.5rem, 7vw, 6rem);

  /* sobrescreve as cores globais do GeneratePress */
  --accent: var(--dc-red);
  --contrast: var(--dc-graphite);
}

/* ==========================================================
   2. Base
   ========================================================== */
body, button, input, select, textarea {
  font-family: var(--dc-font);
}
body {
  color: var(--dc-graphite);
  font-size: var(--dc-fs-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--dc-font);
  color: inherit;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
a { color: var(--dc-red); }
a:hover { color: var(--dc-red-dark); }
img { max-width: 100%; height: auto; }

:focus-visible {
  outline: 3px solid var(--dc-red);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ==========================================================
   3. Header (GeneratePress)
   ========================================================== */
.site-header {
  border-bottom: 1px solid var(--dc-line);
}
.main-navigation .main-nav ul li a {
  font-weight: 600;
  color: var(--dc-graphite);
}
.main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
  color: var(--dc-red);
}

/* ==========================================================
   4. Botões
   ========================================================== */
.dc-btn,
.wp-block-button__link,
button, input[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  font-weight: 700;
  font-size: var(--dc-fs-md);
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid var(--dc-red);
  border-radius: 2px;
  background: var(--dc-red);
  color: var(--dc-white);
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.dc-btn:hover,
.wp-block-button__link:hover,
button:hover, input[type="submit"]:hover {
  background: var(--dc-red-dark);
  border-color: var(--dc-red-dark);
  color: var(--dc-white);
}
.dc-btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--dc-white);
}
.dc-btn--ghost:hover {
  background: var(--dc-white);
  border-color: var(--dc-white);
  color: var(--dc-graphite);
}
.dc-btn--light {
  background: var(--dc-white);
  border-color: var(--dc-white);
  color: var(--dc-red);
}
.dc-btn--light:hover {
  background: var(--dc-graphite);
  border-color: var(--dc-graphite);
  color: var(--dc-white);
}

/* ==========================================================
   5. Layout da home (largura total)
   ========================================================== */
.home .site.grid-container { max-width: none; padding: 0; }
.home .site-content { display: block; padding: 0; }

.dc-wrap {
  max-width: var(--dc-wrap);
  margin-inline: auto;
  padding-inline: var(--dc-gutter);
}
.dc-section { padding-block: var(--dc-section); }
.dc-section--surface { background: var(--dc-surface); }

.dc-section__head {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}
.dc-section__title {
  font-size: var(--dc-fs-2xl);
  margin: 0 0 .75rem;
}
.dc-section__intro {
  color: var(--dc-steel);
  font-size: var(--dc-fs-lg);
  margin: 0;
}

/* ==========================================================
   6. Hero — modulação de painéis
   ========================================================== */
.dc-hero {
  position: relative;
  background: var(--dc-graphite);
  color: var(--dc-white);
  overflow: hidden;
}
.dc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,.07) 0 1px,
    transparent 1px 120px
  );
  pointer-events: none;
}
.dc-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.dc-hero__title {
  font-size: var(--dc-fs-3xl);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 16ch;
  margin: 0 0 1.25rem;
}
.dc-hero__text {
  font-size: var(--dc-fs-lg);
  color: rgba(255,255,255,.8);
  max-width: 38rem;
  margin: 0 0 2rem;
}
.dc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.dc-hero__media {
  position: relative;
  margin: 0;
}
/* perfil vermelho, como o montante de uma divisória */
.dc-hero__media::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  bottom: -1.5rem;
  left: -1.5rem;
  width: 14px;
  background: var(--dc-red);
}
.dc-hero__media img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ==========================================================
   7. Produtos
   ========================================================== */
.dc-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.dc-product {
  display: flex;
  flex-direction: column;
  background: var(--dc-white);
  border: 1px solid var(--dc-line);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color .15s ease;
}
.dc-product:hover,
.dc-product:focus-within { border-color: var(--dc-red); }
.dc-product__img {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--dc-surface);
}
.dc-product__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dc-product__body {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.25rem;
  flex: 1;
}
.dc-product__cat {
  font-size: var(--dc-fs-sm);
  color: var(--dc-steel);
}
.dc-product__title {
  font-size: var(--dc-fs-lg);
  margin: 0;
}
.dc-product__title a {
  color: var(--dc-graphite);
  text-decoration: none;
}
.dc-product__title a::after { /* card inteiro clicável */
  content: "";
  position: absolute;
  inset: 0;
}
.dc-product { position: relative; }
.dc-product__more {
  margin-top: auto;
  padding-top: .75rem;
  font-weight: 700;
  color: var(--dc-red);
}

/* ==========================================================
   8. Faixa de WhatsApp
   ========================================================== */
.dc-cta {
  background: var(--dc-red);
  color: var(--dc-white);
}
.dc-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.dc-cta__title {
  font-size: var(--dc-fs-2xl);
  margin: 0 0 .35rem;
}
.dc-cta__text { margin: 0; color: rgba(255,255,255,.88); }

/* ==========================================================
   9. Diferenciais
   ========================================================== */
.dc-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.dc-feature::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: var(--dc-red);
  margin-bottom: 1.25rem;
}
.dc-feature__title {
  font-size: var(--dc-fs-xl);
  margin: 0 0 .5rem;
}
.dc-feature__text {
  color: var(--dc-steel);
  margin: 0;
}

/* ==========================================================
   10. Projetos
   ========================================================== */
.dc-projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.dc-projects a { display: block; }
.dc-projects img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ==========================================================
   11. Contato
   ========================================================== */
.dc-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.dc-contact__list {
  margin: 0;
  display: grid;
  gap: 1.25rem;
}
.dc-contact__list dt {
  font-size: var(--dc-fs-sm);
  color: var(--dc-steel);
}
.dc-contact__list dd {
  margin: .15rem 0 0;
  font-size: var(--dc-fs-lg);
  font-weight: 600;
}
.dc-contact__list dd a { color: var(--dc-graphite); text-decoration: none; }
.dc-contact__list dd a:hover { color: var(--dc-red); }

/* ==========================================================
   12. Botão flutuante de WhatsApp
   ========================================================== */
.dc-wa {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.dc-wa svg { width: 28px; height: 28px; fill: currentColor; }

/* ==========================================================
   13. Rodapé
   ========================================================== */
.site-info {
  background: var(--dc-graphite);
  color: rgba(255,255,255,.7);
  font-size: var(--dc-fs-sm);
}
.site-info a { color: var(--dc-white); }

/* ==========================================================
   14. Responsivo
   ========================================================== */
@media (max-width: 900px) {
  .dc-hero__inner,
  .dc-contact { grid-template-columns: 1fr; }
  .dc-hero__media { max-width: 480px; margin-left: 1.5rem; }
  .dc-features { grid-template-columns: 1fr; }
  .dc-projects { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .dc-cta__inner { flex-direction: column; align-items: flex-start; }
  .dc-hero__actions .dc-btn { width: 100%; justify-content: center; }
}
