/* ==========================================================================
   İmamoğlu Mermer — public site design system
   Warm stone neutrals + brand navy (from logo) + a restrained brass accent.
   ========================================================================== */

:root {
  --bg: #faf8f4;
  --bg-alt: #f2eee7;
  --surface: #ffffff;
  --ink: #16191f;
  --ink-soft: #3a3f48;
  --muted: #6b7079;
  --line: #e6e0d6;
  --line-strong: #d6cec1;

  --brand: #16549e;
  --brand-600: #124684;
  --brand-900: #0c1e36;
  --brand-50: #eef3fa;
  --accent: #a9844f;
  --accent-soft: #f3ebdd;
  --success: #1f9d55;
  --wa: #25d366;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(22, 25, 31, .06), 0 1px 1px rgba(22, 25, 31, .04);
  --shadow: 0 10px 30px -12px rgba(22, 25, 31, .18);
  --shadow-lg: 0 30px 60px -20px rgba(12, 30, 54, .35);

  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  /* Playfair Display varsayılan olarak eski stil rakam kullanır ("01" → "o1" gibi görünür) */
  font-variant-numeric: lining-nums;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-600); }
h1, h2, h3, h4, h5 { color: var(--ink); margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.01em; }
h1, h2, .display { font-family: var(--font-display); font-weight: 600; }
h3, h4, h5 { font-family: var(--font-body); font-weight: 650; letter-spacing: -.005em; }
p { margin: 0 0 1rem; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .wrap { padding-inline: 32px; } }

.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: absolute; left: 16px; top: -60px; z-index: 2000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn-x {
  --b-bg: var(--brand); --b-fg: #fff; --b-bd: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.35rem;
  border-radius: 999px; border: 1.5px solid var(--b-bd);
  background: var(--b-bg); color: var(--b-fg);
  font: 600 15px/1 var(--font-body); letter-spacing: .005em;
  cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-x:hover { color: var(--b-fg); transform: translateY(-1px); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--b-bg) 70%, transparent); }
.btn-x:active { transform: translateY(0); }
.btn-x i { font-size: 1.1em; line-height: 1; }
.btn-x--primary:hover { --b-bg: var(--brand-600); --b-bd: var(--brand-600); }
.btn-x--ghost { --b-bg: transparent; --b-fg: var(--ink); --b-bd: var(--line-strong); }
.btn-x--ghost:hover { --b-bg: var(--surface); --b-bd: var(--ink); box-shadow: none; }
.btn-x--light { --b-bg: #fff; --b-fg: var(--brand-900); --b-bd: #fff; }
.btn-x--outline-light { --b-bg: transparent; --b-fg: #fff; --b-bd: rgba(255,255,255,.55); }
.btn-x--outline-light:hover { --b-bg: rgba(255,255,255,.1); --b-bd: #fff; box-shadow: none; }
.btn-x--wa { --b-bg: var(--wa); --b-fg: #fff; --b-bd: var(--wa); }
.btn-x--wa:hover { --b-bg: #1ebe5b; --b-bd: #1ebe5b; }
.btn-x--sm { min-height: 40px; padding: .55rem 1rem; font-size: 14px; }
.btn-x--lg { min-height: 56px; padding: 1rem 1.75rem; font-size: 16px; }
.btn-x--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--brand); }
.link-arrow i { transition: transform .2s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 600 12.5px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.section { padding: 88px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section--white { background: var(--surface); }
@media (max-width: 767px) { .section { padding: 64px 0; } .section--tight { padding: 48px 0; } }

.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: 44px; }
.section-head__text { max-width: 640px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin: 14px 0 12px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.section-head--center { justify-content: center; text-align: center; }
.section-head--center .section-head__text { margin-inline: auto; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 1.5px; background: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(22,25,31,.35); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 44px; width: auto; }
@media (max-width: 575px) { .brand img { height: 36px; } }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 14px; border-radius: 999px;
  color: var(--ink-soft); font-weight: 500; font-size: 15px;
}
.nav a:hover { color: var(--ink); background: rgba(22,25,31,.04); }
.nav a.is-active { color: var(--brand); }
.nav a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); transform: translateX(-50%); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 15px; padding-right: 6px; }
.header-phone__icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.header-phone small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); letter-spacing: .02em; line-height: 1.1; }
.header-phone span { line-height: 1.2; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  align-items: center; justify-content: center; font-size: 22px; cursor: pointer;
}

@media (max-width: 1099px) { .header-phone { display: none; } }
@media (max-width: 991px) {
  .nav, .header-actions .btn-x { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 1100; pointer-events: none; visibility: hidden; transition: visibility 0s .35s; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(12,30,54,.45); opacity: 0; transition: opacity .3s var(--ease); }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 380px);
  background: var(--bg); padding: 20px 24px 28px; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s var(--ease);
  box-shadow: var(--shadow-lg); overflow-y: auto;
}
.drawer.is-open { pointer-events: auto; visibility: visible; transition: none; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.drawer__top img { height: 34px; width: auto; }
.drawer nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 4px; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 24px; color: var(--ink);
}
.drawer nav a i { font-size: 18px; color: var(--muted); }
.drawer nav a.is-active { color: var(--brand); }
.drawer__cta { margin-top: auto; padding-top: 28px; display: grid; gap: 10px; }
.drawer__meta { margin-top: 18px; font-size: 14px; color: var(--muted); display: grid; gap: 6px; }
.drawer__meta a { color: var(--ink-soft); }
body.no-scroll { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; background: var(--brand-900); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10,22,40,.92) 0%, rgba(10,22,40,.78) 38%, rgba(10,22,40,.25) 75%, rgba(10,22,40,.15) 100%),
    linear-gradient(0deg, rgba(10,22,40,.65) 0%, rgba(10,22,40,0) 40%);
}
.hero__inner { min-height: min(86vh, 760px); display: flex; flex-direction: column; justify-content: center; padding-block: 96px 56px; }
.hero__content { max-width: 640px; }
.hero .eyebrow { color: #e3c999; }
.hero h1 { color: #fff; font-size: clamp(38px, 6vw, 68px); line-height: 1.05; margin: 18px 0 20px; }
.hero h1 em { font-style: italic; color: #e3c999; font-weight: 500; }
.hero__lead { font-size: clamp(16px, 1.6vw, 19px); color: rgba(255,255,255,.82); max-width: 560px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats {
  margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 620px; border-top: 1px solid rgba(255,255,255,.18);
}
.hero__stat { padding: 22px 20px 0 0; }
.hero__stat + .hero__stat { padding-left: 22px; border-left: 1px solid rgba(255,255,255,.18); }
.hero__stat strong { display: block; font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; color: #fff; line-height: 1; }
.hero__stat span { display: block; margin-top: 8px; font-size: 13.5px; color: rgba(255,255,255,.7); }
.hero__badge {
  position: absolute; right: 32px; bottom: 112px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 14px; color: #fff;
}
.hero__badge i { font-size: 22px; color: #e3c999; }
.hero__badge strong { display: block; font-size: 15px; }
@media (max-width: 991px) { .hero__badge { display: none; } }
@media (max-width: 767px) {
  .hero::before { background: linear-gradient(0deg, rgba(10,22,40,.95) 0%, rgba(10,22,40,.75) 55%, rgba(10,22,40,.45) 100%); }
  .hero__inner { min-height: auto; padding-block: 72px 40px; }
  .hero__actions .btn-x { flex: 1 1 100%; }
  .hero__stat { padding-right: 10px; }
  .hero__stat + .hero__stat { padding-left: 12px; }
}

/* ---------- Trust strip ---------- */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust__list { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
.trust__item { display: flex; align-items: center; gap: 14px; padding: 26px 20px; }
.trust__item + .trust__item { border-left: 1px solid var(--line); }
.trust__item i { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 20px; }
.trust__item strong { display: block; color: var(--ink); font-size: 15px; line-height: 1.3; }
.trust__item span { font-size: 13.5px; color: var(--muted); line-height: 1.35; display: block; }
@media (max-width: 991px) {
  .trust__list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .trust__item:nth-child(3) { border-left: 0; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 575px) { .trust__item { padding: 18px 12px; gap: 10px; } .trust__item i { width: 38px; height: 38px; font-size: 17px; } }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
@media (max-width: 991px) { .services-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 575px) { .services-grid { grid-template-columns: 1fr; } }
.service {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 30px 28px 26px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-size: 26px; transition: background .3s var(--ease), color .3s var(--ease); }
.service:hover .service__icon { background: var(--brand); color: #fff; }
.service__num { position: absolute; top: 26px; right: 28px; font-family: var(--font-display); font-size: 15px; color: var(--line-strong); }
.service h3 { font-size: 20px; margin: 6px 0 0; }
.service p { color: var(--muted); font-size: 15px; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.chip { font-size: 12.5px; font-weight: 500; color: var(--ink-soft); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; counter-reset: step; }
.process__step { position: relative; padding: 0 24px 0 0; }
.process__step::before {
  counter-increment: step; content: "0" counter(step);
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line-strong);
  font-family: var(--font-display); font-size: 18px; color: var(--brand); margin-bottom: 22px;
  position: relative; z-index: 1;
}
.process__step::after { content: ""; position: absolute; top: 28px; left: 56px; right: 0; height: 1px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px); }
.process__step:last-child::after { display: none; }
.process__step h3 { font-size: 18px; }
.process__step p { font-size: 15px; color: var(--muted); margin: 0; }
@media (max-width: 991px) {
  .process { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 36px 0; }
  .process__step:nth-child(2)::after { display: none; }
}
@media (max-width: 575px) {
  .process { grid-template-columns: 1fr; gap: 0; }
  .process__step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; padding: 0 0 28px; }
  .process__step::before { grid-row: span 2; margin: 0; }
  .process__step::after { display: block; top: 56px; bottom: 0; left: 28px; right: auto; width: 1px; height: auto; background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 12px); }
  .process__step:last-child::after { display: none; }
  .process__step h3 { margin-top: 14px; }
}

/* ---------- Project cards ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
@media (max-width: 991px) { .projects-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 575px) { .projects-grid { grid-template-columns: 1fr; } }
.project-card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--brand-900); color: #fff; aspect-ratio: 4 / 5; isolation: isolate; }
.project-card:hover { color: #fff; }
.project-card .media { position: absolute; inset: 0; z-index: -2; }
.project-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-card:hover .media img { transform: scale(1.06); }
.project-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,22,40,0) 35%, rgba(10,22,40,.88) 100%); }
.project-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; }
.project-card__meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.75); margin-bottom: 8px; }
.project-card h3 { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 23px; margin: 0; }
.project-card p { color: rgba(255,255,255,.78); font-size: 14.5px; margin: 10px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.project-card__go { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.95); color: var(--ink); font-size: 18px; transform: scale(.85) rotate(-45deg); opacity: 0; transition: all .35s var(--ease); }
.project-card:hover .project-card__go, .project-card:focus-visible .project-card__go { opacity: 1; transform: scale(1) rotate(-45deg); }
@media (hover: none) { .project-card__go { opacity: 1; transform: scale(1) rotate(-45deg); } }
.projects-grid--feature .project-card:first-child { grid-column: span 2; aspect-ratio: auto; min-height: 100%; }
@media (max-width: 991px) { .projects-grid--feature .project-card:first-child { grid-column: span 2; aspect-ratio: 16/10; } }
@media (max-width: 575px) { .projects-grid--feature .project-card:first-child { grid-column: auto; aspect-ratio: 4/5; } }

/* Image fallback: marble-like texture when an image is missing or broken */
.media { background:
  radial-gradient(120% 80% at 15% 10%, rgba(255,255,255,.55), transparent 50%),
  linear-gradient(115deg, transparent 40%, rgba(150,140,125,.25) 41%, transparent 44%),
  linear-gradient(160deg, transparent 60%, rgba(150,140,125,.18) 61%, transparent 63%),
  linear-gradient(135deg, #ece7df, #d9d1c4); }
.media.is-fallback img { display: none; }
.media.is-fallback::before { content: "\F42A"; font-family: "bootstrap-icons"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; color: rgba(22,25,31,.22); }
.project-card .media.is-fallback { background: linear-gradient(135deg, #1b3558, #0c1e36); }
.project-card .media.is-fallback::before { color: rgba(255,255,255,.18); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--brand-900); color: #fff; padding: 56px; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 120% at 100% 0%, rgba(22,84,158,.75), transparent 60%),
  radial-gradient(40% 80% at 0% 100%, rgba(169,132,79,.35), transparent 60%); }
.cta-band__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); margin: 12px 0 12px; }
.cta-band p { color: rgba(255,255,255,.75); margin: 0; font-size: 17px; }
.cta-band .eyebrow { color: #e3c999; }
.cta-band__actions { display: grid; gap: 12px; }
.cta-band__phone { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: var(--radius); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #fff; transition: background .2s var(--ease); }
.cta-band__phone:hover { background: rgba(255,255,255,.14); color: #fff; }
.cta-band__phone i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--brand-900); font-size: 18px; flex-shrink: 0; }
.cta-band__phone small { display: block; color: rgba(255,255,255,.65); font-size: 12.5px; }
.cta-band__phone strong { font-size: 19px; letter-spacing: .01em; }
.cta-band__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 991px) { .cta-band { padding: 40px 28px; } .cta-band__grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .cta-band__row { grid-template-columns: 1fr; } }

/* ---------- Partners ---------- */
.partners { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.partners__track { display: flex; align-items: center; gap: 56px; width: max-content; }
.partners__track.is-animated { animation: marquee 40s linear infinite; }
.partners:hover .partners__track { animation-play-state: paused; }
.partners--static .partners__track { width: auto; flex-wrap: wrap; justify-content: center; gap: 32px 56px; }
.partner { height: 64px; width: 150px; display: grid; place-items: center; }
.partner img { max-height: 56px; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .65; transition: filter .3s var(--ease), opacity .3s var(--ease); }
.partner:hover img { filter: none; opacity: 1; }
.partner__name { font-weight: 600; color: var(--muted); font-size: 15px; text-align: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Blog cards ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
@media (max-width: 991px) { .posts-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 575px) { .posts-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card .media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.post-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .media img { transform: scale(1.05); }
.post-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__date { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.post-card h3 { font-size: 19px; line-height: 1.35; margin: 0; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card { position: relative; }
.post-card .link-arrow { margin-top: auto; padding-top: 6px; font-size: 14.5px; }

/* ---------- Page header (inner pages) ---------- */
.page-hero { position: relative; padding: 64px 0 56px; background: var(--bg-alt); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(169,132,79,.16), transparent 65%); pointer-events: none; }
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); margin: 14px 0 10px; }
.page-hero p { font-size: 17px; color: var(--muted); max-width: 640px; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 6px; font-size: 13.5px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 991px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }
.about-figure { position: relative; }
.about-figure .media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.about-figure .media img { width: 100%; height: 100%; object-fit: cover; }
.about-figure__badge { position: absolute; left: -24px; bottom: 32px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px; display: flex; align-items: center; gap: 14px; }
.about-figure__badge strong { font-family: var(--font-display); font-size: 38px; color: var(--brand); line-height: 1; }
.about-figure__badge span { font-size: 14px; color: var(--muted); line-height: 1.3; }
@media (max-width: 575px) { .about-figure__badge { left: 12px; bottom: 12px; } }
.prose-lead { font-size: 18px; color: var(--ink-soft); white-space: pre-line; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin: 32px 0 0; }
.stat { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--font-display); font-size: 34px; color: var(--ink); line-height: 1; }
.stat span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 767px) { .mv-grid { grid-template-columns: 1fr; } }
.mv-card { padding: 36px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.mv-card i { font-size: 28px; color: var(--accent); }
.mv-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 26px; margin: 14px 0 12px; }
.mv-card p { color: var(--muted); margin: 0; white-space: pre-line; }

/* ---------- Project detail ---------- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
@media (max-width: 991px) { .detail-grid { grid-template-columns: 1fr; gap: 32px; } }
.gallery__main { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s var(--ease); }
.gallery__zoom { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 13.5px; font-weight: 600; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 12px; }
.gallery__thumb { position: relative; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; aspect-ratio: 1; cursor: pointer; background: none; opacity: .7; transition: opacity .2s var(--ease), border-color .2s var(--ease); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb.is-active { border-color: var(--brand); opacity: 1; }
.detail-body { margin-top: 36px; }
.detail-body h1 { font-size: clamp(30px, 4vw, 44px); }
.detail-body p { font-size: 17px; white-space: pre-line; }
.aside-card { position: sticky; top: calc(var(--header-h) + 24px); padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.aside-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 24px; }
.aside-card p { color: var(--muted); font-size: 15px; }
.aside-card .btn-x { margin-top: 10px; }
.facts { list-style: none; padding: 0; margin: 0 0 20px; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.facts li span { color: var(--muted); }
.facts li strong { color: var(--ink); font-weight: 600; text-align: right; }

/* ---------- Article ---------- */
.article { max-width: 760px; }
.article__cover { border-radius: var(--radius-lg); overflow: hidden; margin: 0 0 32px; aspect-ratio: 16 / 9; position: relative; }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.article__meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.article__meta span { display: inline-flex; align-items: center; gap: 6px; }
.prose { font-size: 17.5px; line-height: 1.8; color: var(--ink-soft); }
.prose h2 { font-size: 30px; margin: 1.6em 0 .6em; }
.prose h3 { font-size: 21px; margin: 1.5em 0 .5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.25em; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; height: auto; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); font-family: var(--font-display); font-size: 21px; color: var(--ink); }
.prose-gallery { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.prose-gallery a { border-radius: 12px; overflow: hidden; aspect-ratio: 1; display: block; position: relative; }
.prose-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.prose-gallery a:hover img { transform: scale(1.05); }
@media (max-width: 575px) { .prose-gallery { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 991px) { .contact-grid { grid-template-columns: 1fr; } }
.quick-actions { display: grid; gap: 12px; }
.quick { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
a.quick:hover { color: var(--ink); border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.quick__icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; background: var(--brand-50); color: var(--brand); }
.quick--wa .quick__icon { background: #e7f9ee; color: #128c4a; }
.quick small { display: block; font-size: 13px; color: var(--muted); }
.quick strong { display: block; font-size: 16px; font-weight: 600; word-break: break-word; }
.quick .bi-arrow-up-right { margin-left: auto; color: var(--muted); }
.form-card { padding: 40px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
@media (max-width: 575px) { .form-card { padding: 26px 20px; } }
.form-card h2 { font-size: clamp(26px, 3vw, 34px); }
.form-card > p { color: var(--muted); }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line-strong);
  background: var(--bg); font: 400 16px/1.4 var(--font-body); color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-50); }
.field .text-danger, .field-validation-error { font-size: 13px; color: #c0392b; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 575px) { .field-row { grid-template-columns: 1fr; } }
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.topic-chip { border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink-soft); border-radius: 999px; padding: 8px 14px; font: 500 14px/1 var(--font-body); cursor: pointer; transition: all .2s var(--ease); }
.topic-chip:hover { border-color: var(--brand); color: var(--brand); }
.topic-chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.form-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; display: flex; gap: 8px; align-items: center; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; margin-bottom: 22px; font-size: 15px; }
.notice--success { background: #e9f7ef; color: #14683a; border: 1px solid #bfe6cf; }
.notice--error { background: #fdecea; color: #8a2a1f; border: 1px solid #f5c6c0; }
.map-card { margin-top: 12px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.map-card iframe { width: 100%; height: 100%; border: 0; display: block; }
.hours { margin-top: 12px; padding: 18px 20px; border-radius: var(--radius); background: var(--bg-alt); font-size: 14.5px; display: flex; gap: 12px; align-items: center; }
.hours i { font-size: 20px; color: var(--accent); }

/* ---------- Pagination ---------- */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 48px; list-style: none; padding: 0; flex-wrap: wrap; }
.pager a, .pager span { min-width: 44px; height: 44px; padding: 0 12px; display: grid; place-items: center; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 15px; }
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .is-active span { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .is-disabled span { opacity: .45; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 64px 24px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); }
.empty i { font-size: 40px; color: var(--accent); }
.empty h3 { margin: 14px 0 6px; font-size: 20px; }
.empty p { color: var(--muted); margin-bottom: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-900); color: rgba(255,255,255,.7); padding: 80px 0 0; margin-top: 0; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
@media (max-width: 991px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand img { height: 44px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { margin: 20px 0 22px; font-size: 15px; max-width: 340px; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.footer-contact { display: grid; gap: 14px; font-size: 15px; }
.footer-contact div { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact i { color: #e3c999; margin-top: 2px; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: 16px; transition: all .2s var(--ease); }
.socials a:hover { background: #fff; color: var(--brand-900); border-color: #fff; }
.footer-bottom { margin-top: 64px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13.5px; color: rgba(255,255,255,.55); }
.footer-bottom a { color: rgba(255,255,255,.65); }

/* ---------- Floating & mobile action bar ---------- */
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 900; display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px 14px 16px; border-radius: 999px; background: var(--wa); color: #fff; font-weight: 600; box-shadow: 0 12px 30px -10px rgba(37,211,102,.6); transition: transform .2s var(--ease); }
.wa-float:hover { color: #fff; transform: translateY(-3px); }
.wa-float i { font-size: 24px; line-height: 1; }
.to-top { position: fixed; right: 24px; bottom: 92px; z-index: 900; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s var(--ease); font-size: 20px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--brand); }

.action-bar { display: none; }
@media (max-width: 767px) {
  .wa-float { display: none; }
  .to-top { bottom: 92px; right: 16px; }
  .action-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
    display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .action-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border-radius: 14px; font-size: 12.5px; font-weight: 600; color: var(--ink); background: var(--bg); border: 1px solid var(--line); }
  .action-bar a i { font-size: 19px; line-height: 1; }
  .action-bar a.is-wa i { color: #128c4a; }
  .action-bar a.is-primary { background: var(--brand); color: #fff; border-color: var(--brand); flex-direction: row; gap: 8px; font-size: 14.5px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .partners__track.is-animated { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Error page ---------- */
.error-page { text-align: center; padding: 120px 0; }
.error-page .code { font-family: var(--font-display); font-size: clamp(80px, 14vw, 160px); color: var(--line-strong); line-height: 1; }
.error-page h1 { font-size: clamp(28px, 4vw, 40px); margin-top: 12px; }
.error-page p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; }
.error-page .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Detail helpers ---------- */
.section--detail { padding-top: 48px; }
.project-card__title { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 23px; margin: 0; }
.detail-body h1 { margin-top: 14px; }
.detail-body + .link-arrow { margin-top: 8px; }
.article__title { font-size: clamp(32px, 4.5vw, 50px); }
.article__subhead { font-size: 26px; margin-top: 40px; }
.article__back { margin-top: 32px; }
.aside-card .eyebrow + h3 { margin-top: 12px; }
.socials--dark a { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.socials--dark a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.validation-summary-valid { display: none !important; }
.validation-summary-errors ul { margin: 0; padding-left: 18px; }
.quick > span:not(.quick__icon) { min-width: 0; flex: 1; }
.quick strong { overflow-wrap: anywhere; }
.article__cover.is-fallback { display: none; }
