/* ============================================================
   Artiplex Services — static rebuild
   ============================================================ */

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/opensans-latin.woff2") format("woff2-variations"),
       url("../fonts/opensans-latin.woff2") format("woff2");
}

:root {
  --teal-900: #0a3733;
  --teal-800: #115a51;
  --teal-700: #1a7e6e;
  --teal-600: #229b88;
  --teal-500: #29c4a9;
  --teal-400: #4ed4bc;
  --teal-200: #b6ecdf;
  --teal-100: #e6f7f3;

  --ink:        #142927;
  --body:       #3e514e;
  --muted:      #74837f;
  --line:       #dfeae6;
  --bg:         #ffffff;
  --bg-soft:    #f1faf8;
  --bg-dark:    #0a1f1d;
  --bg-darker:  #061513;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-pad: clamp(60px, 9vw, 120px);

  --shadow-md: 0 10px 30px rgba(10, 55, 51, 0.10);
  --shadow-lg: 0 25px 60px rgba(10, 55, 51, 0.22);

  --t-fast: 180ms cubic-bezier(.2,.7,.2,1);
  --t-med:  320ms cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--teal-700);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--teal-500); }

h1, h2, h3, h4, h5 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p  { margin: 0 0 1.1em; }

p:last-child, ul:last-child { margin-bottom: 0; }

ul { padding-left: 1.2em; margin: 0 0 1.1em; }
li { margin-bottom: 0.4em; }
li strong, li b { color: var(--ink); font-weight: 700; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-600);
  margin-bottom: 1rem;
}

.section { padding: var(--section-pad) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark {
  background: var(--bg-dark);
  color: #c9d6d3;
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .kicker { color: var(--teal-400); }

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(40px, 6vw, 70px);
}
.section-head p { color: var(--muted); }
.section--dark .section-head p { color: #97a8a4; }

/* ===== Header / nav ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 18px 0;
  background: linear-gradient(180deg, rgba(6,21,19,0.85) 0%, rgba(6,21,19,0) 100%);
  transition: background var(--t-med), padding var(--t-med), box-shadow var(--t-med);
}
.site-header.is-scrolled {
  background: rgba(6,21,19,0.94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  padding: 10px 0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.brand img { height: 44px; width: auto; }
.brand:hover { opacity: 0.85; }
.brand-text {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

.nav-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 28px;
  align-items: center;
}
.nav-list a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  padding: 8px 0;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--teal-500);
  transition: right var(--t-fast);
}
.nav-list a:hover { color: #fff; }
.nav-list a:hover::after, .nav-list a.is-active::after { right: 0; }

@media (max-width: 820px) {
  /* No-JS default: nav wraps below brand as a horizontal list */
  .nav { flex-wrap: wrap; row-gap: 8px; }
  .nav-toggle { display: none; }
  .nav-list {
    flex-basis: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
  }
  .nav-list a { font-size: 0.8rem; padding: 4px 0; }
  .nav-list a::after { display: none; }

  /* JS-enhanced: collapse into a hamburger-driven dropdown */
  .js .nav-toggle { display: inline-flex; }
  .js .nav-list {
    position: absolute;
    top: 100%;
    left: var(--gutter);
    right: var(--gutter);
    flex-basis: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(6,21,19,0.97);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 12px 0;
    margin-top: 8px;
    transform-origin: top right;
    transform: scaleY(0.4);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--t-med), opacity var(--t-med);
    box-shadow: var(--shadow-lg);
  }
  .js .nav[data-open="true"] .nav-list {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }
  .js .nav-list a {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.9rem;
  }
  .js .nav-list li:last-child a { border-bottom: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--bg-darker);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transform: scale(1.05);
  animation: heroZoom 30s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1.0); } }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(41,196,169,0.30), transparent 60%),
    linear-gradient(180deg, rgba(6,21,19,0.35) 0%, rgba(6,21,19,0.85) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  padding: 160px 0 80px;
}
.hero h1 {
  color: #fff;
  margin: 0.4em 0 0.6em;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.hero h1 .accent {
  display: block;
  font-weight: 300;
  letter-spacing: 0;
  color: var(--teal-400);
}
.hero p {
  max-width: 680px;
  margin: 0 auto 2em;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(255,255,255,0.88);
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--teal-600);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
  box-shadow: 0 8px 24px rgba(41,196,169,0.45);
}
.hero__cta:hover {
  background: var(--teal-500);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(41,196,169,0.55);
}
.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 28px;
  opacity: 0.7;
  animation: bob 2s ease-in-out infinite;
  color: #fff;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}

/* ===== Tag list (hero pills) ===== */
.tag-list {
  list-style: none;
  padding: 0;
  margin: 1.6em auto 0;
  max-width: 720px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.tag-list li {
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #e6f7f3;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* ===== About strip ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
}
.about-grid .about-photo {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}
.about-grid .about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 { margin-bottom: 0.4em; }
.about-text .lead {
  font-size: 1.15rem;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 1em;
}
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-grid .about-photo { order: -1; aspect-ratio: 16/9; }
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 3vw, 36px);
}
.service-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-med), border-color var(--t-med), background var(--t-med);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(41,196,169,0.5);
  background: linear-gradient(160deg, rgba(41,196,169,0.10), rgba(41,196,169,0.02));
}
.service-card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal-700), var(--teal-500));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  color: #fff;
  box-shadow: 0 8px 20px rgba(41,196,169,0.35);
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card h3 { color: #fff; margin-bottom: 14px; }
.service-card p, .service-card li { color: #afbeba; }
.service-card li strong { color: #fff; }
.service-card ul { padding-left: 1.1em; }
.service-card ul li::marker { color: var(--teal-500); }

/* ===== Capabilities (light grid) ===== */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(18px, 2vw, 28px);
}
.cap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px 20px;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.cap:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-200);
}
.cap__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-100);
  color: var(--teal-700);
  margin-bottom: 14px;
}
.cap__icon svg { width: 22px; height: 22px; }
.cap h4 { margin-bottom: 6px; }
.cap p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ===== Coproduction banner ===== */
.copro {
  background:
    linear-gradient(110deg, rgba(6,21,19,0.85) 0%, rgba(17,90,81,0.55) 50%, rgba(41,196,169,0.10) 100%),
    var(--bg-dark);
  color: #fff;
  text-align: left;
}
.copro .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(20px, 4vw, 60px);
  align-items: center;
}
.copro h2 { color: #fff; max-width: 18ch; }
.copro p { color: rgba(255,255,255,0.88); max-width: 60ch; margin: 0; }
.copro .hero__cta { white-space: nowrap; background: var(--teal-500); box-shadow: 0 8px 24px rgba(41,196,169,0.5); }
.copro .hero__cta:hover { background: var(--teal-400); }
@media (max-width: 760px) { .copro .container { grid-template-columns: 1fr; } }

/* ===== Contact CTA strip ===== */
.contact {
  background:
    radial-gradient(circle at 80% 30%, rgba(78,212,188,0.35), transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(26,126,110,0.50), transparent 55%),
    var(--bg-darker);
  color: #fff;
  text-align: center;
}
.contact h2 { color: #fff; }
.contact p { color: rgba(255,255,255,0.88); max-width: 640px; margin-left: auto; margin-right: auto; }
.contact-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.contact-actions a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  background: rgba(255,255,255,0.05);
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.contact-actions a:hover {
  background: var(--teal-700);
  border-color: var(--teal-700);
  transform: translateY(-2px);
  color: #fff;
}
.contact-actions svg { width: 18px; height: 18px; }
.contact-address {
  margin-top: 28px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  font-style: normal;
  line-height: 1.7;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-darker);
  color: #8a9794;
  padding: 50px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.footer-links a { color: #b7c4c0; }
.footer-links a:hover { color: #fff; }
.copyright { color: #6a7975; }

/* ===== Scroll-in animations (JS-only; default state is visible for no-JS) ===== */
.js [data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1);
}
.js [data-animate].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js [data-animate] { opacity: 1; transform: none; transition: none; }
  .hero__bg img { animation: none; transform: none; }
  .hero__scroll { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== Sub-pages (privacy / cookies / 404) ===== */
.page-hero {
  background: linear-gradient(160deg, var(--teal-800), var(--bg-darker));
  color: #fff;
  padding: 180px 0 80px;
  text-align: center;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 640px; margin: 0 auto; }

.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--section-pad) 0;
}
.prose h2 { margin-top: 2.2em; font-size: 1.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; font-size: 1.15rem; }
.prose ul { padding-left: 1.4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.notfound {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px;
}
.notfound .big { font-size: clamp(6rem, 18vw, 12rem); margin: 0; color: var(--teal-500); line-height: 1; }
