/* =========================================================
   DYS Construction Arizona — site styles
   System font stack only. Mobile-first. No frameworks.
   ========================================================= */

:root {
  /* Brand */
  --navy:        #29417A;
  --navy-deep:   #1F325F;
  --navy-soft:   #3B5494;
  --sage:        #90AA57;
  --sage-deep:   #7B9347;
  --sage-soft:   #A8BF74;

  /* Neutrals */
  --white:       #FCFCFC;
  --ink:         #0F172A;
  --ink-2:       #1E293B;
  --slate-700:   #334155;
  --slate-600:   #475569;
  --slate-500:   #64748B;
  --slate-400:   #94A3B8;
  --slate-300:   #CBD5E1;
  --slate-200:   #E5E7EB;
  --slate-100:   #F1F5F9;
  --slate-50:    #F8FAFC;

  /* Layout */
  --container:   1200px;
  --container-narrow: 880px;
  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow:      0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg:   0 18px 40px rgba(15, 23, 42, 0.12), 0 6px 14px rgba(15, 23, 42, 0.06);

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --header-h:   76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--sage-deep); }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 16px; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.5vw + .5rem, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 2.2vw + .8rem, 2.3rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1em; text-wrap: pretty; }

ul, ol { padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--slate-200); margin: 2.5rem 0; }

::selection { background: var(--navy); color: var(--white); }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: var(--container-narrow); }

@media (min-width: 768px) {
  .container { padding: 0 32px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
  box-shadow: 0 2px 0 var(--sage-deep);
}
.btn--primary:hover {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: #fff;
  box-shadow: 0 4px 14px rgba(123, 147, 71, 0.35);
}

.btn--navy {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn--navy:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--slate-300);
}
.btn--ghost:hover { background: var(--slate-100); color: var(--navy); border-color: var(--slate-300); }

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.btn--outline-light:hover { background: rgba(255,255,255,0.1); color: #fff; }

.btn--lg { padding: 16px 28px; font-size: 1.02rem; }
.btn--sm { padding: 9px 16px; font-size: 0.88rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--slate-200), 0 6px 18px rgba(15, 23, 42, 0.05);
  border-bottom-color: var(--slate-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand img { height: 44px; width: auto; }

.nav-primary {
  display: none;
  align-items: center;
  gap: 4px;
}
.nav-primary a {
  display: inline-block;
  padding: 10px 14px;
  color: var(--slate-700);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  position: relative;
}
.nav-primary a:hover { color: var(--navy); background: var(--slate-100); }
.nav-primary a.is-active { color: var(--navy); }
.nav-primary a.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--sage);
  border-radius: 2px;
}

.header-cta {
  display: none;
  align-items: center;
  gap: 14px;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.97rem;
}
.header-phone:hover { color: var(--sage-deep); }
.header-phone svg { width: 16px; height: 16px; }

@media (min-width: 960px) {
  .nav-primary { display: flex; }
  .header-cta  { display: inline-flex; }
}

/* Mobile nav toggle */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 960px) { .nav-toggle { display: none; } }

/* Mobile menu panel */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--slate-200);
  background: var(--white);
  padding: 12px 0 20px;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--slate-700);
  font-weight: 500;
  border-radius: var(--radius-sm);
}
.mobile-menu a:hover { background: var(--slate-100); color: var(--navy); }
.mobile-menu .mobile-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 20px 0;
  padding-top: 14px;
  border-top: 1px solid var(--slate-200);
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
@media (max-width: 720px) { section { padding: 56px 0; } }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-head--left { text-align: left; margin-left: 0; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 12px;
}
.section-head p { color: var(--slate-600); font-size: 1.08rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 84px 0 88px;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(144, 170, 87, 0.10), transparent 60%),
    linear-gradient(180deg, #F6F8FC 0%, #FCFCFC 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(41, 65, 122, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
}
.hero-inner {
  position: relative;
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.05fr 1fr; gap: 64px; }
}
.hero h1 { margin-bottom: 18px; }
.hero h1 .accent { color: var(--navy); position: relative; }
.hero h1 .accent::after {
  content: "";
  display: block;
  height: 6px;
  background: var(--sage);
  border-radius: 4px;
  margin-top: 6px;
  width: 60%;
}
.hero-lede {
  font-size: 1.15rem;
  color: var(--slate-600);
  max-width: 560px;
  margin-bottom: 28px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  font-size: 0.92rem;
  color: var(--slate-600);
}
.hero-trust .item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-trust .check {
  width: 22px; height: 22px;
  background: var(--sage);
  color: #fff;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-trust .check svg { width: 12px; height: 12px; }

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 560px;
}
.hero-visual .photo {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
}
.hero-visual .photo--main { inset: 0 24% 18% 0; }
.hero-visual .photo--inset { inset: 38% 0 0 28%; }
.hero-visual .badge {
  position: absolute;
  bottom: 6%;
  right: 4%;
  background: var(--navy);
  color: #fff;
  padding: 18px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.hero-visual .badge .stars {
  display: flex; gap: 2px;
  color: #FFD66B;
  margin-bottom: 4px;
}
.hero-visual .badge .num { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.hero-visual .badge .sub { font-size: 0.78rem; opacity: .8; }

/* ---------- Photo images ---------- */
.hero-visual .photo img,
.hero-visual .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}
.gallery-grid--featured img:first-child {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
  height: 100%;
}
.project-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.post-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Placeholder images (fallback) ---------- */
.ph {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      135deg,
      var(--slate-100) 0 12px,
      var(--slate-50) 12px 24px
    );
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-500);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  overflow: hidden;
  min-height: 160px;
}
.ph::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(100,116,139,0.35);
  border-radius: 6px;
  pointer-events: none;
}
.ph span {
  background: rgba(252, 252, 252, 0.92);
  padding: 4px 10px;
  border-radius: 4px;
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 88%;
}
.ph--tall  { min-height: 320px; }
.ph--wide  { aspect-ratio: 16/10; }

/* ---------- Services grid ---------- */
.bg-soft { background: var(--slate-50); }
.bg-navy { background: var(--navy); color: rgba(255,255,255,0.88); }
.bg-navy h2, .bg-navy h3 { color: #fff; }

.services-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  color: inherit;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--slate-300);
  color: inherit;
}
.service-card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(41, 65, 122, 0.08);
  color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-card .icon svg { width: 24px; height: 24px; }
.service-card h3 { margin-bottom: 8px; color: var(--ink); }
.service-card p { color: var(--slate-600); margin-bottom: 16px; flex: 1; }
.service-card .more {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--sage-deep);
  display: inline-flex; align-items: center; gap: 4px;
}
.service-card:hover .more { gap: 8px; }
.service-card .more::after { content: "→"; transition: transform .15s ease; }

/* ---------- Trust strip ---------- */
.trust-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item {
  text-align: center;
  padding: 28px 16px;
}
.trust-item .num {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--sage);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.bg-navy .trust-item .num { color: var(--sage-soft); }
.trust-item .label { color: var(--slate-600); font-weight: 500; }
.bg-navy .trust-item .label { color: rgba(255,255,255,0.78); }

/* ---------- Cities ---------- */
.cities-list {
  display: grid;
  gap: 8px 18px;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 600px) { .cities-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .cities-list { grid-template-columns: repeat(5, 1fr); } }
.cities-list li {
  padding: 6px 0;
  color: var(--slate-700);
  font-size: 0.96rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cities-list li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
}
.cities-list a {
  color: var(--slate-700);
  font-weight: 500;
}
.cities-list a:hover { color: var(--navy); }

/* ---------- Gallery grid ---------- */
.gallery-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-grid .ph { aspect-ratio: 4/3; min-height: 0; }
.gallery-grid--featured .ph:first-child {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 1/1;
}

/* ---------- Form ---------- */
.form-wrap {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 720px) { .form-wrap { padding: 40px; } }

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 600px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 6px;
}
input[type="text"], input[type="email"], input[type="tel"],
input[type="search"], textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink-2);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(41, 65, 122, 0.15);
}
textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--slate-500); margin-top: 14px; }
.form-error { color: #B91C1C; font-size: 0.85rem; margin-top: 6px; display: none; }
.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select { border-color: #DC2626; }
.form-field.has-error .form-error { display: block; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(144,170,87,0.25), transparent 60%),
    var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 800px) {
  .cta-banner { grid-template-columns: 1.5fr auto; padding: 56px; }
}
.cta-banner h2 { color: #fff; margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.82); margin: 0; }
.cta-banner .cta-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
}

/* ---------- Article / typography ---------- */
.prose { color: var(--ink-2); font-size: 1.05rem; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p { margin-bottom: 1.1em; line-height: 1.7; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose ul li, .prose ol li { margin-bottom: 0.5em; line-height: 1.65; }
.prose blockquote {
  margin: 1.4em 0;
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--sage);
  color: var(--slate-700);
  font-style: italic;
}
.prose a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--sage-soft); }
.prose a:hover { color: var(--sage-deep); text-decoration-color: var(--sage-deep); }

/* ---------- Breadcrumbs ---------- */
.crumbs {
  font-size: 0.88rem;
  color: var(--slate-500);
  padding: 18px 0;
  list-style: none;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before {
  content: "/";
  color: var(--slate-400);
}
.crumbs a { color: var(--slate-600); }
.crumbs a:hover { color: var(--navy); }
.crumbs li:last-child { color: var(--slate-700); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq {
  border-top: 1px solid var(--slate-200);
}
.faq-item {
  border-bottom: 1px solid var(--slate-200);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 22px 48px 22px 0;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  display: block;
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  color: var(--navy);
  font-weight: 400;
  transition: transform .2s ease;
}
.faq-item.is-open .faq-q::after { content: "−"; transform: translateY(-50%) rotate(0); }
.faq-a {
  display: none;
  padding: 0 0 24px;
  color: var(--slate-600);
  line-height: 1.65;
}
.faq-item.is-open .faq-a { display: block; }

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
}
.step .num {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--sage-deep);
  margin-bottom: 6px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--slate-600); margin: 0; font-size: 0.97rem; }

/* ---------- Cross-links ---------- */
.crosslinks {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) { .crosslinks { grid-template-columns: repeat(3, 1fr); } }
.crosslinks a {
  display: block;
  padding: 14px 18px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: #fff;
  color: var(--slate-700);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all .15s ease;
}
.crosslinks a:hover {
  border-color: var(--navy);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ---------- Blog ---------- */
.post-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  color: inherit;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.post-card .ph { border-radius: 0; border-left: 0; border-right: 0; border-top: 0; aspect-ratio: 16/10; min-height: 0; }
.post-card .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-card .meta {
  font-size: 0.82rem;
  color: var(--slate-500);
  margin-bottom: 8px;
  display: flex; gap: 10px; align-items: center;
}
.post-card .meta .cat {
  background: rgba(144,170,87,0.18);
  color: var(--sage-deep);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.74rem;
  text-transform: uppercase;
}
.post-card h3 { color: var(--ink); margin-bottom: 8px; font-size: 1.15rem; }
.post-card p { color: var(--slate-600); margin: 0 0 16px; font-size: 0.95rem; flex: 1; }
.post-card .more { color: var(--sage-deep); font-weight: 600; font-size: 0.9rem; }

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 10px;
  border-radius: var(--radius);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  font-weight: 500;
  font-size: 0.92rem;
}
.pagination a:hover { background: var(--slate-100); color: var(--navy); }
.pagination .is-current {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* ---------- Portfolio filter ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 36px;
}
.filter-btn {
  padding: 8px 18px;
  background: #fff;
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  font-weight: 500;
  font-size: 0.92rem;
  border-radius: 999px;
  transition: all .15s ease;
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.is-active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.portfolio-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .portfolio-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }
.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--slate-200);
  background: #fff;
  transition: opacity .2s ease, transform .2s ease;
  cursor: pointer;
}
.project-card.is-hidden { display: none; }
.project-card .ph { border: 0; border-radius: 0; aspect-ratio: 4/3; min-height: 0; }
.project-card .info {
  padding: 16px 18px 20px;
}
.project-card .info .tag {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage-deep);
  margin-bottom: 4px;
}
.project-card h3 { font-size: 1.05rem; margin: 0 0 4px; }
.project-card .loc { font-size: 0.88rem; color: var(--slate-500); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.78);
  padding: 64px 0 28px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 56px; } }
.footer-grid h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 18px;
  font-weight: 700;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-grid a {
  color: rgba(255,255,255,0.78);
  font-size: 0.94rem;
}
.footer-grid a:hover { color: #fff; }
.footer-brand img {
  height: 48px;
  width: auto;
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  margin-bottom: 18px;
}
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 0.94rem; line-height: 1.6; margin: 0 0 16px; }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.94rem;
}
.footer-contact a, .footer-contact span { color: rgba(255,255,255,0.85); }
.footer-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 0.85rem;
}
.footer-cities a { color: rgba(255,255,255,0.65); }
.footer-cities a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 48px;
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.footer-bottom .legal {
  display: flex; gap: 18px; flex-wrap: wrap;
}
.footer-bottom .legal a { color: rgba(255,255,255,0.6); }
.footer-bottom .legal a:hover { color: #fff; }

/* ---------- 404 / Thank you ---------- */
.center-page {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}
.center-page .inner { max-width: 540px; }
.center-page .big {
  font-size: clamp(5rem, 14vw, 8rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}
.center-page .check-big {
  width: 88px; height: 88px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--sage);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.center-page .check-big svg { width: 44px; height: 44px; }
.center-page .actions {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-top: 28px;
}

/* ---------- Article header ---------- */
.article-head {
  padding: 56px 0 28px;
}
.article-head .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  color: var(--slate-500);
  font-size: 0.92rem;
  margin-bottom: 14px;
}
.article-head .meta .cat {
  background: rgba(144,170,87,0.18);
  color: var(--sage-deep);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.article-hero {
  margin: 28px 0 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--slate-200);
  aspect-ratio: 16/9;
}
.article-hero .ph { border: 0; border-radius: 0; min-height: 0; height: 100%; }

/* ---------- Tag / chip ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(41, 65, 122, 0.08);
  color: var(--navy);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- Two-column content ---------- */
.two-col {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 960px) { .two-col { grid-template-columns: 1.4fr 1fr; gap: 56px; } }
.two-col--reverse > :first-child { order: 0; }
@media (min-width: 960px) {
  .two-col--reverse { grid-template-columns: 1fr 1.4fr; }
}

/* ---------- Map placeholder ---------- */
.map-ph {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 60%, rgba(144,170,87,0.25), transparent 50%),
    repeating-linear-gradient(45deg, var(--slate-100) 0 12px, var(--slate-50) 12px 24px);
  border: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-500);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85rem;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* sticky table of contents on long pages */
.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.toc h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--slate-500); margin-bottom: 10px; }
.toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.toc a { color: var(--slate-700); font-size: 0.92rem; }
.toc a:hover { color: var(--navy); }
