/*
Theme Name: DBS Modern
Theme URI: https://dbs.devsoft.com.au/
Author: Devsoft
Description: A lightweight block theme for Drape and Blind Software.
Version: 0.4.0
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: dbs-modern
*/

:root {
  --dbs-ink: #3f4968;
  --dbs-blue: #f9b52b;
  --dbs-mint: #dfe7f3;
  --dbs-coral: #e72c68;
  --dbs-cream: #f3f5f9;
  --dbs-white: #ffffff;
  --dbs-muted: #73777f;
  --dbs-line: #d8dee8;
  --dbs-shadow: 0 24px 70px rgba(63, 73, 104, .14);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
a { text-underline-offset: .2em; }

.dbs-shell { overflow: hidden; }
.dbs-section { padding-block: clamp(4rem, 7vw, 7rem); }
.dbs-section--compact { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.dbs-eyebrow {
  color: #b87900;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.dbs-display { letter-spacing: -.045em; line-height: .98; }
.dbs-lead { color: var(--dbs-muted); font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.65; }

.dbs-header {
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(63,73,104,.1);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
}
.dbs-brand { margin: 0; }
.dbs-brand img { display: block; height: auto; max-width: min(330px, 42vw); width: 100%; }
.dbs-nav a { color: var(--dbs-ink) !important; font-size: .94rem; font-weight: 620; }

.wp-block-button__link {
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.wp-block-button__link:hover { box-shadow: 0 12px 28px rgba(231,44,104,.2); transform: translateY(-2px); }
.is-style-outline > .wp-block-button__link:hover { background: var(--dbs-mint); }
.wp-block-button__link.has-coral-background-color { color: #fff; }

.dbs-hero {
  background:
    radial-gradient(circle at 88% 12%, rgba(223,231,243,.95), transparent 32%),
    linear-gradient(180deg, #fff 0%, #f5f7fb 100%);
  padding-block: clamp(3.5rem, 6vw, 6.5rem);
}
.dbs-hero-title { font-size: clamp(3rem, 5.4vw, 5.4rem) !important; max-width: 760px; }
.dbs-hero-photo { position: relative; }
.dbs-photo-frame { background: #fff; border: 8px solid #fff; border-radius: 26px; box-shadow: var(--dbs-shadow); margin: 0; overflow: hidden; }
.dbs-photo-frame img { display: block; height: clamp(430px, 48vw, 620px); object-fit: cover; object-position: 62% center; width: 100%; }
.dbs-float-card { background: rgba(255,255,255,.96); border: 1px solid rgba(63,73,104,.1); border-radius: 14px; box-shadow: 0 14px 34px rgba(63,73,104,.16); max-width: 220px; padding: 1rem 1.1rem; position: absolute; }
.dbs-float-card strong { display: block; font-size: 1rem; }
.dbs-float-card span { color: var(--dbs-muted); font-size: .8rem; }
.dbs-float-card--one { left: -1.25rem; top: 10%; }
.dbs-float-card--two { bottom: 8%; right: -1.25rem; }
.dbs-metric-row { border-top: 1px solid var(--dbs-line); }
.dbs-metric strong { display: block; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1; }
.dbs-metric span { color: var(--dbs-muted); font-size: .9rem; }
.dbs-proofline { color: var(--dbs-muted); font-size: .88rem; font-weight: 620; }
.dbs-checks { gap: .65rem 1.4rem !important; }
.dbs-check { color: var(--dbs-ink); font-size: .93rem; font-weight: 620; }
.dbs-check::before { color: var(--dbs-coral); content: "✓"; font-weight: 800; margin-right: .45rem; }

.dbs-app {
  background: #fff;
  border: 1px solid rgba(63,73,104,.12);
  border-radius: 22px;
  box-shadow: var(--dbs-shadow);
  padding: 1rem;
  transform: rotate(1deg);
}
.dbs-appbar { border-bottom: 1px solid var(--dbs-line); padding: .25rem .25rem .9rem; }
.dbs-dot { border-radius: 50%; display: inline-block; height: 9px; margin-right: 5px; width: 9px; }
.dbs-dashboard { background: #f6f8f8; border-radius: 14px; margin-top: 1rem; padding: 1rem; }
.dbs-stat { background: white; border: 1px solid var(--dbs-line); border-radius: 12px; min-height: 98px; padding: 1rem; }
.dbs-stat strong { display: block; font-size: 1.6rem; line-height: 1.2; }
.dbs-job { background: #fff; border-left: 4px solid var(--dbs-blue); border-radius: 8px; margin-top: .7rem; padding: .8rem 1rem; }

.dbs-logo-strip { border-block: 1px solid var(--dbs-line); }
.dbs-logo-word { color: #71808d; font-size: 1.05rem; font-weight: 760; letter-spacing: .02em; }

.dbs-card {
  background: #fff;
  border: 1px solid var(--dbs-line);
  border-radius: 18px;
  height: 100%;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: transform .2s ease, box-shadow .2s ease;
}
.dbs-card:hover { box-shadow: 0 18px 44px rgba(63,73,104,.11); transform: translateY(-4px); }
.dbs-feature-image { margin: 0 0 1.25rem; }
.dbs-feature-image img { height: 86px; object-fit: contain; object-position: left center; width: 100px; }
.dbs-number { color: var(--dbs-coral); font-size: .82rem; font-weight: 800; letter-spacing: .12em; }
.dbs-icon {
  align-items: center;
  background: var(--dbs-mint);
  border-radius: 12px;
  color: var(--dbs-ink);
  display: flex;
  font-size: 1.15rem;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.dbs-dark { background: #444d6b; color: #fff; }
.dbs-dark .dbs-lead, .dbs-dark p { color: #cbd6df; }
.dbs-dark .dbs-eyebrow { color: #ffd474; }
.dbs-quote { border-left: 4px solid var(--dbs-coral); padding-left: clamp(1.25rem, 3vw, 2.5rem); }
.dbs-quote blockquote { margin: 0; }
.dbs-quote p { color: #fff; font-size: clamp(1.55rem, 3vw, 2.5rem); font-weight: 650; letter-spacing: -.025em; line-height: 1.25; }
.dbs-customer-logo { background: #fff; border-radius: 12px; display: inline-block; margin-top: 1.25rem; padding: .7rem 1rem; }
.dbs-customer-logo img { display: block; height: 54px; max-width: 180px; object-fit: contain; width: auto; }
.dbs-section-heading { max-width: 820px; }
.dbs-problem-card { background: #fff; border: 1px solid var(--dbs-line); border-radius: 18px; padding: 1.4rem; }
.dbs-problem-card strong { color: var(--dbs-coral); font-size: 1.25rem; }
.dbs-image-panel { border-radius: 24px; box-shadow: var(--dbs-shadow); margin: 0; overflow: hidden; }
.dbs-image-panel img { display: block; height: clamp(380px, 40vw, 560px); object-fit: cover; width: 100%; }
.dbs-tick-list { list-style: none; padding-left: 0; }
.dbs-tick-list li { border-bottom: 1px solid var(--dbs-line); padding: .75rem 0 .75rem 1.8rem; position: relative; }
.dbs-tick-list li::before { color: var(--dbs-coral); content: "✓"; font-weight: 900; left: 0; position: absolute; }
.dbs-audience { border-top: 5px solid var(--dbs-blue); }

.dbs-band { background: var(--dbs-mint); border-radius: 28px; padding: clamp(2rem, 5vw, 4.5rem); }
.dbs-band h2 { max-width: 760px; }
.dbs-pill { background: rgba(255,255,255,.72); border: 1px solid rgba(63,73,104,.14); border-radius: 999px; padding: .65rem 1rem; }
.dbs-pill p { margin: 0; }

.dbs-cta { background: linear-gradient(135deg, #46506e 0%, #333b55 100%); border-radius: 28px; color: #fff; padding: clamp(2.2rem, 5vw, 5rem); }
.dbs-cta p { color: #e2e6ef; }
.dbs-footer { background: #333b55; color: #d9dde6; }
.dbs-footer a { color: #fff; }
.dbs-footer-note { border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; }

@media (max-width: 781px) {
  .dbs-header .wp-block-navigation { display: none; }
  .dbs-hero { padding-top: 3.5rem; }
  .dbs-app { margin-top: 2rem; transform: none; }
  .dbs-brand img { max-width: 225px; }
  .dbs-float-card { position: static; margin-top: .75rem; max-width: none; }
  .dbs-logo-strip .wp-block-group { justify-content: flex-start !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
