/*
Theme Name: Designature
Theme URI: https://www.designature.nl
Author: Designature
Author URI: https://www.designature.nl
Description: Lichtgewicht custom theme voor Designature — technisch ontwerp- en adviesbureau. Geen page builder, WooCommerce-klaar.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: designature
Tags: custom-theme, portfolio, woocommerce
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
  --ds-paper: #F4F3EE;
  --ds-white: #FFFFFF;
  --ds-ink: #1A1A14;
  --ds-body: #46453B;
  --ds-muted: #8A887B;
  --ds-line: rgba(26, 26, 20, 0.08);
  --ds-line-strong: rgba(26, 26, 20, 0.25);
  --ds-lime: #D4DE18;
  --ds-lime-soft: #E7EF6E;
  --ds-lime-wash: #EEF0CF;
  --ds-dark-card: #232218;
  --ds-dark-card-hover: #2C2B1F;
  --ds-dark-line: #35342B;
  --ds-dark-muted: #9C9A8A;
  --ds-dark-body: #B6B4A6;

  --ds-font-body: 'SUSE', system-ui, -apple-system, sans-serif;
  --ds-font-display: 'Schibsted Grotesk', 'SUSE', system-ui, sans-serif;

  --ds-radius-sm: 16px;
  --ds-radius: 20px;
  --ds-radius-lg: 24px;
  --ds-radius-pill: 999px;

  --ds-max: 1280px;
  --ds-gutter: 32px;
  --ds-header-h: 80px;

  --ds-ease: cubic-bezier(.2, .7, .2, 1);
  --ds-shadow-card: 0 24px 50px -34px rgba(30, 30, 20, .3);
  --ds-shadow-card-hover: 0 34px 64px -32px rgba(30, 30, 20, .42);
  --ds-shadow-media: 0 30px 60px -36px rgba(30, 30, 20, .4);
  --ds-shadow-hero: 0 40px 80px -40px rgba(30, 30, 20, .5);
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ds-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ds-ink);
  background: var(--ds-paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--ds-ink); }
button { font: inherit; }
input, textarea, select { font-family: var(--ds-font-body); font-size: 16px; }
::selection { background: var(--ds-lime); color: var(--ds-ink); }
:focus-visible { outline: 2px solid var(--ds-lime); outline-offset: 3px; }

.ds-skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ds-ink); color: var(--ds-paper);
  padding: 12px 20px; border-radius: 0 0 var(--ds-radius-sm) 0;
}
.ds-skip-link:focus { left: 0; color: var(--ds-paper); }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* ==========================================================================
   3. Layout
   ========================================================================== */
.ds-container { width: 100%; max-width: var(--ds-max); margin: 0 auto; padding: 0 var(--ds-gutter); }
.ds-section { padding: clamp(64px, 9vw, 120px) 0; }
.ds-section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.ds-section--paper { background: var(--ds-paper); }
.ds-section--white { background: var(--ds-white); }
.ds-section--dark { background: var(--ds-ink); color: var(--ds-paper); }
.ds-section--wash { background: radial-gradient(115% 90% at 84% 0%, var(--ds-lime-wash) 0%, rgba(238, 240, 207, 0) 55%), var(--ds-paper); }

.ds-grid { display: grid; gap: 20px; }
.ds-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 48px; align-items: center; }
.ds-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.ds-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.ds-grid--cards { grid-template-columns: repeat(auto-fit, minmax(min(255px, 100%), 1fr)); gap: 22px; }
.ds-grid--services { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }

.ds-stack { display: flex; flex-direction: column; }
.ds-row { display: flex; flex-wrap: wrap; gap: 14px; }
.ds-row--between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }

/* ==========================================================================
   4. Type
   ========================================================================== */
.ds-display { font-family: var(--ds-font-display); font-weight: 600; letter-spacing: -.02em; line-height: 1.02; }
.ds-h1 { font-size: clamp(44px, 6vw, 88px); line-height: .96; letter-spacing: -.015em; }
.ds-h2 { font-size: clamp(36px, 4.6vw, 60px); letter-spacing: -.01em; line-height: 1.02; }
.ds-h3 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.16; letter-spacing: -.01em; font-weight: 500; }
.ds-h4 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.01em; }

.ds-lead { font-size: 19px; line-height: 1.6; color: var(--ds-body); max-width: 52ch; }
.ds-text { font-size: 16px; line-height: 1.7; color: var(--ds-body); }
.ds-text--sm { font-size: 15px; line-height: 1.65; color: var(--ds-body); }
.ds-text--xs { font-size: 14px; line-height: 1.6; color: var(--ds-body); }
.ds-muted { color: var(--ds-muted); }
.ds-dot { color: var(--ds-lime); }

.ds-mark { background: linear-gradient(transparent 58%, var(--ds-lime-soft) 58%); padding: 0 .04em; }
.ds-section--dark .ds-mark { background: linear-gradient(transparent 58%, rgba(212, 222, 24, .4) 58%); }

.ds-eyebrow {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ds-muted);
}
.ds-eyebrow__dot { width: 7px; height: 7px; background: var(--ds-lime); border-radius: 50%; }
.ds-eyebrow__num { color: var(--ds-ink); }
.ds-eyebrow__rule { width: 34px; height: 1px; background: #C9C7BC; }
.ds-section--dark .ds-eyebrow { color: var(--ds-dark-muted); }
.ds-section--dark .ds-eyebrow__num { color: var(--ds-lime); }
.ds-section--dark .ds-eyebrow__rule { background: var(--ds-dark-line); }

.ds-num { font-family: var(--ds-font-display); font-weight: 600; line-height: 1; color: #BFBDB0; }
.ds-num--lg { font-size: 52px; }
.ds-num--md { font-size: 40px; }
.ds-num--sm { font-size: 26px; }
.ds-section--dark .ds-num { color: var(--ds-dark-muted); }

/* Editor / page content */
.ds-entry-content > * + * { margin-top: 1.1em; }
.ds-entry-content h2 { font-family: var(--ds-font-display); font-size: clamp(28px, 3.2vw, 42px); letter-spacing: -.01em; line-height: 1.08; margin-top: 1.8em; }
.ds-entry-content h3 { font-family: var(--ds-font-display); font-size: clamp(21px, 2.2vw, 28px); letter-spacing: -.01em; margin-top: 1.6em; }
.ds-entry-content p, .ds-entry-content li { font-size: 17px; line-height: 1.75; color: var(--ds-body); }
.ds-entry-content ul, .ds-entry-content ol { padding-left: 1.2em; }
.ds-entry-content li + li { margin-top: .4em; }
.ds-entry-content a { color: var(--ds-ink); border-bottom: 1px solid var(--ds-lime); }
.ds-entry-content img, .ds-entry-content .wp-block-image img { border-radius: var(--ds-radius); }
.ds-entry-content blockquote {
  font-family: var(--ds-font-display); font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.3; padding-left: 24px; border-left: 3px solid var(--ds-lime);
}
.ds-entry-content figcaption { font-size: 13px; color: var(--ds-muted); margin-top: 10px; }

/* ==========================================================================
   5. Buttons
   ========================================================================== */
.ds-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border: 1px solid transparent; border-radius: var(--ds-radius-pill);
  font-size: 15px; font-weight: 500; cursor: pointer;
  transition: transform .25s var(--ds-ease), box-shadow .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
}
.ds-btn--dark { background: var(--ds-ink); color: var(--ds-paper); }
.ds-btn--dark:hover { color: var(--ds-paper); transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(26, 26, 20, .6); }
.ds-btn--lime { background: var(--ds-lime); color: var(--ds-ink); font-weight: 600; }
.ds-btn--lime:hover { color: var(--ds-ink); transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(212, 222, 24, .6); }
.ds-btn--ghost { background: transparent; color: var(--ds-ink); border-color: var(--ds-line-strong); }
.ds-btn--ghost:hover { color: var(--ds-ink); background: rgba(26, 26, 20, .05); border-color: rgba(26, 26, 20, .55); }
.ds-section--dark .ds-btn--ghost { color: var(--ds-paper); border-color: var(--ds-dark-line); }
.ds-section--dark .ds-btn--ghost:hover { color: var(--ds-paper); background: rgba(244, 243, 238, .08); border-color: var(--ds-lime); }
.ds-btn--sm { padding: 11px 20px; font-size: 14px; }
.ds-btn__arrow { color: var(--ds-lime); }
.ds-btn--lime .ds-btn__arrow { color: var(--ds-ink); }

.ds-link-underline { font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--ds-lime); padding-bottom: 4px; }
.ds-icon-btn {
  width: 52px; height: 52px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(26, 26, 20, .22); border-radius: 50%;
  background: transparent; color: var(--ds-ink); font-size: 19px; cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.ds-icon-btn:hover { background: var(--ds-ink); color: var(--ds-paper); border-color: var(--ds-ink); }
.ds-icon-btn--sm { width: 44px; height: 44px; font-size: 17px; }

/* ==========================================================================
   6. Header & navigation
   ========================================================================== */
.ds-progress {
  position: fixed; inset: 0 auto auto 0; height: 3px; width: 0;
  background: var(--ds-lime); z-index: 60; pointer-events: none;
  transition: width .1s linear;
}
.ds-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 243, 238, .82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(26, 26, 20, .06);
  transition: box-shadow .35s ease, background .35s ease;
}
.ds-header.is-scrolled { background: rgba(244, 243, 238, .94); box-shadow: 0 10px 34px -20px rgba(26, 26, 20, .5); }
.ds-header__inner {
  min-height: var(--ds-header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.ds-brand { display: flex; align-items: center; gap: 14px; flex: none; }
.ds-brand__name { font-weight: 600; font-size: 21px; letter-spacing: -.01em; }
.ds-brand__logo img { max-height: 46px; width: auto; }
.ds-logomark {
  position: relative; width: 42px; height: 42px; flex: none;
  background: var(--ds-ink); border-radius: 3px;
  display: inline-flex; align-items: center; justify-content: center;
}
.ds-logomark__d { position: relative; width: 19px; height: 25px; }
.ds-logomark__d::before {
  content: ''; position: absolute; inset: 0;
  border: 3px solid var(--ds-paper); border-left: none; border-radius: 0 13px 13px 0;
}
.ds-logomark__d::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--ds-lime);
}
.ds-logomark--lg { width: 50px; height: 50px; border-radius: 4px; }
.ds-logomark--lg .ds-logomark__d { width: 23px; height: 30px; }
.ds-logomark--lg .ds-logomark__d::before { border-width: 3.5px; border-radius: 0 16px 16px 0; }
.ds-logomark--lg .ds-logomark__d::after { width: 6px; }

.ds-nav { display: flex; align-items: center; gap: 6px; }
.ds-nav__menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; }
.ds-nav__menu li { position: relative; }
.ds-nav__menu a {
  display: block; padding: 9px 14px; border-radius: var(--ds-radius-pill);
  font-size: 15px; font-weight: 500; color: var(--ds-body);
  transition: background .25s ease, color .25s ease;
}
.ds-nav__menu a:hover { background: rgba(26, 26, 20, .06); color: var(--ds-ink); }
.ds-nav__menu .current-menu-item > a,
.ds-nav__menu .current_page_item > a,
.ds-nav__menu .current-menu-parent > a {
  color: var(--ds-ink); background: rgba(212, 222, 24, .35);
}
/* dropdowns */
.ds-nav__menu .sub-menu {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 20;
  min-width: 220px; padding: 10px; margin: 0; list-style: none;
  background: var(--ds-white); border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-sm); box-shadow: var(--ds-shadow-card);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.ds-nav__menu li:hover > .sub-menu,
.ds-nav__menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ds-nav__menu .sub-menu a { padding: 10px 14px; border-radius: 10px; }

.ds-header__actions { display: flex; align-items: center; gap: 10px; }
.ds-cart-link { position: relative; }
.ds-cart-link__count {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ds-lime); color: var(--ds-ink);
  border-radius: var(--ds-radius-pill); font-size: 11px; font-weight: 700;
}
.ds-cart-link.is-bumped { transform: scale(1.22); }

.ds-nav-toggle {
  display: none; width: 46px; height: 46px; flex: none;
  align-items: center; justify-content: center; gap: 5px; flex-direction: column;
  background: transparent; border: 1px solid var(--ds-line-strong); border-radius: 50%; cursor: pointer;
}
.ds-nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ds-ink); transition: transform .3s ease, opacity .3s ease; }
.ds-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.ds-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ds-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ==========================================================================
   7. Hero
   ========================================================================== */
.ds-hero { position: relative; }
.ds-hero__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 56px; align-items: center;
  padding: clamp(48px, 8vw, 104px) 0 clamp(48px, 6vw, 88px);
}
.ds-hero__eyebrow { margin-bottom: 30px; }
.ds-hero__lead { margin-top: 30px; }
.ds-hero__actions { margin-top: 38px; }
.ds-hero__media { position: relative; }
.ds-hero__accent {
  position: absolute; inset: 22px -22px -22px 22px;
  background: var(--ds-lime); border-radius: var(--ds-radius-lg);
}
.ds-hero__frame {
  position: relative; border-radius: var(--ds-radius-lg); overflow: hidden;
  box-shadow: var(--ds-shadow-hero); aspect-ratio: 4 / 3.2;
}
.ds-hero__frame img { width: 100%; height: 100%; object-fit: cover; }

.ds-page-header { padding: clamp(56px, 8vw, 100px) 0 clamp(44px, 6vw, 72px); }
.ds-page-header__eyebrow { margin-bottom: 26px; }
.ds-page-header__lead { margin-top: 26px; max-width: 58ch; }

/* ==========================================================================
   8. Media
   ========================================================================== */
.ds-media { position: relative; overflow: hidden; border-radius: var(--ds-radius-lg); box-shadow: var(--ds-shadow-media); }
.ds-media img { width: 100%; height: 100%; object-fit: cover; }
.ds-media--4x3 { aspect-ratio: 4 / 3; }
.ds-media--16x11 { aspect-ratio: 16 / 11; }
.ds-media--21x8 { aspect-ratio: 21 / 8; }
.ds-media--1x1 { aspect-ratio: 1 / 1; }
.ds-media--tall { min-height: 360px; }
.ds-media__dot { position: absolute; top: 16px; left: 16px; width: 10px; height: 10px; background: var(--ds-lime); border-radius: 50%; }
.ds-media__badge {
  position: absolute; bottom: 18px; left: 18px;
  font-size: 13px; font-weight: 500; letter-spacing: .04em;
  color: var(--ds-ink); background: var(--ds-lime);
  padding: 8px 16px; border-radius: var(--ds-radius-pill);
}
.ds-zoom img { transition: transform .6s var(--ds-ease); will-change: transform; }
.ds-zoom:hover img { transform: scale(1.06); }

/* ==========================================================================
   9. Cards
   ========================================================================== */
.ds-card {
  display: flex; flex-direction: column;
  background: var(--ds-white); border-radius: var(--ds-radius); overflow: hidden;
  box-shadow: var(--ds-shadow-card);
  transition: transform .4s var(--ds-ease), box-shadow .4s ease;
}
.ds-card:hover { transform: translateY(-7px); box-shadow: var(--ds-shadow-card-hover); }
.ds-card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.ds-card__media--square { aspect-ratio: 1 / 1; }
.ds-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ds-card__body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.ds-card__title { font-size: 20px; font-weight: 600; }
.ds-card__num { margin-bottom: 14px; font-size: 38px; color: var(--ds-ink); }

.ds-card--flat {
  background: var(--ds-paper); box-shadow: none;
  padding: 34px 30px 38px;
}
.ds-card--flat:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -30px rgba(30, 30, 20, .32); }
.ds-card--flat-white { background: var(--ds-white); padding: 28px 26px; box-shadow: none; }
.ds-card--flat-white:hover { transform: translateY(-5px); box-shadow: 0 24px 46px -30px rgba(30, 30, 20, .3); }
.ds-card__heading { font-size: 22px; font-weight: 600; margin-bottom: 14px; }
.ds-card__heading--sm { font-size: 20px; font-weight: 600; margin-bottom: 10px; }

.ds-card--dark {
  background: var(--ds-dark-card); color: var(--ds-paper);
  padding: 32px 28px 36px; border-radius: 18px; box-shadow: none;
}
.ds-card--dark:hover { transform: translateY(-6px); background: var(--ds-dark-card-hover); box-shadow: none; }
.ds-card--dark .ds-text--sm, .ds-card--dark .ds-text--xs { color: var(--ds-dark-body); }
.ds-card--dark .ds-num { color: var(--ds-dark-muted); }
.ds-card--accent { background: var(--ds-dark-card-hover); border: 1px solid rgba(212, 222, 24, .35); }
.ds-card--accent:hover { background: #35341F; }
.ds-card--accent .ds-num { color: var(--ds-lime); }
.ds-card--ink { background: #535351; color: var(--ds-paper); }
.ds-card--ink .ds-num { color: var(--ds-lime); }
.ds-card--ink .ds-text--sm { color: var(--ds-dark-body); }
.ds-card--outline {
  background: transparent; padding: 26px 24px 30px;
  border: 1px solid var(--ds-dark-line); border-radius: var(--ds-radius-sm); box-shadow: none;
}
.ds-card--outline:hover { transform: translateY(-4px); border-color: var(--ds-lime); box-shadow: none; }
.ds-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.ds-card__arrow { color: var(--ds-lime); font-size: 18px; }
.ds-card__kicker { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ds-lime); margin-bottom: 14px; }

.ds-badge {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ds-ink); background: var(--ds-lime);
  border-radius: var(--ds-radius-pill); padding: 6px 12px;
}
.ds-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ds-tag {
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ds-body); background: var(--ds-paper);
  border-radius: var(--ds-radius-pill); padding: 6px 12px;
}
.ds-tag--lg { font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; padding: 8px 16px; }
.ds-section--white .ds-tag--lg { background: var(--ds-paper); }
.ds-section--paper .ds-tag--lg { background: var(--ds-white); }
.ds-section--dark .ds-tag--lg { background: var(--ds-dark-card-hover); color: var(--ds-paper); }

.ds-meta-list { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--ds-line); }
.ds-meta-list__row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.ds-meta-list__label { color: var(--ds-muted); }
.ds-meta-list__value { font-weight: 500; text-align: right; }

/* ==========================================================================
   10. Slider (projects)
   ========================================================================== */
.ds-slider__track {
  display: flex; gap: 22px; overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 6px 18px; margin: -6px -6px 0;
  -webkit-overflow-scrolling: touch; cursor: grab;
  scrollbar-width: none; -ms-overflow-style: none;
}
.ds-slider__track::-webkit-scrollbar { display: none; }
.ds-slider__item { flex: 0 0 min(440px, 84%); scroll-snap-align: start; }
.ds-slider__nav { display: flex; gap: 12px; }

/* ==========================================================================
   11. Contact rows & forms
   ========================================================================== */
.ds-contact-rows { display: flex; flex-direction: column; }
.ds-contact-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 26px 4px; border-top: 1px solid var(--ds-dark-line);
  transition: padding .25s ease;
}
.ds-contact-row:last-child { border-bottom: 1px solid var(--ds-dark-line); }
a.ds-contact-row:hover { padding-left: 14px; padding-right: 14px; color: var(--ds-paper); }
.ds-contact-row__label { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ds-dark-muted); }
.ds-contact-row__value { font-size: 21px; font-weight: 500; text-align: right; }

.ds-form { display: grid; gap: 16px; }
.ds-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.ds-field { display: flex; flex-direction: column; gap: 8px; }
.ds-field__label { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ds-muted); }
.ds-input, .ds-textarea, .ds-select,
.ds-form input[type="text"], .ds-form input[type="email"], .ds-form input[type="tel"], .ds-form textarea {
  width: 100%; padding: 14px 18px;
  background: var(--ds-white); color: var(--ds-ink);
  border: 1px solid var(--ds-line-strong); border-radius: 14px;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.ds-textarea, .ds-form textarea { min-height: 150px; resize: vertical; }
.ds-input:focus, .ds-textarea:focus, .ds-select:focus,
.ds-form input:focus, .ds-form textarea:focus {
  outline: none; border-color: var(--ds-ink); box-shadow: 0 0 0 3px rgba(212, 222, 24, .35);
}
.ds-input::placeholder, .ds-textarea::placeholder { color: #9C9A8C; }

/* ==========================================================================
   12. Footer
   ========================================================================== */
.ds-footer { background: var(--ds-paper); }
.ds-footer__inner { padding: 64px 0 40px; }
.ds-footer__top {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(26, 26, 20, .1);
}
.ds-footer__brand { display: flex; align-items: center; gap: 16px; }
.ds-footer__brand-name { font-weight: 600; font-size: 26px; letter-spacing: -.01em; }
.ds-footer__tagline { font-size: 15px; color: var(--ds-muted); max-width: 340px; line-height: 1.7; }
.ds-footer__cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 32px; padding: 40px 0 8px;
}
.ds-footer__col-title { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ds-muted); margin-bottom: 16px; }
.ds-footer__list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ds-footer__list a, .ds-footer__col p { font-size: 15px; color: var(--ds-body); }
.ds-footer__list a:hover { color: var(--ds-ink); }
.ds-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px;
  padding-top: 28px; font-size: 13px; color: var(--ds-muted);
}
.ds-footer__social { display: flex; gap: 24px; list-style: none; }
.ds-footer__social a { color: var(--ds-body); }

/* ==========================================================================
   13. Reveal animations
   ========================================================================== */
.ds-reveal { opacity: 0; transform: translateY(34px); transition: opacity .85s var(--ds-ease), transform .85s var(--ds-ease); }
.ds-reveal.is-in { opacity: 1; transform: none; }
.ds-stagger > * { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ds-ease), transform .7s var(--ds-ease); }
.ds-stagger.is-in > * { opacity: 1; transform: none; }
.ds-no-js .ds-reveal, .ds-no-js .ds-stagger > * { opacity: 1; transform: none; }

@keyframes dsFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.ds-float { animation: dsFloat 7s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ds-reveal, .ds-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .ds-float { animation: none !important; }
  .ds-zoom:hover img { transform: none; }
}
@media print {
  .ds-reveal, .ds-stagger > * { opacity: 1 !important; transform: none !important; }
  .ds-header, .ds-progress, .ds-slider__nav, .ds-nav-toggle { display: none !important; }
}

/* ==========================================================================
   14. Pagination & archives
   ========================================================================== */
.ds-pagination { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 56px; }
.ds-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 46px; height: 46px; padding: 0 14px;
  border: 1px solid var(--ds-line-strong); border-radius: var(--ds-radius-pill);
  font-size: 15px; font-weight: 500;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.ds-pagination .page-numbers:hover,
.ds-pagination .page-numbers.current { background: var(--ds-ink); color: var(--ds-paper); border-color: var(--ds-ink); }

.ds-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.ds-filter {
  padding: 10px 18px; border: 1px solid var(--ds-line-strong); border-radius: var(--ds-radius-pill);
  font-size: 14px; font-weight: 500;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.ds-filter:hover, .ds-filter.is-active { background: var(--ds-ink); color: var(--ds-paper); border-color: var(--ds-ink); }

.ds-post-meta { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ds-muted); }

/* ==========================================================================
   15. Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .ds-nav__menu a { padding: 9px 11px; font-size: 14px; }
  .ds-btn { padding: 13px 22px; }
}
@media (max-width: 900px) {
  :root { --ds-gutter: 22px; }
  .ds-nav-toggle { display: inline-flex; }
  .ds-header__inner { min-height: 70px; }
  .ds-nav {
    position: fixed; inset: 70px 0 auto 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 18px;
    padding: 24px var(--ds-gutter) 32px;
    background: var(--ds-paper); border-bottom: 1px solid var(--ds-line);
    box-shadow: 0 24px 40px -28px rgba(26, 26, 20, .5);
    max-height: calc(100vh - 70px); overflow-y: auto;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  }
  .ds-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .ds-nav__menu { flex-direction: column; align-items: stretch; gap: 2px; }
  .ds-nav__menu a { padding: 13px 16px; font-size: 17px; }
  .ds-nav__menu .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: transparent;
    padding: 0 0 6px 14px; min-width: 0;
  }
  .ds-header__actions { flex-wrap: wrap; }
  .ds-header__actions .ds-btn { flex: 1 1 auto; justify-content: center; }
  .ds-hero__grid { gap: 40px; padding-top: 40px; }
  .ds-hero__accent { inset: 16px -16px -16px 16px; }
  .ds-grid--2 { gap: 32px; }
  .ds-contact-row__value { font-size: 18px; }
  .ds-footer__inner { padding: 48px 0 32px; }
}
@media (max-width: 600px) {
  .ds-h1 { font-size: clamp(34px, 10vw, 46px); }
  .ds-h2 { font-size: clamp(28px, 8vw, 38px); }
  .ds-lead { font-size: 17px; }
  .ds-btn { width: 100%; justify-content: center; }
  .ds-row .ds-btn { width: auto; }
  .ds-hero__actions .ds-btn { width: 100%; }
  .ds-card__body { padding: 22px 20px 26px; }
  .ds-card--flat, .ds-card--dark { padding: 26px 22px 30px; }
  .ds-slider__item { flex-basis: 88%; }
  .ds-contact-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ds-contact-row__value { text-align: left; }
  .ds-footer__bottom { flex-direction: column; align-items: flex-start; }
}
