/* ============================================================
   Kiptaş Sefaköy Konutları — ortak stiller
   Palet: Kiptaş kırmızısı + antrasit + sıcak krem (logo uyumlu)
   ============================================================ */
:root {
  /* themeable via theme panel */
  --primary:    oklch(0.545 0.190 27);
  --primary-dk: oklch(0.465 0.165 27);
  --bg:         oklch(0.975 0.004 60);
  --surface:    oklch(0.995 0.002 60);
  --serif: "Newsreader", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;

  /* constants */
  --ink:       oklch(0.235 0.006 250);
  --ink-soft:  oklch(0.460 0.008 250);
  --line:      oklch(0.890 0.004 60);
  --stone:     oklch(0.930 0.005 60);
  --stone-2:   oklch(0.880 0.006 60);
  --graphite:  oklch(0.225 0.006 250);
  --graphite-2:oklch(0.270 0.007 250);

  --maxw: 1200px;
  --r: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }
.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--primary);
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--primary); display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  padding: 14px 24px; border-radius: 10px; border: 1px solid transparent; transition: 0.18s;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 2px 10px oklch(0.55 0.19 27 / 0.25); }
.btn-primary:hover { background: var(--primary-dk); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-dk); }

/* ---------- Top bar ---------- */
.topbar { background: var(--graphite); color: oklch(0.9 0.005 60); font-size: 13px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 42px; }
.topbar .info { display: flex; align-items: center; gap: 26px; }
.topbar .info span { display: inline-flex; align-items: center; gap: 8px; opacity: 0.85; }
.topbar .info svg { width: 14px; height: 14px; opacity: 0.8; }
.topbar .right { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; align-items: center; gap: 2px; font-weight: 600; }
.lang button { background: none; border: none; color: inherit; font: inherit; cursor: pointer; padding: 3px 7px; border-radius: 6px; opacity: 0.55; font-size: 12.5px; }
.lang button.active { opacity: 1; background: oklch(1 0 0 / 0.14); }
.topbar .social { display: flex; gap: 12px; opacity: 0.85; }
.topbar .social svg { width: 15px; height: 15px; }

/* ---------- Header / nav ---------- */
header.site { position: sticky; top: 0; z-index: 60; background: oklch(0.995 0.002 60 / 0.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 13px; flex: none; }
.brand .logo { height: 46px; width: auto; }
.brand .mark { width: 44px; height: 44px; border-radius: 11px; background: var(--primary); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 23px; }
.brand .name { font-family: var(--serif); font-size: 18px; line-height: 1.05; letter-spacing: -0.01em; }
.brand .name small { display: block; font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-soft); margin-top: 3px; }

nav.main { display: flex; align-items: center; gap: 2px; }
.navitem { position: relative; }
.navitem > a { display: inline-flex; align-items: center; gap: 5px; font-size: 14.5px; font-weight: 500; color: var(--ink-soft); padding: 9px 12px; border-radius: 8px; transition: 0.16s; cursor: pointer; }
.navitem > a:hover, .navitem.active > a { color: var(--primary-dk); background: var(--stone); }
.navitem .caret { width: 13px; height: 13px; opacity: 0.6; transition: 0.18s; }
.navitem:hover .caret { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 6px); left: 0; min-width: 248px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -16px oklch(0.2 0.01 250 / 0.28); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: 0.18s; z-index: 70; }
.navitem:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; font-size: 14px; color: var(--ink-soft); padding: 9px 12px; border-radius: 8px; transition: 0.14s; }
.dropdown a:hover { background: var(--stone); color: var(--primary-dk); }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: #fff !important; font-weight: 600; font-size: 14px; padding: 11px 18px; border-radius: 9px; transition: 0.18s; white-space: nowrap; flex: none; }
.nav-cta:hover { background: var(--primary-dk); }
.nav-cta svg { width: 15px; height: 15px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 9px; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }
.menu-btn svg { width: 22px; height: 22px; }

/* mobile drawer */
.drawer-back { position: fixed; inset: 0; background: oklch(0.2 0.01 250 / 0.4); z-index: 90; opacity: 0; visibility: hidden; transition: 0.2s; }
.drawer-back.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(360px, 86vw); background: var(--surface); z-index: 95; transform: translateX(100%); transition: 0.25s; overflow-y: auto; padding: 22px; }
.drawer.open { transform: translateX(0); }
.drawer .x { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.drawer .x button { background: none; border: none; cursor: pointer; color: var(--ink); }
.drawer .x svg { width: 26px; height: 26px; }
.drawer .group { border-top: 1px solid var(--line); padding: 6px 0; }
.drawer .group > span { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); padding: 12px 6px 6px; }
.drawer .group a { display: block; padding: 9px 6px; font-size: 15px; color: var(--ink); }

/* ---------- Section scaffolding ---------- */
section { padding: 92px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); }
.section-head p { color: var(--ink-soft); max-width: 34em; margin-top: 14px; }
.head-link { font-weight: 600; font-size: 14.5px; color: var(--primary-dk); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.head-link svg { width: 16px; height: 16px; transition: 0.18s; }
.head-link:hover svg { transform: translateX(3px); }
.arrow-ic { width: 16px; height: 16px; }

/* dark band helper */
.dark { background: linear-gradient(oklch(0.22 0.006 250), oklch(0.255 0.007 250)); color: #fff; }
.dark .eyebrow { color: oklch(0.78 0.12 30); }
.dark .eyebrow::before { background: var(--primary); }
.dark h2, .dark h3 { color: #fff; }
.dark .section-head p { color: oklch(0.82 0.005 60); }

/* ============================================================
   HOME
   ============================================================ */
.hero { padding: 64px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.2vw, 66px); }
.hero h1 em { font-style: italic; color: var(--primary); }
.hero .lead { margin-top: 24px; font-size: 18px; color: var(--ink-soft); max-width: 30em; }
.hero .actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .stats { margin-top: 42px; display: flex; gap: 40px; border-top: 1px solid var(--line); padding-top: 26px; }
.hero .stats .n { font-family: var(--serif); font-size: 32px; color: var(--primary-dk); line-height: 1; }
.hero .stats .l { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.hero-media { position: relative; }
.hero-media .frame { aspect-ratio: 4/5; border-radius: 18px; overflow: hidden; background: var(--stone); box-shadow: 0 30px 60px -28px oklch(0.25 0.01 250 / 0.45); }
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .badge { position: absolute; left: -26px; bottom: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; box-shadow: 0 16px 36px -18px oklch(0.25 0.01 250 / 0.4); display: flex; align-items: center; gap: 14px; }
.hero-media .badge .ic { width: 40px; height: 40px; border-radius: 10px; background: oklch(0.55 0.19 27 / 0.12); color: var(--primary-dk); display: grid; place-items: center; flex: none; }
.hero-media .badge .ic svg { width: 20px; height: 20px; }
.hero-media .badge .t { font-weight: 600; font-size: 14px; }
.hero-media .badge .s { font-size: 12.5px; color: var(--ink-soft); }

.quick .qgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.qcard { background: oklch(1 0 0 / 0.05); border: 1px solid oklch(1 0 0 / 0.1); border-radius: var(--r); padding: 26px 24px 24px; transition: 0.2s; display: block; }
.qcard:hover { background: oklch(1 0 0 / 0.09); transform: translateY(-3px); }
.qcard .ic { width: 46px; height: 46px; border-radius: 11px; background: oklch(0.55 0.19 27 / 0.22); color: oklch(0.8 0.13 30); display: grid; place-items: center; margin-bottom: 20px; }
.qcard .ic svg { width: 23px; height: 23px; }
.qcard h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; color: #fff; }
.qcard p { font-size: 13.5px; color: oklch(0.8 0.005 60); margin-top: 7px; }
.qcard .go { margin-top: 18px; font-size: 13px; font-weight: 600; color: oklch(0.8 0.13 30); display: inline-flex; align-items: center; gap: 6px; }
.qcard .go svg { width: 14px; height: 14px; }

.ann-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.ann-list { display: flex; flex-direction: column; }
.ann-item { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 24px 4px; border-top: 1px solid var(--line); transition: 0.18s; }
.ann-item:last-child { border-bottom: 1px solid var(--line); }
.ann-item:hover { background: oklch(0.55 0.19 27 / 0.03); }
.ann-item .date { text-align: center; flex: none; }
.ann-item .date .d { font-family: var(--serif); font-size: 28px; color: var(--primary-dk); line-height: 1; }
.ann-item .date .m { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }
.ann-item .tag { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); }
.ann-item h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; margin-top: 5px; }
.ann-item .arrow svg { width: 18px; height: 18px; color: var(--ink-soft); transition: 0.18s; }
.ann-item:hover .arrow svg { transform: translateX(3px); color: var(--primary); }

.events { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; align-self: start; }
.events h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 4px; }
.events .sub { font-size: 13px; color: var(--ink-soft); margin-bottom: 22px; }
.ev { display: flex; gap: 16px; padding: 16px 0; border-top: 1px dashed var(--line); }
.ev .chip { width: 52px; flex: none; text-align: center; border-radius: 10px; background: oklch(0.55 0.19 27 / 0.08); padding: 9px 0; }
.ev .chip .d { font-family: var(--serif); font-size: 21px; color: var(--primary-dk); line-height: 1; }
.ev .chip .m { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin-top: 3px; }
.ev .body h4 { font-family: var(--sans); font-size: 15px; font-weight: 600; }
.ev .body p { font-size: 13px; color: var(--ink-soft); margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.ev .body svg { width: 13px; height: 13px; }

.units .ugrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: oklch(1 0 0 / 0.1); border: 1px solid oklch(1 0 0 / 0.1); border-radius: var(--r); overflow: hidden; }
.unit { background: var(--graphite); padding: 32px 30px; transition: 0.2s; display: block; }
.unit:hover { background: var(--graphite-2); }
.unit .ic { color: oklch(0.8 0.13 30); margin-bottom: 18px; }
.unit .ic svg { width: 30px; height: 30px; }
.unit h3 { font-family: var(--sans); font-size: 18px; font-weight: 600; color: #fff; }
.unit p { font-size: 13.5px; color: oklch(0.8 0.005 60); margin-top: 9px; line-height: 1.55; }

.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.gal-grid a { border-radius: 12px; overflow: hidden; background: var(--stone); position: relative; display: block; }
.gal-grid a img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; }
.gal-grid a:hover img { transform: scale(1.05); }
.gal-grid a.big { grid-column: span 2; grid-row: span 2; }
.gal-grid a.tall { grid-row: span 2; }
.gal-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px; background: linear-gradient(transparent, oklch(0.2 0.01 250 / 0.72)); color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; }

.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.band .stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 40px; margin-top: 30px; }
.band .stat .n { font-family: var(--serif); font-size: 44px; color: var(--primary-dk); line-height: 1; }
.band .stat .l { font-size: 14px; color: var(--ink-soft); margin-top: 8px; }
.reports { display: flex; flex-direction: column; gap: 12px; }
.report { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--bg); border: 1px solid var(--line); border-radius: 11px; transition: 0.18s; }
.report:hover { border-color: var(--primary); transform: translateX(3px); }
.report .ic { width: 38px; height: 38px; border-radius: 9px; background: oklch(0.55 0.19 27 / 0.1); color: var(--primary-dk); display: grid; place-items: center; flex: none; }
.report .ic svg { width: 19px; height: 19px; }
.report .t { font-weight: 600; font-size: 15px; }
.report .s { font-size: 12.5px; color: var(--ink-soft); }
.report .dl { margin-left: auto; color: var(--ink-soft); }
.report .dl svg { width: 18px; height: 18px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.ci { display: flex; gap: 18px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.ci .ic { width: 44px; height: 44px; border-radius: 11px; background: oklch(0.55 0.19 27 / 0.09); color: var(--primary-dk); display: grid; place-items: center; flex: none; }
.ci .ic svg { width: 21px; height: 21px; }
.ci .k { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.ci .v { font-size: 16px; font-weight: 500; margin-top: 4px; }
.map { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); min-height: 380px; background: var(--stone); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: saturate(0.9); }

/* ============================================================
   FOOTER
   ============================================================ */
footer.site { background: var(--graphite); color: oklch(0.82 0.006 60); padding: 72px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
footer.site .brand .name { color: #fff; }
footer.site .brand .name small { color: oklch(0.7 0.006 60); }
footer.site .about { font-size: 14px; line-height: 1.65; margin-top: 20px; max-width: 30em; color: oklch(0.78 0.006 60); }
.fcol h4 { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.fcol a { display: block; font-size: 14px; padding: 6px 0; color: oklch(0.8 0.006 60); transition: 0.15s; }
.fcol a:hover { color: oklch(0.82 0.13 30); }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid oklch(1 0 0 / 0.1); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: oklch(0.68 0.006 60); flex-wrap: wrap; gap: 12px; }

/* ============================================================
   INNER PAGES
   ============================================================ */
.page-hero { background: linear-gradient(oklch(0.22 0.006 250), oklch(0.27 0.007 250)); color: #fff; padding: 52px 0 60px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: oklch(0.72 0.01 60); margin-bottom: 22px; flex-wrap: wrap; }
.crumbs a { color: oklch(0.78 0.12 30); }
.crumbs svg { width: 13px; height: 13px; opacity: 0.6; }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 52px); }
.page-hero .lead { margin-top: 18px; font-size: 18px; color: oklch(0.85 0.006 60); max-width: 46em; }

.page-body { padding: 72px 0; }
.prose { max-width: 70ch; }
.prose p { font-size: 16.5px; color: var(--ink-soft); margin-bottom: 18px; line-height: 1.7; }
.prose p strong { color: var(--ink); font-weight: 600; }
.block-title { font-size: clamp(24px, 2.8vw, 32px); margin-bottom: 26px; }
.block + .block { margin-top: 64px; }

/* people grid */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; text-align: center; }
.person .av { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px; background: repeating-linear-gradient(45deg, var(--stone) 0 10px, var(--stone-2) 10px 20px); display: grid; place-items: center; color: var(--ink-soft); font-family: var(--serif); font-size: 30px; }
.person .nm { font-size: 16.5px; font-weight: 600; }
.person .ro { font-size: 13px; color: var(--primary-dk); margin-top: 4px; font-weight: 600; }

/* downloads */
.dl-list { display: grid; gap: 12px; }
.dl-list.cols { grid-template-columns: 1fr 1fr; }

/* rules */
.rules { display: grid; gap: 14px; counter-reset: r; max-width: 80ch; }
.rule { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.rule::before { counter-increment: r; content: counter(r, decimal-leading-zero); font-family: var(--serif); font-size: 22px; color: var(--primary); line-height: 1; }
.rule .rt { font-size: 16px; color: var(--ink); }

/* timeline */
.timeline { position: relative; max-width: 72ch; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl { position: relative; padding-bottom: 34px; }
.tl::before { content: ""; position: absolute; left: -34px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--bg); }
.tl .yr { font-family: var(--serif); font-size: 22px; color: var(--primary-dk); }
.tl p { color: var(--ink-soft); margin-top: 6px; line-height: 1.65; }

/* feature cards */
.fcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.fcard .ic { width: 48px; height: 48px; border-radius: 12px; background: oklch(0.55 0.19 27 / 0.1); color: var(--primary-dk); display: grid; place-items: center; margin-bottom: 18px; }
.fcard .ic svg { width: 24px; height: 24px; }
.fcard h3 { font-family: var(--sans); font-size: 18px; font-weight: 600; }
.fcard p { font-size: 14px; color: var(--ink-soft); margin-top: 8px; line-height: 1.6; }

/* image+text */
.imgtext { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.imgtext.rev .media { order: 2; }
.imgtext .media { border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; background: var(--stone); }
.imgtext .media img { width: 100%; height: 100%; object-fit: cover; }

/* contact small cards row */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }

/* generic placeholder image */
.imgfb { background: repeating-linear-gradient(45deg, var(--stone) 0 12px, var(--stone-2) 12px 24px); position: relative; }
.imgfb::after { content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center; font-family: ui-monospace, monospace; font-size: 12px; color: var(--ink-soft); letter-spacing: 0.04em; text-align: center; padding: 10px; }
img.broken { opacity: 0; }

/* alert / emergency */
.alert { display: flex; gap: 16px; padding: 22px 24px; border-radius: 14px; background: oklch(0.55 0.19 27 / 0.07); border: 1px solid oklch(0.55 0.19 27 / 0.22); }
.alert .ic { color: var(--primary); flex: none; }
.alert .ic svg { width: 26px; height: 26px; }
.alert h3 { font-family: var(--sans); font-size: 17px; font-weight: 700; color: var(--primary-dk); }
.alert p { font-size: 14.5px; color: var(--ink-soft); margin-top: 4px; }
.phone-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 8px; }
.phone-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.phone-card .k { font-size: 13px; color: var(--ink-soft); }
.phone-card .v { font-family: var(--serif); font-size: 26px; color: var(--primary-dk); margin-top: 6px; }

/* video grid */
.video-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.video-card .thumb { aspect-ratio: 16/9; border-radius: 12px; position: relative; overflow: hidden; }
.video-card .thumb .play { position: absolute; inset: 0; display: grid; place-items: center; }
.video-card .thumb .play span { width: 56px; height: 56px; border-radius: 50%; background: oklch(1 0 0 / 0.9); display: grid; place-items: center; }
.video-card .thumb .play svg { width: 22px; height: 22px; color: var(--primary); margin-left: 3px; }
.video-card h4 { font-family: var(--sans); font-size: 15px; font-weight: 600; margin-top: 12px; }

/* org chart */
.org { display: flex; flex-direction: column; align-items: center; gap: 0; }
.org-node { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 26px; text-align: center; min-width: 200px; }
.org-node.top { background: var(--graphite); color: #fff; border-color: var(--graphite); }
.org-node .nm { font-weight: 600; font-size: 15px; }
.org-node .ro { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.org-node.top .ro { color: oklch(0.8 0.006 60); }
.org-line { width: 2px; height: 28px; background: var(--line); }
.org-row { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   THEME PANEL
   ============================================================ */
.theme-fab { position: fixed; right: 22px; bottom: 22px; z-index: 100; width: 54px; height: 54px; border-radius: 50%; background: var(--primary); color: #fff; border: none; cursor: pointer; box-shadow: 0 10px 26px -8px oklch(0.55 0.19 27 / 0.6); display: grid; place-items: center; transition: 0.2s; }
.theme-fab:hover { transform: scale(1.06) rotate(30deg); }
.theme-fab svg { width: 24px; height: 24px; }
.theme-panel { position: fixed; right: 22px; bottom: 88px; z-index: 101; width: 320px; max-width: calc(100vw - 44px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px -18px oklch(0.2 0.01 250 / 0.4); padding: 22px; opacity: 0; visibility: hidden; transform: translateY(12px) scale(0.98); transform-origin: bottom right; transition: 0.2s; }
.theme-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.theme-panel .ph { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.theme-panel .ph h4 { font-family: var(--serif); font-size: 19px; }
.theme-panel .ph .sub { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.theme-panel .ph button { background: none; border: none; cursor: pointer; color: var(--ink-soft); }
.theme-panel .ph button svg { width: 20px; height: 20px; }
.tgroup { margin-bottom: 20px; }
.tgroup > label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 9px; cursor: pointer; border: 2px solid transparent; box-shadow: inset 0 0 0 2px var(--surface); transition: 0.15s; position: relative; }
.swatch.active { border-color: var(--ink); }
.seg { display: flex; gap: 6px; background: var(--stone); border-radius: 10px; padding: 4px; }
.seg button { flex: 1; border: none; background: none; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-soft); padding: 8px 6px; border-radius: 7px; transition: 0.15s; }
.seg button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px oklch(0.2 0.01 250 / 0.12); }
.theme-reset { width: 100%; margin-top: 4px; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 10px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-soft); transition: 0.15s; }
.theme-reset:hover { border-color: var(--primary); color: var(--primary-dk); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1040px) {
  nav.main { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 980px) {
  .hero-grid, .ann-grid, .band .wrap, .contact-grid, .imgtext { grid-template-columns: 1fr; }
  .imgtext.rev .media { order: -1; }
  .hero-media { order: -1; }
  .hero-media .frame { aspect-ratio: 16/10; }
  .quick .qgrid, .units .ugrid, .people { grid-template-columns: repeat(2, 1fr); }
  .gal-grid { grid-template-columns: repeat(2, 1fr); }
  .fcards, .contact-cards, .phone-grid, .video-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .dl-list.cols { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .topbar .info span:not(.phone) { display: none; }
  section, .page-body { padding: 56px 0; }
  .quick .qgrid, .units .ugrid, .gal-grid, .people, .fcards, .contact-cards, .phone-grid, .video-grid { grid-template-columns: 1fr; }
  .gal-grid { grid-auto-rows: 210px; }
  .gal-grid a.big { grid-column: span 1; grid-row: span 1; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-media .badge { left: 0; }
}
