/* ================================================================
   SAKARYA FG YAPI SİSTEMLERİ — Design System
   ================================================================ */

/* --- 1. TOKENS ------------------------------------------------ */
:root {
  --navy:       #0a1628;
  --navy-mid:   #13253f;
  --navy-light: #1e3a5f;
  --heading:    #0a1628;
  --surface:    #ffffff;
  --surface-2:  #f7f5f0;
  --gold:       #c9a247;
  --gold-hover: #b8902e;
  --gold-soft:  #f5edd5;
  --gold-pale:  #faf7ef;
  --white:      #ffffff;
  --paper:      #f7f5f0;
  --border:     #e3ddd3;
  --muted:      #667080;
  --text:       #0f172a;

  --green-bg:   #d1fae5;
  --green-text: #054f31;
  --amber-bg:   #fef3c7;
  --amber-text: #78350f;
  --red-bg:     #fee2e2;
  --red-text:   #991b1b;

  --container: min(1200px, calc(100% - 40px));
  --section-py: clamp(64px, 10vw, 112px);

  --r-xs: 8px;
  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 32px;
  --r-pill: 999px;

  --shadow-xs: 0 2px 12px rgba(10,22,40,.07);
  --shadow-sm: 0 6px 24px rgba(10,22,40,.10);
  --shadow-md: 0 14px 52px rgba(10,22,40,.14);
  --shadow-lg: 0 28px 90px rgba(10,22,40,.20);

  --ease: cubic-bezier(.25,.46,.45,.94);
  --dur: 200ms;
}

/* --- 2. RESET ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img {
  display: block;
  max-width: 100%;
  height: auto;
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; cursor: pointer; }
textarea { resize: vertical; }
ul, ol { list-style: none; }
button { border: none; background: none; }

.hidden,
[hidden] {
  display: none !important;
}

/* --- 3. LAYOUT ----------------------------------------------- */
.container { width: var(--container); margin-inline: auto; }
.section { padding-block: var(--section-py); }
.section--paper { background: var(--paper); }

/* --- 4. TYPOGRAPHY ------------------------------------------- */
.eyebrow {
  display: block;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

h1, h2, h3, h4 {
  color: var(--heading);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.2;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 18px;
}

.section-desc {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.75;
  max-width: 560px;
}

.section-hd {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 52px;
}

.section-hd--center {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 52px;
}

.section-hd--center .section-desc { margin-inline: auto; }

.section-hd--stack {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 14px;
  margin-bottom: 40px;
}

.section-hd--stack .section-title {
  margin-bottom: 0;
}

.section-hd--stack .section-lead {
  margin-top: 0;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.08rem);
  line-height: 1.7;
  max-width: 52ch;
}

.section-foot {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

.section-more-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.02em;
  border-bottom: 2px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), gap var(--dur) var(--ease);
}

.section-more-link svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--dur) var(--ease);
}

.section-more-link:hover {
  color: var(--gold-hover);
  border-bottom-color: var(--gold);
}

.section-more-link:hover svg {
  transform: translateX(4px);
}

/* --- 5. BUTTONS ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--r-pill);
  font-weight: 800;
  font-size: .97rem;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 10px 30px rgba(10,22,40,.24);
}
.btn-primary:hover { box-shadow: 0 18px 44px rgba(10,22,40,.32); }

.btn-gold {
  color: var(--navy);
  background: var(--gold);
  box-shadow: 0 10px 28px rgba(201,162,71,.30);
}
.btn-gold:hover { background: var(--gold-hover); }

.btn-outline {
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--gold); background: var(--gold-soft); }

.btn-outline--dark {
  color: var(--white);
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.3);
}
.btn-outline--dark:hover { background: rgba(255,255,255,.1); }

.btn-sm { min-height: 42px; padding: 0 18px; font-size: .88rem; }

/* --- 6. PILLS ------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.pill-active  { color: var(--green-text); background: var(--green-bg); }
.pill-done    { color: var(--amber-text); background: var(--amber-bg); }
.pill-template { color: var(--gold-deep); background: var(--gold-soft); }

/* --- 7. HEADER ----------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  pointer-events: none;
  z-index: -1;
  transition: box-shadow var(--dur);
}

.site-header.scrolled::before { box-shadow: var(--shadow-sm); }

.header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Transparent wordmark: img/logo_transparan.png */
.brand img {
  width: auto;
  height: 52px;
  max-width: min(260px, 58vw);
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
  display: block;
}

.brand .brand-text {
  display: none;
}

@media (min-width: 900px) {
  .header-inner {
    height: 80px;
  }

  .brand img {
    height: 58px;
    max-width: 292px;
  }
}

.brand-text strong {
  display: block;
  color: var(--navy);
  font-size: .93rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.brand-text span {
  display: block;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a,
.nav-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 15px;
  color: #475569;
  font-weight: 700;
  font-size: .9rem;
  border-radius: var(--r-pill);
  transition: color var(--dur), background var(--dur);
}

.main-nav a:hover,
.main-nav a.active,
.nav-group:hover .nav-trigger,
.nav-trigger.active {
  color: var(--navy);
  background: var(--gold-soft);
}

.nav-group {
  position: relative;
  z-index: 1;
}

.nav-group:hover,
.nav-group:focus-within {
  z-index: 20;
}

.nav-trigger {
  background: transparent;
}

.nav-trigger svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--dur) var(--ease);
}

.nav-group:hover .nav-trigger svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 300;
  display: grid;
  gap: 4px;
  min-width: 300px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.dropdown-menu::before {
  position: absolute;
  top: -14px;
  left: 0;
  width: 100%;
  height: 14px;
  content: "";
}

.nav-group:hover .dropdown-menu,
.nav-group:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu a {
  justify-content: flex-start;
  height: auto;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  line-height: 1.35;
  white-space: normal;
}

.nav-store {
  color: var(--white) !important;
  background: var(--navy) !important;
  margin-left: 6px;
}
.nav-store:hover { background: var(--navy-mid) !important; opacity: .9; }

.nav-store svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: var(--r-pill);
  transition: transform var(--dur) var(--ease), opacity var(--dur);
}

.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- 8. MOBILE NAV ------------------------------------------- */
.mobile-nav {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 74px;
  left: 12px;
  right: 12px;
  max-height: calc(100dvh - 86px);
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  z-index: 250;
  overflow: hidden;
  animation: slideDown .2s var(--ease);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-nav.open { display: flex; }

.mobile-nav-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 12px 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-footer {
  flex-shrink: 0;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.mobile-nav-scroll a {
  min-height: 48px;
  padding-block: 10px;
  line-height: 1.35;
}

.mobile-nav a,
.mobile-nav-label {
  display: flex;
  align-items: center;
  padding: 0 18px;
  color: var(--heading);
  font-weight: 700;
  border-radius: var(--r-sm);
  transition: background var(--dur);
}

.mobile-nav-label {
  height: auto;
  padding-top: 14px;
  padding-bottom: 6px;
  color: var(--gold);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  pointer-events: none;
}

.mobile-nav a:hover,
.mobile-nav a.active { background: var(--gold-soft); }

.mobile-nav .nav-store {
  color: var(--white);
  background: var(--navy);
  justify-content: center;
  margin-top: 4px;
}

/* --- 9. HERO (ana sayfa) ------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero {
  position: relative;
  min-height: calc(100svh - 74px);
  display: flex;
  align-items: center;
  padding-block: 72px 88px;
  background:
    linear-gradient(90deg, rgba(5,12,24,.88) 0%, rgba(8,18,34,.76) 44%, rgba(8,18,34,.28) 100%),
    linear-gradient(180deg, rgba(5,12,24,.14), rgba(5,12,24,.72)),
    var(--hero-bg-image, url("img/arkaplan1.png")) center/cover;
  overflow: hidden;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(5,12,24,.76));
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  gap: 0;
  align-items: center;
}

.hero-content > * {
  animation: fadeUp .7s var(--ease) both;
}
.hero-content > *:nth-child(1) { animation-delay: .05s; }
.hero-content > *:nth-child(2) { animation-delay: .10s; }
.hero-content > *:nth-child(3) { animation-delay: .15s; }
.hero-content > *:nth-child(4) { animation-delay: .20s; }
.hero-content > *:nth-child(5) { animation-delay: .25s; }
.hero-content > *:nth-child(6) { animation-delay: .30s; }

.hero-title {
  color: var(--white);
  font-size: clamp(3.2rem, 9vw, 7.8rem);
  line-height: 1.08;
  letter-spacing: -.06em;
}

.hero-title em {
  font-style: normal;
  color: var(--gold);
}

.hero-title--lead {
  font-size: clamp(1.65rem, 3.8vw, 2.85rem);
  line-height: 1.28;
  letter-spacing: -.03em;
  max-width: 720px;
  font-weight: 800;
}

.hero-tagline {
  margin-top: 22px;
  font-size: clamp(1rem, 1.85vw, 1.18rem);
  color: rgba(255, 255, 255, .84);
  line-height: 1.72;
  max-width: 640px;
  font-weight: 500;
}

.hero-copy {
  margin-top: 26px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.76);
  line-height: 1.75;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero .btn-outline {
  color: var(--white);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.34);
  backdrop-filter: blur(12px);
}

.hero .btn-outline:hover {
  color: var(--navy);
  background: var(--gold);
  border-color: var(--gold);
}

.hero-proof {
  max-width: 620px;
  margin-top: 26px;
  padding-left: 16px;
  color: rgba(255,255,255,.72);
  border-left: 3px solid var(--gold);
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.6;
}

/* hero visual card */
.hero-logo-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(145deg, var(--navy) 0%, #1c3358 100%);
  padding: 36px;
  display: grid;
  place-items: center;
  min-height: 340px;
  box-shadow: var(--shadow-lg);
}

.hero-logo-wrap img {
  width: 100%;
  max-width: 340px;
  border-radius: var(--r-md);
}

/* --- 10. PAGE HERO (alt sayfalar) ----------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(14px, 2vw, 22px);
  background: linear-gradient(110deg, var(--surface) 0%, var(--gold-pale) 100%);
  border-block: 1px solid var(--border);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(12px, 2vw, 20px);
}

.page-hero .eyebrow {
  color: var(--gold);
  margin: 0;
  padding-right: clamp(12px, 2vw, 20px);
  border-right: 1px solid rgba(201, 162, 71, .55);
  font-size: .7rem;
}

.page-hero h1 {
  color: var(--heading);
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.12;
  margin: 0;
}

.page-hero p {
  grid-column: 2;
  color: var(--muted);
  font-size: clamp(.88rem, 1.3vw, .98rem);
  line-height: 1.5;
  max-width: 660px;
  margin-top: 5px;
}

.page-hero--compact {
  padding-block: clamp(12px, 1.7vw, 18px);
}

.page-hero--compact h1 {
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
}

.page-hero--compact p {
  font-size: clamp(.86rem, 1.2vw, .94rem);
  line-height: 1.45;
  max-width: 600px;
}

.page-hero + .section:not(.section--store):not(.section--projects) {
  padding-top: clamp(36px, 6vw, 64px);
}

.section--store,
.section--projects {
  padding-top: clamp(24px, 3.5vw, 36px);
}

.corporate-content {
  max-width: 760px;
}

.corporate-content h2 {
  font-size: clamp(1.3rem, 2.8vw, 1.7rem);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.corporate-content h2:first-child {
  margin-top: 0;
}

.corporate-content p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.1rem;
}

.corporate-list {
  display: grid;
  gap: 1.15rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.corporate-list li {
  padding-left: 1.1rem;
  border-left: 3px solid var(--gold);
  color: var(--muted);
  line-height: 1.75;
}

.corporate-list strong {
  color: var(--navy);
  font-weight: 800;
}

.corporate-ordered {
  display: grid;
  gap: 1.15rem;
  margin: 1.25rem 0 0;
  padding-left: 1.35rem;
}

.corporate-ordered li {
  color: var(--muted);
  line-height: 1.75;
  padding-left: 0.35rem;
}

.corporate-ordered strong {
  color: var(--navy);
  font-weight: 800;
}

/* --- 11. SERVICE CARDS (ana sayfa özeti) ---------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  background: var(--gold-soft);
  display: grid;
  place-items: center;
  color: var(--gold);
  margin-bottom: 22px;
  flex-shrink: 0;
}

.service-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 1.4rem;
  line-height: 1.25;
  margin-bottom: 10px;
}
.service-card > p { color: var(--muted); line-height: 1.7; margin-bottom: 22px; }

.service-features {
  display: grid;
  gap: 9px;
  margin-bottom: auto;
  padding-bottom: 24px;
}

.service-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #344054;
  font-size: .9rem;
}

.service-feature::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 800;
  font-size: .9rem;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.service-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--dur) var(--ease);
}

.service-card:hover .service-link svg { transform: translateX(4px); }

/* --- 12. SERVICE DETAIL (hizmetler sayfası) ------------------- */
.service-detail {
  padding-block: 80px;
  border-bottom: 1px solid var(--border);
}

.service-detail:last-of-type { border-bottom: none; }
.service-detail:nth-child(even) { background: var(--paper); }

.service-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: start;
}

.service-detail-desc {
  position: sticky;
  top: 100px;
}

.service-detail-desc h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 18px;
}

.service-detail-desc > p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 32px;
}

.service-detail-main.corporate-content {
  max-width: none;
}

/* service page — balanced single-column flow */
.service-page {
  padding-block: 72px;
}

.service-page-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 56px);
}

.service-lead {
  max-width: 720px;
}

.service-lead p {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.8;
}

.service-area-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.service-area-grid li {
  margin: 0;
  padding: 20px 20px 20px 18px;
  border-left: 3px solid var(--gold);
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.service-callout {
  max-width: none;
  padding: clamp(28px, 4vw, 36px);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, var(--gold-pale) 0%, var(--white) 52%);
  box-shadow: var(--shadow-xs);
}

.service-callout h2 {
  margin-top: 0;
}

.service-refs-band {
  padding-top: clamp(32px, 5vw, 44px);
  border-top: 1px solid var(--border);
}

.service-refs-head {
  margin-bottom: 22px;
}

.service-refs-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.2;
  margin-top: 8px;
}

.ref-grid--balanced {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ref-grid--balanced .ref-card {
  height: 100%;
}

.feature-list { display: grid; gap: 16px; }

.feature-item { display: flex; gap: 14px; align-items: flex-start; }

.feature-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--gold);
}

.feature-dot svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-item strong {
  display: block;
  color: var(--navy);
  font-size: .95rem;
  margin-bottom: 3px;
}

.feature-item span { color: var(--muted); font-size: .87rem; line-height: 1.6; }

/* referans proje kartları */
.ref-label {
  font-size: .76rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  margin-top: 40px;
}

.ref-grid { display: grid; gap: 14px; }

.ref-card {
  padding: 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur);
}

.ref-card:hover { box-shadow: var(--shadow-sm); }

.ref-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.ref-card h4 {
  font-size: 1.08rem;
  line-height: 1.3;
}

.ref-card-type {
  margin: 0 0 6px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gold);
}

.ref-card p  { color: var(--muted); font-size: .88rem; line-height: 1.6; }

/* --- 13. PROJECT CARDS --------------------------------------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-grid--4 { grid-template-columns: repeat(4, 1fr); }

.project-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.project-card.hidden { display: none; }

.project-filter-lead {
  margin: 0 0 24px;
  max-width: 62ch;
}

.project-filter-lead.hidden {
  display: none;
}

.project-thumb {
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
}

.project-thumb-badge {
  max-width: calc(100% - 24px);
  padding: 7px 13px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--r-pill);
  color: var(--white);
  font-size: .7rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
  backdrop-filter: blur(12px);
}

.thumb-steel      { background: linear-gradient(145deg, #12304f 0%, #8d9aaa 100%); }
.thumb-concrete   { background: linear-gradient(145deg, #252b34 0%, #8c9198 100%); }
.thumb-industrial { background: linear-gradient(145deg, #10303f 0%, #4a7a8c 100%); }
.thumb-taahhut    { background: linear-gradient(145deg, #1a2f3d 0%, #5a7d6e 100%); }
.thumb-gold       { background: linear-gradient(145deg, #1a1100 0%, #c9a247 100%); }

.project-body { padding: 20px; }
.project-body h3 {
  font-size: 1.08rem;
  line-height: 1.3;
  margin-block: 10px 8px;
}
.project-body p  { color: var(--muted); font-size: .87rem; line-height: 1.6; }

.project-card:focus-visible,
.ref-card:focus-visible {
  outline: 3px solid rgba(201,162,71,.5);
  outline-offset: 4px;
}

/* --- 14. FILTER BAR ----------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-btn {
  height: 46px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  font-weight: 800;
  font-size: .9rem;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid var(--border);
  transition: all var(--dur) var(--ease);
}

.filter-btn:hover    { border-color: var(--gold); background: var(--gold-soft); }
.filter-btn.active   { color: var(--white); background: var(--navy); border-color: var(--navy); }

/* --- PROJECT DETAIL ----------------------------------------- */
.back-link {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 22px;
  color: rgba(255,255,255,.72);
  font-size: .9rem;
  font-weight: 800;
}

.back-link:hover { color: var(--gold); }

/* ── Store breadcrumb bar ────────────────────────────── */
.store-breadcrumb-bar {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding-block: 12px;
}

.store-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 500;
}

.store-breadcrumb a {
  color: var(--gold);
  text-decoration: none;
  transition: opacity .18s;
}

.store-breadcrumb a:hover { opacity: .75; }

.store-breadcrumb-sep {
  color: rgba(255,255,255,.3);
  font-size: .9rem;
}

.store-breadcrumb span:last-child {
  color: rgba(255,255,255,.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

/* ── Store return strip ──────────────────────────────── */
.store-return-strip {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-top: 1px solid rgba(255,255,255,.07);
  padding-block: clamp(36px, 5vw, 64px);
}

.store-return-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.store-return-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.store-return-label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .85;
}

.store-return-title {
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

@media (max-width: 560px) {
  .store-return-inner { flex-direction: column; align-items: flex-start; }
}

.project-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 380px;
  gap: 32px;
  align-items: start;
}

.project-detail-cover {
  display: flex;
  align-items: flex-end;
  min-height: clamp(320px, 48vw, 560px);
  padding: clamp(22px, 4vw, 38px);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.project-detail-cover span,
.gallery-item span:not(.gallery-item-label) {
  display: inline-flex;
  padding: 8px 14px;
  color: var(--white);
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--r-pill);
  font-size: .8rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.project-gallery {
  margin-top: 16px;
}

/* ── Gallery Slider ──────────────────────────────── */
.gallery-slider {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.gallery-slider-track-wrap {
  flex: 1;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: var(--r-sm);
  min-width: 0;
}

.gallery-slider-track-wrap::-webkit-scrollbar {
  display: none;
}

.gallery-slider-track {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.gallery-slider-track li {
  flex: 0 0 calc(33.333% - 7px);
  min-width: 0;
  scroll-snap-align: start;
}

.gallery-slider-btn {
  flex-shrink: 0;
  width: 40px;
  align-self: center;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid var(--border, #ddd);
  background: var(--paper);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s, transform .18s;
  box-shadow: 0 2px 8px rgba(0,0,0,.09);
  padding: 0;
  user-select: none;
}

.gallery-slider-btn:hover:not(:disabled) {
  background: var(--gold, #c5973b);
  color: #fff;
  border-color: var(--gold, #c5973b);
  box-shadow: 0 4px 14px rgba(197,151,59,.35);
  transform: scale(1.08);
}

.gallery-slider-btn:disabled {
  opacity: .28;
  cursor: default;
  box-shadow: none;
}

.gallery-item {
  display: flex;
  align-items: flex-end;
  min-height: 160px;
  padding: 14px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
}

.section--detail {
  padding-block-start: clamp(24px, 3.5vw, 40px);
}

.project-detail-panel {
  position: sticky;
  top: 98px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

/* Title inside panel — smaller than a full page hero h1 */
.detail-panel-title {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  line-height: 1.2;
  color: var(--navy);
  margin-top: 6px;
  margin-bottom: 10px;
}

/* Summary inside panel */
.detail-panel-summary {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.project-detail-panel h2 {
  margin-block: 18px 22px;
  font-size: 1.15rem;
  line-height: 1.25;
}

.project-meta-list {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.project-meta-list div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.project-meta-list dt {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-meta-list dd {
  color: var(--navy);
  font-weight: 800;
}

.project-detail-panel p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 24px;
}

/* --- 15. CTA BANNER ----------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--r-lg);
  padding: clamp(40px, 7vw, 76px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px 40px;
  align-items: center;
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 12px;
}

.cta-banner p { color: rgba(255,255,255,.62); font-size: 1.05rem; line-height: 1.65; }
.cta-actions  { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }

/* --- 16. ADMIN PANEL (UI shell) ----------------------------- */
.admin-app {
  min-height: 100svh;
  background: var(--paper);
}

.admin-app--login {
  background:
    radial-gradient(circle at 18% 12%, rgba(201,162,71,.14), transparent 42%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 52%, #0b1220 100%);
}

.admin-login {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.admin-login-card {
  width: min(100%, 420px);
  padding: 32px 28px 26px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.98);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.admin-login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
}

.admin-login-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.admin-login-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-login-brand-text strong {
  color: #fff;
  font-size: 1rem;
}

.admin-login-brand-text small {
  color: rgba(255,255,255,.72);
  font-size: .78rem;
  font-weight: 600;
}

.admin-login-title {
  margin: 0 0 8px;
  font-size: 1.45rem;
  color: var(--heading);
}

.admin-login-lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.6;
}

.admin-login-form .form-group {
  margin-bottom: 16px;
}

.admin-login-error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: #fef2f2;
  color: #b91c1c;
  font-size: .88rem;
  font-weight: 600;
}

.admin-login-error[hidden] {
  display: none;
}

.admin-login-submit {
  width: 100%;
  margin-top: 4px;
}

.admin-login-foot {
  margin: 20px 0 0;
  text-align: center;
  font-size: .9rem;
}

.admin-login-foot a {
  color: var(--muted);
  font-weight: 600;
}

.admin-login-foot a:hover {
  color: var(--gold-hover);
}

.admin-credentials-form {
  display: grid;
  gap: 0;
}

.admin-credentials-form .form-group {
  margin-bottom: 16px;
}

.admin-credentials-form .admin-form-actions {
  margin-top: 4px;
}

.admin-cred-success {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--green-bg);
  color: var(--green-text);
  font-size: .88rem;
  font-weight: 600;
}

.admin-cred-success[hidden] {
  display: none;
}

.admin-cred-fixed-user {
  margin: 0 0 18px;
  font-size: .92rem;
  color: var(--heading);
}

.admin-cred-fixed-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.admin-login-fixed-user {
  margin: 0;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--heading);
  font-weight: 800;
  letter-spacing: .03em;
}

.admin-sidebar-link--button {
  width: 100%;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-sidebar-link--button:hover {
  color: var(--gold);
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100svh;
}

.admin-mobile-menu,
.admin-mobile-close,
.admin-sidebar-overlay {
  display: none;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px 18px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-right: 1px solid rgba(255,255,255,.08);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.admin-brand img {
  height: 40px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.admin-brand-text strong {
  display: block;
  color: var(--white);
  font-size: .9rem;
  line-height: 1.2;
}

.admin-brand-text small {
  display: block;
  color: rgba(255,255,255,.5);
  font-size: .7rem;
  margin-top: 2px;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  font-weight: 700;
  transition: background var(--dur), color var(--dur);
}

.admin-nav-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,.08);
}

.admin-nav-link.is-active {
  color: var(--gold);
  background: rgba(201,162,71,.14);
}

.admin-sidebar-foot {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.admin-sidebar-link {
  font-size: .82rem;
  font-weight: 700;
  color: rgba(255,255,255,.55);
}

.admin-sidebar-link:hover { color: var(--gold); }

.admin-main-shell {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.admin-eyebrow {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.admin-topbar-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.2;
  margin-bottom: 6px;
  color: var(--heading);
}

.admin-topbar-desc {
  color: var(--muted);
  font-size: .9rem;
  max-width: 52ch;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--gold-soft);
  border: 1px solid rgba(201,162,71,.35);
  color: var(--navy);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.admin-content {
  padding: 24px 28px 40px;
  flex: 1;
}

.admin-panel { display: none; }
.admin-panel.is-active { display: block; }

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admin-stat-card {
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.admin-stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--gold);
}

.admin-stat-card--projects::before { background: #3b82f6; }
.admin-stat-card--published::before { background: #16a36a; }

.admin-stat-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-stat-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  color: var(--gold-hover);
  background: var(--gold-soft);
}

.admin-stat-card--projects .admin-stat-icon {
  color: #2563eb;
  background: #eff6ff;
}

.admin-stat-card--published .admin-stat-icon {
  color: var(--green-text);
  background: var(--green-bg);
}

.admin-stat-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-stat-label {
  display: block;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-stat-value {
  display: block;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--heading);
  margin-bottom: 12px;
}

.admin-stat-hint {
  display: flex;
  align-items: center;
  gap: 6px 12px;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--muted);
  font-weight: 600;
}

.admin-stat-hint b {
  color: var(--heading);
  font-weight: 800;
}

.admin-dashboard {
  display: grid;
  gap: 18px;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
  gap: 18px;
  align-items: stretch;
}

.admin-dashboard-grid--single { grid-template-columns: 1fr; }

.admin-dashboard-card {
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

.admin-dashboard-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border);
}

.admin-dashboard-card-head .admin-card-title {
  margin: 3px 0 0;
}

.admin-dashboard-kicker {
  margin: 0;
  color: var(--gold-hover);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-dashboard-text-action {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--gold-hover);
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.admin-dashboard-text-action:hover,
.admin-dashboard-text-action:focus-visible {
  color: var(--heading);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-dashboard-visibility {
  display: grid;
  padding: 8px 22px 14px;
}

.admin-dashboard-visibility-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(145px, 42%);
  gap: 18px;
  align-items: center;
  width: 100%;
  padding: 13px 8px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-dashboard-visibility-row:last-child { border-bottom: 0; }

.admin-dashboard-visibility-row:hover,
.admin-dashboard-visibility-row:focus-visible {
  background: var(--paper);
}

.admin-dashboard-visibility-copy,
.admin-dashboard-list-copy,
.admin-dashboard-action > span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-dashboard-visibility-copy strong,
.admin-dashboard-list-copy strong,
.admin-dashboard-action strong {
  overflow: hidden;
  color: var(--heading);
  font-size: .86rem;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.admin-dashboard-visibility-copy small,
.admin-dashboard-list-copy small,
.admin-dashboard-action small {
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.45;
}

.admin-dashboard-progress {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) 34px;
  gap: 9px;
  align-items: center;
}

.admin-dashboard-progress-track {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: var(--border);
}

.admin-dashboard-progress-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
}

.admin-dashboard-progress-value {
  font-size: .75rem;
  text-align: right;
}

.admin-dashboard-progress-value--complete { color: var(--green-text); }
.admin-dashboard-progress-value--partial { color: var(--gold-hover); }
.admin-dashboard-progress-value--empty { color: var(--muted); }

.admin-dashboard-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 20px 14px;
}

.admin-dashboard-actions > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.admin-dashboard-action {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 68px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--paper);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--dur), background var(--dur), transform var(--dur);
}

.admin-dashboard-action:hover,
.admin-dashboard-action:focus-visible {
  border-color: rgba(201,162,71,.62);
  background: var(--gold-soft);
  transform: translateY(-1px);
}

.admin-dashboard-action--primary {
  background: var(--surface);
}

.admin-dashboard-action-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold-hover);
  font-size: 1.2rem;
  font-weight: 700;
}

.admin-dashboard-preview-links {
  display: flex;
  gap: 8px 16px;
  flex-wrap: wrap;
  padding: 0 20px 18px;
}

.admin-dashboard-preview-links a {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
}

.admin-dashboard-preview-links a:hover { color: var(--gold-hover); }

.admin-dashboard-count {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  background: #fff4e5;
  color: #9a5b00;
  font-size: .78rem;
  font-weight: 800;
}

.admin-dashboard-count.is-clear {
  background: var(--green-bg);
  color: var(--green-text);
}

.admin-dashboard-list {
  display: grid;
  padding: 7px 22px 14px;
}

.admin-dashboard-list-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 12px 7px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}

button.admin-dashboard-list-row { cursor: pointer; }
.admin-dashboard-list-row:last-child { border-bottom: 0; }

button.admin-dashboard-list-row:hover,
button.admin-dashboard-list-row:focus-visible {
  background: var(--paper);
}

.admin-dashboard-list-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  font-size: .78rem;
  font-weight: 900;
}

.admin-dashboard-list-icon--warning {
  background: #fff4e5;
  color: #9a5b00;
}

.admin-dashboard-list-arrow {
  color: var(--muted);
  font-size: 1.35rem;
}

.admin-dashboard-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 7px;
}

.admin-dashboard-empty > span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--muted);
  font-weight: 800;
}

.admin-dashboard-empty > div {
  display: grid;
  gap: 3px;
}

.admin-dashboard-empty strong {
  color: var(--heading);
  font-size: .86rem;
}

.admin-dashboard-empty small {
  color: var(--muted);
  font-size: .76rem;
}

.admin-dashboard-empty--success > span {
  background: var(--green-bg);
  color: var(--green-text);
}

.admin-card {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.admin-card--form { margin-bottom: 0; }

.admin-card-title {
  font-size: 1.05rem;
  margin-bottom: 16px;
  color: var(--heading);
}

.admin-card-text {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.admin-card-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.admin-toolbar-start {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.admin-search {
  min-width: min(280px, 100%);
  max-width: 360px;
}

.admin-chip-group { display: flex; flex-wrap: wrap; gap: 8px; }

.admin-chip {
  height: 34px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--heading);
  font-size: .8rem;
  font-weight: 700;
}

.admin-chip.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper);
}

.admin-table tbody tr:last-child td { border-bottom: none; }

.admin-table-sub {
  display: block;
  font-size: .78rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 3px;
}

.admin-table-actions {
  text-align: right;
  white-space: nowrap;
}

.admin-table-actions-group {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  font-size: .75rem;
  font-weight: 800;
}

.admin-status--live {
  background: var(--green-bg);
  color: var(--green-text);
}

.admin-status--draft {
  background: var(--amber-bg);
  color: var(--amber-text);
}

.admin-status--done {
  background: var(--red-bg);
  color: var(--red-text);
}

.admin-icon-btn {
  padding: 6px 10px;
  border-radius: var(--r-sm);
  color: var(--heading);
  font-size: .82rem;
  font-weight: 700;
  background: transparent;
}

.admin-icon-btn:hover {
  background: var(--gold-soft);
  color: var(--gold-hover);
}

.admin-icon-btn--danger {
  color: #c53030;
}

.admin-icon-btn--danger:hover {
  background: #fff5f5;
  color: #9b2c2c;
}

.admin-icon-btn.is-disabled,
.admin-icon-btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.site-preview-banner {
  margin-bottom: 20px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--amber-bg);
  color: var(--amber-text);
  font-size: .88rem;
  font-weight: 700;
  text-align: center;
}

.site-preview-banner--warn {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.admin-form-layout { display: grid; gap: 18px; }

.admin-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-form-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-back-btn {
  font-size: .88rem;
  font-weight: 800;
  color: var(--heading);
}

.admin-back-btn:hover { color: var(--gold-hover); }

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-form-grid--single { grid-template-columns: 1fr; }

.admin-form-grid--split {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  max-width: none;
  align-items: start;
}

.admin-gallery-panel {
  position: sticky;
  top: 88px;
}

.admin-gallery-panel .admin-card-title {
  font-size: 1.05rem;
}

.admin-gallery-workspace {
  display: grid;
  gap: 14px;
}

.admin-gallery-empty {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 28px 16px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  background: var(--paper);
}

.admin-gallery-empty p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.admin-gallery-items {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-gallery-item {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--paper);
  transition: border-color .15s;
}

.admin-gallery-item--cover {
  border-color: var(--gold, #c5973b);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold, #c5973b) 20%, transparent);
}

.admin-gallery-item-preview {
  width: 80px;
  height: 60px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--surface), var(--border));
  overflow: hidden;
  flex-shrink: 0;
}

.admin-gallery-item-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-gallery-item-controls {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.admin-gallery-item-label {
  font-size: .85rem;
}

.admin-gallery-item-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-gallery-item-cover {
  font-size: .78rem;
  padding: 3px 10px;
}

.admin-gallery-item--cover .admin-gallery-item-cover {
  background: var(--gold, #c5973b);
  color: #fff;
  border-color: var(--gold, #c5973b);
}

.admin-gallery-item-fields {
  display: grid;
  gap: 8px;
}

/* ── Admin cover image section ──────────────────────────── */
.admin-cover-section {
  display: grid;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.admin-cover-section .admin-card-title {
  margin-bottom: 0;
  font-size: .95rem;
}

.admin-cover-preview {
  aspect-ratio: 16 / 9;
  max-height: 160px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--paper);
}

.admin-cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Detail page photo cover + gallery ──────────────────── */
.project-detail-cover--photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* When cover contains an <img> (viewer mode), remove bg and fit the image */
.project-detail-cover--viewer {
  background: var(--surface, #f4f4f4);
  display: block;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.project-detail-cover--viewer img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* Overlay label — gold-accent badge at bottom-left of main image */
.project-detail-cover--viewer > span {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px 6px 11px;
  background: rgba(8,8,8,.52);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 4px;
  border: none;
  border-left: 3px solid var(--gold, #c5973b);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
}

/* Gallery thumbnails (interactive) */
.gallery-item--thumb {
  position: relative;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--paper);
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: border-color .18s, box-shadow .18s;
}

.gallery-item--thumb:hover {
  border-color: color-mix(in srgb, var(--gold, #c5973b) 55%, transparent);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}

.gallery-item--thumb.gallery-item--active {
  border-color: var(--gold, #c5973b);
  box-shadow: 0 4px 14px rgba(0,0,0,.18), 0 0 0 2px color-mix(in srgb, var(--gold, #c5973b) 22%, transparent);
}

.gallery-item--thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

/* Caption below thumbnail — active state gets gold tint */
.gallery-item-label {
  position: static;
  padding: 5px 8px 6px;
  font-size: 0.71rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-muted, #666);
  background: var(--paper);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-top: 1px solid rgba(0,0,0,.07);
  transition: color .18s;
}

.gallery-item--thumb.gallery-item--active .gallery-item-label {
  color: var(--gold, #c5973b);
  font-weight: 600;
}

.gallery-item--photo {
  background: var(--paper);
}

.gallery-item--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--r-sm);
}

.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.admin-settings-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-settings-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-settings-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.admin-settings-aside {
  min-width: 0;
}

.admin-settings-aside .admin-card--fill {
  height: 100%;
}

.admin-settings-layout .admin-credentials-form {
  max-width: 100%;
}

.admin-settings-span {
  grid-column: 1 / -1;
}

.admin-contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.admin-contact-form > .form-group {
  margin-bottom: 0;
}

.admin-contact-form > .admin-social-block,
.admin-contact-form > .admin-form-actions {
  grid-column: 1 / -1;
}

@media (max-width: 960px) {
  .admin-settings-grid {
    grid-template-columns: 1fr;
  }

  .admin-settings-columns {
    grid-template-columns: 1fr;
  }

  .admin-settings-aside .admin-card--fill {
    height: auto;
  }

  .admin-contact-form {
    grid-template-columns: 1fr;
  }
}

.admin-card-text--compact {
  margin-bottom: 14px;
}

.admin-form-hint {
  margin: 0 0 16px;
  font-size: .88rem;
  color: var(--muted);
}

.admin-subsection-title {
  margin: 18px 0 8px;
  font-size: .95rem;
  font-weight: 800;
  color: var(--heading);
}

.admin-home-hero-image {
  display: grid;
  gap: 14px;
}

.admin-home-hero-image-preview {
  aspect-ratio: 16 / 7;
  max-height: 200px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--paper);
}

.admin-home-hero-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-home-hero-image-fields {
  display: grid;
  gap: 10px;
}

.admin-home-hero-image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-form-hint--tight {
  margin-top: 4px;
  margin-bottom: 0;
}

.admin-home-hero-history {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.admin-home-hero-history-item {
  display: grid;
  gap: 6px;
  width: 120px;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--paper);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-home-hero-history-item:hover {
  border-color: var(--gold);
}

.admin-home-hero-history-item.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.admin-home-hero-history-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.admin-home-hero-history-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 0 8px 8px;
}

.admin-home-hero-history-item.is-active .admin-home-hero-history-label {
  color: var(--gold);
}

.admin-homepage-fields {
  display: grid;
  gap: 14px;
}

.admin-homepage-fields--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 18px;
}

@media (max-width: 960px) {
  .admin-homepage-fields--triple {
    grid-template-columns: 1fr;
  }
}

.admin-homepick-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 720px) {
  .admin-homepick-list {
    grid-template-columns: 1fr;
  }
}

.admin-homepick-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--paper);
  cursor: pointer;
}

.admin-homepick-item:has(input:disabled:not(:checked)) {
  opacity: 0.55;
  cursor: not-allowed;
}

.admin-homepick-item input {
  margin-top: 3px;
  flex-shrink: 0;
}

.admin-homepick-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.admin-homepick-copy strong {
  font-size: .9rem;
  color: var(--heading);
}

.admin-homepick-copy small {
  font-size: .78rem;
  color: var(--muted);
}

.admin-service-refs-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.admin-service-refs-list {
  display: grid;
  gap: 18px;
}

.btn--sm {
  padding: 8px 14px;
  font-size: .84rem;
}

.admin-metrics-settings {
  margin-bottom: 18px;
}

.admin-form-metrics {
  max-width: 720px;
}

.admin-metrics-toggle-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-metrics-toggle-item {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--paper);
}

.admin-metrics-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 700;
  color: var(--heading);
}

.admin-metrics-empty {
  padding: 12px;
  color: var(--muted);
  font-size: .88rem;
}

.admin-form-header-main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.admin-form-title {
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--heading);
  margin-bottom: 4px;
}

.admin-form-subtitle {
  font-size: .88rem;
  color: var(--muted);
  font-weight: 600;
}

.admin-field-note {
  margin-top: 6px;
  font-size: .8rem;
  color: var(--muted);
}

.admin-publish-toggle {
  margin-top: 8px;
  margin-bottom: 0;
}

.admin-form-grid--single {
  max-width: 720px;
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.form-label-row .form-label {
  margin-bottom: 0;
}

.form-label-row--card {
  margin-bottom: 14px;
}

.form-label-row--card .admin-card-title {
  margin-bottom: 0;
}

.admin-field-toggle {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
}

.admin-field-check {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-field-toggle-ui {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 5px;
  background: var(--paper);
  transition: background .15s ease, border-color .15s ease;
}

.admin-field-toggle-ui::after {
  content: '';
  width: 6px;
  height: 10px;
  margin-top: -2px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .12s ease;
}

.admin-field-check:checked + .admin-field-toggle-ui {
  background: var(--gold);
  border-color: var(--gold);
}

.admin-field-check:checked + .admin-field-toggle-ui::after {
  transform: rotate(45deg) scale(1);
}

.admin-field-check:focus-visible + .admin-field-toggle-ui {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.admin-form-grid [data-admin-field][hidden] {
  display: none;
}

.admin-form-grid [data-admin-field].is-field-disabled .form-control,
.admin-form-grid [data-admin-field].is-field-disabled textarea,
.admin-form-grid [data-admin-field].is-field-disabled select,
.admin-form-grid [data-admin-field].is-field-disabled .btn {
  opacity: 0.55;
  pointer-events: none;
  background: var(--surface);
}

.admin-form-grid [data-admin-field].is-field-disabled .admin-gallery-empty {
  opacity: 0.55;
}

.admin-empty {
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.admin-empty p {
  color: var(--muted);
  margin-bottom: 16px;
}

.admin-type-list {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.admin-type-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--paper);
  font-weight: 700;
}

.admin-type-list-label {
  min-width: 0;
  flex: 1;
}

.admin-type-list .admin-icon-btn {
  flex-shrink: 0;
}

.admin-inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}


.admin-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.admin-social-block {
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.admin-social-block-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--heading);
}

.admin-social-rows {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.admin-social-row {
  display: grid;
  grid-template-columns: minmax(140px, auto) 1fr;
  gap: 12px;
  align-items: center;
}

.admin-social-row.is-disabled .admin-social-url {
  opacity: 0.55;
}

.admin-social-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  cursor: pointer;
}

.admin-social-toggle input {
  accent-color: var(--gold);
}

.admin-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-weight: 700;
  cursor: pointer;
}

.admin-toggle input { accent-color: var(--gold); }

.admin-hint {
  margin-top: 14px;
  font-size: .84rem;
  color: var(--muted);
}

.admin-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  max-width: min(360px, calc(100vw - 40px));
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--navy);
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur), transform var(--dur);
}

.admin-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-dashboard-grid,
  .admin-dashboard-grid--single {
    grid-template-columns: 1fr;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-gallery-panel {
    position: static;
  }
}

@media (max-width: 900px) {
  .admin-shell {
    display: block;
  }

  .admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 310;
    width: min(310px, 86vw);
    height: 100dvh;
    overflow-y: auto;
    padding: 22px 18px max(22px, env(safe-area-inset-bottom));
    transform: translateX(-102%);
    transition: transform .22s ease;
    box-shadow: var(--shadow-lg);
  }

  .admin-brand {
    padding-right: 42px;
  }

  .admin-nav {
    flex-direction: column;
  }

  .admin-sidebar-foot {
    display: grid;
    gap: 10px;
  }

  .admin-mobile-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 82px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--heading);
    font: inherit;
    font-size: .82rem;
    font-weight: 800;
    cursor: pointer;
  }

  .admin-mobile-menu svg,
  .admin-mobile-close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
  }

  .admin-mobile-close {
    position: absolute;
    top: 18px;
    right: 14px;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: var(--r-sm);
    background: rgba(255,255,255,.08);
    color: var(--white);
    cursor: pointer;
  }

  .admin-sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: block;
    border: 0;
    background: rgba(3,8,16,.58);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
  }

  .admin-menu-open {
    overflow: hidden;
  }

  .admin-menu-open .admin-sidebar {
    transform: translateX(0);
  }

  .admin-menu-open .admin-sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .admin-topbar {
    position: sticky;
    top: 0;
    z-index: 80;
    align-items: center;
  }

  .admin-topbar-copy {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .admin-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .admin-table,
  .admin-table tbody {
    display: block;
    width: 100%;
  }

  .admin-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .admin-table tbody {
    display: grid;
    gap: 12px;
  }

  .admin-table tbody tr {
    display: block;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
  }

  .admin-table tbody tr[hidden] {
    display: none;
  }

  .admin-table tbody td {
    display: grid;
    grid-template-columns: minmax(92px, 34%) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
  }

  .admin-table tbody td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
  }

  .admin-table tbody tr td:last-child {
    border-bottom: 0;
  }

  .admin-table tbody tr:last-child td:not(:last-child) {
    border-bottom: 1px solid var(--border);
  }

  .admin-table-actions {
    white-space: normal;
  }

  .admin-table-actions-group {
    justify-content: flex-start;
  }

  .admin-table-empty-row td {
    display: block;
    padding: 18px;
    color: var(--muted);
    text-align: center;
  }

  .admin-table-empty-row td::before {
    content: none;
  }
}

@media (max-width: 640px) {
  .admin-topbar,
  .admin-content {
    padding-inline: 16px;
  }

  .admin-topbar {
    gap: 12px;
    padding-block: 12px;
  }

  .admin-topbar-title {
    font-size: 1.2rem;
    margin-bottom: 3px;
  }

  .admin-topbar-desc {
    font-size: .78rem;
    line-height: 1.35;
  }

  .admin-stat-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-actions {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-card-head,
  .admin-dashboard-visibility,
  .admin-dashboard-list {
    padding-inline: 16px;
  }

  .admin-dashboard-card-head {
    flex-wrap: wrap;
  }

  .admin-dashboard-text-action {
    white-space: normal;
  }

  .admin-dashboard-visibility-row {
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 12px;
  }

  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-toolbar-start {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-search {
    max-width: none;
    width: 100%;
  }

  .admin-topbar-actions {
    display: none;
  }

  .admin-card:not(.admin-dashboard-card) {
    padding: 16px;
  }

  .admin-form-header {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-form-header-main {
    flex-direction: column;
    gap: 8px;
  }

  .admin-form-header-actions {
    width: 100%;
  }

  .admin-form-header-actions .btn {
    flex: 1 1 150px;
  }

  .admin-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-form-actions .btn,
  .admin-form-actions > a {
    width: 100%;
    justify-content: center;
  }

  .admin-social-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-service-refs-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-service-refs-head .btn {
    width: 100%;
  }

  .admin-chip {
    min-height: 44px;
  }

  .admin-icon-btn,
  .btn--sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }

  .admin-field-toggle {
    min-width: 44px;
    min-height: 44px;
    justify-content: flex-end;
    padding: 10px;
    margin: -10px;
  }

  .admin-app .form-control {
    font-size: 16px;
  }

  body.admin-app select.admin-status-select {
    min-width: 132px;
    max-width: 100%;
    height: 44px;
    padding-block: 0;
    font-size: 16px;
    line-height: 42px;
  }

  .admin-gallery-item-btns .btn,
  .admin-gallery-item-btns .admin-icon-btn {
    flex: 1 1 auto;
  }

  .admin-toast {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    left: max(12px, env(safe-area-inset-left));
    max-width: none;
  }
}

@media (max-width: 480px) {
  .admin-content {
    padding: 16px 12px 32px;
  }

  .admin-topbar {
    padding-inline: 12px;
  }

  .admin-mobile-menu {
    min-width: 44px;
    width: 44px;
    padding: 0;
  }

  .admin-mobile-menu span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .admin-dashboard-visibility-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .admin-dashboard-progress {
    grid-template-columns: minmax(0, 1fr) 34px;
  }

  .admin-inline-form {
    grid-template-columns: 1fr;
  }

  .admin-type-list li {
    align-items: flex-start;
  }

  .admin-gallery-item {
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 10px;
  }

  .admin-gallery-item-preview {
    width: 64px;
    height: 52px;
  }

  .admin-home-hero-image-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-home-hero-image-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 375px) {
  .admin-login {
    padding-inline: 12px;
  }

  .admin-login-card {
    padding: 24px 18px 22px;
  }
}

.form-group { display: grid; gap: 6px; margin-bottom: 18px; }
.form-label { font-weight: 800; font-size: .86rem; color: var(--heading); }

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: #fafaf9;
  color: var(--text);
  font-size: .95rem;
  outline: none;
  transition: border-color var(--dur), box-shadow var(--dur);
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,162,71,.13);
}

.admin-app select.admin-status-select {
  box-sizing: border-box;
  display: inline-block;
  width: auto;
  min-width: 118px;
  max-width: 148px;
  height: 28px;
  padding: 0 28px 0 10px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: .82rem;
  font-weight: 700;
  line-height: 26px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.admin-app select.admin-status-select option {
  color: var(--text);
  background: var(--surface);
  font-weight: 600;
}

.admin-app select.admin-status-select.admin-status-select--live {
  background-color: var(--green-bg);
  color: var(--green-text);
}

.admin-app select.admin-status-select.admin-status-select--draft {
  background-color: var(--amber-bg);
  color: var(--amber-text);
}

.admin-app select.admin-status-select.admin-status-select--done {
  background-color: var(--red-bg);
  color: var(--red-text);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.upload-zone {
  border: 2px dashed rgba(201,162,71,.5);
  border-radius: var(--r-md);
  padding: 36px 24px;
  background: var(--gold-pale);
  display: grid;
  place-items: center;
  text-align: center;
  gap: 7px;
  cursor: pointer;
  transition: border-color var(--dur), background var(--dur);
  margin-bottom: 18px;
}

.upload-zone:hover { border-color: var(--gold); background: var(--gold-soft); }
.upload-zone svg   { width: 34px; height: 34px; color: var(--gold); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.upload-zone strong { color: var(--navy); }
.upload-zone span   { color: var(--muted); font-size: .82rem; }

.upload-zone--form {
  position: relative;
  margin-bottom: 0;
  padding: 28px 20px;
}

.upload-zone-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.upload-zone--form:has(.upload-zone-input:focus-visible) {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,162,71,.13);
}

.upload-file-list {
  margin-top: 10px;
  font-size: .84rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
}

.form-hint {
  margin: 6px 0 0;
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.45;
}

.form-error {
  margin: 6px 0 0;
  font-size: .8rem;
  color: #e53e3e;
  line-height: 1.45;
  font-weight: 500;
}

.form-input-suffix {
  display: flex;
  align-items: stretch;
}

.form-input-suffix .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: 0;
}

.form-input-suffix-unit {
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-left: 0;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--gold-pale);
  color: var(--navy);
  font-size: .9rem;
  font-weight: 800;
}

.form-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
  min-width: 0;
}

.form-fieldset .form-label { margin-bottom: 10px; }

.form-radio-group {
  display: grid;
  gap: 10px;
}

.form-radio-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: #fafaf9;
  cursor: pointer;
  transition: border-color var(--dur), background var(--dur), box-shadow var(--dur);
}

.form-radio-option span {
  font-size: .92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.form-radio-option input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--gold-deep);
  flex-shrink: 0;
}

.form-radio-option:has(input:checked) {
  border-color: var(--gold);
  background: var(--gold-pale);
  box-shadow: 0 0 0 3px rgba(201,162,71,.1);
}

.form-radio-option:has(input:focus-visible) {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* --- 17. CONTACT -------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 52px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 18px;
}

.contact-slogan {
  color: var(--heading);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.65;
  padding-left: 16px;
  border-left: 3px solid var(--gold);
  margin-top: 30px;
}

.contact-info > .contact-intro {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 30px;
}

.contact-items { display: grid; gap: 18px; }

.contact-item { display: flex; align-items: flex-start; gap: 16px; }

.contact-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gold-soft);
  display: grid;
  place-items: center;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-item-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.contact-item strong { display: block; font-size: .82rem; color: var(--muted); font-weight: 700; margin-bottom: 3px; }
.contact-item a,
.contact-item span   { color: var(--navy); font-weight: 800; font-size: .97rem; }

.contact-placeholder {
  color: var(--muted);
  font-weight: 700;
}

.contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.contact-social-link {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--navy);
  font-size: .88rem;
  font-weight: 800;
  transition: border-color .2s, color .2s;
}

.contact-social-link:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.contact-form-wrap h3 {
  font-size: 1.5rem;
  line-height: 1.25;
  margin-bottom: 24px;
}
.contact-form { display: grid; gap: 16px; }

.form-feedback {
  padding: 14px 18px;
  border-radius: var(--r-sm);
  background: var(--green-bg);
  color: var(--green-text);
  font-weight: 800;
  font-size: .91rem;
  display: none;
}
.form-feedback.show { display: block; }

.form-feedback--error {
  background: rgba(229, 62, 62, 0.1);
  color: #c53030;
}

/* --- 18. STORE CATALOG -------------------------------------- */
.store-filters-toolbar {
  position: relative;
  z-index: 10;
  margin-bottom: 20px;
  overflow: visible;
}

.store-filters-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.store-filters-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: none;
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  transition: background var(--dur), border-radius var(--dur);
}

.store-filters-trigger:hover {
  background: var(--paper);
}

.store-filters-trigger[aria-expanded='true'] {
  border-bottom: 1px solid var(--border);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.store-filters-trigger-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.store-filters-trigger-label {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.store-filters-trigger-hint {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  line-height: 1.35;
}

.store-filters-trigger-hint.hidden {
  display: none;
}

.store-filters-chevron {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform var(--dur) var(--ease);
}

.store-filters-trigger[aria-expanded='true'] .store-filters-chevron {
  transform: rotate(180deg);
}

.store-filters-collapsible {
  display: none;
}

.store-filters-collapsible.is-open {
  display: block;
  border-top: none;
}

.store-filters-panel {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: 14px 16px 16px;
  border: none;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  background: var(--surface);
  box-shadow: none;
}

.store-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.store-filter-group--area {
  flex: 1 1 auto;
  min-width: 0;
}

.store-area-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
}

.store-custom-range-anchor {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.store-area-range-popover[hidden] {
  display: none !important;
}

.store-area-range-popover:not([hidden]) {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  white-space: nowrap;
  transform: translateY(-50%);
  pointer-events: auto;
}

.store-area-range-popover:not([hidden])::before {
  content: '';
  align-self: center;
  width: 1px;
  height: 28px;
  background: var(--border);
  flex-shrink: 0;
}

.store-area-range-popover.is-open {
  animation: storeRangeIn var(--dur) var(--ease);
}

.store-filter-name {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.store-filter-divider {
  align-self: stretch;
  width: 1px;
  min-height: 44px;
  background: var(--border);
  flex-shrink: 0;
}

.store-preset-group {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
}

.store-preset-btn {
  height: 38px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--navy);
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color var(--dur), background var(--dur), color var(--dur);
}

.store-preset-btn:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.store-preset-btn.active {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.store-custom-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  margin: 0;
}

.store-custom-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.store-custom-toggle-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid var(--border);
  background: var(--paper);
  flex-shrink: 0;
  position: relative;
  transition: border-color var(--dur), background var(--dur);
}

.store-custom-toggle-box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform var(--dur);
}

.store-custom-toggle-input:checked + .store-custom-toggle-box {
  background: var(--navy);
  border-color: var(--navy);
}

.store-custom-toggle-input:checked + .store-custom-toggle-box::after {
  transform: rotate(45deg) scale(1);
}

.store-custom-toggle-input:focus-visible + .store-custom-toggle-box {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.store-custom-toggle .store-filter-name {
  cursor: pointer;
}

@keyframes storeRangeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.store-range-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.store-range-field-label {
  font-size: .68rem;
  font-weight: 700;
  color: var(--muted);
  line-height: 1;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .store-area-range-popover .store-range-field {
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }

  .store-area-range-popover .store-area-sep,
  .store-area-range-popover .store-range-unit {
    padding-bottom: 0;
    align-self: center;
  }
}

.store-filter-input {
  width: 72px;
  min-height: 38px;
  padding-inline: 10px;
  font-size: .88rem;
}

.store-area-sep {
  color: var(--muted);
  font-weight: 700;
  flex-shrink: 0;
  padding-bottom: 10px;
}

.store-range-unit {
  font-size: .82rem;
  font-weight: 800;
  color: var(--muted);
  padding-bottom: 10px;
  flex-shrink: 0;
}

.store-filter-select {
  min-height: 38px;
  min-width: 220px;
  width: 220px;
  font-size: .88rem;
}

.store-filter-clear {
  flex-shrink: 0;
  min-height: 38px;
  padding-inline: 14px;
  white-space: nowrap;
  margin-left: auto;
}

.store-grid {
  margin-top: 4px;
}

@media (min-width: 768px) {
  .store-filters-panel {
    overflow-y: visible;
  }

  .store-area-toolbar {
    align-items: center;
  }
}

@media (max-width: 767px) {
  .store-filters-card {
    overflow: hidden;
  }

  .store-filters-panel {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    overflow-x: hidden;
    overflow-y: visible;
    min-height: 0;
    padding: 14px 14px 16px;
    border-radius: 0 0 var(--r-lg) var(--r-lg);
  }

  .store-filters-trigger {
    min-height: 52px;
  }

  .store-filter-divider {
    display: none;
  }

  .store-filter-group,
  .store-filter-group--area {
    width: 100%;
    flex: none;
    min-width: 0;
  }

  .store-area-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .store-preset-group {
    flex-wrap: wrap;
    gap: 8px;
  }

  .store-preset-btn {
    flex: 1 1 calc(50% - 4px);
    min-width: calc(50% - 4px);
    text-align: center;
    padding-inline: 8px;
    font-size: .76rem;
  }

  .store-custom-range-anchor {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
  }

  .store-custom-toggle {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--paper);
  }

  .store-area-range-popover:not([hidden]) {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    z-index: auto;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--paper);
    box-shadow: none;
    white-space: normal;
    animation: none;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    align-items: end;
    gap: 8px;
    pointer-events: auto;
  }

  .store-area-range-popover:not([hidden])::before {
    display: none;
  }

  .store-area-range-popover.is-open {
    animation: none;
  }

  .store-area-range-popover .store-range-field {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    min-width: 0;
  }

  .store-area-range-popover .store-filter-input {
    width: 100%;
    min-width: 0;
  }

  .store-area-range-popover .store-area-sep,
  .store-area-range-popover .store-range-unit {
    padding-bottom: 10px;
    align-self: auto;
  }

  .store-filter-input {
    width: 100%;
    min-width: 0;
  }

  .store-filter-select {
    width: 100%;
    min-width: 0;
  }

  .store-filter-clear {
    width: 100%;
    margin-left: 0;
    min-height: 42px;
  }
}

@media (min-width: 768px) and (max-width: 959px) {
  .store-filters-panel {
    flex-wrap: wrap;
    align-items: flex-end;
    overflow-x: visible;
    min-height: 0;
  }

  .store-filter-group--area {
    flex: 1 1 100%;
  }

  .store-filter-divider {
    display: none;
  }

  .store-filter-group:not(.store-filter-group--area) {
    flex: 1 1 auto;
  }

  .store-filter-clear {
    margin-left: 0;
  }

  .store-area-toolbar {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .store-preset-group {
    flex-wrap: wrap;
  }
}

@media (min-width: 960px) {
  .store-filters-panel {
    gap: 18px;
    padding: 14px 18px;
    overflow-x: visible;
  }

  .store-filter-select {
    min-width: 240px;
    width: 240px;
  }
}

:root[data-theme="dark"] .store-filters-trigger,
:root[data-theme="dark"] .store-filters-trigger-label {
  color: var(--heading);
}

:root[data-theme="dark"] .store-filters-trigger:hover {
  background: var(--paper);
}

:root[data-theme="dark"] .store-custom-toggle {
  background: var(--paper);
  border-color: var(--border);
}

.store-filter-empty {
  margin: 0 0 20px;
  color: var(--muted);
  font-weight: 600;
}

.store-filter-empty.hidden,
.store-catalog-empty.hidden {
  display: none;
}

.store-catalog-section {
  padding-top: 0;
}

.store-catalog-grid,
.catalog-picker {
  display: grid;
  gap: 14px;
}

.store-catalog-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.catalog-disclosure {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--paper);
  overflow: hidden;
}

.catalog-disclosure-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: background var(--dur);
}

.catalog-disclosure-trigger:hover {
  background: var(--surface);
}

.catalog-disclosure-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.catalog-disclosure-title {
  color: var(--navy);
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.2;
}

.catalog-disclosure-subtitle {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.35;
}

.catalog-disclosure-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--dur);
}

.catalog-disclosure.is-open .catalog-disclosure-chevron {
  transform: rotate(180deg);
}

.catalog-disclosure-panel {
  border-top: 1px solid var(--border);
  padding: 12px;
  background: var(--surface);
}

.catalog-disclosure-panel[hidden] {
  display: none;
}

.catalog-picker {
  max-height: min(52vh, 320px);
  overflow: auto;
  padding-right: 4px;
}

.catalog-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--paper);
  padding: 12px;
  transition: border-color var(--dur), box-shadow var(--dur), background var(--dur);
}

.catalog-card--store {
  grid-template-columns: 1fr;
  padding: 0;
  overflow: hidden;
}

.catalog-card--store .catalog-card-thumb {
  min-height: 148px;
  border-radius: 0;
}

.catalog-card--store .catalog-card-body {
  padding: 18px;
}

.catalog-card--selectable {
  cursor: pointer;
  position: relative;
}

.catalog-card--selectable input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.catalog-card--selectable.is-selected,
.catalog-card--selectable:has(input:checked) {
  border-color: var(--gold);
  background: var(--gold-soft);
  box-shadow: 0 0 0 1px rgba(201, 162, 71, 0.35);
}

.catalog-card--none {
  grid-template-columns: 1fr;
}

.catalog-card-thumb {
  min-height: 72px;
  border-radius: var(--r-sm);
}

.catalog-card-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.catalog-card-tag {
  display: inline-flex;
  width: fit-content;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.catalog-card-title {
  color: var(--navy);
  font-size: .98rem;
  line-height: 1.2;
}

.catalog-card--store .catalog-card-title {
  font-size: 1.12rem;
}

.catalog-card-type,
.catalog-card-summary {
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.45;
}

.catalog-card-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.catalog-card-meta {
  font-size: .76rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 3px 9px;
}

.catalog-card-cta {
  margin-top: 10px;
  width: 100%;
  justify-content: center;
}

.store-catalog-empty {
  text-align: center;
  color: var(--muted);
  margin-top: 24px;
}

.store-catalog-empty.hidden {
  display: none;
}

/* --- 19. FOOTER --------------------------------------------- */
.site-footer {
  padding-block: 44px;
  border-top: 1px solid var(--border);
  margin-top: clamp(40px, 8vw, 88px);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand { display: flex; align-items: center; gap: 12px; }

.footer-brand img {
  width: auto;
  height: 46px;
  max-width: min(240px, 68vw);
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .footer-brand img {
    height: 52px;
    max-width: 272px;
  }
}

.footer-brand strong {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--muted); font-size: .86rem; font-weight: 600; transition: color var(--dur); }
.footer-links a:hover { color: var(--navy); }
.footer-copy  { color: var(--muted); font-size: .82rem; }

/* --- 20. QUICK CONTACT (WhatsApp) --------------------------- */
.quick-contact {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: max(24px, env(safe-area-inset-left));
  z-index: 190;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  background: #25d366;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 50%;
  box-shadow: 0 12px 36px rgba(37,211,102,.34);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.quick-contact:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(37,211,102,.42);
}

.quick-contact:focus-visible {
  outline: 3px solid rgba(37,211,102,.35);
  outline-offset: 4px;
}

.quick-contact svg {
  display: block;
  width: 29px;
  height: 29px;
  fill: currentColor;
}

/* --- RESPONSIVE --------------------------------------------- */
@media (max-width: 960px) {
  .hamburger { display: flex; }
  .main-nav  { display: none; }

  .hero-inner,
  .contact-grid,
  .service-detail-inner,
  .project-detail-layout {
    grid-template-columns: 1fr;
  }

  .hero { min-height: auto; padding-block: 48px 64px; }

  .services-grid     { grid-template-columns: 1fr 1fr; }
  .project-grid      { grid-template-columns: 1fr 1fr; }
  .project-grid--4   { grid-template-columns: 1fr 1fr; }

  .service-detail-desc { position: static; }
  .service-refs { position: static; }
  .service-area-grid,
  .ref-grid--balanced { grid-template-columns: 1fr; }
  .project-detail-panel { position: static; }

  .cta-banner { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: row; }

  .section-hd { grid-template-columns: 1fr; }

  .cta-banner {
    align-items: start;
  }

}

@media (max-width: 640px) {
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero .eyebrow { display: none; }
  .page-hero p { grid-column: 1; }

  .services-grid,
  .project-grid,
  .project-grid--4,
  .project-gallery { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .filter-bar   { flex-direction: column; }
  .filter-btn   { width: 100%; }

  .form-row { grid-template-columns: 1fr; }

  .cta-banner { text-align: center; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }

  .quick-contact {
    left: max(16px, env(safe-area-inset-left));
    right: auto;
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
  }

  .contact-form-wrap { padding: 24px; }
}

/* --- 21. THEME TOGGLE & DARK THEME -------------------------- */
.theme-toggle {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--heading);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  box-shadow: var(--shadow-xs);
  transition: color var(--dur), background var(--dur), border-color var(--dur), box-shadow var(--dur);
}

.theme-toggle:hover {
  color: var(--gold-hover);
  background: var(--gold-soft);
  border-color: rgba(201,162,71,.45);
  box-shadow: var(--shadow-sm);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.theme-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon--moon path {
  fill: currentColor;
  stroke: none;
}

.theme-toggle-icons {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
}

html:not([data-theme="dark"]) .theme-icon--sun { display: none; }
html[data-theme="dark"] .theme-icon--moon { display: none; }

.theme-toggle-label {
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: -.01em;
}

.theme-toggle:not(.theme-toggle--menu) .theme-toggle-label {
  display: none;
}

.theme-toggle--menu {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.admin-sidebar .theme-toggle--menu {
  color: var(--white);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
  box-shadow: none;
}

.theme-toggle--admin-login {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  z-index: 20;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --navy:       #0a1628;
  --navy-mid:   #13253f;
  --navy-light: #1e3a5f;
  --heading:    #f4f7fb;
  --surface:    #121c2e;
  --surface-2:  #0b1423;
  --paper:      #101827;
  --border:     rgba(226,232,240,.14);
  --muted:      #a7b2c4;
  --text:       #dce6f4;
  --gold-soft:  rgba(201,162,71,.14);
  --gold-pale:  rgba(201,162,71,.09);
  --green-bg:   rgba(34,197,94,.16);
  --green-text: #8df0b8;
  --amber-bg:   rgba(201,162,71,.18);
  --amber-text: #f8d985;
  --shadow-xs: 0 2px 12px rgba(0,0,0,.28);
  --shadow-sm: 0 8px 28px rgba(0,0,0,.34);
  --shadow-md: 0 18px 58px rgba(0,0,0,.44);
  --shadow-lg: 0 30px 95px rgba(0,0,0,.56);
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at 20% 0%, rgba(201,162,71,.11), transparent 34rem),
    linear-gradient(180deg, #07101f 0%, #0d1626 52%, #070f1c 100%);
  color: var(--text);
}

:root[data-theme="dark"] .site-header::before {
  background: rgba(7,16,31,.97);
  border-bottom-color: var(--border);
}

:root[data-theme="dark"] .brand-text strong,
:root[data-theme="dark"] .corporate-content h2,
:root[data-theme="dark"] .corporate-list strong,
:root[data-theme="dark"] .corporate-ordered strong,
:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4,
:root[data-theme="dark"] .service-link,
:root[data-theme="dark"] .section-more-link,
:root[data-theme="dark"] .footer-brand strong,
:root[data-theme="dark"] .project-meta-list dd,
:root[data-theme="dark"] .form-label,
:root[data-theme="dark"] .upload-zone strong {
  color: var(--heading);
}

:root[data-theme="dark"] .main-nav a,
:root[data-theme="dark"] .nav-trigger,
:root[data-theme="dark"] .mobile-nav a,
:root[data-theme="dark"] .dropdown-menu a,
:root[data-theme="dark"] .filter-btn,
:root[data-theme="dark"] .contact-item a,
:root[data-theme="dark"] .contact-item span,
:root[data-theme="dark"] .contact-social-link,
:root[data-theme="dark"] .ref-card h4,
:root[data-theme="dark"] .project-body h3,
:root[data-theme="dark"] .service-card h3 {
  color: var(--text);
}

:root[data-theme="dark"] .brand-text span,
:root[data-theme="dark"] .section-desc,
:root[data-theme="dark"] .section-lead,
:root[data-theme="dark"] .corporate-content p,
:root[data-theme="dark"] .corporate-list li,
:root[data-theme="dark"] .corporate-ordered li,
:root[data-theme="dark"] .hero-copy,
:root[data-theme="dark"] .service-card > p,
:root[data-theme="dark"] .project-body p,
:root[data-theme="dark"] .ref-card p,
:root[data-theme="dark"] .feature-item span,
:root[data-theme="dark"] .contact-info > .contact-intro,
:root[data-theme="dark"] .admin-app .admin-table td,
:root[data-theme="dark"] .admin-app .admin-table tbody strong,
:root[data-theme="dark"] .admin-app .admin-form-hint,
:root[data-theme="dark"] .admin-app .admin-toggle,
:root[data-theme="dark"] .admin-app .admin-type-list li,
:root[data-theme="dark"] .admin-topbar-desc,
:root[data-theme="dark"] .admin-card-text,
:root[data-theme="dark"] .admin-stat-hint,
:root[data-theme="dark"] .project-detail-panel p,
:root[data-theme="dark"] .footer-copy,
:root[data-theme="dark"] .footer-links a {
  color: var(--muted);
}

:root[data-theme="dark"] .section--paper {
  background:
    radial-gradient(circle at 78% 42%, rgba(201,162,71,.10), transparent 46%),
    var(--surface-2);
}

:root[data-theme="dark"] .hero {
  background:
    linear-gradient(90deg, rgba(3,8,16,.92) 0%, rgba(6,14,28,.82) 48%, rgba(6,14,28,.42) 100%),
    linear-gradient(180deg, rgba(3,8,16,.18), rgba(3,8,16,.78)),
    var(--hero-bg-image, url("img/arkaplan1.png")) center/cover;
}

:root[data-theme="dark"] .dropdown-menu,
:root[data-theme="dark"] .mobile-nav {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow-lg);
}

:root[data-theme="dark"] .dropdown-menu a:hover,
:root[data-theme="dark"] .dropdown-menu a:focus-visible {
  color: var(--gold);
  background: rgba(201,162,71,.14);
}

:root[data-theme="dark"] .service-card,
:root[data-theme="dark"] .service-area-grid li,
:root[data-theme="dark"] .project-card,
:root[data-theme="dark"] .ref-card,
:root[data-theme="dark"] .contact-form-wrap,
:root[data-theme="dark"] .admin-topbar,
:root[data-theme="dark"] .admin-stat-card,
:root[data-theme="dark"] .admin-card,
:root[data-theme="dark"] .admin-table-wrap,
:root[data-theme="dark"] .admin-empty,
:root[data-theme="dark"] .project-detail-panel,
:root[data-theme="dark"] .form-radio-option,
:root[data-theme="dark"] .contact-social-link {
  background: var(--surface);
  border-color: var(--border);
}

:root[data-theme="dark"] .form-radio-option:has(input:checked) {
  background: rgba(201,162,71,.12);
}

:root[data-theme="dark"] .form-input-suffix-unit {
  background: rgba(201,162,71,.12);
}

:root[data-theme="dark"] .upload-file-list {
  color: var(--heading);
}

:root[data-theme="dark"] .upload-zone,
:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
  background: rgba(15,23,42,.92);
  border-color: var(--border);
}

:root[data-theme="dark"] .service-callout {
  background:
    linear-gradient(135deg, rgba(201,162,71,.12) 0%, rgba(15,23,42,.96) 55%);
}

:root[data-theme="dark"] .cta-banner,
:root[data-theme="dark"] .store-filters-card,
:root[data-theme="dark"] .store-filters-trigger,
:root[data-theme="dark"] .store-area-range-popover {
  background: var(--surface);
  border-color: var(--border);
}

:root[data-theme="dark"] .page-hero {
  background: linear-gradient(110deg, var(--surface) 0%, var(--gold-pale) 100%);
  border-color: var(--border);
}

:root[data-theme="dark"] .store-preset-btn {
  background: var(--paper);
  color: var(--heading);
  border-color: var(--border);
}

:root[data-theme="dark"] .store-preset-btn.active {
  background: var(--navy-mid);
  border-color: var(--gold);
  color: var(--heading);
}

:root[data-theme="dark"] .catalog-disclosure {
  background: var(--surface);
  border-color: var(--border);
}

:root[data-theme="dark"] .catalog-disclosure-trigger:hover {
  background: var(--surface-2);
}

:root[data-theme="dark"] .catalog-disclosure-title {
  color: var(--heading);
}

:root[data-theme="dark"] .catalog-disclosure-panel {
  background: var(--surface-2);
}

:root[data-theme="dark"] .catalog-card {
  background: var(--surface);
  border-color: var(--border);
}

:root[data-theme="dark"] .catalog-card--selectable.is-selected,
:root[data-theme="dark"] .catalog-card--selectable:has(input:checked) {
  background: var(--gold-soft);
  border-color: var(--gold);
}

:root[data-theme="dark"] .catalog-card-title,
:root[data-theme="dark"] .catalog-card-meta {
  color: var(--heading);
}

:root[data-theme="dark"] .catalog-card-type,
:root[data-theme="dark"] .catalog-card-summary {
  color: var(--muted);
}

:root[data-theme="dark"] .admin-sidebar,
:root[data-theme="dark"] .hero-logo-wrap {
  background: linear-gradient(145deg, #050b16 0%, #14213a 100%);
}

:root[data-theme="dark"] .cta-banner h2,
:root[data-theme="dark"] .cta-banner p {
  color: inherit;
}

:root[data-theme="dark"] .page-hero h1 { color: var(--heading); }
:root[data-theme="dark"] .page-hero p { color: var(--muted); }

:root[data-theme="dark"] .btn-primary,
:root[data-theme="dark"] .nav-store {
  color: #07101f !important;
  background: var(--gold) !important;
}

:root[data-theme="dark"] .btn-outline {
  color: var(--text);
  background: rgba(15,23,42,.82);
  border-color: var(--border);
}

:root[data-theme="dark"] .btn-outline:hover,
:root[data-theme="dark"] .main-nav a:hover,
:root[data-theme="dark"] .main-nav a.active,
:root[data-theme="dark"] .nav-group:hover .nav-trigger,
:root[data-theme="dark"] .nav-trigger.active,
:root[data-theme="dark"] .mobile-nav a:hover,
:root[data-theme="dark"] .mobile-nav a.active,
:root[data-theme="dark"] .contact-social-link:hover {
  background: rgba(201,162,71,.16);
  color: var(--gold);
}

:root[data-theme="dark"] .hamburger {
  background: #1a2a42;
}

:root[data-theme="dark"] .main-nav a,
:root[data-theme="dark"] .nav-trigger {
  color: #c8d4e6;
}

:root[data-theme="dark"] .service-icon,
:root[data-theme="dark"] .feature-dot,
:root[data-theme="dark"] .contact-item-icon,
:root[data-theme="dark"] .reference-list a {
  background: rgba(201,162,71,.13);
}

:root[data-theme="dark"] .filter-btn {
  background: rgba(15,23,42,.88);
}

:root[data-theme="dark"] .filter-btn.active {
  color: #07101f !important;
  background: var(--gold) !important;
  border-color: var(--gold) !important;
}

:root[data-theme="dark"] .filter-btn:hover {
  color: var(--gold);
  border-color: var(--gold);
}

:root[data-theme="dark"] .site-footer {
  background: rgba(7,16,31,.72);
  border-top-color: var(--border);
}

:root[data-theme="dark"] .quick-contact {
  color: #ffffff;
}

:root[data-theme="dark"] .theme-toggle {
  color: var(--text);
  background: rgba(15,23,42,.88);
  border-color: var(--border);
}

:root[data-theme="dark"] .theme-toggle:hover {
  color: var(--gold);
  background: rgba(201,162,71,.14);
}

:root[data-theme="dark"] .admin-app .admin-topbar-title,
:root[data-theme="dark"] .admin-app .admin-card-title,
:root[data-theme="dark"] .admin-app .admin-stat-value,
:root[data-theme="dark"] .admin-app .form-label,
:root[data-theme="dark"] .admin-app .admin-chip,
:root[data-theme="dark"] .admin-app .admin-icon-btn,
:root[data-theme="dark"] .admin-app .admin-back-btn,
:root[data-theme="dark"] .admin-app .upload-zone strong {
  color: var(--heading);
}

:root[data-theme="dark"] .admin-app .admin-table th {
  background: var(--surface-2);
  color: var(--muted);
}

:root[data-theme="dark"] .admin-app .admin-chip.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #07101f;
}

:root[data-theme="dark"] .admin-app .admin-icon-btn:hover,
:root[data-theme="dark"] .admin-app .admin-back-btn:hover {
  color: var(--gold);
  background: rgba(201,162,71,.12);
}

:root[data-theme="dark"] .admin-stat-card--projects .admin-stat-icon {
  color: #93c5fd;
  background: rgba(37,99,235,.2);
}

:root[data-theme="dark"] .admin-dashboard-count,
:root[data-theme="dark"] .admin-dashboard-list-icon--warning {
  color: #fbbf24;
  background: rgba(217,119,6,.18);
}

:root[data-theme="dark"] .admin-dashboard-action,
:root[data-theme="dark"] .admin-dashboard-visibility-row:hover,
:root[data-theme="dark"] .admin-dashboard-visibility-row:focus-visible,
:root[data-theme="dark"] button.admin-dashboard-list-row:hover,
:root[data-theme="dark"] button.admin-dashboard-list-row:focus-visible {
  border-color: var(--border);
  background: var(--surface-2);
}

:root[data-theme="dark"] .admin-dashboard-action:hover,
:root[data-theme="dark"] .admin-dashboard-action:focus-visible {
  border-color: var(--gold);
  background: rgba(201,162,71,.12);
}

:root[data-theme="dark"] .admin-app .form-control {
  background: rgba(15,23,42,.92);
  color: var(--text);
  border-color: var(--border);
}

:root[data-theme="dark"] .admin-app select.admin-status-select.admin-status-select--live {
  background-color: rgba(5, 79, 49, 0.35);
  color: #6ee7b7;
}

:root[data-theme="dark"] .admin-app select.admin-status-select.admin-status-select--draft {
  background-color: rgba(120, 53, 15, 0.35);
  color: #fcd34d;
}

:root[data-theme="dark"] .admin-app select.admin-status-select.admin-status-select--done {
  background-color: rgba(153, 27, 27, 0.35);
  color: #fca5a5;
}

:root[data-theme="dark"] .admin-app .admin-field-toggle-ui {
  background: rgba(15,23,42,.92);
  border-color: var(--border);
}

:root[data-theme="dark"] .admin-app .upload-zone {
  background: var(--gold-pale);
  color: var(--text);
}

:root[data-theme="dark"] .admin-app .upload-zone span {
  color: var(--muted);
}

:root[data-theme="dark"] .admin-app .admin-badge {
  color: var(--heading);
  background: rgba(201,162,71,.16);
  border-color: rgba(201,162,71,.35);
}

:root[data-theme="dark"] .admin-app .admin-metrics-toggle-item {
  background: var(--surface-2);
  border-color: var(--border);
}

:root[data-theme="dark"] .admin-app .admin-metrics-toggle-label,
:root[data-theme="dark"] .admin-app .admin-form-title,
:root[data-theme="dark"] .admin-app .admin-form-subtitle {
  color: var(--heading);
}

:root[data-theme="dark"] .admin-app .admin-form-subtitle,
:root[data-theme="dark"] .admin-app .admin-field-note {
  color: var(--muted);
}

@media (max-width: 960px) {
  .header-inner > .theme-toggle:not(.theme-toggle--menu) {
    display: none;
  }
}
