/* Saman CNC — main stylesheet (ported from the Astro demo) */
:root {
  /* Brand: navy-steel + safety orange (from the business card) */
  --bg: #0c1119;
  --bg-2: #111826;
  --panel: #161f2e;
  --panel-2: #1b2638;
  --navy: #22365c;
  --line: rgba(160, 178, 206, 0.12);
  --line-strong: rgba(160, 178, 206, 0.24);
  --text: #e9edf3;
  --muted: #8f9bb0;
  --dim: #5d6a80;
  --orange: #ff5a00;
  --orange-soft: rgba(255, 90, 0, 0.12);

  --font: 'Vazirmatn', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --logo: 'Montserrat', sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 4px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--mono);
  direction: ltr;
  unicode-bidi: isolate;
}

/* Blueprint grid backdrop */
.grid-bg {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Section header: "SEC.01 ── عنوان" */
.sec-head { display: grid; gap: 14px; margin-bottom: 56px; max-width: 640px; }
.sec-label {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--orange); direction: ltr; justify-content: flex-end;
}
.sec-label::before { content: ''; flex: 0 0 40px; height: 1px; background: var(--orange); }
.sec-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.35; }
.sec-head p { color: var(--muted); font-size: 17px; }

section { padding-block: clamp(72px, 10vw, 120px); position: relative; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding-inline: 24px;
  font-family: var(--font); font-weight: 700; font-size: 16px;
  border-radius: var(--radius); border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  cursor: pointer; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #ff6d1f; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

/* Corner brackets — "measurement frame" look */
.frame { position: relative; }
.frame::before, .frame::after {
  content: ''; position: absolute; width: 14px; height: 14px;
  border-color: var(--orange); border-style: solid; pointer-events: none;
  transition: width 0.3s, height 0.3s;
}
.frame::before { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.frame::after { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 17, 25, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr-in { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; direction: ltr; }
.logo-mark {
  width: 26px; height: 26px; border: 2px solid var(--orange); border-radius: 50%;
  position: relative;
}
.logo-mark::before, .logo-mark::after {
  content: ''; position: absolute; background: var(--orange);
}
.logo-mark::before { width: 2px; height: 34px; left: 10px; top: -6px; }
.logo-mark::after { height: 2px; width: 34px; top: 10px; left: -6px; }
.logo-txt {
  font-family: var(--logo); font-style: italic; font-weight: 700;
  font-size: 22px; color: var(--text); direction: ltr; letter-spacing: 0.01em;
}
.logo-txt em { color: var(--orange); font-style: italic; }
.nav { display: flex; gap: 28px; margin-inline-start: auto; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color 0.2s; }
.nav a:hover { color: var(--text); }
.hdr-call { height: 42px; padding-inline: 18px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100svh - 72px); display: flex; align-items: center;
  padding-block: clamp(64px, 9vw, 120px); border-bottom: 1px solid var(--line); overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero.has-video .hero-media video { opacity: 1; }
.hero.has-video .hero-placeholder { opacity: 0; }

/* Placeholder until the real video exists: slow light sweep over brushed steel */
.hero-placeholder {
  position: absolute; inset: 0; transition: opacity 1.2s ease;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.012) 0 2px, transparent 2px 5px),
    radial-gradient(ellipse 60% 70% at 25% 45%, #2a3d63 0%, #172338 45%, var(--bg) 85%);
}
.hero-placeholder::before {
  content: ''; position: absolute; inset: -20% -40%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 140, 60, 0.10) 48%, rgba(255, 255, 255, 0.06) 50%, transparent 58%);
  animation: sweep 9s ease-in-out infinite;
}
@keyframes sweep { 0% { transform: translateX(-35%); } 100% { transform: translateX(35%); } }
.ph-note {
  position: absolute; left: 24px; top: 24px; font-size: 11px; color: var(--dim);
  border: 1px dashed var(--line-strong); padding: 6px 10px; border-radius: var(--radius);
}

/* Dark shade on the text side (right, RTL) + fade into the next section */
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(270deg, rgba(12, 17, 25, 0.94) 0%, rgba(12, 17, 25, 0.78) 38%, rgba(12, 17, 25, 0.25) 75%, rgba(12, 17, 25, 0.35) 100%),
    linear-gradient(180deg, rgba(12, 17, 25, 0.5) 0%, transparent 25%, transparent 70%, var(--bg) 100%);
}
.hero-grid { position: absolute; inset: 0; opacity: 0.55; mask-image: linear-gradient(270deg, #000 0%, transparent 70%); }

.hero-in { position: relative; z-index: 1; }
.hero-copy { max-width: 640px; }

.hero-hud {
  position: absolute; z-index: 1; left: var(--gutter); bottom: 28px;
  display: flex; gap: 24px; font-size: 11px; letter-spacing: 0.08em; color: rgba(233, 237, 243, 0.55);
}
.rec {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--orange);
  margin-inline-end: 6px; vertical-align: 1px; animation: pulse 1.6s steps(2) infinite;
}
@keyframes pulse { 50% { opacity: 0.3; } }
.hero-kicker { font-size: 12px; letter-spacing: 0.14em; color: var(--orange); margin-bottom: 20px; text-align: right; }
.hero h1 {
  font-size: clamp(34px, 5.2vw, 58px); font-weight: 900; line-height: 1.3;
  letter-spacing: -0.01em;
}
.hero h1 span { display: block; color: var(--orange); }
.hero-lead { margin-top: 24px; font-size: 18px; color: var(--muted); max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-cta .btn-primary { font-size: 18px; }
.hero-cta .btn-primary svg { width: 20px; height: 20px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0;
  margin: 48px 0 0; border-top: 1px solid var(--line); padding-top: 24px;
}
.hero-stats div { padding-inline: 0 28px; margin-inline-end: 28px; border-inline-end: 1px solid var(--line); }
.hero-stats div:last-child { border: 0; margin: 0; padding: 0; }
.hero-stats dt { font-size: 13px; color: var(--dim); order: 2; }
.hero-stats dd { margin: 0; font-size: 34px; font-weight: 800; line-height: 1.3; }
.hero-stats dd.sm { font-size: 17px; line-height: 2.6; }
.hero-stats div { display: flex; flex-direction: column-reverse; }


/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 16px; }
.svc {
  background: var(--panel); border: 1px solid var(--line);
  padding: 28px 24px 32px; border-radius: var(--radius);
  transition: border-color 0.3s, background 0.3s, transform 0.3s, opacity 0.7s;
}
.svc::before, .svc::after { width: 0; height: 0; }
.svc:hover { border-color: var(--line-strong); background: var(--panel-2); transform: translateY(-3px); }
.svc:hover::before, .svc:hover::after { width: 18px; height: 18px; }
.svc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.svc-icon {
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--orange-soft); color: var(--orange); border-radius: var(--radius);
}
.svc-icon svg { width: 26px; height: 26px; }
.svc-code { font-size: 11px; color: var(--dim); letter-spacing: 0.05em; }
.svc h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.svc p { color: var(--muted); font-size: 15px; line-height: 1.9; }

/* ---------- Machines ---------- */
.machines { background-color: var(--bg-2); border-block: 1px solid var(--line); }
.mach-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.mach-list { border-top: 1px solid var(--line-strong); }
.mach {
  display: flex; align-items: center; gap: 24px;
  padding: 22px 4px; border-bottom: 1px solid var(--line-strong);
  transition: padding 0.3s, color 0.3s;
}
.mach span { font-size: 13px; color: var(--orange); }
.mach b { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; }
.mach:hover { padding-inline-start: 16px; }
.mach:hover b { color: var(--orange); }

.brands {
  margin-top: 72px; display: grid; gap: 20px;
  border: 1px solid var(--line); background: var(--bg); border-radius: var(--radius);
  padding: 28px;
}
.brands-label { font-size: 14px; color: var(--muted); }
.brands ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line);
  direction: ltr;
}
.brands li {
  background: var(--bg); text-align: center; padding: 22px 8px;
  font-size: clamp(13px, 1.5vw, 18px); font-weight: 500; letter-spacing: 0.12em;
  color: #c3cbd8; transition: color 0.2s;
}
.brands li:hover { color: var(--orange); }

/* ---------- Process ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 0; row-gap: 56px;
}
/* No connector after the last step of each row (desktop). */
@media (min-width: 1025px) {
  .steps-c2 .step:nth-child(2n)::before,
  .steps-c3 .step:nth-child(3n)::before,
  .steps-c4 .step:nth-child(4n)::before,
  .steps-c5 .step:nth-child(5n)::before { display: none; }
}
.step { padding: 0 0 0 28px; position: relative; }
.step::before {
  content: ''; position: absolute; top: 27px; right: 64px; left: 0;
  height: 1px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
}
.step:last-child::before { display: none; }
.step-n {
  display: grid; place-items: center; width: 54px; height: 54px;
  border: 1px solid var(--orange); color: var(--orange); border-radius: 50%;
  font-weight: 800; font-size: 18px; margin-bottom: 24px; background: var(--bg);
  position: relative;
}
.step h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; max-width: 240px; }

/* ---------- About ---------- */
.about { background: linear-gradient(180deg, var(--bg) 0%, #0f1828 100%); }
.about-in { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-card {
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 40px 32px; display: grid; gap: 28px; justify-items: center; text-align: center;
}
.about-gauge { width: min(220px, 70%); }
.g-ring { fill: var(--bg-2); stroke: var(--line-strong); stroke-width: 2; }
.g-tick { stroke: var(--dim); stroke-width: 1; }
.g-tick.major { stroke: var(--muted); stroke-width: 2; }
.g-needle {
  stroke: var(--orange); stroke-width: 2.5; stroke-linecap: round;
  transform-origin: 100px 100px; animation: needle 5s ease-in-out infinite;
}
.g-hub { fill: var(--orange); }
.g-txt { fill: var(--muted); font-family: var(--mono); font-size: 11px; }
@keyframes needle {
  0%, 100% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  55% { transform: rotate(2deg); }
  75% { transform: rotate(5deg); }
}
.about-name { font-size: 24px; font-weight: 800; }
.about-role { color: var(--muted); font-size: 14px; }

/* About card with a photo */
.about-card--photo { padding: 0; gap: 0; overflow: hidden; justify-items: stretch; text-align: right; }
.about-card--photo::before, .about-card--photo::after { z-index: 2; width: 22px; height: 22px; }
.about-photo { margin: 0; aspect-ratio: 4 / 5; background: var(--bg-2); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; filter: saturate(0.9) contrast(1.03); }
.about-plate {
  position: absolute; inset: auto 0 0 0; z-index: 1;
  padding: 72px 24px 22px;
  background: linear-gradient(180deg, transparent 0%, rgba(12, 17, 25, 0.78) 45%, rgba(12, 17, 25, 0.95) 100%);
}
.about-tag {
  display: inline-block; font-size: 11px; letter-spacing: 0.1em; color: var(--orange);
  border: 1px solid rgba(255, 90, 0, 0.45); padding: 3px 8px; border-radius: 2px; margin-bottom: 10px;
}
.about-card--photo .about-role { color: rgba(233, 237, 243, 0.75); }
.about-copy .sec-label { justify-content: flex-end; margin-bottom: 14px; }
.about-copy h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; line-height: 1.4; margin-bottom: 20px; }
.about-copy > p { color: var(--muted); font-size: 17px; }
.about-points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.about-points li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.about-points svg { width: 22px; height: 22px; color: var(--orange); flex: none; }

/* ---------- Contact ---------- */
.contact { padding-top: 0; background: #0f1828; }
.cta {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  background-color: var(--navy); border-radius: var(--radius);
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid rgba(255, 255, 255, 0.08); position: relative; overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; top: 0; right: 0; width: 6px; height: 100%; background: var(--orange);
}
.cta .sec-label { margin-bottom: 14px; }
.cta h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; line-height: 1.35; margin-bottom: 10px; }
.cta p { color: rgba(233, 237, 243, 0.75); font-size: 17px; }
.cta-phones { display: grid; gap: 12px; }
.phone {
  display: flex; align-items: center; gap: 16px;
  background: rgba(12, 17, 25, 0.55); border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 20px; border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}
.phone:hover { border-color: var(--orange); background: rgba(12, 17, 25, 0.8); }
.phone-ic {
  width: 44px; height: 44px; display: grid; place-items: center; flex: none;
  background: var(--orange); color: #fff; border-radius: var(--radius);
}
.phone-ic svg { width: 20px; height: 20px; }
.phone-num { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; direction: ltr; letter-spacing: 0.02em; }

/* ---------- Footer ---------- */
.ftr { background: var(--bg); }
.hazard {
  height: 8px;
  background: repeating-linear-gradient(-45deg, var(--orange) 0 14px, var(--bg) 14px 28px);
  opacity: 0.9;
}
.ftr-in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding-block: 32px; color: var(--muted); font-size: 14px;
}
.ftr-in .logo-txt { font-size: 18px; }
.ftr-copy { font-size: 12px; color: var(--dim); }

.fab {
  display: none; position: fixed; bottom: 18px; left: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--orange); color: #fff; place-items: center;
  box-shadow: 0 10px 30px rgba(255, 90, 0, 0.35);
}
.fab svg { width: 24px; height: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .step:nth-child(2n)::before { display: none; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .hdr-call { margin-inline-start: auto; }
  .hero-in, .mach-in, .about-in, .cta { grid-template-columns: 1fr; }
  .hero-shade { background: linear-gradient(180deg, rgba(12, 17, 25, 0.7) 0%, rgba(12, 17, 25, 0.82) 60%, var(--bg) 100%); }
  .hero-grid { mask-image: none; opacity: 0.35; }
  .hero-hud { display: none; }
  .brands ul { grid-template-columns: repeat(3, 1fr); }
  .fab { display: grid; }
}
@media (max-width: 560px) {
  .hdr-call span { display: none; }
  .hdr-call { width: 42px; padding: 0; justify-content: center; }
  .svc-grid, .steps { grid-template-columns: 1fr; }
  .step::before { display: none; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .hero-stats div { padding-inline: 0 12px; margin-inline-end: 12px; }
  .hero-stats dd { font-size: 26px; }
  .hero-stats dd.sm { font-size: 14px; line-height: 1.6; margin-top: 8px; }
  .brands ul { grid-template-columns: repeat(2, 1fr); }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
}

/* =================================================================
   WordPress additions
   ================================================================= */

.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.skip-link {
  position: absolute; top: -100px; right: 16px; z-index: 100;
  background: var(--orange); color: #fff; padding: 10px 16px; border-radius: var(--radius); font-weight: 700;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.logo-img { max-height: 44px; width: auto; }

/* Menu */
.nav .menu { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav .current-menu-item > a { color: var(--text); }
.nav-phone { display: none; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: transparent; color: var(--text); place-items: center; cursor: pointer; padding: 0;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-close { display: block; }

/* Hero: no video configured → placeholder only */
.hero.no-video .hero-placeholder { opacity: 1; }

/* FAQ */
.faq { background: var(--bg-2); border-top: 1px solid var(--line); }
.faq-in { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 18px; font-weight: 700; line-height: 1.7; transition: color 0.2s; }
.faq-item summary:hover h3 { color: var(--orange); }
.faq-ic {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%; color: var(--orange); transition: transform 0.3s, background 0.3s;
}
.faq-ic svg { width: 16px; height: 16px; }
.faq-item[open] .faq-ic { transform: rotate(45deg); background: var(--orange-soft); }
.faq-a { padding: 0 0 24px; color: var(--muted); font-size: 16px; max-width: 640px; }

/* Blog teaser & cards */
.blog-teaser { border-top: 1px solid var(--line); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, opacity 0.7s;
}
.card::before, .card::after { width: 0; height: 0; z-index: 2; }
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card:hover::before, .card:hover::after { width: 18px; height: 18px; }
.card-link { display: flex; flex-direction: column; height: 100%; }
.card-media { aspect-ratio: 16 / 10; background: var(--bg-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--dim); }
.card-ph svg { width: 48px; height: 48px; }
.card-body { padding: 22px 22px 26px; display: grid; gap: 10px; }
.card-meta { display: flex; gap: 8px; font-size: 13px; color: var(--dim); }
.card-title { font-size: 18px; font-weight: 800; line-height: 1.6; transition: color 0.2s; }
.card:hover .card-title { color: var(--orange); }
.card-excerpt { color: var(--muted); font-size: 15px; }

/* Inner page header */
.page-hero { padding-block: clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--line); background-color: var(--bg-2); }
.page-hero .sec-label { justify-content: flex-end; margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(28px, 4.4vw, 46px); font-weight: 900; line-height: 1.4; }
.page-desc { color: var(--muted); margin-top: 12px; max-width: 640px; }
.wrap-narrow { max-width: 820px; }
.crumbs { display: flex; gap: 10px; font-size: 14px; color: var(--dim); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--orange); }
.entry-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; color: var(--dim); font-size: 14px; }
.list-wrap { padding-block: clamp(48px, 7vw, 88px); }

/* Pagination */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers {
  min-width: 44px; height: 44px; padding-inline: 14px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--muted);
}
.pagination .page-numbers.current, .pagination a.page-numbers:hover { border-color: var(--orange); color: var(--orange); }

/* Article body */
.entry-body { padding-block: clamp(40px, 6vw, 72px); }
.entry-thumb { margin: 0 0 40px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.entry-thumb img { width: 100%; height: auto; }
.prose { font-size: 17px; line-height: 2.05; color: #d3d9e3; }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { font-size: 26px; font-weight: 800; line-height: 1.5; margin-top: 2em; color: var(--text); }
.prose h3 { font-size: 21px; font-weight: 800; line-height: 1.6; margin-top: 1.6em; color: var(--text); }
.prose h2::before { content: ""; display: inline-block; width: 6px; height: 0.8em; background: var(--orange); margin-inline-end: 12px; vertical-align: -0.05em; }
.prose a { color: var(--orange); text-decoration: underline; text-underline-offset: 4px; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--orange); }
.prose blockquote {
  margin-inline: 0; padding: 18px 22px; border-inline-start: 3px solid var(--orange);
  background: var(--panel); border-radius: var(--radius); color: var(--text);
}
.prose img, .prose figure img { border-radius: var(--radius); height: auto; }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: 14px; color: var(--dim); text-align: center; margin-top: 8px; }
.prose code { font-family: var(--mono); background: var(--panel); padding: 2px 6px; border-radius: 3px; font-size: 0.9em; direction: ltr; unicode-bidi: isolate; }
.prose pre { background: var(--panel); border: 1px solid var(--line); padding: 18px; border-radius: var(--radius); overflow-x: auto; direction: ltr; text-align: left; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line-strong); padding: 10px 14px; text-align: right; }
.prose th { background: var(--panel); color: var(--text); }
.prose hr { border: 0; height: 1px; background: var(--line-strong); margin-block: 2.4em; }
.aligncenter { margin-inline: auto; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.entry-tags a { font-size: 13px; color: var(--muted); border: 1px solid var(--line-strong); padding: 4px 12px; border-radius: 999px; }
.entry-tags a:hover { color: var(--orange); border-color: var(--orange); }

.cta-box {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 56px; padding: 28px; background: var(--navy); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius);
}
.cta-box-title { font-size: 20px; font-weight: 800; }
.cta-box p:not(.cta-box-title) { color: rgba(233, 237, 243, 0.75); font-size: 15px; }
.cta-hours { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 15px; }
.cta-hours svg { width: 18px; height: 18px; color: var(--orange); }

.related { margin-top: 72px; }
.related h2 { font-size: 24px; font-weight: 800; margin-bottom: 24px; }

/* Search form */
.search-form { display: flex; gap: 8px; max-width: 460px; margin-top: 24px; }
.search-form label { flex: 1; }
.search-field {
  width: 100%; height: 48px; padding-inline: 16px; font: inherit; color: var(--text);
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.search-field:focus { outline: none; border-color: var(--orange); }
.search-submit {
  height: 48px; padding-inline: 20px; font: inherit; font-weight: 700; cursor: pointer;
  background: var(--orange); color: #fff; border: 0; border-radius: var(--radius);
}
.empty { text-align: center; color: var(--muted); }
.empty .search-form { margin-inline: auto; }

/* 404 */
.nf { min-height: 70vh; display: flex; align-items: center; }
.nf-in { display: grid; gap: 16px; justify-items: start; }
.nf-code { color: var(--orange); font-size: 14px; letter-spacing: 0.14em; }
.nf h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 900; }
.nf p { color: var(--muted); }
.nf-actions { margin-top: 8px; }

/* Footer (multi-column) */
.ftr-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-block: 48px 32px; }
.ftr-brand p { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 320px; }
.ftr-h { font-weight: 800; margin-bottom: 12px; }
.ftr-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ftr-col a, .ftr-col p, .ftr-col address { color: var(--muted); font-size: 14px; font-style: normal; }
.ftr-col a:hover { color: var(--orange); }
.ftr-bottom {
  border-top: 1px solid var(--line); padding-block: 20px; font-size: 13px; color: var(--dim);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
}
.ftr-bottom .quack-credit { color: var(--muted); }
.ftr-bottom .quack-credit:hover { color: var(--text); }
@media (max-width: 560px) {
  .ftr-bottom { justify-content: center; text-align: center; padding-bottom: 92px; } /* room for the floating call button */
}

@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .hdr-call { margin-inline-start: auto; }
  .nav {
    display: flex; flex-direction: column; gap: 0; position: fixed; inset: 72px 0 auto 0;
    background: var(--bg); border-bottom: 1px solid var(--line-strong); padding: 8px var(--gutter) 24px;
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav .menu { flex-direction: column; gap: 0; }
  .nav .menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--text); }
  .nav-phone { display: flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--orange); font-weight: 700; font-size: 18px; }
  .nav-phone svg { width: 20px; height: 20px; }
  .nav-phone span { direction: ltr; }
  .faq-in { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .post-grid { grid-template-columns: 1fr; }
  .ftr-grid { grid-template-columns: 1fr; }
  .cta-box .btn { width: 100%; justify-content: center; }
}

/* ---------- Contact (former About) ---------- */
.contact-sec { position: relative; }
.anchor-alias { position: absolute; top: 0; }
.contact-phones { margin-top: 28px; }
.contact-sec .about-points { margin-top: 24px; }
.voice-btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 24px;
  background: transparent; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 8px 14px;
  transition: color 0.2s, border-color 0.2s;
}
.voice-btn:hover, .voice-btn[aria-pressed="true"] { color: var(--orange); border-color: var(--orange); }
.voice-btn[aria-pressed="true"] svg { animation: voicePulse 1s ease-in-out infinite; }
@keyframes voicePulse { 50% { opacity: 0.4; } }

/* ---------- Mobile hero: video first, text ~2s later ---------- */
@media (max-width: 860px) and (prefers-reduced-motion: no-preference) {
  .hero.m-intro .hero-copy {
    opacity: 0; transform: translateY(18px);
    transition: opacity 0.9s ease, transform 0.9s ease;
    animation: heroCopyFallback 0.9s ease 6s forwards; /* safety net if JS/video never fires */
  }
  .hero.m-intro .hero-shade { opacity: 0.25; transition: opacity 0.9s ease; }
  .hero.m-intro.copy-in .hero-copy { opacity: 1; transform: none; animation: none; }
  .hero.m-intro.copy-in .hero-shade { opacity: 1; }
}
@keyframes heroCopyFallback { to { opacity: 1; transform: none; } }
