/*
  DigitalCommerceGuild.com — single-page site
  ------------------------------------------------------------------
  Design tokens (colors, fonts) are the real values read from the
  live WordPress site's theme.json. Layout/composition beyond that
  is the redesign direction approved via the one-page concept canvas.
*/

:root {
  --color-base: #f9f9f9;       /* page background */
  --color-tint: #f3efe7;       /* alternating section background, warm-neutral */
  --color-contrast: #111111;   /* primary text */
  --color-contrast-2: #4c4944; /* body copy on tint sections */
  --color-muted: #636363;      /* secondary text */
  --color-faint: #8b8781;      /* meta text — dates, small labels */
  --color-hairline: rgba(17, 17, 17, .1);
  --color-accent: #c2a990;     /* links, CTAs, numerals */

  --font-heading: "Cardo", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fs-hero: clamp(2.5rem, 6.4vw, 5.4rem);
  --fs-h2: clamp(1.85rem, 3.6vw, 3rem);
  --fs-h3: clamp(1.3rem, 1.6vw, 1.5rem);
  --fs-body-lg: clamp(1.05rem, 1.4vw, 1.2rem);
  --fs-body: 1.03rem;
  --fs-small: 0.9rem;
  --fs-eyebrow: 0.8rem;

  --section-pad: clamp(72px, 13vw, 150px);
  --content-width: 740px;
  --wide-width: 1240px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

img { max-width: 100%; height: auto; }

body {
  margin: 0;
  background: var(--color-base);
  color: var(--color-contrast);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--color-accent); color: #fff; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h3.weight-bold { font-weight: 700; }

p { margin: 0 0 1.4em; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--wide-width); margin: 0 auto; padding: 0 32px; }
.content { max-width: var(--content-width); margin: 0 auto; padding: 0 32px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--color-accent); color: #fff;
  padding: .75em 1.25em; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(249, 249, 249, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-hairline);
}

.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; row-gap: 12px;
  padding-top: 20px; padding-bottom: 20px;
}

.site-title {
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  transition: color .2s ease;
}
.site-title:hover { color: var(--color-accent); }

.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 36px;
}

.main-nav a {
  font-size: 14px; transition: color .2s ease;
}
.main-nav a:hover { color: var(--color-accent); }

@media (max-width: 480px) {
  .main-nav ul { gap: 18px; }
}

/* ---------- Hero ---------- */
.hero {
  max-width: 900px; margin: 0 auto;
  padding: clamp(90px, 16vw, 160px) 32px clamp(80px, 12vw, 130px);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}

.eyebrow {
  font-size: var(--fs-eyebrow); font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--color-accent);
}

.hero h1 em {
  font-style: italic; color: var(--color-accent);
}

.hero p {
  font-size: var(--fs-body-lg); line-height: 1.65; color: var(--color-muted);
  max-width: 620px; margin: 0;
}

.hero-cta {
  margin-top: 6px; font-size: 14px; font-weight: 600;
  border-bottom: 1px solid var(--color-contrast); padding-bottom: 4px;
  transition: color .2s ease, border-color .2s ease;
}
.hero-cta:hover { color: var(--color-accent); border-color: var(--color-accent); }

/* ---------- Capabilities ---------- */
.capabilities {
  max-width: var(--wide-width); margin: 0 auto;
  padding: 0 32px var(--section-pad);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px;
}

@media (max-width: 780px) {
  .capabilities { grid-template-columns: 1fr; gap: 44px; }
}

.capability-group { display: flex; flex-direction: column; gap: 18px; }
.capability-group h2 { font-size: 22px; }

.capability-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.capability-group li {
  display: flex; gap: 10px; font-size: 15px; line-height: 1.55; color: var(--color-muted);
}
.capability-group li::before { content: "—"; color: var(--color-accent); flex: none; }

/* ---------- Section shells ---------- */
.section {
  padding: var(--section-pad) 32px;
}
.section--tint { background: var(--color-tint); }

.section-inner {
  max-width: var(--wide-width); margin: 0 auto;
  display: flex; flex-direction: column; gap: 60px;
}

.section-head { display: flex; flex-direction: column; gap: 14px; }
.section-head h2 { max-width: 760px; }

.back-to-top {
  align-self: flex-start;
  margin-top: 12px;
  font-size: 13px;
  color: var(--color-faint);
  transition: color .2s ease;
}
.back-to-top:hover { color: var(--color-accent); }

/* ---------- How We Work ---------- */
.hww-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px;
  max-width: var(--wide-width); margin: 0 auto;
}
@media (max-width: 860px) {
  .hww-grid { grid-template-columns: 1fr; gap: 44px; }
}

.approach { display: flex; flex-direction: column; gap: 24px; }
.approach p { color: var(--color-contrast-2); font-size: 16.5px; line-height: 1.7; margin: 0; }

.approach-steps { display: flex; flex-direction: column; gap: 13px; padding: 4px 0; }
.approach-steps div { display: flex; gap: 18px; align-items: baseline; }
.approach-steps span.num { font-family: var(--font-heading); font-size: 14px; color: var(--color-accent); }
.approach-steps span.label { font-size: 16px; }

.vmp { display: flex; flex-direction: column; gap: 34px; }
.vmp-item { display: flex; flex-direction: column; gap: 8px; }
.vmp-item .label { font-family: var(--font-heading); font-size: 20px; }
.vmp-item p { font-size: 15px; line-height: 1.65; color: var(--color-muted); margin: 0; }

/* ---------- Growth ---------- */
.growth-inner {
  max-width: var(--content-width); margin: 0 auto;
  display: flex; flex-direction: column; gap: 28px;
}

.growth-inner blockquote {
  margin: 8px 0 0; padding-left: 20px; border-left: 2px solid var(--color-accent);
}
.growth-inner blockquote p {
  font-family: var(--font-heading); font-style: italic; font-size: 20px; line-height: 1.5;
  color: var(--color-contrast-2); margin: 0;
}

.growth-inner p { font-size: 16.5px; line-height: 1.7; color: var(--color-contrast-2); margin: 0; }

.contact-line {
  color: var(--color-accent); font-size: clamp(18px, 2.4vw, 20px); font-weight: 600;
  margin-top: 8px; transition: opacity .2s ease;
}
.contact-line:hover { opacity: .65; }

.invitation { font-size: 15px; line-height: 1.7; color: var(--color-faint); margin-top: 4px; }

/* ---------- Projects ---------- */
.project-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 50px;
  max-width: var(--wide-width); margin: 0 auto;
}
@media (max-width: 720px) {
  .project-grid { grid-template-columns: 1fr; gap: 44px; }
}

.project-card { display: flex; flex-direction: column; gap: 20px; }

.project-card figure { margin: 0; overflow: hidden; aspect-ratio: 16 / 10; background: #111; }
.project-card img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.project-card:hover img { transform: scale(1.045); }

.project-card .meta { font-size: 13px; color: var(--color-faint); }
.project-card h3 { font-size: 24px; transition: color .2s ease; }
.project-card:hover h3 { color: var(--color-accent); }
.project-card p { font-size: 15px; line-height: 1.65; color: var(--color-muted); margin: 0; }

.read-more { color: var(--color-accent); font-weight: 600; font-size: 14px; transition: opacity .2s ease; }
.project-card:hover .read-more { opacity: .7; }

/* Placeholder cards — no real content yet, kept visibly distinct */
.project-card--placeholder,
.project-card--empty { cursor: default; }

.placeholder-figure {
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--color-hairline);
  background:
    repeating-linear-gradient(45deg, rgba(17,17,17,.035) 0 10px, transparent 10px 20px);
  color: var(--color-faint); font-size: 13px;
}

.read-more--disabled { color: var(--color-faint); }
.project-card--placeholder:hover .read-more--disabled { opacity: 1; }
.project-card--placeholder:hover h3 { color: inherit; }
.project-card--placeholder:hover img,
.project-card--placeholder:hover .project-img { transform: none; }

.project-card--empty {
  border: 1px dashed var(--color-hairline);
  display: flex; align-items: center; justify-content: center;
  text-align: center; min-height: 320px;
  color: var(--color-faint); font-size: 14px;
}

/* ---------- Footer ---------- */
.site-footer { padding: 56px 32px 48px; }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  border-top: 1px solid var(--color-hairline); padding-top: 30px;
}
.site-footer .site-title { font-size: 14px; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { font-size: 13px; color: var(--color-muted); transition: color .2s ease; }
.footer-nav a:hover { color: var(--color-contrast); }
.footer-tag { font-size: 13px; color: var(--color-faint); }

/* ==================================================================
   Project detail pages
   ================================================================== */

.page-hero { max-width: var(--content-width); margin: 0 auto; padding: var(--section-pad) 32px 0; }

.single-featured-image { max-width: var(--content-width); margin: 40px auto 0; padding: 0 32px; }
.single-featured-image img { display: block; width: 100%; height: auto; }

.entry-content { max-width: var(--content-width); margin: 0 auto; padding: 0 32px var(--section-pad); }
.entry-content h1 { font-size: var(--fs-h2); margin-bottom: 18px; }
.entry-content h2 { font-size: 26px; font-weight: 700; margin: 44px 0 16px; }
.entry-content h3 { font-weight: 700; font-size: 22px; margin: 40px 0 14px; }
.entry-content p { color: var(--color-contrast-2); font-size: 16.5px; line-height: 1.7; }
.entry-content blockquote { margin: 32px 0; padding-left: 20px; border-left: 2px solid var(--color-accent); }
.entry-content blockquote p { font-family: var(--font-heading); font-style: italic; font-size: 20px; }
.entry-content figure { margin: 0 0 28px; }
.entry-content figure img { display: block; width: 100%; height: auto; }

.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6em;
  color: var(--color-faint); font-size: var(--fs-small); margin-top: 20px;
}

.social-links { list-style: none; display: flex; gap: 14px; padding: 0; margin: 32px 0; }
.social-links a { display: flex; align-items: center; justify-content: center; color: var(--color-contrast); transition: color .2s ease; }
.social-links a:hover { color: var(--color-accent); }
.social-links svg { width: 22px; height: 22px; fill: currentColor; }

.post-nav {
  display: flex; justify-content: space-between; gap: 20px;
  max-width: var(--content-width); margin: 0 auto; padding: 40px 32px 0;
  border-top: 1px solid var(--color-hairline); font-size: var(--fs-small);
}
.post-nav a { transition: color .2s ease; }
.post-nav a:hover { color: var(--color-accent); }

/* ---------- Screen-reader only ---------- */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
