/*
Theme Name: VERSTKADOC Document DTP
Theme URI: https://dtpdoc.com/
Description: Lightweight block theme for VERSTKADOC Document DTP with a fully editable Gutenberg homepage.
Version: 0.3.3
Author: VERSTKADOC
License: GPL-2.0-or-later
Text Domain: verstkadoc
*/

:root {
    --vd-bg: #f4f1eb;
    --vd-paper: #fffdf9;
    --vd-ink: #1d2730;
    --vd-muted: #687279;
    --vd-line: #d8d3ca;
    --vd-accent: #bb5c3b;
    --vd-blue: #31586e;
    --vd-alt: #ece7de;
    --vd-container: 1180px;
    --vd-shadow: 0 16px 42px rgba(30,38,44,.08);
    --vd-radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--vd-bg);
    color: var(--vd-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { text-decoration: none; }

/* Shared layout helpers. These classes are deliberately simple so they are easy to inspect in DevTools. */
.vd-container { width: min(calc(100% - 40px), var(--vd-container)); margin-inline: auto; }
.vd-container-tight { width: min(calc(100% - 40px), 900px); margin-inline: auto; }
.vd-section { padding: 88px 0; }
.vd-section-alt { background: var(--vd-alt); border-top: 1px solid var(--vd-line); border-bottom: 1px solid var(--vd-line); }
.vd-eyebrow { font-size: .77rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 800; color: var(--vd-accent); margin: 0 0 14px; }
.vd-muted { color: var(--vd-muted); }

/* Header / navigation */
.vd-site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(244,241,235,.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(189,183,173,.6);
}
.vd-nav-wrap { min-height: 76px; }
.vd-brand { display: flex; align-items: center; gap: 11px; }
.vd-brand-mark {
    width: 36px;
    height: 36px;
    border: 2px solid var(--vd-ink);
    border-radius: 10px;
    background: var(--vd-paper);
    position: relative;
    flex: 0 0 auto;
}
.vd-brand-mark::before {
    content: "";
    position: absolute;
    left: 7px;
    right: 7px;
    top: 10px;
    height: 2px;
    background: var(--vd-ink);
    box-shadow: 0 7px 0 var(--vd-accent), 0 14px 0 var(--vd-blue);
}
.vd-brand-title { font-weight: 800; font-size: 1.02rem; line-height: 1.1; }
.vd-brand-tagline { color: var(--vd-muted); font-weight: 500; font-size: .94rem; line-height: 1.15; }
.vd-main-nav { flex: 1 1 auto; }
.vd-main-nav .wp-block-navigation__container { justify-content: center; gap: 18px; align-items: stretch; }
.vd-main-nav .wp-block-navigation-item__content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 6px 4px;
    text-align: center;
    color: #4b555c;
    line-height: 1.25;
}
.vd-main-nav .wp-block-navigation-item__content:hover,
.vd-main-nav .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content { color: var(--vd-ink); }
.vd-main-nav .vd-nav-cta > .wp-block-navigation-item__content {
    background: var(--vd-ink);
    color: var(--vd-paper);
    padding: 9px 14px;
    border-radius: 999px;
    min-height: auto;
}
.vd-main-nav .wp-block-navigation__responsive-container-open { margin-left: auto; }

/* Gutenberg editor alignment */
.wp-site-blocks > .alignfull { margin-left: 0 !important; margin-right: 0 !important; }
.editor-styles-wrapper,
.editor-styles-wrapper .wp-site-blocks { background: var(--vd-bg); }
.editor-styles-wrapper .vd-section { padding-top: 72px; padding-bottom: 72px; }

/* Typography */
h1, h2, h3, h4, h5, h6,
.wp-block-heading { font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.12; letter-spacing: -.025em; }
.vd-hero-title { font-size: clamp(2.7rem, 5.2vw, 5.15rem); }
.vd-section-title { font-size: clamp(2rem, 3.5vw, 3.25rem); }
.vd-lead { font-size: 1.16rem; color: #4e5960; max-width: 700px; }

/* Buttons */
.vd-button .wp-element-button {
    min-height: 48px;
    padding: 11px 18px;
    border: 1px solid var(--vd-ink);
    border-radius: 999px;
    font-weight: 800;
    background: transparent;
    color: var(--vd-ink);
}
.vd-button.is-style-primary .wp-element-button,
.vd-button-primary .wp-element-button {
    background: var(--vd-ink);
    color: var(--vd-paper);
}
.vd-button .wp-element-button:hover { transform: translateY(-1px); }

/* Hero document illustration */
.vd-doc-stage { min-height: 470px; position: relative; }
.vd-sheet { position: absolute; background: var(--vd-paper); border: 1px solid var(--vd-line); border-radius: 12px; box-shadow: var(--vd-shadow); }
.vd-sheet-back { width: 74%; height: 77%; right: 0; top: 9%; transform: rotate(6deg); opacity: .52; }
.vd-sheet-mid { width: 81%; height: 81%; right: 7%; top: 10%; transform: rotate(-3deg); opacity: .76; }
.vd-sheet-front { width: 87%; height: 86%; right: 12%; top: 4%; padding: 28px; }
.vd-doc-bar { height: 9px; width: 42%; background: var(--vd-accent); border-radius: 9px; margin: 16px 0 18px; }
.vd-doc-title { font: 500 1.72rem/1.12 Georgia, serif; }
.vd-doc-lines { display: grid; gap: 9px; margin: 18px 0; }
.vd-doc-lines span { height: 6px; border-radius: 9px; background: #d7d3cb; display: block; }
.vd-doc-lines span:nth-child(2) { width: 89%; }
.vd-doc-lines span:nth-child(3) { width: 96%; }
.vd-doc-lines span:nth-child(4) { width: 75%; }
.vd-doc-table { display: grid; grid-template-columns: 1.4fr 1fr 1fr; border-top: 1px solid var(--vd-line); border-bottom: 1px solid var(--vd-line); margin-top: 22px; }
.vd-doc-table span { height: 28px; border-right: 1px solid var(--vd-line); border-bottom: 1px solid var(--vd-line); }
.vd-doc-table span:nth-child(3n) { border-right: 0; }

/* Cards, workflow and cases */
.vd-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.vd-grid5 { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
.vd-card { background: var(--vd-paper); border: 1px solid var(--vd-line); border-radius: var(--vd-radius); padding: 24px; height: 100%; }
.vd-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(28,35,40,.06); }
.vd-number-box { width: 38px; height: 38px; border: 1px solid #bdb7ad; border-radius: 11px; display: grid; place-items: center; color: var(--vd-blue); font-weight: 800; margin-bottom: 18px; }
.vd-card p { color: var(--vd-muted); font-size: .94rem; }
.vd-link { color: var(--vd-blue); font-weight: 800; }
.vd-step { border-top: 2px solid var(--vd-ink); padding-top: 16px; height: 100%; }
.vd-step-num { font: 500 2rem Georgia, serif; color: var(--vd-accent); margin-bottom: 7px; }
.vd-audience { padding: 34px; min-height: 270px; background: var(--vd-paper); border: 1px solid var(--vd-line); border-radius: var(--vd-radius); height: 100%; }
.vd-case { background: var(--vd-paper); border: 1px solid var(--vd-line); border-radius: var(--vd-radius); overflow: hidden; height: 100%; }
.vd-case-visual { min-height: 210px; background: linear-gradient(135deg,#ddd8cf,#f6f2eb); display: flex; align-items: center; justify-content: center; padding: 28px; }
.vd-case-mini { width: 78%; height: 76%; min-height: 125px; background: #fff; border: 1px solid #c9c3b9; box-shadow: 0 10px 24px rgba(20,30,35,.1); padding: 15px; position: relative; }
.vd-case-mini::before { content: ""; display: block; width: 37%; height: 8px; background: var(--vd-accent); border-radius: 99px; margin-bottom: 13px; }
.vd-case-mini::after { content: ""; display: block; width: 86%; height: 7px; background: #d8d3cb; border-radius: 99px; box-shadow: 0 14px 0 #d8d3cb, 0 28px 0 #d8d3cb, 0 42px 0 #d8d3cb; }
.vd-case-body { padding: 22px; }
.vd-meta { font-size: .73rem; letter-spacing: .12em; text-transform: uppercase; color: var(--vd-accent); font-weight: 800; }

/* Quote section */
.vd-quote { background: var(--vd-ink); color: var(--vd-paper); padding: 86px 0; }
.vd-quote p { color: #ccd1d4; }
.vd-quote .vd-eyebrow { color: #d68a73; }
.vd-quote-box { border: 1px solid #4b5962; border-radius: 18px; padding: 24px; background: rgba(255,255,255,.03); }

/* Footer */
.vd-footer { padding: 56px 0 32px; border-top: 1px solid var(--vd-line); }
.vd-footer-link-list { display: grid; gap: 8px; }
.vd-footer-link-list a { color: #525c62; font-size: .93rem; }
.vd-footer-bottom { margin-top: 38px; padding-top: 18px; border-top: 1px solid var(--vd-line); color: var(--vd-muted); font-size: .78rem; }

/* Content pages */
.vd-article { max-width: 780px; }
.vd-article p, .vd-article li { color: #4e585e; font-size: 1.03rem; }
.vd-article blockquote { margin: 2em 0; padding: 18px 24px; border-left: 3px solid var(--vd-accent); background: var(--vd-alt); }
.vd-article table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.vd-article th, .vd-article td { border: 1px solid var(--vd-line); padding: 10px 12px; text-align: left; }

[dir="rtl"] .vd-article { direction: rtl; }
[dir="rtl"] .vd-article blockquote { border-left: 0; border-right: 3px solid var(--vd-accent); }
[dir="rtl"] .vd-article th, [dir="rtl"] .vd-article td { text-align: right; }

@media (max-width: 1050px) {
    .vd-grid4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .vd-grid5 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .vd-doc-stage { min-height: 410px; }
}

@media (max-width: 782px) {
    .vd-container, .vd-container-tight { width: min(calc(100% - 28px), var(--vd-container)); }
    .vd-section { padding: 68px 0; }
    .vd-grid4, .vd-grid5 { grid-template-columns: 1fr; }
    .vd-main-nav .wp-block-navigation__container { gap: 4px; }
    .vd-main-nav .wp-block-navigation-item__content { justify-content: center; text-align: center; width: 100%; }
    .vd-doc-stage { min-height: 360px; }
    .vd-sheet-front { right: 7%; width: 88%; }
    .vd-footer-bottom { display: block; }
}
