/* AK UZ Kimya — Corporate industrial design system */
:root {
  --navy: #0e1a2b;
  --navy-2: #152238;
  --white: #ffffff;
  --steel: #f3f5f7;
  --steel-2: #e8ecf0;
  --accent: #1e3d32;
  --accent-hover: #2a5546;
  --text: #1a2433;
  --text-muted: #5c6678;
  --border: rgba(14, 26, 43, 0.12);
  --shadow: 0 18px 48px rgba(14, 26, 43, 0.08);
  --shadow-sm: 0 8px 24px rgba(14, 26, 43, 0.06);
  --radius: 2px;
  --radius-btn: 2px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --max: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--navy);
  color: var(--white);
}

.skip-link:focus {
  left: 0.5rem;
}

/* —— Layout —— */
.container {
  width: min(100% - 2 * var(--space-md), var(--max));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-xl);
}

.section--steel {
  background: var(--steel);
}

.section--navy {
  background: var(--navy);
  color: var(--steel);
}

.section--navy .eyebrow {
  color: rgba(243, 245, 247, 0.7);
}

.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

.section--navy .muted {
  color: rgba(243, 245, 247, 0.75);
}

.section--accent {
  background: var(--accent);
  color: var(--white);
}

.section--accent .muted {
  color: rgba(255, 255, 255, 0.82);
}

.grid-2 {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.grid-3 {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 720px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-products {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .grid-products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .grid-products {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* —— Type —— */
h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 var(--space-sm);
}

h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
}

h2 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
}

h3 {
  font-size: 1.15rem;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.muted {
  color: var(--text-muted);
  margin: 0;
}

.lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 52ch;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  isolation: isolate;
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 4.25rem;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}

.logo span {
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy);
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }
}

.nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: var(--space-md);
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: var(--shadow-sm);
}

.nav.is-open {
  display: flex;
}

@media (min-width: 960px) {
  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
}

.nav a {
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.nav a:hover {
  background: var(--steel);
  color: var(--navy);
}

.nav a.is-active {
  color: var(--accent);
  background: rgba(30, 61, 50, 0.08);
}

.nav__dropdown {
  position: relative;
}

.nav__dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-weight: 500;
  font-size: 0.88rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--text);
  border-radius: var(--radius);
}

.nav__dropdown-toggle:hover {
  background: var(--steel);
}

.nav__dropdown-menu {
  display: none;
  padding: var(--space-xs) 0;
}

.nav__dropdown.is-open .nav__dropdown-menu,
.nav__dropdown:hover .nav__dropdown-menu {
  display: block;
}

@media (min-width: 960px) {
  .nav__dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: var(--space-sm);
  }

  .nav__dropdown:hover .nav__dropdown-menu {
    display: block;
  }
}

.nav__dropdown-menu a {
  display: block;
  font-size: 0.82rem;
  padding: 0.45rem 0.6rem;
  white-space: nowrap;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn--primary:hover {
  background: var(--navy-2);
  box-shadow: var(--shadow-sm);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: rgba(14, 26, 43, 0.35);
}

.btn--outline:hover {
  border-color: var(--navy);
  background: var(--steel);
}

.btn--accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn--accent:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-sm);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: grid;
  align-items: end;
  color: var(--white);
  background: var(--navy);
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(14, 26, 43, 0.94) 0%,
    rgba(14, 26, 43, 0.72) 48%,
    rgba(14, 26, 43, 0.35) 100%
  );
}

.hero__content {
  position: relative;
  padding-block: var(--space-2xl) var(--space-xl);
}

.hero h1 {
  color: var(--white);
  max-width: 18ch;
}

.hero .lead {
  color: rgba(243, 245, 247, 0.88);
  max-width: 48ch;
}

/* —— Cards —— */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(30, 61, 50, 0.25);
}

.card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-sm);
  color: var(--accent);
}

.card__link {
  margin-top: auto;
  padding-top: var(--space-md);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.card--compact {
  padding: var(--space-md);
}

/* —— Page header —— */
.page-head {
  padding-block: var(--space-xl);
  background: var(--steel);
  border-bottom: 1px solid var(--border);
}

.page-head h1 {
  margin-bottom: var(--space-xs);
}

/* —— Lists —— */
.check-list {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 0;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.65rem;
  color: var(--text-muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
}

.section--accent .check-list li {
  color: rgba(255, 255, 255, 0.9);
}

.section--accent .check-list li::before {
  background: rgba(255, 255, 255, 0.85);
}

/* —— Forms —— */
.form {
  display: grid;
  gap: var(--space-md);
}

.form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 61, 50, 0.12);
  outline: none;
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.form-success {
  display: none;
  padding: var(--space-md);
  background: rgba(30, 61, 50, 0.08);
  border: 1px solid rgba(30, 61, 50, 0.25);
  border-radius: var(--radius);
  color: var(--accent);
  font-weight: 500;
}

.form-success.is-visible {
  display: block;
}

/* —— Accordion / catalog —— */
.accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.accordion__item + .accordion__item {
  border-top: 1px solid var(--border);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  font: inherit;
  font-weight: 600;
  text-align: left;
  background: var(--white);
  border: 0;
  cursor: pointer;
  color: var(--navy);
  transition: background 0.2s;
}

.accordion__trigger:hover {
  background: var(--steel);
}

.accordion__trigger svg {
  flex-shrink: 0;
  transition: transform 0.25s;
}

.accordion__item.is-open .accordion__trigger svg {
  transform: rotate(180deg);
}

.accordion__panel {
  display: none;
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-muted);
}

.accordion__item.is-open .accordion__panel {
  display: block;
}

/* —— Spec table —— */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-top: var(--space-md);
}

.spec-table th,
.spec-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.spec-table th {
  font-weight: 600;
  color: var(--navy);
  width: 38%;
  background: var(--steel);
}

/* —— Footer —— */
.site-footer {
  background: var(--navy);
  color: rgba(243, 245, 247, 0.85);
  padding-block: var(--space-xl);
  margin-top: var(--space-xl);
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer__grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 720px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.site-footer li a {
  font-size: 0.88rem;
  color: rgba(243, 245, 247, 0.75);
}

.footer-brand {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: rgba(243, 245, 247, 0.55);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: space-between;
  align-items: center;
}

.social {
  display: flex;
  gap: var(--space-sm);
}

.social a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(243, 245, 247, 0.85);
  transition: border-color 0.2s, background 0.2s;
}

.social a:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

/* —— Map placeholder —— */
.map-embed {
  aspect-ratio: 16 / 9;
  background: var(--steel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  min-height: 320px;
}

#teknik-talep:target,
#teknik-talep.is-inquiry-focus {
  box-shadow: 0 0 0 2px var(--accent), var(--shadow);
}

/* —— Reveal animation —— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

/* —— Utilities —— */
.stack-lg > * + * {
  margin-top: var(--space-lg);
}

.text-balance {
  text-wrap: balance;
}

.divider {
  height: 1px;
  background: var(--border);
  margin-block: var(--space-lg);
}

.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  background: rgba(30, 61, 50, 0.1);
  color: var(--accent);
  border-radius: var(--radius);
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— Product page layout —— */
.product-layout {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 960px) {
  .product-layout {
    grid-template-columns: 1fr 360px;
    align-items: start;
  }

  .product-layout__sticky {
    position: sticky;
    top: 5.5rem;
  }
}
