/*
Theme Name: DC Demo Minimal
Theme URI: https://demo.dacostaconsulting.ca
Author: DaCosta Consulting
Author URI: https://dacostaconsulting.ca
Description: Minimal, secure demo theme for client previews. Neutral styling, system fonts, and simple layout for custom code blocks and brand-specific designs.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Text Domain: dcdc-demo
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* Root tokens – override these in your custom CSS or per-page code blocks */
:root {
  --dc-bg: #0b1120;         /* dark shell (hero sections, etc.) */
  --dc-bg-soft: #f8fafc;    /* light page background */
  --dc-ink: #020617;        /* primary text */
  --dc-ink-soft: #64748b;   /* muted text */
  --dc-accent: #3b82f6;     /* neutral blue accent */
  --dc-border-subtle: #e2e8f0;
  --dc-radius-lg: 16px;
  --dc-radius-xl: 24px;
  --dc-shell-max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--dc-bg-soft);
  color: var(--dc-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Layout shell */
.dcdc-site-header,
.dcdc-site-main,
.dcdc-site-footer {
  width: 100%;
}

.dcdc-shell {
  max-width: var(--dc-shell-max);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.dcdc-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.dcdc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 16px;
}

.dcdc-branding {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dcdc-site-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dcdc-site-title a {
  text-decoration: none;
  color: var(--dc-ink);
}

.dcdc-site-tagline {
  margin: 0;
  font-size: 0.8rem;
  color: var(--dc-ink-soft);
}

/* Nav */
.dcdc-primary-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
}

.dcdc-primary-nav a {
  text-decoration: none;
  color: var(--dc-ink-soft);
  font-weight: 600;
}

.dcdc-primary-nav a:hover,
.dcdc-primary-nav .current-menu-item > a {
  color: var(--dc-ink);
}

/* Main */
.dcdc-site-main {
  padding: 32px 0 48px;
}

/* “Card” wrapper for content – looks good on its own if you just paste custom sections */
.dcdc-page-frame {
  background: #ffffff;
  border-radius: var(--dc-radius-xl);
  border: 1px solid var(--dc-border-subtle);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--dc-ink);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.1rem, 3vw, 2.6rem);
  margin-bottom: 0.8em;
}

h2 {
  font-size: clamp(1.6rem, 2.3vw, 2rem);
  margin-bottom: 0.75em;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6em;
}

p {
  margin: 0 0 1.1em;
  color: var(--dc-ink-soft);
  line-height: 1.7;
}

/* Links / buttons */
a {
  color: var(--dc-accent);
}

a:hover {
  text-decoration: underline;
}

/* WordPress content alignment */
.alignwide {
  max-width: min(1280px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

/* Footer */
.dcdc-site-footer {
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  padding: 18px 0 26px;
  background: #f1f5f9;
  font-size: 0.8rem;
  color: var(--dc-ink-soft);
}

.dcdc-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dcdc-footer-inner a {
  color: inherit;
  text-decoration: none;
}

.dcdc-footer-inner a:hover {
  text-decoration: underline;
}

/* Gutenberg & forms basic tweaks */
.wp-block-image img {
  border-radius: 12px;
}

/* Utility class you can use in code blocks if you want edge-to-edge heroes */
.dcdc-full-shell {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Small screens */
@media (max-width: 768px) {
  .dcdc-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .dcdc-page-frame {
    padding: 20px 18px;
  }
}
