/* Turnia Technology — shared design system */
:root {
  --ink: #0c1526;
  --ink-soft: #162033;
  --slate: #3d4a5c;
  --mist: #eef3f7;
  --paper: #f7fafc;
  --white: #ffffff;
  --accent: #0891b2;
  --accent-deep: #0e7490;
  --accent-glow: rgba(8, 145, 178, 0.18);
  --line: rgba(12, 21, 38, 0.1);
  --shadow: 0 18px 50px rgba(12, 21, 38, 0.12);
  --radius: 14px;
  --nav-h: 72px;
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-deep);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ---------- Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(12, 21, 38, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(12, 21, 38, 0.95);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.nav-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white) !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
  transition: transform 0.25s var(--ease);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--white) !important;
  box-shadow: 0 10px 28px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-deep);
  color: var(--white) !important;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white) !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white) !important;
}

.btn-dark {
  background: var(--ink);
  color: var(--white) !important;
}

.btn-dark:hover {
  background: var(--ink-soft);
  color: var(--white) !important;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 2.5rem) 0 5rem;
  color: var(--white);
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(12, 21, 38, 0.88) 0%, rgba(12, 21, 38, 0.55) 48%, rgba(8, 145, 178, 0.35) 100%),
    radial-gradient(ellipse at 80% 20%, rgba(8, 145, 178, 0.35), transparent 50%),
    url("../img/abbb.jpg") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  background: linear-gradient(to top, var(--paper), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 1rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.1s forwards;
}

.hero h1 {
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0.85rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.25s forwards;
}

.hero-lead {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 34rem;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.4s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.55s forwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 3.5rem) 0 3rem;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(12, 21, 38, 0.92), rgba(14, 116, 144, 0.7)),
    url("../img/backimage.jpg") center / cover no-repeat;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -80px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 70%);
  animation: drift 10s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-24px, 18px); }
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 1.05rem;
}

/* ---------- Sections ---------- */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--mist);
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.section-head p {
  color: var(--slate);
  font-size: 1.05rem;
  margin: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.7rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.about-copy {
  color: var(--slate);
  font-size: 1.05rem;
}

.about-quote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.4rem;
  border-left: 3px solid var(--accent);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}

.about-quote p {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.about-quote small {
  display: block;
  margin-top: 0.6rem;
  color: var(--slate);
  font-family: var(--font-body);
}

.about-visual {
  position: relative;
  min-height: 320px;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  background:
    linear-gradient(160deg, var(--ink) 0%, var(--accent-deep) 100%);
  box-shadow: var(--shadow);
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  min-height: 320px;
}

.about-visual-label {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  right: 1.25rem;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}

/* Services grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.service-item {
  padding: 1.6rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-item:hover {
  transform: translateY(-4px);
  border-color: rgba(8, 145, 178, 0.35);
  box-shadow: var(--shadow);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-glow);
  color: var(--accent-deep);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

.service-item p {
  margin: 0;
  color: var(--slate);
  font-size: 0.98rem;
}

/* Tech */
.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s ease, transform 0.2s var(--ease), background 0.2s ease;
}

.tech-pill:hover {
  border-color: var(--accent);
  background: rgba(8, 145, 178, 0.08);
  transform: translateY(-2px);
}

.tech-pill.is-new {
  border-color: rgba(8, 145, 178, 0.45);
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.12), rgba(255, 255, 255, 0.9));
}

/* Products */
.product-list {
  display: grid;
  gap: 1.5rem;
}

.product-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.75rem;
  align-items: center;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
}

.product-row:nth-child(even) .product-media {
  order: 2;
}

.product-media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--mist);
  min-height: 220px;
}

.product-media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.product-copy h3 {
  font-size: 1.45rem;
}

.product-copy p {
  color: var(--slate);
  margin-bottom: 0;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat {
  text-align: center;
  padding: 1.6rem 1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #7dd3e8;
  margin-bottom: 0.2rem;
}

.stat span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

/* CTA band */
.cta-band {
  padding: 4rem 0;
  background:
    linear-gradient(120deg, var(--ink) 0%, #123047 55%, var(--accent-deep) 100%);
  color: var(--white);
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.4rem;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  max-width: 34rem;
}

/* Career / forms */
.split-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.panel h2,
.panel h3 {
  margin-bottom: 0.75rem;
}

.role-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.role-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--slate);
}

.role-list li:last-child {
  border-bottom: none;
}

.role-list strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  margin-bottom: 0.2rem;
}

.form-stack {
  display: grid;
  gap: 0.9rem;
}

.form-stack label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.form-stack input,
.form-stack textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font: inherit;
  background: var(--paper);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-stack input:focus,
.form-stack textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-stack textarea {
  min-height: 140px;
  resize: vertical;
}

.form-stack .file-input {
  padding: 0.7rem;
  background: var(--mist);
}

.form-note {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(8, 145, 178, 0.1);
  color: var(--accent-deep);
  font-weight: 600;
}

.form-error {
  background: rgba(185, 28, 28, 0.08);
  color: #b91c1c;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.75rem;
}

.contact-details {
  display: grid;
  gap: 1rem;
}

.contact-card {
  padding: 1.25rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.contact-card p,
.contact-card a {
  margin: 0;
  color: var(--slate);
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 260px;
}

.map-frame img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 2.5rem 0 1.75rem;
  border-top: 3px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a:hover {
  color: var(--white);
}

.footer-brand {
  color: var(--white) !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.socials {
  display: flex;
  gap: 0.75rem;
}

.socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid,
  .product-row,
  .product-row:nth-child(even) .product-media,
  .split-panel,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .product-row:nth-child(even) .product-media {
    order: 0;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 1rem auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    background: rgba(12, 21, 38, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero {
    align-items: center;
    padding-bottom: 5rem;
  }

  .hero-brand {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(1120px, calc(100% - 1.5rem));
  }

  .stats {
    grid-template-columns: 1fr;
  }
}
