/* PLAMAX Dijital Kartvizit */
:root {
  --navy: #13243f;
  --navy-2: #1c3256;
  --blue: #1a66b0;
  --blue-600: #155794;
  --blue-50: #e8f0fa;
  --blue-100: #dbe7f6;
  --bg: #f3f6fa;
  --surface: #ffffff;
  --line: #e3e8ef;
  --text: #13243f;
  --muted: #5b6b80;
  --wa: #1f7a45;
  --wa-bg: #e2f5e8;
  --danger: #b42318;
  --ok: #1f7a45;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(19, 36, 63, .04), 0 6px 20px rgba(19, 36, 63, .06);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --card-w: 480px;
  --page-w: 1120px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, video, iframe { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #7fb0e6; outline-offset: 2px; }

.ic { width: 22px; height: 22px; flex: none; }
.ic--sm { width: 18px; height: 18px; }

/* ---------- Kart (ana sayfa) ---------- */
.card { position: relative; max-width: var(--card-w); margin: 0 auto; background: var(--bg); min-height: 100vh; }
@media (min-width: 560px) {
  body.is-home { padding: 32px 0; }
  .card { min-height: 0; border-radius: 28px; overflow: hidden; box-shadow: 0 10px 40px rgba(19, 36, 63, .12); }
}
.card__body { padding: 16px var(--gutter) 24px; display: grid; gap: 16px; }

.hero { background: linear-gradient(180deg, #1a2c4b 0%, var(--navy) 100%); color: #fff; padding: 16px var(--gutter) 22px; padding-top: max(16px, env(safe-area-inset-top)); }
.hero__bar { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: 12px; }
.hero__wordmark { font-weight: 800; font-size: 26px; letter-spacing: .02em; }
.hero__logo { max-height: 34px; width: auto; }
.hero__cover { margin: 0 0 18px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 7; background: var(--navy-2); }
.hero__cover img { width: 100%; height: 100%; object-fit: cover; }

.profile { display: flex; align-items: center; gap: 16px; }
.profile__avatar { width: 96px; height: 96px; flex: none; border-radius: 50%; background: #fff; color: #5b6b80; display: grid; place-items: center; overflow: hidden; border: 3px solid rgba(255, 255, 255, .9); }
.profile__avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile__avatar .ic { width: 44px; height: 44px; }
.profile__avatar--sm { width: 56px; height: 56px; border-color: var(--line); }
.profile__avatar--sm .ic { width: 26px; height: 26px; }
.profile__name { font-size: 26px; font-weight: 750; }
.profile__title { margin-top: 4px; color: #d5deea; font-size: 15px; }
.profile__company { margin-top: 2px; color: #8fb8e8; font-weight: 600; font-size: 14px; letter-spacing: .02em; }

.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: var(--text); }
.icon-btn:hover { background: var(--blue-50); }
.icon-btn--light { color: #fff; }
.icon-btn--light:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Panel / iletişim ---------- */
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.contact { padding: 4px 16px; }
.contact__row { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); }
.contact__row:last-child { border-bottom: 0; }
.contact__main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 14px 0; color: inherit; min-height: 64px; }
.contact__icon { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.contact__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.contact__label { font-size: 13px; color: var(--muted); }
.contact__value { font-size: 16px; overflow-wrap: anywhere; }
.contact__value--strong { font-weight: 650; font-size: 18px; }
.contact__action { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); border-radius: 12px; }
button.contact__action:hover { background: var(--blue-50); color: var(--blue); }

/* ---------- Butonlar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 18px; border-radius: var(--radius-sm); border: 0; font-weight: 650; font-size: 16px; text-align: center; transition: background-color .15s, transform .05s; }
.btn:active { transform: scale(.99); }
.btn--block { width: 100%; }
.btn--lg { min-height: 60px; font-size: 19px; border-radius: 18px; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-600); }
.btn--soft { background: var(--blue-50); color: var(--blue-600); }
.btn--soft:hover { background: var(--blue-100); }
.btn--wa { background: var(--wa-bg); color: var(--wa); }
.btn--danger { background: #fdecea; color: var(--danger); }
.btn--sm { min-height: 40px; padding: 6px 12px; font-size: 14px; border-radius: 10px; gap: 6px; }

.actions { display: grid; gap: 12px; }
.actions__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; padding: 10px 6px; border-radius: 18px; background: var(--blue-50); color: var(--blue-600); font-weight: 600; font-size: 14px; text-align: center; line-height: 1.25; }
.tile:hover { background: var(--blue-100); }
.tile .ic { width: 26px; height: 26px; }
.tile--wa { background: var(--wa-bg); color: var(--wa); }
.tile--wa:hover { background: #d3efdc; }

/* ---------- Bölümler ---------- */
.section { display: grid; gap: 14px; margin-top: 8px; }
.section__head h2 { font-size: 24px; font-weight: 750; }
.section__head p { color: var(--muted); margin-top: 4px; }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; min-height: 44px; }

.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 10px 14px; color: inherit; }
.cat-card__media { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; margin-bottom: 10px; }
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; }
.cat-card__name { font-weight: 650; font-size: 17px; padding: 0 4px; }
.cat-card__meta { color: var(--muted); font-size: 14px; padding: 0 4px; }

.link-row { display: flex; align-items: center; gap: 14px; padding: 16px; color: inherit; min-height: 72px; }
.link-row__icon { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.link-row__text { flex: 1; display: flex; flex-direction: column; }
.link-row__text strong { font-size: 18px; }
.link-row__text span { color: var(--muted); font-size: 14px; }
.link-row__chev { color: var(--muted); }

.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.thumb { position: relative; display: block; padding: 0; border: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--blue-100); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.thumb:hover img { transform: scale(1.03); }
.thumb__ph { display: grid; place-items: center; height: 100%; color: var(--blue); }
.thumb__play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: linear-gradient(0deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .05)); }
.thumb__play .ic { width: 34px; height: 34px; fill: #fff; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .4)); }
.thumb__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; color: #fff; font-size: 13px; font-weight: 600; text-align: left; background: linear-gradient(0deg, rgba(10, 20, 36, .75), transparent); }
.thumb.is-hidden { display: none; }

.map { padding: 12px; display: grid; gap: 12px; }
.map__frame { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--blue-50); }
.map__frame iframe { width: 100%; height: 100%; border: 0; }
.map__load { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 0; background: transparent; color: var(--blue-600); font-weight: 600; }
.map__address { padding: 0 4px; }
.map__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.map__actions .btn { padding: 8px 6px; font-size: 14px; gap: 6px; flex-direction: column; min-height: 64px; }

.scroll-hint { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; color: var(--text); box-shadow: 0 6px 20px rgba(19, 36, 63, .2); display: grid; place-items: center; transition: opacity .2s; z-index: 10; }
.scroll-hint.is-hidden { opacity: 0; pointer-events: none; }

/* ---------- vCard önizleme ---------- */
.sheet { width: min(440px, calc(100% - 24px)); max-height: calc(100% - 24px); border: 0; border-radius: 24px; padding: 22px 18px 18px; color: var(--text); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.sheet::backdrop { background: rgba(10, 20, 36, .55); }
.sheet__close-form { position: absolute; top: 10px; right: 10px; margin: 0; }
.sheet__title { font-size: 19px; padding-right: 44px; margin-bottom: 14px; }
.sheet__note { margin-top: 12px; font-size: 13px; color: var(--muted); }
.vc-preview { border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 14px; }
.vc-preview__head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.vc-preview__head div:last-child { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); }
.vc-preview__head strong { color: var(--text); font-size: 17px; }
.vc-preview__list { margin: 0; display: grid; gap: 6px; font-size: 15px; }
.vc-preview__list div { display: grid; grid-template-columns: 70px 1fr; gap: 8px; }
.vc-preview__list dt { color: var(--muted); }
.vc-preview__list dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- Alt sayfalar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--navy); color: #fff; padding-top: env(safe-area-inset-top); }
.topbar__inner { max-width: var(--page-w); margin: 0 auto; padding: 0 var(--gutter); height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar__back { display: inline-flex; align-items: center; gap: 4px; color: #fff; font-weight: 600; min-height: 44px; padding-right: 8px; min-width: 0; }
.topbar__back span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__brand { color: #fff; font-weight: 800; font-size: 19px; letter-spacing: .02em; }
.topbar__brand img { height: 22px; width: auto; }

.page { max-width: var(--page-w); margin: 0 auto; padding: 20px var(--gutter) 32px; display: grid; gap: 18px; }
.page--narrow { max-width: 720px; }
.page__head h1 { font-size: 28px; font-weight: 750; }
.page__head p, .page__head .prose { margin-top: 6px; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); display: grid; gap: 14px; justify-items: center; }
.empty h1 { color: var(--text); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 14px; }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1000px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
.product-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; color: inherit; }
.product-card__media { aspect-ratio: 1; background: #fff; display: grid; place-items: center; color: var(--blue); border-bottom: 1px solid var(--line); }
.product-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.product-card__body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.product-card__body strong { font-size: 16px; }
.product-card__body span { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.product { display: grid; gap: 20px; }
@media (min-width: 860px) { .product { grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: start; } }
.product__gallery { display: grid; gap: 10px; }
.product__main { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); aspect-ratio: 1; overflow: hidden; }
.product__main img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.product__main--empty { display: grid; place-items: center; color: var(--blue); }
.product__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.product__thumbs .thumb { background: #fff; }
.product__thumbs .thumb img { object-fit: contain; padding: 4px; }
.product__info { display: grid; gap: 14px; }
.product__info h1 { font-size: 28px; font-weight: 750; }
.eyebrow { color: var(--blue); font-weight: 650; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }
.lead { font-size: 17px; color: var(--muted); }
.product__actions { display: grid; gap: 10px; }
.prose { line-height: 1.65; }
.prose p + p { margin-top: .8em; }
.panel.prose { padding: 20px; }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 720px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1000px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-grid .thumb { border-radius: 16px; aspect-ratio: 4 / 3; }

/* ---------- Form ---------- */
.form { padding: 18px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field textarea, .field select { width: 100%; font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px; min-height: 48px; border: 1px solid #cfd8e3; border-radius: 12px; background: #fff; color: var(--text); }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); outline: 3px solid rgba(26, 102, 176, .18); }
.field small { font-weight: 400; color: var(--muted); }
.field-row { display: grid; gap: 14px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form__hint { font-size: 13px; color: var(--muted); margin-top: -6px; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.notice[hidden] { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 14px; font-size: 15px; }
.notice--ok { background: var(--wa-bg); color: var(--ok); }
.notice--err { background: #fdecea; color: var(--danger); }

/* ---------- Lightbox ---------- */
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 10, 20, .96); color: #fff; }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgba(5, 10, 20, .96); }
.lightbox__stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 60px 8px 8px; touch-action: pan-y; }
.lightbox__stage img, .lightbox__stage video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox__stage iframe { width: min(100%, 1100px); aspect-ratio: 16 / 9; height: auto; max-height: 100%; border: 0; border-radius: 6px; }
.lightbox__info { padding: 12px 20px max(18px, env(safe-area-inset-bottom)); text-align: center; max-width: 760px; margin: 0 auto; }
.lightbox__info p { color: #c5cfdc; font-size: 14px; margin-top: 4px; }
.lightbox__count { display: block; margin-top: 6px; font-size: 13px; color: #8c9ab0; }
.lightbox__btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; }
.lightbox__btn:hover { background: rgba(255, 255, 255, .22); }
.lightbox__close { top: max(10px, env(safe-area-inset-top)); right: 10px; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 10px; }
.lightbox__next { right: 10px; }
.lightbox.is-single .lightbox__prev, .lightbox.is-single .lightbox__next { display: none; }

/* ---------- Alt bilgi / bildirim ---------- */
.footer { max-width: var(--card-w); margin: 0 auto; padding: 8px var(--gutter) max(32px, env(safe-area-inset-bottom)); text-align: center; color: var(--muted); font-size: 14px; display: grid; gap: 10px; }
.is-sub .footer { max-width: var(--page-w); border-top: 1px solid var(--line); padding-top: 20px; }
.footer__social { display: flex; justify-content: center; gap: 6px; }
.footer__social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--navy); background: var(--surface); box-shadow: var(--shadow); }
.footer__links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.footer__links a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.toast { position: fixed; left: 50%; bottom: max(84px, calc(env(safe-area-inset-bottom) + 70px)); transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 200; max-width: calc(100% - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 359px) {
  .actions__grid, .map__actions { grid-template-columns: 1fr; }
  .tile { flex-direction: row; min-height: 52px; }
  .profile { flex-direction: column; align-items: flex-start; }
}
