/* Shared graphite palette and restrained silver gradients. */
:root,
:root[data-theme="light"] {
  color-scheme: light;
  --page: #fafafa;
  --surface: #f2f2f2;
  --text: #25272a;
  --muted: #686b70;
  --accent: #383b40;
  --accent-strong: #202226;
  --line: rgba(37, 39, 42, 0.12);
  --surface-soft: #f5f5f5;
  --surface-tint: #eeeeee;
  --on-accent: #ffffff;
  --quantum-gradient: linear-gradient(135deg, #17191c 0%, #25282d 48%, #41464d 100%);
  --quantum-glow: radial-gradient(ellipse at 85% 0%, rgba(60, 64, 70, 0.07), transparent 42%);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #171a1e;
  --surface: rgba(33, 36, 42, 0.94);
  --text: #f2f3f5;
  --muted: #afb5bd;
  --accent: #c4cad1;
  --accent-strong: #d6dbe1;
  --line: rgba(214, 219, 225, 0.16);
  --surface-soft: #202328;
  --surface-tint: #292d33;
  --on-accent: #1d2025;
  --quantum-gradient: linear-gradient(135deg, #171a1e 0%, #2c3037 34%, #6a717b 70%, #b9c0c8 100%);
  --quantum-glow: radial-gradient(ellipse at 85% 0%, rgba(211, 217, 224, 0.12), transparent 42%);
}

html,
body {
  background-color: var(--page) !important;
  color: var(--text);
}

body,
.site-main,
.entry-content {
  color: var(--text);
}

.site-header:not(.is-scrolled) .site-header__inner,
.site-header.is-scrolled .site-header__inner {
  border-color: var(--line) !important;
  background: rgba(35, 38, 43, 0.78) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.045) !important;
  backdrop-filter: blur(20px) saturate(125%);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
}

html[data-theme="dark"] .site-header:not(.is-scrolled) .site-header__inner,
html[data-theme="dark"] .site-header.is-scrolled .site-header__inner {
  background: rgba(23, 26, 30, 0.78) !important;
}

.site-header .brand__logo,
html[data-theme] .site-header .brand__logo,
.site-header.is-scrolled .brand__logo {
  filter: brightness(0) invert(0.94) !important;
}

.site-header .nav-menu > li > a,
.site-header:not(.is-scrolled) .nav-menu > li > a,
.site-header.is-scrolled .nav-menu > li > a,
.site-header .theme-toggle,
.site-header .menu-toggle {
  color: var(--text) !important;
}

.site-header .nav-menu > li > a::after,
.site-header__inner::before {
  background: linear-gradient(90deg, transparent, var(--accent), transparent) !important;
}

.site-header .theme-toggle,
.site-header .menu-toggle {
  border-color: var(--line) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.site-header .nav-appointment,
.button--primary,
.consultation-form__submit .button,
.acs-home-v2 .acs-home-v2__button,
.acs-contact__submit button,
#acs-home .acs-button {
  border: 1px solid rgba(238, 241, 245, 0.38) !important;
  background: var(--quantum-gradient) !important;
  color: #191c20 !important;
  -webkit-text-fill-color: #191c20 !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 0 28px rgba(186, 193, 201, 0.1) !important;
}

.site-header .nav-appointment:hover,
.button--primary:hover,
.consultation-form__submit .button:hover,
.acs-home-v2 .acs-home-v2__button:hover,
.acs-contact__submit button:hover,
#acs-home .acs-button:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.acs-home-v2 .acs-home-v2__text-link,
.entry-content a,
.site-footer__inner a,
.acs-contact__consent a {
  color: var(--accent) !important;
}

#acs-home .acs-hero {
  background: #202328 !important;
  color: #f1f3f5 !important;
}

#acs-home .acs-hero__image {
  filter: brightness(0.72) saturate(0.72);
}

#acs-home .acs-hero__shade {
  background:
    var(--quantum-glow),
    linear-gradient(90deg, rgba(25, 28, 32, 0.96) 0%, rgba(25, 28, 32, 0.86) 42%, rgba(25, 28, 32, 0.32) 100%),
    linear-gradient(0deg, rgba(25, 28, 32, 0.4), transparent 48%) !important;
}

#acs-home .acs-hero h1,
#acs-home .acs-contact h2 {
  color: #f1f3f5 !important;
}

#acs-home .acs-hero h1 em,
#acs-home .acs-contact h2 em,
#acs-home .acs-hero__caption i {
  color: #c5cbd2 !important;
}

#acs-home .acs-hero__lead,
#acs-home .acs-hero__note,
#acs-home .acs-hero__caption {
  color: #c1c6cd !important;
}

#acs-home .acs-hero__note span:nth-child(2) {
  background: var(--accent) !important;
}

#acs-home .acs-contact {
  border-color: var(--line) !important;
  background: var(--quantum-glow), linear-gradient(135deg, #272b31 0%, #363c44 58%, #4c535d 100%) !important;
  color: var(--text) !important;
}

#acs-home .acs-team,
.archive-entry,
.service-detail,
.consultation-form,
.acs-contact__form,
.service-card,
.team-card {
  border-color: var(--line);
  background-color: var(--surface);
  color: var(--text);
}

input,
textarea,
select,
.acs-contact input,
.acs-contact textarea,
.acs-contact select,
.consultation-form input,
.consultation-form textarea,
.consultation-form select {
  border-color: var(--line) !important;
  background: #202328 !important;
  color: var(--text) !important;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted) !important;
  opacity: 0.82;
}

.site-footer {
  border-color: var(--line) !important;
  background: linear-gradient(145deg, #202328 0%, #292d33 58%, #343941 100%) !important;
  color: var(--text);
}

.site-footer__inner,
.site-footer .footer-title {
  color: var(--muted) !important;
}

.site-footer a:hover,
.site-header .nav-menu > li > a:hover {
  color: #e1e5e9 !important;
}

::selection {
  background: rgba(184, 192, 201, 0.32);
  color: #fff;
}

@media (max-width: 760px) {
  #acs-home .acs-hero__shade {
    background: var(--quantum-glow), linear-gradient(90deg, rgba(25, 28, 32, 0.9), rgba(25, 28, 32, 0.62)) !important;
  }
}

/* Light theme: near-white canvas, soft gray cards, and charcoal controls. */
html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="light"],
html[data-theme="light"] body,
html[data-theme="light"] .site-main {
  background-color: #fafafa !important;
  color: #25272a !important;
}

html[data-theme="light"] .site-header:not(.is-scrolled) .site-header__inner,
html[data-theme="light"] .site-header.is-scrolled .site-header__inner {
  border-color: rgba(37, 39, 42, 0.12) !important;
  background: rgba(250, 250, 250, 0.8) !important;
  box-shadow: 0 14px 38px rgba(25, 27, 30, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

html[data-theme="light"] .site-header .brand__logo,
html[data-theme="light"] .site-header.is-scrolled .brand__logo {
  filter: none !important;
}

html[data-theme="light"] .site-header .nav-menu > li > a,
html[data-theme="light"] .site-header .theme-toggle,
html[data-theme="light"] .site-header .menu-toggle {
  color: #25272a !important;
}

html[data-theme="light"] .site-header .nav-menu > li > a::after,
html[data-theme="light"] .site-header__inner::before {
  background: linear-gradient(90deg, transparent, #45494f, transparent) !important;
}

html[data-theme="light"] .site-header .theme-toggle,
html[data-theme="light"] .site-header .menu-toggle {
  border-color: rgba(37, 39, 42, 0.16) !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

html[data-theme="light"] .site-header .nav-appointment,
html[data-theme="light"] .site-footer .map-btn,
html[data-theme="light"] .button--primary,
html[data-theme="light"] .consultation-form__submit .button,
html[data-theme="light"] .acs-home-v2 .acs-home-v2__button,
html[data-theme="light"] .acs-contact__submit button,
html[data-theme="light"] #acs-home .acs-button,
html[data-theme="light"] .entry-content :is(button, .button, .wp-element-button, .button--primary, .nav-appointment, .map-btn, input[type="submit"]) {
  border-color: #303338 !important;
  background: var(--quantum-gradient) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(20, 22, 25, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="light"] .site-header .nav-appointment:hover,
html[data-theme="light"] .button--primary:hover,
html[data-theme="light"] .consultation-form__submit .button:hover,
html[data-theme="light"] .acs-home-v2 .acs-home-v2__button:hover,
html[data-theme="light"] .acs-contact__submit button:hover,
html[data-theme="light"] #acs-home .acs-button:hover {
  filter: brightness(1.12);
}

html[data-theme="light"] .acs-home-v2 .acs-home-v2__text-link,
html[data-theme="light"] .entry-content a,
html[data-theme="light"] .site-footer__inner a,
html[data-theme="light"] .acs-contact__consent a {
  color: #383b40 !important;
}

html[data-theme="light"] #acs-home .acs-hero {
  background: #fafafa !important;
  color: #25272a !important;
}

html[data-theme="light"] #acs-home .acs-hero__image {
  filter: brightness(0.97) saturate(0.82);
}

html[data-theme="light"] #acs-home .acs-hero__shade {
  background:
    linear-gradient(90deg, rgba(250, 250, 250, 0.98) 0%, rgba(250, 250, 250, 0.88) 42%, rgba(250, 250, 250, 0.24) 100%),
    linear-gradient(0deg, rgba(250, 250, 250, 0.34), transparent 48%) !important;
}

html[data-theme="light"] #acs-home .acs-hero h1,
html[data-theme="light"] #acs-home .acs-contact h2 {
  color: #25272a !important;
}

html[data-theme="light"] #acs-home .acs-hero h1 em,
html[data-theme="light"] #acs-home .acs-contact h2 em,
html[data-theme="light"] #acs-home .acs-hero__caption i {
  color: #484c52 !important;
}

html[data-theme="light"] #acs-home .acs-hero__lead,
html[data-theme="light"] #acs-home .acs-hero__note,
html[data-theme="light"] #acs-home .acs-hero__caption {
  color: #55595f !important;
}

html[data-theme="light"] #acs-home .acs-contact,
html[data-theme="light"] #acs-home .acs-team,
html[data-theme="light"] .archive-entry,
html[data-theme="light"] .service-detail,
html[data-theme="light"] .consultation-form,
html[data-theme="light"] .acs-contact__form,
html[data-theme="light"] .service-card,
html[data-theme="light"] .team-card,
html[data-theme="light"] .asv-card,
html[data-theme="light"] .acs-services__item,
html[data-theme="light"] .team-member,
html[data-theme="light"] .woocommerce ul.products li.product {
  border-color: #e5e5e5 !important;
  background: #f2f2f2 !important;
  color: #25272a !important;
  box-shadow: 0 12px 32px rgba(20, 22, 25, 0.045);
}

html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select,
html[data-theme="light"] .acs-contact input,
html[data-theme="light"] .acs-contact textarea,
html[data-theme="light"] .acs-contact select,
html[data-theme="light"] .consultation-form input,
html[data-theme="light"] .consultation-form textarea,
html[data-theme="light"] .consultation-form select {
  border-color: #dedede !important;
  background: #fafafa !important;
  color: #25272a !important;
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
  color: #777b80 !important;
}

html[data-theme="light"] .site-footer {
  border-color: #e5e5e5 !important;
  background: linear-gradient(145deg, #f3f3f3 0%, #eeeeee 100%) !important;
  color: #25272a !important;
}

html[data-theme="light"] .site-footer__inner,
html[data-theme="light"] .site-footer .footer-title {
  color: #55595f !important;
}

@media (max-width: 760px) {
  html[data-theme="light"] #acs-home .acs-hero__shade {
    background: linear-gradient(90deg, rgba(250, 250, 250, 0.94), rgba(250, 250, 250, 0.72)) !important;
  }
}

/* ACS Legal 1.5.2: page-level finish in the graphite and porcelain palette. */
:root {
  --acs-ink: #25272a;
  --acs-muted: #686b70;
  --acs-paper: #fafafa;
  --acs-card: #f2f2f2;
  --acs-rule: rgba(37, 39, 42, 0.12);
  --acs-soft-shadow: 0 18px 48px rgba(25, 27, 30, 0.07);
  --acs-card-radius: 22px;
}

/* Hakkımızda */
:is(#acs-about, .acs-about) {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  margin-left: -50vw;
  overflow-x: clip;
  padding-bottom: clamp(56px, 8vw, 104px);
  background: var(--acs-paper);
  color: var(--acs-ink);
}

:is(#acs-about, .acs-about) *,
:is(#acs-about, .acs-about) *::before,
:is(#acs-about, .acs-about) *::after {
  box-sizing: border-box;
}

:is(#acs-about, .acs-about) .acs-shell {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

:is(#acs-about, .acs-about) .acs-about-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: clamp(520px, 70svh, 720px);
  place-items: center;
  overflow: hidden;
  margin: 0;
  padding: clamp(154px, 18vw, 220px) 24px clamp(88px, 11vw, 136px);
  text-align: center;
}

:is(#acs-about, .acs-about) .acs-about-hero__image,
:is(#acs-about, .acs-about) .acs-about-hero__shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}

:is(#acs-about, .acs-about) .acs-about-hero__image {
  z-index: -2;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: grayscale(0.18) saturate(0.76);
}

:is(#acs-about, .acs-about) .acs-about-hero__shade {
  background: linear-gradient(180deg, rgba(250, 250, 250, 0.82), rgba(250, 250, 250, 0.93));
}

html[data-theme="dark"] :is(#acs-about, .acs-about) .acs-about-hero__shade {
  background: linear-gradient(180deg, rgba(23, 26, 30, 0.68), rgba(23, 26, 30, 0.92));
}

:is(#acs-about, .acs-about) .acs-about-hero__content {
  width: min(900px, 100%);
  margin-inline: auto;
}

:is(#acs-about, .acs-about) .acs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--accent, #383b40);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  line-height: 1.4;
}

:is(#acs-about, .acs-about) .acs-about-hero h1 {
  max-width: 16ch;
  margin: 0 auto;
  color: var(--acs-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7.2vw, 6.1rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.99;
  text-wrap: balance;
}

:is(#acs-about, .acs-about) .acs-about-hero h1 em,
:is(#acs-about, .acs-about) .acs-strategy__box h2 em {
  color: #55595f;
  font-weight: 400;
}

:is(#acs-about, .acs-about) .acs-about-hero__lead {
  max-width: 62ch;
  margin: 26px auto 0;
  color: var(--acs-muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.8;
}

:is(#acs-about, .acs-about) .acs-about-story {
  padding-block: clamp(72px, 9vw, 124px);
}

:is(#acs-about, .acs-about) .acs-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: clamp(36px, 7vw, 92px);
}

:is(#acs-about, .acs-about) .acs-about-text h2,
:is(#acs-about, .acs-about) .acs-strategy__box h2,
:is(#acs-about, .acs-about) .acs-section-heading h2,
:is(#acs-about, .acs-about) .acs-contact h2 {
  color: var(--acs-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.12;
  text-wrap: balance;
}

:is(#acs-about, .acs-about) .acs-about-text h2 {
  margin: 12px 0 22px;
}

:is(#acs-about, .acs-about) .acs-about-text p,
:is(#acs-about, .acs-about) .acs-strategy__lead {
  max-width: 72ch;
  margin: 0 0 16px;
  color: var(--acs-muted);
  font-size: 1rem;
  line-height: 1.85;
}

:is(#acs-about, .acs-about) .acs-about-card-box {
  display: grid;
  gap: 14px;
}

:is(#acs-about, .acs-about) .acs-about-highlight,
:is(#acs-about, .acs-about) .acs-expertise-item {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--acs-rule);
  border-radius: var(--acs-card-radius);
  background: var(--acs-card);
  box-shadow: 0 12px 30px rgba(25, 27, 30, 0.035);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

:is(#acs-about, .acs-about) .acs-about-highlight:hover,
:is(#acs-about, .acs-about) .acs-expertise-item:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 39, 42, 0.24);
  box-shadow: var(--acs-soft-shadow);
}

:is(#acs-about, .acs-about) .acs-about-highlight strong {
  color: var(--acs-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 400;
  line-height: 1.3;
}

:is(#acs-about, .acs-about) .acs-about-highlight span,
:is(#acs-about, .acs-about) .acs-expertise-item p {
  margin: 0;
  color: var(--acs-muted);
  font-size: 0.92rem;
  line-height: 1.72;
}

:is(#acs-about, .acs-about) .acs-strategy {
  padding-block: 0 clamp(72px, 9vw, 112px);
}

:is(#acs-about, .acs-about) .acs-strategy__box {
  padding: clamp(32px, 6vw, 72px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: var(--quantum-gradient, linear-gradient(135deg, #17191c, #41464d));
  box-shadow: 0 24px 64px rgba(20, 22, 25, 0.14);
}

:is(#acs-about, .acs-about) .acs-strategy__box .acs-eyebrow,
:is(#acs-about, .acs-about) .acs-strategy__box h2,
:is(#acs-about, .acs-about) .acs-strategy__box h2 em {
  color: #f7f7f7;
}

:is(#acs-about, .acs-about) .acs-strategy__lead {
  max-width: 78ch;
  margin: 0;
  color: rgba(247, 247, 247, 0.76);
}

:is(#acs-about, .acs-about) .acs-expertise {
  padding-block: 0 clamp(72px, 9vw, 112px);
}

:is(#acs-about, .acs-about) .acs-section-heading {
  margin: 0 0 28px;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--acs-rule);
}

:is(#acs-about, .acs-about) .acs-section-heading h2 {
  margin: 0;
}

:is(#acs-about, .acs-about) .acs-expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

:is(#acs-about, .acs-about) .acs-expertise-item > span {
  color: #62666c;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

:is(#acs-about, .acs-about) .acs-expertise-item h3 {
  margin: 0;
  color: var(--acs-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

:is(#acs-about, .acs-about) .acs-contact {
  width: min(1160px, calc(100% - 48px));
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid var(--acs-rule);
  border-radius: 28px;
  background: linear-gradient(135deg, #f2f2f2 0%, #e9e9e9 100%);
  color: var(--acs-ink);
  box-shadow: var(--acs-soft-shadow);
}

:is(#acs-about, .acs-about) .acs-contact__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

:is(#acs-about, .acs-about) .acs-contact h2 {
  max-width: 18ch;
  margin: 0;
}

:is(#acs-about, .acs-about) .acs-contact h2 em {
  color: #55595f;
  font-weight: 400;
}

:is(#acs-about, .acs-about) .acs-button {
  display: inline-flex;
  min-height: 52px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 22px;
  border: 1px solid #303338;
  border-radius: 999px;
  background: var(--quantum-gradient, linear-gradient(135deg, #17191c, #41464d));
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(20, 22, 25, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

:is(#acs-about, .acs-about) .acs-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 16px 30px rgba(20, 22, 25, 0.2);
}

html[data-theme="dark"] :is(#acs-about, .acs-about) {
  background: var(--page, #171a1e);
  color: var(--text, #f2f3f5);
}

html[data-theme="dark"] :is(#acs-about, .acs-about) .acs-about-hero h1,
html[data-theme="dark"] :is(#acs-about, .acs-about) .acs-about-text h2,
html[data-theme="dark"] :is(#acs-about, .acs-about) .acs-section-heading h2,
html[data-theme="dark"] :is(#acs-about, .acs-about) .acs-expertise-item h3,
html[data-theme="dark"] :is(#acs-about, .acs-about) .acs-contact h2 {
  color: #f2f3f5;
}

html[data-theme="dark"] :is(#acs-about, .acs-about) .acs-about-hero h1 em,
html[data-theme="dark"] :is(#acs-about, .acs-about) .acs-contact h2 em {
  color: #c4cad1;
}

html[data-theme="dark"] :is(#acs-about, .acs-about) .acs-about-highlight,
html[data-theme="dark"] :is(#acs-about, .acs-about) .acs-expertise-item,
html[data-theme="dark"] :is(#acs-about, .acs-about) .acs-contact {
  border-color: var(--line, rgba(214, 219, 225, 0.16));
  background: var(--surface, #202328);
  color: var(--text, #f2f3f5);
}

html[data-theme="dark"] :is(#acs-about, .acs-about) .acs-about-highlight strong,
html[data-theme="dark"] :is(#acs-about, .acs-about) .acs-expertise-item h3 {
  color: #f2f3f5;
}

/* Missing, owner-supplied team portraits */
.acs-missing-image {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 88px;
  place-items: center;
  padding: 10px;
  border: 1px dashed rgba(37, 39, 42, 0.28);
  border-radius: 14px;
  background: linear-gradient(145deg, #f5f5f5, #e9e9e9);
  color: #4c5055;
  text-align: center;
}

.acs-missing-image span {
  max-width: 30ch;
  font-size: 0.7rem;
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.acs-team__photo-wrapper .acs-missing-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 50%;
}

.acs-team__card-img-container .acs-missing-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 4px;
  border-radius: 50%;
}

.acs-team__card-img-container .acs-missing-image span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
}

.acs-team__card-img-container .acs-missing-image::after {
  content: "Eksik";
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

html[data-theme="dark"] .acs-missing-image {
  border-color: rgba(214, 219, 225, 0.28);
  background: linear-gradient(145deg, #292d33, #202328);
  color: #d6dbe1;
}

/* Yasal Bilgilendirmeler */
.acs-legal {
  width: min(1080px, calc(100% - 48px));
  margin: clamp(112px, 14vw, 168px) auto clamp(72px, 9vw, 120px);
  color: var(--text);
}

.acs-legal__intro {
  max-width: 820px;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.acs-legal__eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.15em;
}

.acs-legal__intro :is(h1, h2) {
  margin: 0 0 18px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 6vw, 5.25rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1;
}

.acs-legal__intro :is(h1, h2) em {
  color: var(--muted);
  font-weight: 400;
}

.acs-legal__intro > p:last-child {
  max-width: 66ch;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.acs-legal__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.acs-legal__nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text) !important;
  font-size: 0.84rem;
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.acs-legal__nav a:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 39, 42, 0.32);
  background: var(--surface-tint, #eeeeee);
}

.acs-legal__content {
  display: grid;
  gap: 14px;
}

.acs-legal__section {
  min-width: 0;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--acs-card-radius);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(20, 22, 25, 0.04);
  scroll-margin-top: 112px;
}

.acs-legal__number {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.13em;
}

.acs-legal__section h3 {
  margin: 0 0 20px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.acs-legal__placeholder {
  margin: 0;
  padding: 18px 20px;
  border: 1px dashed rgba(37, 39, 42, 0.28);
  border-radius: 14px;
  background: rgba(37, 39, 42, 0.035);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.7;
}

.acs-legal__closing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.acs-legal__closing p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.acs-legal__closing a {
  color: var(--text) !important;
  font-weight: 700;
  text-underline-offset: 4px;
}

/* Keep page grids and images inside the viewport at every breakpoint. */
.site-main .entry-content > :is(.acs-team, .acs-contact, .acs-services),
.site-main .entry-content > .acs-legal {
  min-width: 0;
}

.site-main .entry-content :is(.acs-team__grid, .acs-team__roster, .acs-team__roster-container, .asv-grid, .asv-areas) {
  min-width: 0;
}

.site-main .entry-content :is(.acs-team__card, .asv-card) {
  min-width: 0;
  overflow-wrap: anywhere;
}

.site-main .entry-content img {
  max-width: 100%;
}

html[data-theme="dark"] .acs-legal__section {
  border-color: var(--line);
  background: var(--surface);
}

html[data-theme="dark"] .acs-legal__placeholder,
html[data-theme="dark"] .acs-legal__nav a {
  border-color: var(--line);
  background: rgba(214, 219, 225, 0.045);
  color: var(--text) !important;
}

@media (max-width: 900px) {
  :is(#acs-about, .acs-about) .acs-about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  :is(#acs-about, .acs-about) .acs-contact__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .acs-team__roster,
  .acs-team__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  :is(#acs-about, .acs-about) .acs-shell,
  :is(#acs-about, .acs-about) .acs-contact,
  .acs-legal {
    width: calc(100% - 36px);
  }

  :is(#acs-about, .acs-about) .acs-about-hero {
    min-height: 540px;
    padding-inline: 18px;
  }

  :is(#acs-about, .acs-about) .acs-expertise-grid,
  .acs-team__roster,
  .acs-team__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  :is(#acs-about, .acs-about) .acs-contact {
    border-radius: 22px;
  }

  .acs-team__photo-wrapper .acs-missing-image {
    min-height: 220px;
  }

  .acs-legal__section {
    padding: 22px 20px;
  }

  .acs-legal__closing {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(#acs-about, .acs-about) *,
  .acs-legal__nav a,
  .acs-about-highlight,
  .acs-expertise-item {
    transition-duration: 0.01ms !important;
  }
}

/* Keep primary calls to action readable over the graphite quantum gradients. */
.site-header .nav-appointment,
.button--primary,
.consultation-form__submit .button,
.acs-home-v2 .acs-home-v2__button,
.acs-contact__submit button,
#acs-home .acs-button {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

html[data-theme="dark"] .site-header .nav-appointment,
html[data-theme="dark"] .button--primary,
html[data-theme="dark"] .consultation-form__submit .button,
html[data-theme="dark"] .acs-home-v2 .acs-home-v2__button,
html[data-theme="dark"] .acs-contact__submit button,
html[data-theme="dark"] #acs-home .acs-button {
  border-color: #6a717b !important;
  background: linear-gradient(135deg, #171a1e 0%, #2c3037 55%, #515862 100%) !important;
  color: #f2f3f5 !important;
  -webkit-text-fill-color: #f2f3f5 !important;
  text-shadow: none !important;
}

/* Replace visible image warnings with neutral monograms until real portraits arrive. */
.acs-team {
  --team-text: var(--text, #25272a);
  --team-muted: var(--muted, #686b70);
  --team-accent: var(--accent, #383b40);
  --team-line: var(--line, rgba(37, 39, 42, 0.12));
  --team-surface: var(--surface, #f2f2f2);
}

.acs-team__avatar-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--team-line);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--surface-soft, #f5f5f5), var(--surface-tint, #e8e8e8));
  color: var(--team-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 4vw, 2.7rem);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.acs-team__card-img-container .acs-team__avatar-fallback {
  font-size: 0.95rem;
}

html[data-theme="dark"] .acs-team__avatar-fallback {
  border-color: var(--line);
  background: linear-gradient(145deg, #292d33, #202328);
  color: var(--text);
}

/* Keep WooCommerce sale badges inside their product cards. */
.woocommerce ul.products li.product .onsale,
.woocommerce-page ul.products li.product .onsale {
  inset-block-start: 10px !important;
  inset-inline-end: 10px !important;
  inset-inline-start: auto !important;
  margin: 0 !important;
}

.woocommerce div.product span.onsale {
  inset-block-start: 10px !important;
  inset-inline-start: 10px !important;
  margin: 0 !important;
}

.acs-contact__honeypot {
  position: absolute !important;
  inset-inline-start: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.acs-contact__submit [data-acs-form-status]:empty {
  display: none;
}

/* Admin-managed footer navigation and team directory. */
.site-footer__menu {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__menu li {
  margin: 0;
  padding: 0;
}

.acs-team-directory {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.acs-team-directory__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.acs-team-directory__card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(23, 26, 30, 0.06);
}

.acs-team-directory__card .acs-team__card-img-container {
  width: 100%;
  min-height: 220px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-tint);
}

.acs-team-directory__card .acs-team__card-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.acs-team-directory__card .acs-team__avatar-fallback {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border-radius: 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.acs-team-directory__card .acs-team__card-content {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  padding: 18px;
}

.acs-team-directory__card .acs-team__number {
  grid-column: 1;
  grid-row: 1 / span 3;
  padding-top: 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.acs-team-directory__card h3 {
  grid-column: 2;
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
}

.acs-team-directory__card .acs-team__role-text,
.acs-team-directory__summary,
.acs-team-directory__bio {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.acs-team-directory__bio > :first-child {
  margin-top: 0;
}

.acs-team-directory__bio > :last-child {
  margin-bottom: 0;
}

.acs-contact-map {
  width: min(1160px, calc(100% - 48px));
  margin: 28px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(23, 26, 30, 0.07);
}

.acs-contact-map iframe {
  display: block;
  width: 100%;
  min-height: 340px;
  border: 0;
  filter: grayscale(0.75);
}

/* Contact Form 7 uses the theme's shared neutral light/dark design tokens. */
.acs-contact .wpcf7 {
  width: 100%;
  min-width: 0;
}

.acs-contact .wpcf7 form.acs-contact__form {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  width: 100%;
  margin: 24px 0 0;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 18px 48px rgba(20, 22, 25, 0.08);
}

.acs-contact .acs-contact__group {
  display: grid;
  min-width: 0;
  gap: 18px;
  margin: 0;
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  background: color-mix(in srgb, var(--page) 62%, var(--surface));
}

.acs-contact .acs-contact__group legend {
  padding: 0 8px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.acs-contact .acs-contact__group legend span {
  color: var(--muted);
}

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

.acs-contact .acs-contact__field {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 8px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.acs-contact .acs-contact__field > span:first-child {
  display: block;
}

.acs-contact .acs-contact__field .wpcf7-form-control-wrap {
  display: block;
  min-width: 0;
}

.acs-contact .acs-contact__field :is(input:not([type="file"]):not([type="checkbox"]), select, textarea) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--page);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.acs-contact .acs-contact__field select {
  color-scheme: inherit;
}

.acs-contact .acs-contact__field textarea {
  min-height: 164px;
  resize: vertical;
}

.acs-contact .acs-contact__field :is(input, select, textarea):focus-visible {
  border-color: var(--accent);
  outline: 0;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}

.acs-contact .acs-contact__field--wide {
  grid-column: 1 / -1;
}

.acs-contact .acs-contact__file input[type="file"] {
  display: block;
  max-width: 100%;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--page);
  color: var(--muted);
  font: inherit;
}

.acs-contact .acs-contact__file small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.5;
}

.acs-contact .acs-contact__consent,
.acs-contact .acs-contact__consent .wpcf7-form-control-wrap,
.acs-contact .acs-contact__consent .wpcf7-acceptance,
.acs-contact .acs-contact__consent .wpcf7-list-item {
  display: block;
  margin: 0;
}

.acs-contact .acs-contact__consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.6;
}

.acs-contact .acs-contact__consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.acs-contact .acs-contact__submit {
  display: flex;
  align-items: center;
  gap: 14px;
}

.acs-contact .acs-contact__submit-button,
.acs-contact .wpcf7-submit {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid rgba(238, 241, 245, 0.3);
  border-radius: 999px;
  background: var(--quantum-gradient);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.acs-contact .wpcf7-submit:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.acs-contact .wpcf7-submit:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 38%, transparent);
  outline-offset: 3px;
}

.acs-contact .wpcf7-submit:disabled {
  cursor: wait;
  opacity: 0.62;
}

.acs-contact .wpcf7 form .wpcf7-response-output {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  background: color-mix(in srgb, var(--page) 72%, var(--surface));
  color: var(--text);
  line-height: 1.55;
}

.acs-contact .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
}

.acs-contact .wpcf7 .wpcf7-spinner {
  margin: 0 0 0 8px;
  background-color: var(--accent);
}

.acs-contact__unavailable {
  margin: 24px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  line-height: 1.6;
}

.acs-contact__unavailable a {
  color: var(--accent);
  font-weight: 700;
  text-underline-offset: 3px;
}

.acs-contact__map {
  width: min(1160px, calc(100% - 48px));
  margin: 32px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 16px 42px rgba(20, 22, 25, 0.08);
}

.acs-contact__map iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 0;
  filter: grayscale(0.72);
}

html[data-theme="dark"] .acs-contact .wpcf7 form.acs-contact__form {
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.24);
}

@media (max-width: 640px) {
  .acs-contact .wpcf7 form.acs-contact__form {
    padding: 16px;
    border-radius: 18px;
  }

  .acs-contact .acs-contact__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .acs-contact .acs-contact__field--wide {
    grid-column: auto;
  }

  .acs-contact .acs-contact__submit,
  .acs-contact .wpcf7-submit {
    width: 100%;
  }

  .acs-contact__map {
    width: min(100% - 32px, 1160px);
  }

  .acs-contact__map iframe {
    min-height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .acs-contact .acs-contact__field :is(input, select, textarea),
  .acs-contact .wpcf7-submit {
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  .acs-team-directory__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .acs-team-directory {
    width: min(100% - 32px, 1160px);
  }

  .acs-team-directory__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .acs-contact-map {
    width: min(100% - 32px, 1160px);
  }

  .acs-contact-map iframe {
    min-height: 280px;
  }
}
