/* ==========================================================================
   Samsave public website
   RTL first. Every colour that the admin panel controls (--brand, --brand-2,
   --ink, --radius-scale) is injected by base.html; the rest is derived here.

   Design notes
   - One bold element: the dark estimate sheet in the hero, with the price in
     saffron. Everything else is quiet: flat colour, hairline rules, no cards.
   - Structure carries information: ruled rows for comparable lists, a heavy
     rule above each section title, definition lists for facts.
   ========================================================================== */

@font-face { font-family: 'Peyda'; src: url('../fonts/Peyda-Light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Peyda'; src: url('../fonts/Peyda-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Peyda'; src: url('../fonts/Peyda-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Peyda'; src: url('../fonts/Peyda-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Peyda'; src: url('../fonts/Peyda-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Peyda'; src: url('../fonts/Peyda-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Peyda'; src: url('../fonts/Peyda-Black.ttf') format('truetype'); font-weight: 900; font-display: swap; }

/* ------------------------------------------------------------------ tokens -- */
:root {
  /* set from the admin panel (base.html overrides these) */
  --brand: #0b8e75;
  --brand-2: #22c55e;
  --ink: #0f172a;

  /* derived from the brand colour so panel edits keep working */
  --brand-ink: color-mix(in srgb, var(--brand) 75%, #000);     /* brand as text on light grounds */
  --brand-strong: color-mix(in srgb, var(--brand) 88%, #000);  /* solid fills that carry white text */
  --signal: #e9a400;                                           /* saffron: only the estimate figure */

  --bg: #eceff0;
  --paper: #fbfcfb;
  --soft: #e3e8e5;
  --soft-2: #d8dfdb;
  --surface: var(--paper);

  --text: var(--ink);
  --text-2: #3d4a5c;
  --muted: #566277;
  --border: #c4ccc7;
  --field: #7c8a86;

  --radius: calc(10px * var(--radius-scale, 1));
  --radius-sm: calc(6px * var(--radius-scale, 1));
  --radius-lg: calc(16px * var(--radius-scale, 1));

  --container: 1200px;
  --nav-h: 72px;
  --font: 'Peyda', 'Vazirmatn', Tahoma, sans-serif;
  --ease: cubic-bezier(.22, .8, .26, 1);
}

/* -------------------------------------------------------------------- base -- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.95;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 { margin: 0; font-weight: 800; line-height: 1.4; text-wrap: balance; }
p { margin: 0; color: var(--text-2); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd, figure, blockquote { margin: 0; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
svg { flex-shrink: 0; }
::selection { background: var(--ink); color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.narrow-container { max-width: 820px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; inset-block-start: -80px; inset-inline-start: 16px; z-index: 400;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: inset-block-start .2s;
}
.skip-link:focus { inset-block-start: 0; }

:focus-visible { outline: 3px solid var(--brand-ink); outline-offset: 3px; border-radius: 2px; }
.quote :focus-visible, .site-footer :focus-visible, .topbar :focus-visible,
.search-overlay :focus-visible, .lightbox :focus-visible { outline-color: #fff; }

/* ----------------------------------------------------------- buttons/links -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  font-size: 15px; font-weight: 700; line-height: 1.6;
  white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s;
}
.btn-primary { background: var(--brand-strong); color: #fff; }
.btn-primary:hover { background: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #f4f7f6; color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-sm { min-height: 40px; padding: 6px 16px; font-size: 14px; }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--brand-strong);
  text-decoration-thickness: 2px; text-underline-offset: 7px;
}
.text-link:hover { color: var(--brand-ink); }

/* small caption above a page title (breadcrumb badge, article category) */
.eyebrow { display: inline-block; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.eyebrow-light { color: var(--muted); }

/* ------------------------------------------------------------------ header -- */
.topbar { background: var(--ink); color: #cbd5e1; font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar-contact, .topbar-side { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar-contact a, .topbar-hours { display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar-socials { display: flex; align-items: center; gap: 12px; }
.topbar-socials a { display: grid; place-items: center; min-width: 24px; min-height: 24px; }
.topbar-link { font-weight: 700; color: #fff; }

.site-header {
  position: relative; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}
.site-header.is-sticky { position: sticky; top: 0; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--border), 0 8px 24px -16px rgba(15, 23, 42, .25); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--nav-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; }
.brand-mark img { width: 34px; height: 34px; object-fit: contain; }
.brand-name { font-size: 22px; font-weight: 800; color: var(--text); }
.brand-name em { font-style: normal; color: var(--brand-ink); }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-name em { color: #8be0c4; }

.main-nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 44px; padding: 6px 12px;
  font-size: 15px; font-weight: 500; color: var(--text-2);
  background: transparent; border: 0;
  text-decoration: underline; text-decoration-color: transparent;
  text-decoration-thickness: 3px; text-underline-offset: 9px;
  transition: color .15s, text-decoration-color .15s;
}
.nav-link:hover { color: var(--ink); text-decoration-color: var(--border); }
.nav-link.is-active { color: var(--ink); font-weight: 700; text-decoration-color: var(--brand-strong); }
.nav-toggle { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; cursor: pointer; color: inherit; }
.nav-item { position: relative; }
.dropdown {
  position: absolute; inset-inline-start: 50%;
  transform: translateX(50%) translateY(6px);
  top: calc(100% + 4px); min-width: 210px; padding: 6px;
  border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--border);
  box-shadow: 0 18px 40px -22px rgba(15, 23, 42, .4);
  opacity: 0; visibility: hidden;
  transition: opacity .15s, transform .15s, visibility .15s;
  z-index: 20;
}
.nav-item:hover > .dropdown, .nav-item.is-open > .dropdown, .nav-item:focus-within > .dropdown {
  opacity: 1; visibility: visible; transform: translateX(50%) translateY(0);
}
.dropdown a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 44px; padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text-2);
}
.dropdown a:hover { background: var(--soft); color: var(--ink); }
.nav-badge { background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; padding: 0 7px; border-radius: 99px; line-height: 1.8; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-button {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: transparent; color: var(--text-2);
  transition: color .15s, border-color .15s, background .15s;
}
.icon-button:hover { color: var(--ink); border-color: var(--ink); }
.header-cta { padding-inline: 20px; }

.burger {
  display: none; width: 44px; height: 44px; padding: 13px 11px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: transparent; color: var(--ink);
  flex-direction: column; justify-content: space-between;
}
.burger span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset-block: 0; inset-inline-end: 0;
  width: min(340px, 88vw); z-index: 200;
  background: var(--paper); box-shadow: -20px 0 50px -30px rgba(15, 23, 42, .5);
  padding: 18px; display: flex; flex-direction: column; gap: 14px;
  transform: translateX(-105%); transition: transform .28s var(--ease);
  overflow-y: auto; visibility: hidden;
}
.mobile-menu.is-open { transform: translateX(0); visibility: visible; }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; }
.mobile-nav { display: flex; flex-direction: column; }
.mobile-nav a { padding: 12px 8px; border-bottom: 1px solid var(--border); font-size: 16px; font-weight: 600; min-height: 48px; }
.mobile-nav a:hover { color: var(--brand-ink); }
.mobile-nav .mobile-sub { padding-inline-start: 24px; font-size: 14px; font-weight: 400; color: var(--muted); }
.mobile-menu-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.mobile-contact { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); align-items: center; }
.menu-scrim { position: fixed; inset: 0; z-index: 190; background: rgba(15, 23, 42, .55); }
.menu-scrim[hidden] { display: none; }

.search-overlay {
  position: fixed; inset: 0; z-index: 220;
  background: color-mix(in srgb, var(--ink) 94%, transparent);
  display: grid; place-items: center; padding: 24px;
}
.search-overlay[hidden] { display: none; }
.search-close {
  position: absolute; top: 22px; inset-inline-end: 26px; width: 48px; height: 48px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5);
  background: transparent; color: #fff; font-size: 24px; line-height: 1;
}
.search-form { width: min(620px, 100%); }
.search-form label { display: block; color: #dbe2ea; font-size: 16px; margin-bottom: 12px; }
.search-input-row { display: flex; gap: 10px; }
.search-form input {
  flex: 1; min-height: 52px; padding: 12px 18px;
  border-radius: var(--radius-sm); border: 1.5px solid #8fa0b3;
  background: transparent; color: #fff; font-size: 16px; outline: none;
}
.search-form input::placeholder { color: #aab6c5; }
.search-form input:focus { border-color: #fff; }

/* -------------------------------------------------------------------- hero -- */
.hero { padding: clamp(40px, 6vw, 84px) 0 clamp(56px, 8vw, 112px); background: var(--bg); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 5vw, 80px); align-items: center;
}
.hero-grid-solo { grid-template-columns: minmax(0, 820px); }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 4.4rem); font-weight: 900; line-height: 1.3; }
.hero-lead { margin-top: 24px; max-width: 44ch; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 2; color: var(--text-2); }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 32px; flex-wrap: wrap; }

/* the estimate sheet: the one loud thing on the page */
.quote {
  display: grid; gap: 22px;
  padding: clamp(22px, 3vw, 36px);
  background: var(--ink); color: #f4f7f6;
  border-radius: var(--radius-lg);
}
.quote-title { font-size: 1.35rem; font-weight: 800; color: #fff; }
.quote-list { display: grid; margin: 0; padding: 0; border: 0; min-width: 0; }
.quote-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  min-height: 60px; padding: 10px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, .16); cursor: pointer;
  transition: background .15s;
}
.quote-row:first-child { border-top: 1px solid rgba(255, 255, 255, .16); }
.quote-row:hover { background: rgba(255, 255, 255, .06); }
.quote-check {
  appearance: none; -webkit-appearance: none;
  width: 26px; height: 26px; margin: 0;
  display: grid; place-items: center;
  border: 2px solid #9fb0c3; border-radius: 7px; background: transparent; cursor: pointer;
}
.quote-check:checked { background: #f4f7f6; border-color: #f4f7f6; }
.quote-check:checked::after {
  content: ""; width: 7px; height: 12px;
  border: solid var(--ink); border-width: 0 3px 3px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.quote-name { font-weight: 600; font-size: 1.05rem; }
.quote-price { color: #cbd5e1; font-size: .95rem; white-space: nowrap; }
.quote-total { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; }
.quote-total-label { flex-basis: 100%; color: #cbd5e1; font-size: .95rem; }
.quote-figure { font-size: clamp(3.6rem, 7vw, 5.8rem); line-height: 1.1; font-weight: 900; color: var(--signal); }
.quote-unit { font-size: 1.1rem; font-weight: 600; }
.quote-time { flex-basis: 100%; margin-top: 4px; color: #cbd5e1; font-size: .95rem; }
.quote-note { font-size: .85rem; color: #b3bfcd; line-height: 1.9; }

/* ------------------------------------------------------- section scaffolding -- */
.section { padding: clamp(64px, 8vw, 112px) 0; position: relative; }
.section-soft { background: var(--soft); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 12px 48px; align-items: end;
  padding-top: 22px; margin-bottom: clamp(32px, 4vw, 52px);
  border-top: 3px solid var(--ink);
}
.section-head:not(:has(p)) { grid-template-columns: minmax(0, 1fr); }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.8rem); }
.section-head p { max-width: 46ch; font-size: 1.05rem; color: var(--text-2); }
.section-cta { margin-top: 36px; }
.card-grid { display: grid; gap: 32px; }
.testimonials-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.blog-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.projects-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.team-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.services-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
[data-reveal] { opacity: 1; transform: none; }

/* ------------------------------------------------------------------- stats -- */
.stats { padding: clamp(52px, 6vw, 84px) 0; border-block: 1px solid var(--ink); }
.stats-title { margin-bottom: 28px; font-size: 1.2rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px 24px; }
.stat { display: flex; flex-direction: column-reverse; gap: 2px; padding-inline-start: 20px; border-inline-start: 1px solid var(--border); }
.stat dt { color: var(--muted); }
.stat dd { font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 900; line-height: 1.2; }

/* ------------------------------------------------------------------- about -- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-grid-solo { grid-template-columns: minmax(0, 1fr); padding-top: 22px; border-top: 3px solid var(--ink); }
.about-grid-solo .about-copy { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); column-gap: clamp(32px, 5vw, 72px); align-items: start; }
.about-grid-solo .about-copy > h2 { grid-column: 1; grid-row: 1 / span 6; margin-bottom: 0; }
.about-grid-solo .about-copy > :not(h2) { grid-column: 2; }
.about-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); }
.about-badge { margin-top: 12px; color: var(--muted); }
.about-badge strong { color: var(--ink); font-size: 1.4rem; font-weight: 800; }
.about-copy h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); margin-bottom: 20px; }
.rich-text p { margin-bottom: 14px; font-size: 1.05rem; line-height: 2.05; }
.rich-text p:last-child { margin-bottom: 0; }
.rich-text h2, .rich-text h3, .rich-text h4 { margin: 30px 0 10px; color: var(--text); }
.rich-text h2 { font-size: 1.7rem; }
.rich-text h3 { font-size: 1.35rem; }
.rich-text h4 { font-size: 1.15rem; }
.rich-text ul, .rich-text ol { margin: 10px 0 18px; padding-inline-start: 22px; }
.rich-text ul { list-style: disc; }
.rich-text ol { list-style: decimal; }
.rich-text li { margin-bottom: 6px; font-size: 1.05rem; color: var(--text-2); line-height: 2; }
.rich-text a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 4px; }
.rich-text blockquote { margin: 22px 0; padding: 6px 20px; border-inline-start: 4px solid var(--ink); color: var(--text-2); }
.rich-text img { border-radius: var(--radius); margin: 20px 0; }
.rich-text code { background: var(--soft); padding: 2px 6px; border-radius: 4px; font-size: .9em; direction: ltr; display: inline-block; }
.rich-text pre { background: var(--ink); color: #e2e8f0; padding: 16px; border-radius: var(--radius); overflow-x: auto; direction: ltr; text-align: left; }
.rich-text table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .95rem; }
.rich-text th, .rich-text td { border: 1px solid var(--border); padding: 8px 12px; text-align: start; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-top: 24px; }
.feature-list li { padding: 10px 0; border-bottom: 1px solid var(--border); font-weight: 500; }
.about-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- services -- */
.service-list { border-top: 1px solid var(--border); }
.service-head, .service-link {
  display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, .8fr) 32px;
  gap: 24px; align-items: center;
}
.service-head { padding: 14px 0; border-bottom: 1px solid var(--ink); font-size: .85rem; font-weight: 600; color: var(--muted); }
.service-list li { border-bottom: 1px solid var(--border); }
.service-list li:first-child { border-bottom-color: var(--ink); }
.service-link { padding: 28px 0; }
.service-main :is(h2, h3) { font-size: clamp(1.25rem, 2vw, 1.7rem); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 3px; text-underline-offset: 8px; transition: text-decoration-color .15s; }
.service-main p { margin-top: 4px; max-width: 54ch; }
.service-price { font-size: 1rem; color: var(--text-2); }
.service-price strong { font-size: 1.7rem; font-weight: 800; color: var(--ink); }
.service-from { color: var(--muted); font-size: .9rem; }
.service-time { color: var(--text-2); }
.service-go { display: grid; place-items: center; width: 32px; height: 32px; transition: transform .18s var(--ease); }
.service-link:hover .service-main :is(h2, h3) { text-decoration-color: var(--brand-strong); }
.service-link:hover .service-go { transform: translateX(-6px); }
.service-link:hover { background: var(--paper); }

/* ---------------------------------------------------------------- projects -- */
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 40px; }
.project-lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.project-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft-2); border-radius: var(--radius); }
.project-lead .project-media { aspect-ratio: 16 / 9; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project:hover .project-media img { transform: scale(1.03); }
.project-body { padding-top: 18px; }
.project-lead .project-body { padding-top: 0; }
.project :is(h2, h3) { font-size: 1.45rem; }
.project-lead :is(h2, h3) { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.project :is(h2, h3) a { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 3px; text-underline-offset: 7px; transition: text-decoration-color .15s; }
.project :is(h2, h3) a:hover { text-decoration-color: var(--brand-strong); }
.project-body > p { margin-top: 8px; max-width: 52ch; }
.project-facts { display: flex; flex-wrap: wrap; gap: 8px 30px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.project-facts dt { font-size: .8rem; color: var(--muted); }
.project-facts dd { font-weight: 600; }
.tech-chip { background: var(--soft); padding: 2px 10px; border-radius: 99px; font-size: .85rem; }

.filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-chip {
  min-height: 44px; padding: 6px 18px; display: inline-flex; align-items: center;
  border: 1.5px solid var(--ink); border-radius: 99px; background: transparent;
  font-size: 14px; font-weight: 600; color: var(--ink);
  transition: background .15s, color .15s;
}
.filter-chip:hover { background: var(--soft-2); }
.filter-chip.is-active { background: var(--ink); color: #fff; }
.blog-search { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; border: 1.5px solid var(--field); border-radius: 99px; padding: 3px 4px 3px 14px; background: #fff; }
.blog-search input { border: 0; outline: 0; background: transparent; font-size: 14px; width: 180px; min-height: 38px; color: var(--text); }
.blog-search button { border: 0; background: var(--ink); color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 16px; }

/* -------------------------------------------------------------------- team -- */
.credits { border-top: 1px solid var(--ink); }
.credit {
  display: grid; grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 1.6fr) auto;
  gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--border);
}
.credit:not(:has(.credit-photo)) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) auto; }
.credit-photo { width: 76px; height: 76px; object-fit: cover; border-radius: var(--radius-sm); }
.credit-name :is(h2, h3) { font-size: 1.4rem; }
.credit-role { color: var(--muted); }
.credit-bio { font-size: .95rem; }
.credit-links { display: flex; gap: 4px; }
.credit-links a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius-sm); color: var(--text-2); }
.credit-links a:hover { background: var(--soft); color: var(--ink); }

/* ------------------------------------------------------------ testimonials -- */
.testimonial { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; border-top: 3px solid var(--ink); }
.stars { display: flex; gap: 2px; font-size: 15px; }
.star { color: #7d8996; }
.star.filled { color: #8a5a00; }
.testimonial blockquote { font-size: 1.05rem; line-height: 2.05; color: var(--text-2); }
.testimonial blockquote p { font-size: inherit; color: inherit; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
.testimonial figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.avatar-fallback { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; }
.testimonial figcaption span { display: flex; flex-direction: column; }
.testimonial figcaption strong { font-size: 1rem; }
.testimonial figcaption small { font-size: .85rem; color: var(--muted); }

/* -------------------------------------------------------------------- blog -- */
.post-card { display: flex; flex-direction: column; }
.post-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft-2); border-radius: var(--radius); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.03); }
.post-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); }
.post-body { padding-top: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.post-cat { font-weight: 700; color: var(--brand-ink); }
.post-body h3 { font-size: 1.2rem; line-height: 1.7; }
.post-body h3 a { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 3px; text-underline-offset: 6px; transition: text-decoration-color .15s; }
.post-body h3 a:hover { text-decoration-color: var(--brand-strong); }
.post-body p { font-size: .95rem; }
.post-body .text-link { margin-top: auto; padding-top: 6px; }
.post-read { color: var(--muted); }

/* --------------------------------------------------------------------- faq -- */
.faq-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-intro { padding-top: 22px; border-top: 3px solid var(--ink); }
.faq-intro h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); margin-bottom: 14px; }
.faq-intro p { margin-bottom: 24px; font-size: 1.05rem; }
.faq-list { border-top: 3px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 14px 0; cursor: pointer; list-style: none;
  font-size: 1.1rem; font-weight: 700;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.faq-plus::before, .faq-plus::after {
  content: ''; position: absolute; inset-block-start: 50%; inset-inline-start: 50%;
  width: 14px; height: 2.5px; background: var(--ink); transform: translate(50%, -50%); transition: transform .18s;
}
.faq-plus::after { transform: translate(50%, -50%) rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: translate(50%, -50%) rotate(0); }
.faq-answer { padding: 0 0 20px; }
.faq-answer p { font-size: 1.02rem; line-height: 2.05; }

/* ----------------------------------------------------------------- clients -- */
.clients-section { padding: 44px 0; border-block: 1px solid var(--border); }
.clients-title { margin-bottom: 22px; font-size: .95rem; color: var(--muted); }
.clients-row { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.clients-row a, .clients-row .client-item { display: grid; place-items: center; min-height: 44px; }
.clients-row img { max-height: 40px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.clients-row a:hover img { filter: none; opacity: 1; }
.clients-row strong { font-size: 1.1rem; color: var(--text-2); }

/* ----------------------------------------------------------------- contact -- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-info h3 { font-size: 1.4rem; margin-bottom: 18px; }
.contact-info li { padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-info li:first-child { border-top: 1px solid var(--ink); }
.contact-info small { display: block; font-size: .85rem; color: var(--muted); }
.contact-info strong, .contact-info li a { font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.contact-info li a:hover { color: var(--brand-ink); text-decoration: underline; }
.map-box { margin-top: 24px; border-radius: var(--radius); overflow: hidden; min-height: 190px; border: 1px solid var(--border); }
.map-box iframe { width: 100%; height: 100%; min-height: 210px; border: 0; display: block; }
.map-placeholder { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: var(--paper); padding: 16px; text-align: center; }
.contact-form-wrap { padding: clamp(22px, 3vw, 36px); background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.contact-form-wrap h3 { font-size: 1.4rem; margin-bottom: 20px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: .95rem; font-weight: 600; }
.form-field input, .form-field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid var(--field); border-radius: var(--radius-sm);
  background: #fff; font-size: 1rem; color: var(--text); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-ink) 28%, transparent); }
.form-field textarea { resize: vertical; min-height: 130px; line-height: 1.9; }
.field-error { font-size: .9rem; color: #b42318; }
.form-note { font-size: .85rem; color: var(--muted); }

/* ------------------------------------------------------------------ footer -- */
.site-footer { background: var(--ink); color: #d5dbe3; padding-top: 72px; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 40px 36px; padding-bottom: 52px; }
.footer-brand { grid-column: span 2; }
.footer-about { margin-top: 16px; max-width: 280px; font-size: 14px; line-height: 2; color: #b3bfcd; }
.social-row { display: flex; gap: 4px; margin-top: 18px; flex-wrap: wrap; }
.social-row a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .28); border-radius: var(--radius-sm); color: #d5dbe3; transition: background .15s, color .15s; }
.social-row a:hover { background: #fff; color: var(--ink); }
.footer-col h3, .footer-newsletter h3 { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .22); font-size: 1rem; color: #fff; }
.footer-col ul { display: flex; flex-direction: column; gap: 4px; }
.footer-col li a { display: inline-block; padding-block: 6px; color: #d5dbe3; }
.footer-col li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.footer-contact-list li { padding-block: 5px; font-size: 14px; color: #d5dbe3; }
.footer-contact-list a { color: #d5dbe3; }
.footer-contact-list a:hover { color: #fff; text-decoration: underline; }
.footer-newsletter p { margin-bottom: 12px; font-size: 14px; color: #b3bfcd; line-height: 1.9; }
.newsletter-form { display: flex; gap: 6px; }
.newsletter-form input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px; border-radius: var(--radius-sm); border: 1.5px solid #8fa0b3; background: transparent; color: #fff; font-size: 14px; outline: none; }
.newsletter-form input::placeholder { color: #aab6c5; }
.newsletter-form input:focus { border-color: #fff; }
.site-footer .btn-primary { background: #f4f7f6; color: var(--ink); }
.site-footer .btn-primary:hover { background: #fff; }
.newsletter-note { margin-top: 8px; font-size: 13px; }
.newsletter-note.is-error { color: #fecaca; }
.newsletter-note.is-ok { color: #bbf7d0; }
.site-footer p { color: inherit; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .22); font-size: 13.5px; color: #b3bfcd; }
.footer-bottom a { color: #d5dbe3; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }
.footer-legal { display: flex; gap: 18px; }

/* ----------------------------------------------------- inner page headings -- */
.page-hero { padding: clamp(36px, 5vw, 64px) 0 clamp(28px, 4vw, 44px); border-bottom: 3px solid var(--ink); }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.breadcrumb a { text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 4px; }
.breadcrumb a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.breadcrumb span[aria-current] { color: var(--text-2); }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 900; line-height: 1.3; max-width: 22ch; }
.page-hero p { margin-top: 14px; max-width: 60ch; font-size: 1.1rem; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.detail-cover { width: 100%; border-radius: var(--radius); margin-bottom: 28px; }
.detail-cta { margin-top: 36px; padding: 28px; background: var(--soft); border-radius: var(--radius); }
.detail-cta h3 { font-size: 1.3rem; margin-bottom: 6px; }
.detail-cta p { margin-bottom: 16px; }
.detail-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.side-card { padding: 24px; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); }
.side-card h3 { font-size: 1.1rem; margin-bottom: 14px; }
.side-card dl { display: flex; flex-direction: column; gap: 0; margin-bottom: 16px; }
.side-card dl > div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.side-card dt { color: var(--muted); }
.side-card dd { margin: 0; font-weight: 600; }
.side-links { display: flex; flex-direction: column; }
.side-links a { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .95rem; color: var(--text-2); }
.side-links a:hover { color: var(--ink); text-decoration: underline; }
.side-cta p { margin-bottom: 14px; font-size: .95rem; color: var(--muted); }
.tech-cloud { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tech-cloud span { padding: 3px 12px; background: var(--soft); border-radius: 99px; font-size: .85rem; color: var(--text-2); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 30px; }
.gallery-item { overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.gallery-item.is-featured { grid-column: 1 / -1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; max-height: 520px; }
.gallery-item figcaption { padding: 8px 12px; font-size: .85rem; color: var(--muted); }
.project-facts-bar { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }

.article-hero { padding: clamp(36px, 5vw, 64px) 0 clamp(28px, 4vw, 44px); border-bottom: 3px solid var(--ink); }
.article-hero-inner { max-width: 900px; }
.article-hero h1 { font-size: clamp(1.9rem, 4vw, 3.2rem); font-weight: 900; line-height: 1.5; }
.article-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; font-size: .95rem; color: var(--muted); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; padding-block: 52px 88px; align-items: start; }
.article-body { min-width: 0; }
.article-cover { width: 100%; border-radius: var(--radius); margin-bottom: 32px; }
.article-content p { font-size: 1.1rem; line-height: 2.2; }
.article-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--ink); }
.article-author { display: flex; align-items: center; gap: 12px; }
.article-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.article-author div { display: flex; flex-direction: column; }
.article-author small { color: var(--muted); }
.article-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 48px; flex-wrap: wrap; }
.page-btn { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding-inline: 12px; border: 1.5px solid var(--field); border-radius: var(--radius-sm); background: transparent; font-weight: 600; transition: background .15s, color .15s, border-color .15s; }
.page-btn:hover { border-color: var(--ink); background: var(--soft-2); }
.page-btn.is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.page-dots { color: var(--muted); padding-inline: 4px; }

.search-inline { display: flex; flex-wrap: wrap; gap: 10px; max-width: 640px; margin: 0 auto 26px; }
.search-inline input { flex: 1 1 200px; min-width: 0; min-height: 52px; padding: 10px 18px; border: 1.5px solid var(--field); border-radius: var(--radius-sm); background: #fff; font-size: 1rem; outline: none; }
.search-inline input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-ink) 28%, transparent); }
.search-count { text-align: center; margin-bottom: 36px; color: var(--muted); }
.result-group { margin-bottom: 36px; }
.result-group h2 { font-size: 1.3rem; padding-bottom: 10px; border-bottom: 3px solid var(--ink); margin-bottom: 4px; }
.result-list { display: flex; flex-direction: column; }
.result-item { display: flex; flex-direction: column; gap: 2px; padding: 16px 4px; border-bottom: 1px solid var(--border); }
.result-item:hover { background: var(--paper); }
.result-item strong { font-size: 1.1rem; }
.result-item:hover strong { text-decoration: underline; text-decoration-color: var(--brand-strong); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.result-item span { color: var(--muted); }
.empty-block { grid-column: 1 / -1; padding: 56px 20px; text-align: center; border: 1.5px dashed var(--field); border-radius: var(--radius); color: var(--text-2); }

/* ------------------------------------------------- notices / flash / floats -- */
.notice-bar { background: #fff4d6; border-bottom: 1px solid #e6c36b; color: #5c3d00; }
.notice-bar.notice-danger { background: #fde8e6; border-color: #e8a29b; color: #7a1a12; }
.notice-bar.notice-info { background: #e5eefc; border-color: #9dbbea; color: #153f86; }
.notice-bar.notice-success { background: #e1f4e8; border-color: #8cc9a3; color: #0f5132; }
.notice-inner { display: flex; align-items: flex-start; gap: 12px; padding-block: 14px; position: relative; }
.notice-icon { font-size: 18px; line-height: 1.6; }
.notice-copy { flex: 1; }
.notice-copy strong { display: block; }
.notice-copy p { color: inherit; line-height: 1.9; margin-top: 2px; font-size: .95rem; }
.notice-link { font-weight: 700; text-decoration: underline; white-space: nowrap; margin-top: 2px; }
.notice-close { min-width: 44px; min-height: 44px; background: none; border: 0; font-size: 22px; line-height: 1; color: inherit; opacity: .75; }
.notice-close:hover { opacity: 1; }

.flash-stack { position: fixed; inset-block-end: 20px; inset-inline-start: 20px; z-index: 250; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 40px)); }
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--ink); box-shadow: 0 18px 40px -22px rgba(15, 23, 42, .5); animation: flashIn .25s var(--ease); }
.flash p { flex: 1; font-size: .95rem; color: var(--text); }
.flash-icon { width: 24px; height: 24px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; font-size: 13px; font-weight: 700; color: #fff; background: var(--ink); }
.flash-success .flash-icon { background: #0f7a4a; }
.flash-error .flash-icon { background: #b42318; }
.flash-warning .flash-icon { background: #8a5a00; }
.flash-info .flash-icon { background: #1a5fd0; }
.flash button { min-width: 36px; min-height: 36px; border: 0; background: none; font-size: 20px; color: var(--muted); line-height: 1; }
@keyframes flashIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.to-top { position: fixed; inset-block-end: 24px; inset-inline-end: 24px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--ink); color: #fff; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 90; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top { box-shadow: 0 0 0 1px rgba(255, 255, 255, .55), 0 0 0 2px rgba(15, 23, 42, .35); }
.to-top:hover { background: var(--brand-strong); }
.whatsapp-fab { position: fixed; inset-block-end: 80px; inset-inline-end: 24px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #14783f; color: #fff; z-index: 90; transition: transform .18s; }
.whatsapp-fab:hover { transform: scale(1.06); }

.error-page { min-height: 70vh; display: grid; place-items: center; padding: 70px 0; }
.error-inner { text-align: center; }
.error-code { font-size: clamp(5rem, 14vw, 9rem); font-weight: 900; line-height: 1; color: var(--ink); }
.error-inner h1 { margin-top: 10px; font-size: clamp(1.4rem, 3vw, 2rem); }
.error-inner p { margin-top: 10px; }
.error-actions { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.maintenance-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.maintenance-card { width: min(540px, 100%); text-align: center; padding: 44px 34px; background: var(--paper); border: 1px solid var(--border); border-top: 3px solid var(--ink); border-radius: var(--radius); }
.maintenance-logo { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 16px; }
.maintenance-card h1 { font-size: 1.7rem; margin-bottom: 10px; }
.maintenance-card p { margin-bottom: 22px; }

.lightbox { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; background: rgba(8, 13, 24, .94); padding: 30px; }
.lightbox.is-open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--radius); }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: transparent; color: #fff; font-size: 24px; line-height: 1; }
.lightbox-close { top: 18px; inset-inline-end: 22px; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); }
.lightbox-prev { inset-inline-start: 24px; }
.lightbox-next { inset-inline-end: 24px; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255, 255, 255, .16); }

/* ------------------------------------------------------------- responsive -- */
@media (max-width: 1180px) {
}
@media (max-width: 1024px) {
  .about-grid-solo .about-copy { grid-template-columns: minmax(0, 1fr); }
  .about-grid-solo .about-copy > h2, .about-grid-solo .about-copy > :not(h2) { grid-column: 1; grid-row: auto; margin-bottom: 14px; }
  .main-nav { display: none; }
  .burger { display: flex; }
  .header-cta { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-lead { max-width: 56ch; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-layout, .article-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-side, .article-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .detail-side .side-card, .article-side .side-card { flex: 1 1 260px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .project-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .project-lead { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .project-lead .project-body { padding-top: 18px; }
  .service-head { display: none; }
  .service-link { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 22px 0; }
  .service-main { grid-column: 1 / -1; }
  .service-go { display: none; }
  .credit { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 18px; }
  .credit:not(:has(.credit-photo)) { grid-template-columns: minmax(0, 1fr) auto; }
  .credit-bio { grid-column: 1 / -1; order: 3; }
  .topbar-hours { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { padding-inline: 18px; }
  .topbar-contact a:nth-child(2), .topbar-socials { display: none; }
  .header-inner { min-height: 64px; gap: 10px; }
  .brand-name { font-size: 19px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .quote-row { gap: 12px; }
  .quote-name { font-size: 1rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-newsletter { max-width: none; }
  .flash-stack { inset-inline: 14px; bottom: 14px; max-width: none; }
  .to-top { inset-block-end: 18px; inset-inline-end: 16px; }
  .whatsapp-fab { inset-block-end: 72px; inset-inline-end: 16px; }
  .blog-search { margin-inline-start: 0; width: 100%; }
  .blog-search input { width: 100%; }
  .article-foot { flex-direction: column; align-items: flex-start; }
  .detail-side, .article-side { flex-direction: column; }
  .lightbox { padding: 12px; }
  .lightbox-prev { inset-inline-start: 10px; }
  .lightbox-next { inset-inline-end: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
