/*
Theme Name: daza.cloud theme
Theme URI: https://daza.cloud
Author: daza.cloud
Author URI: https://daza.cloud
Description: Lean, hand-coded starting point for every daza.cloud client site. No page builder, no third-party theme framework — just the correct WordPress plumbing plus a small, swappable design-token system. Fork this per client: copy the theme, change the tokens in the :root block below, keep everything else.
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: daza-base
*/

/* =========================================================
   DESIGN TOKENS — this is the only block a client fork should
   need to touch to get a new brand's look. Everything else in
   this file consumes these variables, never a hard-coded value.
   Placeholder palette below is intentionally neutral — swap it.
   ========================================================= */
:root {
  /* Color — neutral placeholder, replace per client */
  --color-ink: #17181c;
  --color-ink-dim: #57595f;
  --color-paper: #ffffff;
  --color-paper-2: #f4f4f5;
  --color-line: #e2e2e5;
  --color-accent: #2f5fe0;
  --color-accent-ink: #ffffff;

  /* Type */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  --font-display: var(--font-body);
  --text-base: 1rem;
  --text-sm: 0.875rem;
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.3rem + 1vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.6rem + 2vw, 3.25rem);
  --leading-tight: 1.15;
  --leading-normal: 1.6;

  /* Space — fixed rem scale, never a percentage of a wrapper.
     This is the direct fix for the Divi gutter bug: a page's
     side padding is always one of these, period. */
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --space-7: 6rem;

  /* Layout */
  --content-max: 72rem;
  --content-pad: clamp(1rem, 4vw, 2.5rem);
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);

  /* Section-library component tokens. Proportions here were measured
     (not eyeballed) off a reference site during the mobile mockup pass —
     card radius, card padding, the 48px stack gap between cards, the
     tight double shadow, the 10px button radius, the 28px step-number
     circle. Keep these ratios when reskinning; only the colors above
     are meant to change per client. */
  --radius-lg: 16px;
  --radius-full: 999px;
  --shadow-tight: 0 2px 10px -4px rgba(0,0,0,.16), 0 1px 3px rgba(0,0,0,.10);
  --shadow-float: 0 20px 60px rgba(0,0,0,.18);
  --gap-card-stack: 3rem;
  --text-2xs: 0.6875rem;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-ink: #f2f0ec;
    --color-ink-dim: #a8a8ad;
    --color-paper: #121214;
    --color-paper-2: #1b1b1e;
    --color-line: #2c2c31;
    color-scheme: dark;
  }
}

/* =========================================================
   RESET — minimal, not a full normalize. Just enough that
   every fork starts from the same clean floor.
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: var(--leading-tight); margin: 0 0 var(--space-2); }
p { margin: 0 0 var(--space-3); }
ul, ol { margin: 0 0 var(--space-3); padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Accessibility: visible focus, always */
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--color-accent); color: var(--color-accent-ink);
  padding: var(--space-2) var(--space-3); border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* =========================================================
   LAYOUT PRIMITIVES
   ========================================================= */
.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--content-pad);
}
.section { padding-block: var(--space-6); }
.section--tight { padding-block: var(--space-5); }

.stack > * + * { margin-top: var(--space-3); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }

/* =========================================================
   SITE HEADER / NAV
   ========================================================= */
.site-header {
  border-bottom: 1px solid var(--color-line);
  background: var(--color-paper);
}
.site-header__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-3);
}
.site-branding__link {
  font-weight: 700; font-size: var(--text-lg); text-decoration: none;
}
.primary-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--space-4);
}
.primary-nav a {
  text-decoration: none; font-size: var(--text-sm); font-weight: 600;
  letter-spacing: .01em;
}
.primary-nav a:hover { color: var(--color-accent); }

.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--color-line); border-radius: var(--radius);
  padding: var(--space-1) var(--space-2); cursor: pointer;
}

@media (max-width: 47.9375rem) {
  .menu-toggle { display: inline-flex; }
  .primary-nav { width: 100%; }
  .primary-nav ul { flex-direction: column; gap: var(--space-2); padding-block: var(--space-3) 0; }
  .primary-nav[data-open="false"] { display: none; }
}

/* =========================================================
   COMPONENTS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-weight: 600; font-size: var(--text-sm);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { border-color: var(--color-line); color: var(--color-ink); }
.btn--ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }

.eyebrow {
  display: block; font-size: var(--text-sm); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--color-ink-dim);
  margin-bottom: var(--space-2);
}

.card {
  background: var(--color-paper-2);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: var(--space-4);
}

.hero {
  padding-block: var(--space-7);
  text-align: left;
}
.hero h1 { font-size: var(--text-2xl); max-width: 20ch; }
.hero p.lede { font-size: var(--text-lg); color: var(--color-ink-dim); max-width: 50ch; }

.grid {
  display: grid; gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

/* =========================================================
   SECTION LIBRARY — the reusable homepage-section components.
   Every template-parts/section-*.php file below draws only on
   these classes plus the primitives above (.container, .stack,
   .cluster, .btn, .card, .eyebrow, .grid). Mobile-first: default
   rules are single column; min-width queries add columns.
   ========================================================= */

.section-head { margin-bottom: var(--space-5); max-width: 40rem; }
.kicker-line { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-1); }
.kicker-line .bar { width: 3px; height: 1.1em; background: var(--color-accent); border-radius: 2px; flex: none; }
.kicker-line .eyebrow { margin-bottom: 0; }

/* Card stack — mobile-first single column, gap matches the
   measured 48px value (feels noticeably better than a tighter
   gutter once cards carry an icon + badge + heading + tags). */
.card-stack { display: flex; flex-direction: column; gap: var(--gap-card-stack); }
@media (min-width: 48rem) {
  .card-stack--grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
}

.card { border-radius: var(--radius-lg); box-shadow: var(--shadow-tight); padding: var(--space-4) var(--space-4); }
.card-icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: var(--radius); background: var(--color-paper); border: 1px solid var(--color-line);
  font-size: 1.35rem; margin-bottom: var(--space-2);
}
.card h3 { font-size: 1.05rem; }

.badge {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-size: var(--text-2xs); font-weight: 700; letter-spacing: .02em;
  color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 10%, transparent);
  border-radius: var(--radius-full); padding: .18rem .55rem; margin-bottom: var(--space-2);
}

.tag-row { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.tag {
  font-size: var(--text-sm); font-weight: 600; display: inline-flex; align-items: center; gap: var(--space-1);
  color: var(--color-ink); background: var(--color-paper); border-radius: var(--radius-full);
  padding: .3rem .7rem .3rem .55rem;
}
.tag::before { content: '\2713'; font-weight: 800; color: var(--color-accent); }

/* Numbered steps — small marker circle inside its own compact
   card, no connecting line (matches how the reference pattern
   actually renders once measured, not the bigger decorative
   version assumed before that). */
.steps { display: flex; flex-direction: column; gap: var(--space-2); }
.step {
  display: flex; gap: var(--space-3); align-items: flex-start;
  background: var(--color-paper-2); border: 1px solid var(--color-line);
  border-radius: var(--radius); padding: var(--space-3) var(--space-4);
}
.step-num {
  font-weight: 700; font-size: .82rem; flex: none; width: 28px; height: 28px;
  border-radius: 50%; background: var(--color-ink); color: var(--color-paper);
  display: grid; place-items: center;
}
.step h3 { font-size: .95rem; margin-bottom: .25rem; }
.step p { font-size: .84rem; color: var(--color-ink-dim); margin: 0; }

.result-card {
  background: var(--color-paper-2); border: 1px solid var(--color-line);
  border-radius: var(--radius-lg); padding: var(--space-4);
}
.result-card .stat { font-weight: 800; font-size: 2.4rem; color: var(--color-accent); line-height: 1; margin-bottom: var(--space-1); }
.result-card .stat-label { font-size: .85rem; color: var(--color-ink-dim); margin-bottom: var(--space-3); }
.result-card blockquote {
  margin: 0 0 var(--space-2); padding-left: var(--space-3); border-left: 2px solid var(--color-accent);
  font-style: italic; font-size: .95rem;
}
.result-card .who { font-size: .85rem; color: var(--color-ink-dim); }

/* Stat tiles — trust-stats section. Numbers here are always
   placeholder until a fork has real, honest figures to put in;
   never fabricate a plausible-looking number. */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.stat-tile {
  background: var(--color-paper-2); border: 1px solid var(--color-line);
  border-radius: var(--radius); padding: var(--space-3) var(--space-2); text-align: center;
}
.stat-num { font-weight: 800; font-size: 1.5rem; color: var(--color-accent); }
.stat-label { font-size: .75rem; color: var(--color-ink-dim); margin-top: var(--space-1); line-height: 1.3; }

/* Dashboard rows — simple list of feature rows (e.g. a client
   portal pitch). */
.dash-list { display: flex; flex-direction: column; gap: var(--space-2); }
.dash-row {
  display: flex; align-items: center; gap: var(--space-3);
  background: var(--color-paper-2); border: 1px solid var(--color-line); border-radius: var(--radius);
  padding: var(--space-2) var(--space-3); font-weight: 600; font-size: .92rem;
}
.dash-icon {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center;
  background: var(--color-paper); border: 1px solid var(--color-line); border-radius: var(--radius);
  font-size: 1.05rem;
}

/* Feature checklist rows */
.feat-list { display: flex; flex-direction: column; gap: var(--space-4); }
.feat-row { display: flex; gap: var(--space-3); align-items: flex-start; }
.feat-icon {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  background: color-mix(in srgb, var(--color-accent) 10%, transparent); border-radius: var(--radius);
  font-size: 1.1rem;
}
.feat-row h3 { font-size: .95rem; margin-bottom: .2rem; }
.feat-row p { font-size: .85rem; color: var(--color-ink-dim); margin: 0; }

/* Industries/niches grid — solid gradient tiles, never a stock
   photo standing in for a real client. */
.niche-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.niche-card {
  border-radius: var(--radius-lg); padding: var(--space-4) var(--space-3);
  display: flex; flex-direction: column; gap: var(--space-2); min-height: 6rem; justify-content: flex-end;
  box-shadow: var(--shadow-float); color: #fff;
}
.niche-icon { font-size: 1.4rem; }
.niche-label { font-size: .9rem; font-weight: 700; }

/* Pricing card */
.plan-card {
  background: var(--color-paper-2); border: 1px solid var(--color-line);
  border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-float);
}
.plan-card .plan-name { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--color-ink-dim); margin-bottom: var(--space-1); }
.plan-card .price { font-weight: 800; font-size: 2.4rem; margin-bottom: var(--space-3); }
.plan-card .price small { font-weight: 600; font-size: .9rem; color: var(--color-ink-dim); }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin-bottom: var(--space-4); }
.check-item { font-size: .85rem; display: flex; gap: var(--space-1); line-height: 1.35; }
.check-item::before { content: '\2713'; color: var(--color-accent); flex: none; font-weight: 800; }

/* FAQ accordion — native <details>/<summary>, zero JS. */
.faq-item { border-bottom: 1px solid var(--color-line); padding-block: var(--space-3); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); font-weight: 700; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; flex: none; font-weight: 400; font-size: 1.2rem; color: var(--color-accent); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { font-size: .9rem; color: var(--color-ink-dim); margin-top: var(--space-2); max-width: 56ch; }

/* Icon+two-line rich CTA button — a wider tap target than .btn,
   with a leading icon and a two-line label (headline + reassurance
   line). The two spans MUST stay flex/column, not inline, or the
   lines merge into one run-on sentence. */
.btn-icon {
  display: flex; align-items: center; gap: var(--space-3); width: 100%;
  background: var(--color-accent); color: var(--color-accent-ink);
  border-radius: var(--radius); padding: .9rem 1.375rem; text-align: left;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-icon:hover { transform: translateY(-2px); }
.btn-icon .icon {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  background: rgba(255,255,255,.2); border-radius: 50%; font-size: 1.1rem;
}
.btn-icon .copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.btn-icon .copy .line1 { font-weight: 800; font-size: .98rem; line-height: 1.25; }
.btn-icon .copy .line2 { font-size: .78rem; opacity: .8; line-height: 1.3; font-weight: 600; }
.btn-icon .arrow {
  width: 30px; height: 30px; flex: none; display: grid; place-items: center;
  background: rgba(255,255,255,.22); border-radius: 50%; font-size: .9rem;
}
.btn-icon--outline { background: transparent; border: 1px solid var(--color-line); color: var(--color-ink); }
.btn-icon--outline .icon, .btn-icon--outline .arrow { background: var(--color-paper-2); }

/* Chip row — used for hero service tags and the service-areas strip */
.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.chip { border: 1px solid var(--color-line); border-radius: var(--radius-full); padding: .35rem .8rem; font-size: .82rem; color: var(--color-ink-dim); }

.icon-row { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--space-2); }
.icon-chip {
  width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--color-paper-2); border: 1px solid var(--color-line); border-radius: var(--radius);
  font-size: 1.3rem;
}

/* Centered CTA banner section */
.cta-banner { text-align: center; }
.cta-banner .btn-icon { max-width: 24rem; margin-inline: auto; }

/* Styling for the dazacloud_lead_capture shortcode's own bare
   markup (it ships zero CSS by design — confirmed, not assumed).
   Selectors are deliberately loose (input/button, not a specific
   class) since the shortcode's exact class names aren't part of
   its documented/stable contract from this theme's side. */
.cta-banner__form { max-width: 26rem; margin-inline: auto; }
.cta-banner__form form { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; }
.cta-banner__form input[type="email"],
.cta-banner__form input[type="text"] {
  flex: 1 1 12rem; min-width: 0;
  border: 1px solid var(--color-line); border-radius: var(--radius);
  padding: .75rem 1rem; font-size: var(--text-base); background: var(--color-paper);
}
.cta-banner__form button,
.cta-banner__form input[type="submit"] {
  flex: none; border: none; border-radius: var(--radius);
  padding: .75rem 1.5rem; font-weight: 700; font-size: var(--text-sm);
  background: var(--color-accent); color: var(--color-accent-ink); cursor: pointer;
}

@media (min-width: 40rem) {
  .stat-grid, .niche-grid, .check-grid { gap: var(--space-3); }
}

/* =========================================================
   OPTIONAL MOBILE CHROME — fixed bottom tab bar + full-screen
   menu overlay. NOT wired into header.php/footer.php by default
   (not every fork wants a bottom bar); a fork opts in by calling
   get_template_part( 'template-parts/mobile-tab-bar' ) and
   get_template_part( 'template-parts/mobile-menu' ) and letting
   js/mobile-menu.js do the rest. Hidden above tablet width, where
   the primary nav in the header already covers navigation.
   ========================================================= */
.tab-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--color-paper); backdrop-filter: blur(16px);
  border-top: 1px solid var(--color-line);
  padding: .55rem .3rem calc(.55rem + env(safe-area-inset-bottom, 0px));
}
.tab-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: .2rem;
  font-size: .68rem; font-weight: 600; color: var(--color-ink-dim);
  padding-block: .2rem; text-decoration: none;
}
.tab-item .tab-icon { font-size: 1.15rem; }
.tab-item.is-active { color: var(--color-accent); }
@media (max-width: 47.9375rem) {
  .tab-bar { display: flex; }
  /* :has() is progressive enhancement: if a browser doesn't support
     it, the only loss is the bottom padding under the tab bar —
     nothing breaks. */
  body:has(.tab-bar) main { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)); }
}

.menu-overlay {
  position: fixed; inset: 0; z-index: 50; background: var(--color-paper);
  overflow-y: auto; padding: var(--space-3) var(--content-pad) calc(var(--space-5) + env(safe-area-inset-bottom, 0px));
}
.menu-overlay[hidden] { display: none; }
.menu-overlay .menu-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-4); }
.menu-close {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--color-line); border-radius: var(--radius); font-size: 1.1rem; background: none; cursor: pointer;
}
.menu-group-label { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .08em; color: var(--color-ink-dim); margin: var(--space-3) 0 var(--space-2); }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin-bottom: var(--space-3); }
.menu-tile {
  background: var(--color-paper-2); border: 1px solid var(--color-line); border-radius: var(--radius);
  padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); position: relative;
}
.menu-tile .tile-icon { width: 34px; height: 34px; display: grid; place-items: center; background: var(--color-paper); border-radius: var(--radius); font-size: 1.1rem; }
.menu-tile .title { font-size: .9rem; font-weight: 700; }
.menu-links { display: flex; flex-direction: column; }
.menu-links a { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3) 0; border-top: 1px solid var(--color-line); font-weight: 700; text-decoration: none; }

/* =========================================================
   SITE FOOTER
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--color-line);
  color: var(--color-ink-dim);
  font-size: var(--text-sm);
}
.site-footer__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3);
  padding-block: var(--space-4);
}

/* =========================================================
   WORDPRESS CORE CLASSES — keep these so default blocks,
   captions, and the admin bar don't visually break.
   ========================================================= */
.alignwide { max-width: calc(var(--content-max) + 6rem); }
.alignfull { max-width: none; }
.wp-caption-text { font-size: var(--text-sm); color: var(--color-ink-dim); }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; overflow: hidden; position: absolute; word-wrap: normal !important;
}
