/*
Theme Name: dB Control (auto-built) — Blocks
Template: twentytwentyfive
Description: Generated from the site manifest. Do not hand-edit; change tokens and rebuild.
Version: 1.0
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --c-primary:    #166eb8;
  --c-secondary:  #166eb8;
  --c-accent:     #166eb8;
  --c-accent-ink: #ffffff;
  --c-ink:        #3a3a3a;
  --c-muted:      #555555;
  --c-surface:    #ffffff;
  --c-surface-alt:#f3f3f3;
  --c-dark:       #232323;
  --c-inverse:    #ffffff;
  --f-heading: "Karla", sans-serif;
  --f-body: "Roboto", sans-serif;
  --w-content: 1140px;
  --w-wide: 1340px;
  --btn-radius: 5px;
}

/* ==========================================================================
   Base
   ========================================================================== */
body {
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--c-ink);
}
h1, h2, h3, h4, h5, h6, .wp-block-heading { font-family: var(--f-heading); }
a { color: var(--c-primary); }

/* Full-bleed bands must butt up against each other. Zeroing margins is not
   enough — the block layout also applies a flex `gap` between children. */
.wp-block-post-content > .alignfull { margin-top: 0 !important; margin-bottom: 0 !important; }
.wp-block-post-content { gap: 0 !important; }
.wp-site-blocks { gap: 0 !important; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-block-cover.alignfull, .wp-block-group.alignfull { max-width: none; }
.sec-body p:first-child { margin-top: 0; }
.has-text-align-center .sec-body, .sec-body.has-text-align-center { text-align: center; }

/* ==========================================================================
   Header
   ========================================================================== */
.dbc-topbar { background: var(--c-primary); color: #fff; font-size: 15px; padding: 11px 0; }
.dbc-topbar .dbc-topbar-inner { margin: 0; }
.dbc-topbar a, .dbc-topbar span { color: #fff; text-decoration: none; margin: 0 14px; }
.dbc-topbar a:hover { text-decoration: underline; }
.dbc-header { background: #fff; }
.dbc-header .wp-block-site-logo img { max-width: 215px; height: auto; }
.dbc-nav a { color: var(--c-ink); text-decoration: none; font-family: var(--f-heading); font-size: 17px; }
.dbc-nav a:hover { color: var(--c-primary); }
.dbc-nav .wp-block-navigation__submenu-container a { font-size: 15px; }

/* ==========================================================================
   Sections
   ========================================================================== */
.dbc-gallery.wp-block-gallery { gap: 14px; max-width: 1000px; margin: 30px auto 12px; }
.dbc-gallery.wp-block-gallery.has-nested-images figure.wp-block-image {
  flex-basis: calc(20% - 12px) !important; margin: 0;
}
.dbc-gallery.wp-block-gallery.has-nested-images figure.wp-block-image img {
  width: 100%; height: 120px; object-fit: contain;
}

.dbc-badges { gap: 32px !important; margin: 26px 0 10px; }
.dbc-badges figure { margin: 0; }
.dbc-badges img { height: 100px; width: auto !important; }

.dbc-cards.wp-block-columns {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.dbc-cards .dbc-card {
  flex: none !important; max-width: none !important;
  border: 1px solid #e6e6e6; background: #fff;
  display: flex; flex-direction: column;
}
.dbc-card-media { position: relative; margin: 0; }
.dbc-card-media figure { margin: 0; }
.dbc-card-media img { width: 100%; height: 215px; object-fit: cover; display: block; }
.dbc-chip {
  position: absolute; top: 14px; right: 14px; margin: 0;
  background: rgba(60,60,60,.85); color: #fff;
  font-size: 12px; letter-spacing: .5px; padding: 5px 12px; border-radius: 3px;
}
.dbc-card-title { padding: 20px 22px; margin: 0; flex: 1; }
.dbc-card-title a { color: var(--c-primary); font-size: 16px; line-height: 1.45; text-decoration: none; }
.dbc-card-title a:hover { text-decoration: underline; }
.dbc-card-date { border-top: 1px solid #e6e6e6; margin: 0; padding: 14px 22px; font-size: 15px; color: var(--c-muted); }

.dbc-cta-inner { gap: 30px; align-items: center; }
.dbc-cta-inner h2 { margin: 0; }
.wp-block-button__link { border-radius: var(--btn-radius) !important;
  padding: 15px 30px !important;
  text-transform: none;
  font-weight: 400; }

/* ==========================================================================
   Footer
   ========================================================================== */
.dbc-footer-top { background-size: cover; background-position: center; }
.dbc-footer-top, .dbc-footer-top p, .dbc-footer-top h3 { color: var(--c-inverse); }
.dbc-footer-top a { color: var(--c-inverse); }
.dbc-subscribe { display: flex; gap: 12px; margin-top: 14px; flex-wrap: nowrap; }
.dbc-subscribe input { flex: 1 1 0; min-width: 0; padding: 14px 16px; border: 0; background: #fff; font-size: 15px; color: #333; }
.dbc-subscribe button { flex: 0 0 auto; padding: 14px 34px; border: 0; background: var(--c-accent); color: var(--c-accent-ink); font-size: 16px; cursor: pointer; }
.dbc-footer-bottom p { color: #b5b5b5; font-size: 15px; }
.dbc-footer-bottom a { color: #fff; }
.dbc-copy { color: #8f8f8f !important; font-size: 14px !important; }
.dbc-footer-links { color: #b5b5b5; }
.dbc-search { display: flex; margin: 6px 0 10px; }
.dbc-search input { flex: 1; padding: 12px 14px; border: 0; background: #fff; font-size: 15px; color: #333; }
.dbc-search button { border: 0; background: #3a3a3a; color: #fff; padding: 0 18px; cursor: pointer; }
.dbc-footer-bottom .wp-block-column:last-child .dbc-search { justify-content: flex-end; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .dbc-cards.wp-block-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dbc-gallery.wp-block-gallery.has-nested-images figure.wp-block-image { flex-basis: calc(33.333% - 10px) !important; }
  .dbc-badges img { height: 76px; }
  .dbc-subscribe { flex-wrap: wrap; }
}
@media (max-width: 620px) {
  .dbc-cards.wp-block-columns { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Motion — always gated on the reduced-motion preference
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .sec-reveal { opacity: 0; transition: opacity 500ms cubic-bezier(.22,.61,.36,1), transform 500ms cubic-bezier(.22,.61,.36,1); }
  .sec-reveal[data-reveal="fade-up"] { transform: translateY(18px); }
  .sec-reveal.is-visible { opacity: 1; transform: none; }
}
