:root{
  --abt-accent: #ff7a1a;
  --abt-accent-strong: #ff5c00;
  --abt-accent-soft: rgba(255, 122, 26, 0.18);
  --abt-surface: rgba(255, 255, 255, 0.06);
  --abt-border: rgba(255, 255, 255, 0.14);
  --abt-wa: #25D366;
  --abt-space-1: 8px;
  --abt-space-2: 16px;
  --abt-space-3: 24px;
  --abt-space-4: 32px;
  --abt-radius: 14px;
  --abt-grid-max: 1200px;
}

html{
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

[id]{
  scroll-margin-top: 96px;
}

/* Accessible focus that matches the accent color. */
:where(a, button, input, textarea, select):focus-visible{
  outline: 2px solid var(--abt-accent);
  outline-offset: 3px;
}

.primary-cta{
  background: linear-gradient(135deg, var(--abt-accent), var(--abt-accent-strong));
  color: #0a0a0f !important;
  border-color: transparent !important;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35), 0 16px 32px rgba(255,122,26,0.35);
}

.primary-cta:hover{
  filter: brightness(1.06);
  transform: translateY(-1px);
}

header nav a, header nav button{
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

header nav{
  flex-wrap: nowrap !important;
  overflow-x: auto;
  scrollbar-width: none;
}

header nav::-webkit-scrollbar{
  display: none;
}

#mobile-menu a{
  white-space: nowrap;
}

body{
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  text-rendering: optimizeLegibility;
}

/* Align Tailwind “amber” accents with the site accent (orange). */
.text-amber-200, .text-amber-300, .text-amber-100{
  color: var(--abt-accent) !important;
}

.bg-amber-300, .bg-amber-400, .bg-amber-400\\/90{
  background-color: var(--abt-accent) !important;
}

.bg-amber-200\\/10{
  background-color: rgba(255, 122, 26, 0.14) !important;
}

.border-amber-200, .border-amber-200\\/50, .border-amber-200\\/60, .border-amber-200\\/70, .border-amber-200\\/40{
  border-color: rgba(255, 122, 26, 0.55) !important;
}

.hover\\:border-amber-200:hover, .hover\\:border-amber-200\\/40:hover{
  border-color: rgba(255, 122, 26, 0.75) !important;
}

.hover\\:text-amber-200:hover, .hover\\:text-amber-100:hover{
  color: var(--abt-accent) !important;
}

.focus\\:border-amber-200\\/60:focus{
  border-color: rgba(255, 122, 26, 0.75) !important;
}

.focus\\:ring-amber-200\\/15:focus{
  --tw-ring-color: rgba(255, 122, 26, 0.18) !important;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid var(--abt-border);
  background: var(--abt-surface);
  color: #fff;
}

.btn-secondary{
  background: var(--abt-surface);
  color: #fff;
}

.btn-tertiary{
  background: transparent;
  border-color: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.82);
}

.chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--abt-border);
  background: rgba(255,255,255,0.05);
  font-size: 12px;
}

.badge-soft{
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Grid helpers */
.abt-grid{
  width: 100%;
  max-width: var(--abt-grid-max);
  margin: 0 auto;
  padding: 0 var(--abt-space-2);
}

/* Language toggle */
[data-lang-toggle]{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--abt-border);
  background: var(--abt-surface);
  backdrop-filter: blur(10px);
}

[data-lang-toggle] [data-lang-trigger]{
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 8px 10px;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

[data-lang-toggle] [data-lang-trigger]:hover{
  color: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
}

[data-lang-toggle][data-open="true"] [data-lang-trigger]{
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.06);
}

[data-lang-toggle] [data-lang-menu]{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(10, 10, 18, 0.92);
  box-shadow: 0 18px 40px rgba(0,0,0,0.55);
  backdrop-filter: blur(14px);
  display: none;
}

[data-lang-toggle][data-open="true"] [data-lang-menu]{
  display: grid;
  gap: 4px;
}

[data-lang-toggle] [data-lang-menu] button{
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255,255,255,0.86);
  cursor: pointer;
  border-radius: 12px;
  padding: 10px 10px;
  text-align: left;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 10px;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

[data-lang-toggle] [data-lang-menu] button:hover{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-1px);
}

[data-lang-toggle] [data-lang-menu] button[data-active="true"]{
  background: rgba(252, 187, 0, 0.12);
  border-color: rgba(252, 187, 0, 0.38);
}

.abt-lang-code{
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.85;
}

.abt-lang-name{
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

/* Mobile language toggle */
#mobile-menu [data-lang-toggle]{
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 16px;
}

#mobile-menu [data-lang-toggle] [data-lang-trigger]{
  width: 100%;
  justify-content: space-between;
  text-align: left;
  padding: 10px 12px;
  min-height: 44px;
}

#mobile-menu [data-lang-toggle] [data-lang-menu]{
  position: static;
  width: 100%;
  min-width: unset;
  box-shadow: none;
  margin-top: 2px;
}

#mobile-menu [data-lang-toggle][data-open="true"] [data-lang-menu]{
  display: grid;
}

#mobile-menu [data-lang-toggle] [data-lang-menu] button{
  grid-template-columns: 1fr;
  justify-items: flex-start;
  min-height: 40px;
}

/* HALAL badge */
.abt-pill{
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  padding: 6px 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.86);
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
}

/* WhatsApp floating button */
[data-abt-wa-fab]{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 54px;
  height: 54px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--abt-wa);
  color: #06130a;
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.25), 0 12px 28px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.18);
  transform: translateY(0);
  transition: transform 180ms ease, filter 180ms ease;
}

[data-abt-wa-fab] svg{
  width: 26px;
  height: 26px;
}

[data-abt-wa-fab]:hover{
  transform: translateY(-2px);
  filter: brightness(1.04);
}

/* Back-to-top vs WhatsApp spacing */
button[aria-label="Yukarı çık"]{
  right: 18px;
  bottom: 88px;
  z-index: 55;
}

@media (max-width: 768px){
  [data-abt-wa-fab]{ right: 16px; bottom: 92px; }
  button[aria-label="Yukarı çık"]{ right: 16px; bottom: 166px; }
}

/* Active section styling for anchor links (set by JS). */
.site-nav-active{
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-color: rgba(252, 187, 0, 0.65);
}

.abt-header-solid{
  background: rgba(6, 6, 12, 0.9) !important;
  border-bottom-color: rgba(255,255,255,0.12) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  backdrop-filter: blur(12px);
}

.abt-header-compact .mx-auto{
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.abt-header-compact img{
  height: 52px !important;
}

/* Slightly soften the background canvas to feel less “glowy”. */
canvas{
  opacity: 0.55 !important;
}

/* Mobile menu smooth open/close when JS toggles max-height */
#mobile-menu[data-open="true"]{
  pointer-events: auto !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.hero-overlay{
  position: relative;
  overflow: hidden;
}

.hero-overlay::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(0,0,0,0.55), rgba(0,0,0,0.35));
  pointer-events: none;
  z-index: 0;
}

.hero-overlay > *{
  position: relative;
  z-index: 1;
}

.cta-stack{
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* PDF buttons */
a[href$=".pdf"], a[href$=".PDF"]{
  position: relative;
  padding-left: 38px;
}

a[href$=".pdf"]::before, a[href$=".PDF"]::before{
  content: "📄";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
}

.card-hoverable{
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  border-color: rgba(255,255,255,0.12) !important;
}

.card-hoverable:hover{
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.28) !important;
}

.abt-mobile-cta{
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 60;
  display: none;
}

.abt-mobile-cta a{
  width: 100%;
  justify-content: center;
  font-size: 15px;
  padding: 14px;
}

@media (max-width: 768px){
  .abt-mobile-cta{ display: block; }
}

/* Table responsive fallback */
@media (max-width: 640px){
  table{
    display: block;
    border: 0;
  }
  table thead{ display: none; }
  table tr{
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 12px;
    border: 1px solid var(--abt-border);
    border-radius: 12px;
    padding: 10px;
  }
  table th, table td{
    border: 0;
    padding: 6px 0;
  }
  table th{
    color: #fff;
    font-weight: 700;
  }
}

/* Lightbox */
.abt-lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 90;
  padding: 16px;
}

.abt-lightbox[data-open="true"]{
  display: flex;
}

.abt-lightbox img{
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.55);
}

.footer-credit{
  margin-top: 10px;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
}

.footer-credit a{
  color: rgba(255,255,255,0.75);
  text-decoration: underline;
}

@keyframes abt-spin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

/* CSS-only splash loader (avoids hydration mismatches) */
@keyframes abt-splash-fade{
  0%{ opacity: 1; }
  78%{ opacity: 1; }
  100%{ opacity: 0; }
}

body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background:
    url("/logo.png") center/92px no-repeat,
    radial-gradient(circle at 30% 20%, rgba(255,122,26,0.18), transparent 42%),
    radial-gradient(circle at 70% 60%, rgba(125,211,252,0.10), transparent 46%),
    linear-gradient(140deg, #0a0a0f, #050507);
  opacity: 1;
  animation: abt-splash-fade 2200ms ease forwards;
}

body::after{
  content: "";
  position: fixed;
  left: 50%;
  top: calc(50% + 78px);
  transform: translateX(-50%);
  z-index: 10000;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,0.22);
  border-top-color: var(--abt-accent);
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
  animation: abt-spin 900ms linear infinite, abt-splash-fade 2200ms ease forwards;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce){
  body::before, body::after{ animation-duration: 1ms; }
}

/* Hide hero stat cards (requested) without DOM edits (prevents hydration/flicker). */
main section .flex.flex-col.gap-7 > .grid.grid-cols-1.gap-4{
  display: none !important;
}

/* Hero CTA hierarchy without DOM changes */
main section .flex.flex-wrap.gap-3 a[href^="mailto:"]{
  background: linear-gradient(135deg, var(--abt-accent), var(--abt-accent-strong)) !important;
  color: #0a0a0f !important;
  border-color: transparent !important;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35), 0 16px 32px rgba(255,122,26,0.35);
}

main section .flex.flex-wrap.gap-3 a[href^="mailto:"]:hover{
  transform: translateY(-1px);
  filter: brightness(1.06);
}

main section .flex.flex-wrap.gap-3 a[href="#catalog"]{
  border-color: rgba(255,255,255,0.28) !important;
}

main section .flex.flex-wrap.gap-3 a[href*="/catalog/ADMIRAL-KATALOG.pdf"]{
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.18) !important;
  color: rgba(255,255,255,0.86) !important;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  [data-lang-toggle] [data-lang-trigger],
  [data-lang-toggle] [data-lang-menu] button{ transition: none; }
}
