/* AP Yönetim Sistemleri Danışmanlık – site styles (replaces the old template style.css) */
:root {
  --ap-dark: #430A1A;
  --ap-darker: #2a0711;
  --ap-accent: #760D59;
  --ap-pink: #B04A8E;
  --ap-navy: #0A236C;
  --ap-text: #4b2142;
  --ap-muted: #6f5868;
  --ap-line: #ecdfe7;
  --ap-soft: #faf5f8;
  --header-h: 76px;
}

html { scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ap-text);
  font-size: 16px;
  line-height: 1.7;
  background: #fff;
}
a { color: var(--ap-accent); text-decoration: none; }
a:hover { color: var(--ap-dark); }
h1, h2, h3, h4 { font-family: "Raleway", "Open Sans", sans-serif; font-weight: 700; color: var(--ap-navy); line-height: 1.25; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--ap-pink); outline-offset: 2px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; background: #fff; color: var(--ap-dark); padding: 8px 14px; border-radius: 6px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 997;
  background: var(--ap-dark);
  transition: box-shadow .3s;
}
.site-header.header-scrolled { box-shadow: 0 6px 24px rgba(30, 4, 12, .35); }
.header-inner {
  max-width: 1320px; height: var(--header-h);
  display: flex; align-items: center; gap: 14px;
}
.brand { flex: 0 0 auto; display: block; line-height: 0; }
.brand img { height: 46px; width: auto; }

.navbar { padding: 0; margin-left: auto; }
.navbar > ul { margin: 0; padding: 0; display: flex; list-style: none; align-items: center; gap: 2px; }
.navbar li { position: relative; }
.navbar a {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 10px; border-radius: 6px;
  font-family: "Raleway", sans-serif; font-size: 14px; font-weight: 700;
  color: #fff; white-space: nowrap; transition: background .2s, color .2s;
}
.navbar a i { font-size: 11px; transition: transform .2s; }
.navbar > ul > li > a:hover,
.navbar > ul > li > a.active,
.navbar > ul > li:hover > a { background: rgba(255, 255, 255, .14); color: #fff; }
.navbar > ul > li > a.active { box-shadow: inset 0 -2px 0 var(--ap-pink); }

.navbar .dropdown ul {
  position: absolute; left: 0; top: calc(100% + 18px);
  min-width: 260px; margin: 0; padding: 8px; list-style: none;
  background: #fff; border-radius: 10px;
  box-shadow: 0 14px 40px rgba(43, 7, 17, .22);
  opacity: 0; visibility: hidden; transition: .2s;
  z-index: 99;
}
.navbar .dropdown:hover > ul,
.navbar .dropdown:focus-within > ul { opacity: 1; visibility: visible; top: calc(100% + 6px); }
.navbar .dropdown ul a { color: var(--ap-text); font-family: "Open Sans", sans-serif; font-weight: 600; font-size: 14px; padding: 8px 12px; white-space: normal; }
.navbar .dropdown ul a:hover { background: var(--ap-soft); color: var(--ap-accent); }
.navbar .dropdown ul li:first-child a { color: var(--ap-accent); }

/* ---------------------------------------------------------------- Language switch */
.lang-switch {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .06);
}
.lang-switch > i { color: rgba(255, 255, 255, .7); font-size: 14px; margin: 0 4px 0 7px; line-height: 1; }
.lang-switch a {
  min-width: 38px; padding: 4px 10px; border-radius: 999px; text-align: center;
  font-family: "Raleway", sans-serif; font-size: 12.5px; font-weight: 700; letter-spacing: .06em;
  color: rgba(255, 255, 255, .82); transition: background .2s, color .2s;
}
.lang-switch a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.lang-switch a.active { background: #fff; color: var(--ap-dark); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.lang-switch--footer { margin-top: 4px; }

/* ---------------------------------------------------------------- Mobile navigation */
.mobile-nav-toggle {
  display: none; position: relative; z-index: 1001;
  width: 42px; height: 42px; padding: 0; border: 0; border-radius: 8px;
  background: transparent; color: #fff; font-size: 28px; line-height: 1;
}
.mobile-nav-toggle:hover { background: rgba(255, 255, 255, .12); }

@media (max-width: 1199.98px) {
  .mobile-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .lang-switch { margin-left: auto; position: relative; z-index: 1001; }
  .navbar { margin-left: 0; }
  .navbar > ul { display: none; }
  .navbar-mobile {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(30, 4, 12, .88);
  }
  .navbar-mobile > ul {
    display: block; position: absolute;
    top: calc(var(--header-h) + 4px); left: 12px; right: 12px;
    max-height: calc(100dvh - var(--header-h) - 20px); overflow-y: auto;
    padding: 8px; background: #fff; border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  }
  .navbar-mobile a, .navbar-mobile a:focus { color: var(--ap-text); font-size: 16px; padding: 12px 14px; justify-content: space-between; }
  .navbar-mobile > ul > li > a:hover, .navbar-mobile > ul > li > a.active { background: var(--ap-soft); color: var(--ap-accent); box-shadow: none; }
  .navbar-mobile > ul > li + li { border-top: 1px solid var(--ap-line); }
  .navbar-mobile .dropdown ul {
    position: static; display: none; opacity: 1; visibility: visible;
    margin: 0 0 8px; padding: 4px 0 4px 12px; box-shadow: none; border-left: 2px solid var(--ap-line); border-radius: 0; min-width: 0;
  }
  .navbar-mobile .dropdown ul a { font-size: 15px; padding: 9px 12px; }
  .navbar-mobile .dropdown > .dropdown-active { display: block; }
  .navbar-mobile .dropdown.open > a i { transform: rotate(180deg); }
  body.mobile-nav-open { overflow: hidden; }
}
@media (max-width: 575.98px) {
  :root { --header-h: 64px; }
  .brand img { height: 38px; }
  .header-inner { gap: 8px; }
}
@media (max-width: 389.98px) {
  .brand img { height: 32px; }
  .lang-switch > i { display: none; }
  .lang-switch a { min-width: 34px; padding: 4px 8px; }
}

/* ---------------------------------------------------------------- Sections & typography */
section { padding: 48px 0; }
.page-head { padding: 28px 0 0; }
.page-head h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); margin: 6px 0 0; }
.content { padding: 28px 0 56px; }
.section-alt { background: var(--ap-soft); }
.section-h { font-size: 1.6rem; margin-bottom: 20px; }

.breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; font-size: 13.5px; color: var(--ap-muted); }
.breadcrumbs li + li::before { content: "/"; padding: 0 8px; color: #c7b3c0; }
.breadcrumbs a { color: var(--ap-muted); }
.breadcrumbs a:hover { color: var(--ap-accent); }

.prose h2 { font-size: 1.3rem; margin: 1.7em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.08rem; color: var(--ap-accent); margin: 1.4em 0 .4em; }
.prose p { margin-bottom: 1em; }
.lead-text { font-size: 1.08rem; color: var(--ap-text); }

.check-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.check-list li { position: relative; padding-left: 26px; margin-bottom: .45em; }
.check-list > li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 8px; height: 8px; background: var(--ap-pink); transform: rotate(45deg); border-radius: 1px;
}
.check-list ul { list-style: none; padding: 4px 0 0 4px; margin: 0; }
.check-list ul li { padding-left: 18px; margin-bottom: .3em; }
.check-list ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border: 2px solid var(--ap-pink); border-radius: 50%; }

.text-link { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.rounded-img { border-radius: 12px; display: block; width: 100%; height: auto; }
.side-figure { margin: 0 0 16px; }

/* ---------------------------------------------------------------- Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn-ap {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; border: 2px solid var(--ap-accent);
  background: var(--ap-accent); color: #fff; font-family: "Raleway", sans-serif; font-weight: 700; font-size: 15px;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-ap:hover { background: var(--ap-dark); border-color: var(--ap-dark); color: #fff; }
.btn-ap--outline { background: transparent; color: var(--ap-accent); }
.btn-ap--outline:hover { background: var(--ap-accent); color: #fff; border-color: var(--ap-accent); }
.btn-sm-ap { padding: 7px 16px; font-size: 14px; }

/* ---------------------------------------------------------------- Home */
.home-hero { padding: 44px 0 40px; }
.home-hero h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); margin-bottom: 18px; }

/* ---------------------------------------------------------------- Cards */
.card-link {
  display: flex; flex-direction: column; height: 100%;
  padding: 20px 22px; background: #fff; border: 1px solid var(--ap-line); border-radius: 12px;
  color: var(--ap-text); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card-link h2, .card-link h3 { font-size: 1.06rem; margin: 0 0 8px; }
.card-link p { font-size: 14.5px; color: var(--ap-muted); margin: 0 0 12px; line-height: 1.6; }
.card-link .more { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--ap-accent); }
.card-link:hover { border-color: var(--ap-pink); box-shadow: 0 10px 28px rgba(118, 13, 89, .12); transform: translateY(-2px); color: var(--ap-text); }

.side-box { border: 1px solid var(--ap-line); border-radius: 12px; padding: 20px 22px; margin-bottom: 18px; }
.side-box h2 { font-size: 1.05rem; margin: 0 0 10px; }
.side-box--accent { background: var(--ap-soft); border-left: 4px solid var(--ap-accent); }
.side-box p { font-size: 15px; margin-bottom: 8px; }
.side-contact a { font-weight: 600; }
.side-list { list-style: none; padding: 0; margin: 0; font-size: 14.5px; }
.side-list li { padding: 7px 0; border-top: 1px solid var(--ap-line); line-height: 1.45; }
.side-list li:first-child { border-top: 0; }

.profile-card { text-align: center; border: 1px solid var(--ap-line); border-radius: 14px; padding: 18px; background: var(--ap-soft); }
.profile-img { border-radius: 10px; width: 100%; max-width: 320px; margin: 0 auto 14px; display: block; }
.profile-name { font-family: "Raleway", sans-serif; font-weight: 700; color: var(--ap-navy); font-size: 1.15rem; margin: 0; }
.profile-role { color: var(--ap-muted); margin: 0 0 12px; }

/* ---------------------------------------------------------------- CTA band */
.cta-band { background: linear-gradient(120deg, var(--ap-dark), var(--ap-accent)); color: #fff; padding: 40px 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.cta-band h2 { color: #fff; font-size: 1.4rem; margin: 0 0 6px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .88); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-ap { background: #fff; border-color: #fff; color: var(--ap-dark); }
.cta-band .btn-ap:hover { background: transparent; color: #fff; }
.cta-band .btn-ap--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.cta-band .btn-ap--ghost:hover { background: #fff; color: var(--ap-dark); border-color: #fff; }

/* ---------------------------------------------------------------- References (logo grid) */
.logo-grid { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.logo-grid a, .logo-grid span {
  display: flex; align-items: center; justify-content: center;
  height: 112px; padding: 14px; background: #fff; border: 1px solid var(--ap-line); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.logo-grid img { max-height: 78px; max-width: 100%; width: auto; object-fit: contain; }
.logo-grid a:hover { border-color: var(--ap-pink); box-shadow: 0 8px 22px rgba(118, 13, 89, .1); }

/* ---------------------------------------------------------------- Gallery (image + caption only) */
.gallery-note { font-size: 14px; color: var(--ap-muted); margin-bottom: 18px; }
.gallery-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.gallery-item {
  margin: 0; background: #fff; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--ap-line); box-shadow: 0 4px 16px rgba(67, 10, 26, .06);
  display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s;
}
.gallery-item:hover { box-shadow: 0 14px 34px rgba(67, 10, 26, .16); transform: translateY(-3px); }
.gallery-item > a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ap-soft); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption {
  position: relative; padding: 13px 16px 14px 30px;
  font-size: 14.5px; line-height: 1.5; color: var(--ap-text);
}
.gallery-item figcaption::before {
  content: ""; position: absolute; left: 16px; top: 15px; bottom: 15px; width: 3px; border-radius: 2px; background: var(--ap-pink);
}
.gallery-grid--single { grid-template-columns: 1fr; max-width: 900px; }
.gallery-grid--single .gallery-item > a { aspect-ratio: auto; }
.gallery-grid--single .gallery-item img { height: auto; }
@media (max-width: 991.98px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 575.98px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Products / contact */
.product-card { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 36px; padding: 24px; border: 1px solid var(--ap-line); border-radius: 14px; max-width: 720px; }
.product-logo { width: 200px; height: auto; border-radius: 10px; }
.product-card h3 { font-size: 1.4rem; margin-bottom: 14px; }
.contact-card {
  display: block; height: 100%; text-align: center; padding: 26px 18px;
  border: 1px solid var(--ap-line); border-radius: 14px; color: var(--ap-text); transition: .2s;
}
.contact-card i { display: inline-flex; width: 58px; height: 58px; align-items: center; justify-content: center; font-size: 24px; border-radius: 50%; background: var(--ap-soft); color: var(--ap-accent); margin-bottom: 10px; }
.contact-card h2 { font-size: 1.05rem; margin: 0 0 4px; }
.contact-card p { margin: 0; font-weight: 600; color: var(--ap-accent); word-break: break-word; }
.contact-card:hover { border-color: var(--ap-pink); box-shadow: 0 10px 28px rgba(118, 13, 89, .12); color: var(--ap-text); }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: var(--ap-darker); color: rgba(255, 255, 255, .85); padding: 44px 0 26px; font-size: 15px; }
.footer-h { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #f0b8dc; }
.footer-contact { line-height: 2; margin: 0 0 12px; }
.footer-contact i { margin-right: 8px; color: #e7a9d0; }
.footer-links { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 20px; }
.footer-links li { padding: 4px 0; break-inside: avoid; }
.social-links a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .1); font-size: 17px; }
.social-links a:hover { background: var(--ap-accent); color: #fff; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 28px; padding-top: 18px; font-size: 13.5px; text-align: center; color: rgba(255, 255, 255, .65); }

.back-to-top {
  position: fixed; right: 20px; bottom: 84px; z-index: 996;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ap-accent); color: #fff; font-size: 26px;
  opacity: 0; visibility: hidden; transition: .3s;
}
.back-to-top.active { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--ap-dark); color: #fff; }

/* ---------------------------------------------------------------- WhatsApp */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 996;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff; font-size: 28px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25); transition: transform .2s, background .2s;
}
.wa-float:hover { background: #1ebe5b; color: #fff; transform: scale(1.06); }
.contact-card--wa i { background: #e7f9ee; color: #1a9e4b; }
body.mobile-nav-open .wa-float, body.mobile-nav-open .back-to-top { display: none; }

@media (max-width: 767.98px) {
  body { font-size: 15.5px; }
  section { padding: 36px 0; }
  .content { padding: 22px 0 40px; }
  .home-hero { padding: 26px 0 28px; }
  .cta-band { padding: 32px 0; }
  .cta-actions, .cta-actions .btn-ap { width: 100%; justify-content: center; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .logo-grid a, .logo-grid span { height: 92px; padding: 10px; }
  .logo-grid img { max-height: 62px; }
  .product-card { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ---------------------------------------------------------------- Cookie consent */
.cookie-banner {
  position: fixed; left: 16px; bottom: 16px; z-index: 1500;
  width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto;
  padding: 20px 22px; background: #fff; border-radius: 14px; border-top: 4px solid var(--ap-accent);
  box-shadow: 0 18px 50px rgba(43, 7, 17, .28); font-size: 14.5px; line-height: 1.6;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { font-size: 1.05rem; margin: 0 0 6px; }
.cookie-banner p { margin: 0 0 14px; color: var(--ap-text); }
.cookie-banner p a { font-weight: 600; text-decoration: underline; }
.cookie-prefs { margin: 0 0 14px; border-top: 1px solid var(--ap-line); }
.cookie-opt { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--ap-line); cursor: pointer; }
.cookie-opt input { width: 18px; height: 18px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--ap-accent); }
.cookie-opt strong { display: block; color: var(--ap-navy); }
.cookie-opt span { color: var(--ap-muted); font-size: 14px; }
.cookie-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cookie-btn {
  padding: 9px 10px; border-radius: 999px; border: 2px solid var(--ap-accent);
  background: var(--ap-accent); color: #fff; font-family: "Raleway", sans-serif; font-weight: 700; font-size: 14px;
  transition: background .2s, border-color .2s;
}
.cookie-btn:hover { background: var(--ap-dark); border-color: var(--ap-dark); }
.cookie-btn[hidden] { display: none; }
body.cookie-open .wa-float, body.cookie-open .back-to-top { display: none; }
@media (max-width: 575.98px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; width: auto; padding: 16px; }
  .cookie-actions { gap: 6px; }
  .cookie-btn { padding: 9px 4px; font-size: 13.5px; }
}

.link-btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.prose .link-btn { color: var(--ap-accent); font-weight: 600; }
.legal-links { display: inline-flex; flex-wrap: wrap; gap: 4px 16px; margin-left: 14px; }
.legal-links a, .legal-links .link-btn { color: rgba(255, 255, 255, .8); text-decoration: underline; }
.legal-links a:hover, .legal-links .link-btn:hover { color: #fff; }
@media (max-width: 767.98px) { .legal-links { display: flex; justify-content: center; margin: 8px 0 0; } }

.muted-note { color: var(--ap-muted); font-size: 14px; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--ap-line); border-radius: 10px; }
.cookie-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 620px; }
.cookie-table th, .cookie-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ap-line); }
.cookie-table th { background: var(--ap-soft); color: var(--ap-navy); font-family: "Raleway", sans-serif; }
.cookie-table tr:last-child td { border-bottom: 0; }
.cookie-table code { color: var(--ap-accent); font-size: 13.5px; }
@media (max-width: 575.98px) {
  .table-wrap { border: 0; overflow: visible; }
  .cookie-table { min-width: 0; }
  .cookie-table thead { display: none; }
  .cookie-table, .cookie-table tbody, .cookie-table tr, .cookie-table td { display: block; width: 100%; }
  .cookie-table tr { border: 1px solid var(--ap-line); border-radius: 10px; margin-bottom: 12px; padding: 6px 0; }
  .cookie-table td { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 6px 12px; border: 0; }
  .cookie-table td::before { content: attr(data-label); font-family: "Raleway", sans-serif; font-weight: 700; color: var(--ap-navy); }
}
.privacy-note { margin: 22px 0 0; font-size: 14px; color: var(--ap-muted); }
.privacy-note i { color: var(--ap-accent); margin-right: 4px; }
.privacy-note a { font-weight: 600; }
.legal-links a + a, .legal-links a + .link-btn { margin: 0; }
@media (max-width: 767.98px) { .site-footer { padding-bottom: 96px; } }
