/* ==========================================================================
   Bhim Nirman Sewa – public site
   Palette: structural steel navy + safety amber on warm concrete.
   ========================================================================== */
:root {
  --ink: #13202f;
  --ink-2: #1c2d40;
  --ink-3: #2a3f57;
  --steel: #5b6b7e;
  --line: #e2ddd3;
  --concrete: #f5f2ec;
  --paper: #ffffff;
  --text: #1d2733;
  --muted: #5f6b78;
  --amber: #f2a20c;
  --amber-dark: #c98100;
  --amber-soft: #fff3d9;
  --green: #1f8a5b;
  --blue: #2563a8;
  --red: #c0392b;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", system-ui, sans-serif;

  --radius: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(19, 32, 47, .06), 0 2px 8px rgba(19, 32, 47, .05);
  --shadow: 0 10px 30px -12px rgba(19, 32, 47, .25);
  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink-3); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--amber-dark); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.1; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.45rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.ico { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--amber); color: var(--ink); padding: 8px 14px; border-radius: var(--radius); }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .8em 1.5em; border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
  line-height: 1.1;
}
.btn .ico { transition: transform .2s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn-accent { background: var(--amber); color: var(--ink); }
.btn-accent:hover { background: #ffb52e; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--ink); text-decoration: none; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; }
.link-arrow .ico { color: var(--amber-dark); transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--amber-dark); }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #c5ced8; font-size: .875rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 22px; }
.topbar li { display: flex; align-items: center; gap: 6px; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--amber); }
.topbar .ico { color: var(--amber); }
.topbar-social { gap: 14px !important; }
.topbar-social .pan { font-weight: 600; letter-spacing: .04em; padding-right: 14px; border-right: 1px solid rgba(255,255,255,.15); }
.topbar-social .ico { color: inherit; }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 6px 24px -10px rgba(19, 32, 47, .25); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand-logo { height: 52px; width: auto; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 8px; background: var(--amber); color: var(--ink); }
.brand-mark .ico { width: 28px; height: 28px; stroke-width: 2; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.brand-text small { font-size: .78rem; text-transform: uppercase; letter-spacing: .22em; color: var(--muted); margin-top: 4px; }
.brand-light { color: #fff; }
.brand-light .brand-text small { color: #9fb0c2; }

.main-nav { margin-left: auto; display: flex; align-items: center; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.main-nav li { position: relative; }
.main-nav a { display: flex; align-items: center; gap: 6px; padding: 10px 12px; font-family: var(--font-display); font-weight: 600; font-size: 1.07rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); text-decoration: none; position: relative; }
.main-nav > ul > li > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.main-nav > ul > li > a:hover::after, .main-nav > ul > li > a.active::after { transform: scaleX(1); }
.main-nav a:hover { color: var(--ink); }
.nav-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-family: var(--font-body); font-size: .72rem; font-weight: 600; letter-spacing: 0; }
.sub-toggle { display: none; }
.sub-menu { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--amber); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s var(--ease); }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { text-transform: none; font-family: var(--font-body); font-weight: 500; font-size: .98rem; letter-spacing: 0; padding: 9px 18px; }
.sub-menu a:hover { background: var(--concrete); color: var(--amber-dark); }
.main-nav .nav-cta { display: none; color: var(--ink); padding: .8em 1.5em; }
.header-cta { flex: none; padding: .7em 1.2em; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); cursor: pointer; }
.nav-toggle .ico { width: 24px; height: 24px; }
.nav-toggle .shut { display: none; }

@media (max-width: 1180px) {
  .header-cta { display: none; }
}
@media (max-width: 1024px) {
  .hide-md { display: none !important; }
  .nav-toggle { display: grid; place-items: center; }
  /* backdrop-filter would make the header the containing block of the fixed drawer below */
  .site-header { backdrop-filter: none; background: #fff; }
  .main-nav {
    position: fixed; inset: calc(var(--header-h) + 40px) 0 0 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px 20px 32px; overflow-y: auto; transform: translateX(100%); transition: transform .3s var(--ease); visibility: hidden;
  }
  body.nav-open .main-nav { transform: none; visibility: visible; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle .open { display: none; }
  body.nav-open .nav-toggle .shut { display: inline; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
  .main-nav > ul > li > a { flex: 1; padding: 15px 4px; font-size: 1.2rem; }
  .main-nav > ul > li > a::after { display: none; }
  .main-nav a.active { color: var(--amber-dark); }
  .sub-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: var(--concrete); border-radius: var(--radius); cursor: pointer; color: var(--ink); }
  .sub-toggle .ico { transition: transform .2s; }
  .sub-toggle[aria-expanded="true"] .ico { transform: rotate(180deg); }
  .sub-menu { position: static; flex-basis: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 10px 10px; display: none; min-width: 0; }
  .has-sub.open .sub-menu { display: block; }
  .has-sub:hover .sub-menu { transform: none; }
  .main-nav .nav-cta { display: inline-flex; margin-top: 24px; }
}
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .topbar-info li:nth-child(2), .topbar-social li:not(.pan) { display: none; }
  .topbar-social .pan { border: 0; padding: 0; }
  .brand-logo { height: 42px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-text strong { font-size: 1.3rem; }
  .brand-text small { font-size: .68rem; letter-spacing: .16em; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.hero-slides { position: relative; min-height: clamp(520px, 78vh, 760px); }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; display: flex; align-items: center; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.06); transition: transform 7s ease-out; }
.hero-slide.is-active > img { transform: scale(1); }
.hero-slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(13, 22, 33, .92) 0%, rgba(13, 22, 33, .72) 45%, rgba(13, 22, 33, .25) 100%); }
.hero-content { max-width: 720px; padding: 80px 0; }
.hero-content h1, .hero-content h2 { color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.4rem); text-transform: uppercase; letter-spacing: .01em; }
.hero-content p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #d6dee7; max-width: 600px; margin-bottom: 2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .2em; font-size: .95rem; color: var(--amber-dark); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--amber); }
.hero .eyebrow, .dark .eyebrow { color: var(--amber); }
.hero-controls { position: absolute; right: 20px; bottom: 28px; display: flex; gap: 10px; align-items: center; z-index: 2; }
.hero-controls button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(19, 32, 47, .4); color: #fff; cursor: pointer; display: grid; place-items: center; }
.hero-controls button:hover { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.hero-dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 34px; display: flex; gap: 8px; z-index: 2; }
.hero-dots button { width: 28px; height: 4px; border: 0; padding: 0; background: rgba(255, 255, 255, .4); cursor: pointer; border-radius: 2px; }
.hero-dots button.is-active { background: var(--amber); width: 46px; }

/* Static hero (no slides uploaded yet): blueprint grid. */
.hero-static { min-height: clamp(520px, 74vh, 700px); display: flex; align-items: center;
  background:
    radial-gradient(1200px 500px at 85% 20%, rgba(242, 162, 12, .16), transparent 60%),
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 8px 8px,
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 8px 8px,
    linear-gradient(135deg, #12202f 0%, #1b3047 100%);
}
.hero-static-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; width: 100%; }
.hero-art { position: relative; justify-self: end; width: min(440px, 100%); aspect-ratio: 1; }
.hero-art svg { width: 100%; height: 100%; }
@media (max-width: 900px) { .hero-static-grid { grid-template-columns: 1fr; } .hero-art { display: none; } }

/* ---------- Notice ticker ---------- */
.ticker { background: var(--amber); color: var(--ink); }
.ticker-inner { display: flex; align-items: stretch; min-height: 52px; }
.ticker-label { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 22px 0 0; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; position: relative; }
.ticker-label::after { content: ""; position: absolute; right: 8px; top: 12px; bottom: 12px; width: 2px; background: rgba(19, 32, 47, .3); }
.ticker-track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); display: flex; align-items: center; }
.ticker-list { display: flex; gap: 48px; list-style: none; margin: 0; padding: 0; white-space: nowrap; animation: ticker 40s linear infinite; }
.ticker:hover .ticker-list { animation-play-state: paused; }
.ticker-list a { color: var(--ink); text-decoration: none; font-weight: 600; }
.ticker-list a:hover { text-decoration: underline; }
.ticker-list .date { font-weight: 500; opacity: .7; margin-right: 8px; }
.ticker-all { flex: none; display: flex; align-items: center; padding-left: 16px; font-weight: 600; color: var(--ink); white-space: nowrap; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-list { animation: none; flex-wrap: wrap; } }
@media (max-width: 640px) { .ticker-all { display: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-sm { padding: clamp(48px, 6vw, 72px) 0; }
.section.alt { background: var(--concrete); }
.section.dark, .dark { background: var(--ink); color: #c8d1db; }
.dark h2, .dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.dark .section-head p { color: #a9b6c4; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- About intro ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-visual { position: relative; }
.about-visual img, .about-visual .placeholder { border-radius: var(--radius-lg); aspect-ratio: 4 / 4.4; object-fit: cover; width: 100%; }
.about-visual::before { content: ""; position: absolute; left: -16px; top: -16px; width: 45%; height: 45%; border-left: 6px solid var(--amber); border-top: 6px solid var(--amber); border-radius: var(--radius-lg) 0 0 0; }
.about-badge { position: absolute; right: -12px; bottom: 32px; background: var(--ink); color: #fff; padding: 20px 24px; border-radius: var(--radius); box-shadow: var(--shadow); border-left: 5px solid var(--amber); max-width: 240px; }
.about-badge strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--amber); line-height: 1; }
.about-badge span { font-size: .9rem; color: #c8d1db; }
.check-list { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check-list .ico { color: #fff; background: var(--amber-dark); border-radius: 50%; padding: 3px; width: 22px; height: 22px; stroke-width: 3; margin-top: 2px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-visual { max-width: 520px; } }
@media (max-width: 520px) { .check-list { grid-template-columns: 1fr; } .about-badge { right: 12px; } }

/* Placeholder (no photo uploaded) */
.placeholder { display: grid; place-items: center; color: rgba(255,255,255,.75); background:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(135deg, var(--ink-2), var(--ink-3)); }
.placeholder .ico { width: 30%; height: 30%; max-width: 96px; stroke-width: 1.2; color: var(--amber); }

/* ---------- Stats ---------- */
.stats { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.stats::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent 0 22px, rgba(255,255,255,.025) 22px 44px); }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 44px 24px; text-align: center; border-left: 1px solid rgba(255,255,255,.1); }
.stat:first-child { border-left: 0; }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 5vw, 3.6rem); color: var(--amber); line-height: 1; }
.stat-label { margin-top: 8px; text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; color: #b8c4d1; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.service-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px 30px; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; overflow: hidden; text-decoration: none; color: inherit; }
.service-card::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; color: inherit; }
.service-card:hover::after { transform: scaleX(1); }
.service-icon { width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center; background: var(--amber-soft); color: var(--amber-dark); margin-bottom: 22px; transition: background .3s, color .3s; }
.service-icon .ico { width: 32px; height: 32px; stroke-width: 1.6; }
.service-card:hover .service-icon { background: var(--ink); color: var(--amber); }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--muted); flex: 1; }
.service-num { position: absolute; right: 24px; top: 18px; font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--concrete); line-height: 1; }

.project-card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); color: #fff; text-decoration: none; aspect-ratio: 4 / 3.3; }
.project-card img, .project-card .placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,22,33,0) 30%, rgba(13,22,33,.92) 100%); }
.project-card:hover img, .project-card:hover .placeholder { transform: scale(1.06); }
.project-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; z-index: 1; }
.project-card h3 { color: #fff; margin: 8px 0 6px; font-size: 1.5rem; }
.project-card .meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .9rem; color: #c8d1db; }
.project-card .meta span { display: inline-flex; align-items: center; gap: 5px; }
.project-card .meta .ico { color: var(--amber); }
.project-card .badges { position: absolute; top: 16px; left: 16px; z-index: 1; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: 5px 10px; border-radius: 4px; background: rgba(255,255,255,.92); color: var(--ink); line-height: 1.2; }
.badge-live { background: var(--amber); color: var(--ink); }
.badge-done { background: var(--green); color: #fff; }
.badge-soon { background: var(--blue); color: #fff; }
.badge-red { background: var(--red); color: #fff; }
.badge-muted { background: #e8e5df; color: var(--muted); }

.post-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-2); }
.post-card-media img, .post-card-media .placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-card-media img { transform: scale(1.05); }
.post-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card .date { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); margin-bottom: 8px; }
.post-card .date .ico { color: var(--amber-dark); }
.post-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--amber-dark); }
.post-card p { color: var(--muted); flex: 1; }

/* ---------- Notices ---------- */
.notice-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.notice-item { display: flex; gap: 18px; padding: 18px 22px; border-bottom: 1px solid var(--line); align-items: flex-start; transition: background .2s; }
.notice-item:last-child { border-bottom: 0; }
.notice-item:hover { background: #fcfaf6; }
.notice-date { flex: none; width: 62px; text-align: center; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 8px 4px; line-height: 1; }
.notice-date strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--amber); }
.notice-date span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.notice-body { flex: 1; min-width: 0; }
.notice-body a.title { font-weight: 600; color: var(--ink); text-decoration: none; font-size: 1.07rem; }
.notice-body a.title:hover { color: var(--amber-dark); }
.notice-body .sub { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; font-size: .88rem; color: var(--muted); }
.notice-item.expired { opacity: .65; }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: rgba(255,255,255,.08); border-radius: var(--radius-lg); overflow: hidden; }
.why-item { background: var(--ink); padding: 36px 28px; }
.why-item .ico { width: 40px; height: 40px; color: var(--amber); margin-bottom: 18px; stroke-width: 1.5; }
.why-item h3 { font-size: 1.3rem; }
.why-item p { margin: 0; font-size: .98rem; color: #a9b6c4; }
@media (max-width: 1000px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.testimonial { background: #fff; border-radius: var(--radius-lg); padding: 32px; border: 1px solid var(--line); position: relative; display: flex; flex-direction: column; }
.testimonial > .ico { width: 36px; height: 36px; color: var(--amber); fill: var(--amber); stroke: none; margin-bottom: 16px; }
.testimonial blockquote { margin: 0 0 24px; font-size: 1.05rem; flex: 1; }
.person { display: flex; align-items: center; gap: 14px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-initials { display: grid; place-items: center; background: var(--ink); color: var(--amber); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.person strong { display: block; color: var(--ink); }
.person span { font-size: .9rem; color: var(--muted); }

/* ---------- Clients ---------- */
.clients-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.client-logo { width: 180px; height: 96px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-decoration: none; color: var(--ink); font-weight: 600; text-align: center; font-size: .95rem; line-height: 1.3; }
.client-logo img { max-height: 64px; width: auto; filter: grayscale(1); opacity: .75; transition: all .3s; }
.client-logo:hover img { filter: none; opacity: 1; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--amber); color: var(--ink); overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent 0 28px, rgba(19,32,47,.06) 28px 56px); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 56px 20px; flex-wrap: wrap; }
.cta-inner h2 { margin: 0 0 6px; }
.cta-inner p { margin: 0; font-size: 1.1rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Page header (inner pages) ---------- */
.page-header { position: relative; background: var(--ink); color: #fff; padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px); overflow: hidden; isolation: isolate; }
.page-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 40px 40px,
    radial-gradient(800px 300px at 90% 0%, rgba(242,162,12,.18), transparent 60%); }
.page-header.has-image::before { background: linear-gradient(100deg, rgba(13,22,33,.92), rgba(13,22,33,.6)); }
.page-header > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-header h1 { color: #fff; text-transform: uppercase; margin-bottom: 12px; max-width: 900px; }
.page-header p.lead { color: #c8d1db; max-width: 720px; font-size: 1.15rem; margin: 0; }
.breadcrumb { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: #9fb0c2; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--amber); }
.breadcrumb a { color: #c8d1db; text-decoration: none; }
.breadcrumb a:hover { color: var(--amber); }
.page-header-stripe { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: repeating-linear-gradient(-45deg, var(--amber) 0 14px, var(--ink) 14px 28px); }

/* ---------- Content layouts ---------- */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
@media (max-width: 960px) { .content-grid { grid-template-columns: 1fr; } }
.prose { font-size: 1.08rem; }
.prose h2 { font-size: 2rem; margin-top: 1.4em; }
.prose h3 { margin-top: 1.3em; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose ul li::marker { color: var(--amber-dark); }
.prose blockquote { margin: 1.5em 0; padding: 16px 24px; border-left: 4px solid var(--amber); background: var(--concrete); border-radius: 0 var(--radius) var(--radius) 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .98rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--concrete); }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-justify { text-align: justify; }
.feature-img { border-radius: var(--radius-lg); margin-bottom: 32px; width: 100%; max-height: 520px; object-fit: cover; }

.sidebar { display: grid; gap: 24px; position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 960px) { .sidebar { position: static; } }
.side-box { background: var(--concrete); border-radius: var(--radius-lg); padding: 26px; }
.side-box h3 { font-size: 1.3rem; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 2px solid var(--line); position: relative; }
.side-box h3::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 48px; height: 2px; background: var(--amber); }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links li + li { border-top: 1px solid var(--line); }
.side-links a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; color: var(--ink); text-decoration: none; font-weight: 500; }
.side-links a:hover, .side-links a.active { color: var(--amber-dark); }
.side-links small { display: block; color: var(--muted); font-weight: 400; font-size: .85rem; }
.side-cta { background: var(--ink); color: #c8d1db; border-radius: var(--radius-lg); padding: 30px 26px; position: relative; overflow: hidden; }
.side-cta h3 { color: #fff; }
.side-cta .phone { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--amber); text-decoration: none; margin: 10px 0 18px; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed #d6d0c4; font-size: .98rem; }
.facts li:last-child { border-bottom: 0; }
.facts span { color: var(--muted); }
.facts strong { text-align: right; color: var(--ink); font-weight: 600; }

/* ---------- Filters / pager ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; align-items: center; }
.filters .label { font-weight: 600; margin-right: 6px; color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.chip { display: inline-flex; align-items: center; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; transition: all .2s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-sep { width: 1px; height: 28px; background: var(--line); margin: 0 8px; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 48px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.pager a:hover { border-color: var(--ink); }
.pager .current { background: var(--amber); border-color: var(--amber); }
.pager .disabled { opacity: .4; }

.empty-state { text-align: center; padding: 64px 24px; background: var(--concrete); border-radius: var(--radius-lg); border: 2px dashed var(--line); }
.empty-state .ico { width: 54px; height: 54px; color: var(--amber-dark); margin-bottom: 14px; stroke-width: 1.4; }
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { color: var(--muted); margin: 0; }

/* ---------- Gallery / lightbox ---------- */
.gallery-grid { columns: 4 260px; column-gap: 16px; }
.gallery-item { break-inside: avoid; margin-bottom: 16px; display: block; position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--ink-2); border: 0; padding: 0; width: 100%; }
.gallery-item img { width: 100%; transition: transform .5s var(--ease), opacity .3s; }
.gallery-item:hover img { transform: scale(1.04); opacity: .85; }
.gallery-item .caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; background: linear-gradient(transparent, rgba(13,22,33,.85)); font-size: .92rem; text-align: left; opacity: 0; transition: opacity .3s; }
.gallery-item:hover .caption, .gallery-item:focus-visible .caption { opacity: 1; }
@media (hover: none) { .gallery-item .caption { opacity: 1; } }
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.thumb-grid .gallery-item { margin: 0; aspect-ratio: 4 / 3; }
.thumb-grid .gallery-item img { height: 100%; object-fit: cover; }

.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(8, 13, 20, .95); display: none; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-caption { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: #d6dee7; padding: 0 20px; }
.lightbox button { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: var(--amber); color: var(--ink); }
.lightbox button .ico { width: 24px; height: 24px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox { padding: 60px 10px; } .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; } .lightbox-caption { bottom: 74px; } }

/* ---------- Team ---------- */
.team-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); text-align: center; transition: transform .3s var(--ease), box-shadow .3s; }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-photo { aspect-ratio: 1 / 1.05; background: var(--ink-2); overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo .initials { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 4.2rem; color: var(--amber); background:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(135deg, var(--ink-2), var(--ink-3)); }
.team-body { padding: 20px 18px 24px; border-top: 4px solid var(--amber); }
.team-body h3 { font-size: 1.35rem; margin-bottom: 2px; }
.team-body .role { color: var(--amber-dark); font-weight: 600; font-size: .92rem; text-transform: uppercase; letter-spacing: .08em; }
.team-body p { color: var(--muted); font-size: .95rem; margin: 10px 0 0; }
.team-compact { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.team-compact .person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }

.mv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mv-card { background: #fff; border-radius: var(--radius-lg); padding: 32px; border-top: 5px solid var(--amber); box-shadow: var(--shadow-sm); }
.mv-card .ico { width: 40px; height: 40px; color: var(--amber-dark); margin-bottom: 14px; stroke-width: 1.5; }
.mv-card ul { list-style: none; padding: 0; margin: 0; }
.mv-card li { display: flex; gap: 8px; margin-bottom: 6px; }
.mv-card li .ico { width: 18px; height: 18px; margin: 4px 0 0; stroke-width: 2.5; }
@media (max-width: 900px) { .mv-grid { grid-template-columns: 1fr; } }

.reg-strip { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.reg-pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: var(--radius); background: var(--concrete); border: 1px solid var(--line); font-size: .95rem; }
.reg-pill .ico { color: var(--amber-dark); }
.reg-pill strong { color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; padding: 20px; background: var(--concrete); border-radius: var(--radius-lg); }
.contact-card > .ico { width: 48px; height: 48px; padding: 12px; border-radius: 10px; background: var(--ink); color: var(--amber); }
.contact-card h3 { font-size: 1.15rem; margin-bottom: 2px; }
.contact-card p, .contact-card a { margin: 0; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.contact-card a:hover { color: var(--amber-dark); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; color: var(--ink); }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #cfc8bb; border-radius: var(--radius); background: #fff; color: var(--text); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber-dark); box-shadow: 0 0 0 3px rgba(242, 162, 12, .25); }
.field textarea { min-height: 150px; resize: vertical; }
.field-error { color: var(--red); font-size: .88rem; margin-top: 4px; display: block; }
.input-validation-error { border-color: var(--red) !important; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 24px; display: flex; gap: 12px; align-items: flex-start; }
.alert .ico { margin-top: 3px; }
.alert-success { background: #e5f5ec; color: #145c3c; border: 1px solid #b7e2c9; }
.alert-error { background: #fbeaea; color: #8a1f1f; border: 1px solid #f0c2c2; }
.map-wrap { margin-top: 48px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 21 / 8; min-height: 300px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: #0e1824; color: #a9b6c4; font-size: .98rem; }
.footer-stripe { height: 6px; background: repeating-linear-gradient(-45deg, var(--amber) 0 14px, #0e1824 14px 28px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr; gap: 40px; padding-top: 72px; padding-bottom: 56px; }
.footer-about p { margin: 20px 0; }
.footer-title { color: #fff; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 20px; }
.footer-links, .footer-contact, .footer-social { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #a9b6c4; text-decoration: none; transition: color .2s, padding .2s; }
.footer-links a:hover { color: var(--amber); padding-left: 4px; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.footer-contact .ico { color: var(--amber); margin-top: 4px; }
.footer-contact a { color: #a9b6c4; text-decoration: none; overflow-wrap: anywhere; }
.footer-contact a:hover { color: var(--amber); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #fff; transition: background .2s, color .2s; }
.footer-social a:hover { background: var(--amber); color: var(--ink); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); font-size: .9rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; padding-top: 56px; } }

/* ---------- Floating contact / to-top ---------- */
.quick-contact { position: fixed; right: 18px; bottom: 84px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.quick-contact a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.25); transition: transform .2s; }
.quick-contact a:hover { transform: scale(1.08); color: #fff; }
.quick-contact .ico { width: 24px; height: 24px; }
.qc-wa { background: #25a35a; }
.qc-call { background: var(--ink); display: none !important; }
@media (max-width: 760px) { .qc-call { display: grid !important; } }
.to-top { position: fixed; right: 18px; bottom: 20px; z-index: 90; width: 52px; height: 52px; border-radius: var(--radius); border: 0; background: var(--amber); color: var(--ink); cursor: pointer; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s; }
.to-top .ico { transform: rotate(180deg); width: 24px; height: 24px; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Error page ---------- */
.error-page { text-align: center; padding: 120px 20px; }
.error-code { font-family: var(--font-display); font-weight: 700; font-size: clamp(6rem, 18vw, 11rem); line-height: 1; color: var(--amber); }

/* ---------- Small utilities ---------- */
.lead-text { font-size: 1.18rem; color: var(--ink-3); font-weight: 500; }
.muted { color: var(--muted); }
.post-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); margin-bottom: 20px; }
.post-meta .ico { color: var(--amber-dark); }
.big-ico { width: 44px; height: 44px; color: var(--amber-dark); stroke-width: 1.4; }
