/* PrismaCentric — single stylesheet. Colors sampled from the design mockup. */

:root {
  --navy: #272342;          /* brand name, nav, headings */
  --ink: #424253;           /* body copy */
  --ink-soft: #5c5c6c;      /* tagline, placeholders */
  --warm: #f6f2f0;          /* video band */
  --warm-2: #f5f3f0;        /* contact band */
  --footer: #404052;
  --line: #8b8b95;
  --focus: #5a4fcf;

  --card-pink: #fbe3ed;
  --card-orange: #fef1d1;
  --card-yellow: #fffcd9;
  --card-green: #e8f2d8;
  --card-blue: #d1f0fa;
  --card-purple: #e9e6f1;

  --font-head: "Barlow Semi Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --font-body: Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-card: 2rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .75rem 1rem;
  background: var(--navy); color: #fff;
  font-weight: 500; text-decoration: none; border-radius: 6px;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Header ---------- */

.site-header { background: #fff; position: relative; z-index: 10; }

.header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(1.25rem, 3vw, 2.4rem) clamp(1.1rem, 2.2vw, 1.6rem);
}

.brand { display: inline-flex; flex-direction: column; text-decoration: none; min-width: 0; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1;
  color: var(--navy);
  letter-spacing: -.005em;
  padding-left: .08em;
}
.brand-tagline {
  margin-top: .3rem;
  font-size: clamp(.95rem, 1.65vw, 1.35rem);
  line-height: 1.2;
  color: var(--ink-soft);
}

.site-nav ul { display: flex; gap: clamp(1rem, 2vw, 1.5rem); }
.site-nav a {
  display: block;
  padding: .35rem 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease;
}
.site-nav a:hover { border-bottom-color: currentColor; }

.nav-toggle { display: none; }

/* ---------- Hero / video ---------- */

.hero {
  background: var(--warm);
  padding-block: clamp(1.5rem, 5vw, 4.5rem);
}
.video-frame {
  position: relative;
  max-width: 1040px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  background: #ebe6e3;
  overflow: hidden;
}
.video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---------- Company intro ---------- */

.company { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5.5rem); }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 33fr) minmax(0, 67fr);
  align-items: center;
  gap: clamp(1.5rem, 4.5vw, 4.5rem);
}
.intro-art img { width: 100%; height: auto; max-width: 420px; }

.intro-text { max-width: 44rem; }
.intro-text p {
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.32;
  color: var(--ink);
}
.intro-lead strong { font-weight: 700; color: var(--navy); }
.intro-statement {
  margin: 1.1em 0 .85em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.25vw, 1.8rem);
  line-height: 1.2;
  color: var(--ink);
}

/* ---------- Services grid ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.9rem, 1.4vw, 1.1rem);
  margin-top: clamp(3rem, 7vw, 5rem);
}
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(1.6rem, 2.4vw, 2rem) clamp(1.25rem, 2vw, 1.75rem) clamp(1.9rem, 2.8vw, 2.4rem);
  border-radius: var(--radius-card);
  color: var(--navy);
  min-height: 100%;
}
.card-cube { width: 2.6rem; height: 3rem; margin-bottom: 1.1rem; }
.card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.45rem, 2.25vw, 1.85rem);
  line-height: 1.12;
  max-width: 14ch;
  margin-bottom: .8rem;
  text-wrap: balance;
}
.card p {
  font-size: clamp(.95rem, 1.2vw, 1.05rem);
  line-height: 1.4;
  max-width: 28ch;
  color: var(--navy);
  text-wrap: balance;
}

.card--pink   { background: var(--card-pink);   --t: #e20613; --l: #e63355; --r: #eb6299; }
.card--orange { background: var(--card-orange); --t: #ea5b0c; --l: #f08800; --r: #f9b200; }
.card--yellow { background: var(--card-yellow); --t: #f5a200; --l: #ffd900; --r: #ffec2d; }
.card--green  { background: var(--card-green);  --t: #c5d200; --l: #00a03a; --r: #7eb928; }
.card--blue   { background: var(--card-blue);   --t: #2a3178; --l: #0075bb; --r: #00ace6; }
.card--purple { background: var(--card-purple); --t: #60398d; --l: #51519d; --r: #8576b4; }

.cube-top   { fill: var(--t, #60398d); }
.cube-left  { fill: var(--l, #51519d); }
.cube-right { fill: var(--r, #8576b4); }

/* ---------- Contact ---------- */

.contact {
  background: var(--warm-2);
  padding-block: clamp(3rem, 7vw, 5.5rem);
  text-align: center;
}
.contact-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.15;
  color: var(--navy);
}
.contact-sub {
  margin-top: .35rem;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(1.15rem, 2.2vw, 1.75rem);
  line-height: 1.25;
  color: var(--ink);
}

.contact-form,
.form-success {
  max-width: 600px;
  margin: clamp(2rem, 4vw, 2.75rem) auto 0;
  text-align: left;
}
.field + .field { margin-top: 1.1rem; }
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: .85rem 1.1rem;
  font: inherit;
  font-size: 1.05rem;
  color: var(--navy);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.contact-form textarea { min-height: 13.5rem; resize: vertical; }
.contact-form ::placeholder { color: var(--ink-soft); opacity: 1; }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 0;
  border-color: var(--focus);
  border-radius: 0;
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error {
  margin-top: 1rem;
  color: #a1122a;
  font-size: .95rem;
  text-align: center;
}

.btn-send {
  display: block;
  width: calc(100% - 8px);
  margin: clamp(2rem, 4vw, 2.6rem) auto 0;
  padding: .9rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  background: var(--footer);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .15s ease;
}
.btn-send:hover { background: var(--navy); }
.btn-send[disabled] { opacity: .7; cursor: progress; }

.form-success {
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem) 1.5rem;
  background: #fff;
  border: 1px solid #e3ded9;
  border-radius: var(--radius-card);
  color: var(--navy);
}
.form-success:focus { outline: none; }
.success-cube { width: 2.6rem; height: 3rem; margin: 0 auto 1rem; --t: #ea5b0c; --l: #00a03a; --r: #51519d; }
.form-success h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  line-height: 1.2;
  margin-bottom: .5rem;
}
.form-success p { color: var(--ink); }

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(5.5rem, 10vw, 8rem);
  padding: 1.5rem var(--gutter);
  background: var(--footer);
  color: #fff;
  text-align: center;
  font-size: .9rem;
}

/* ---------- Tablet ---------- */

@media (max-width: 1023px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro { grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); }
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
  .header-inner { align-items: center; }

  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 2.75rem; height: 2.75rem;
    padding: 0;
    background: transparent;
    border: 1px solid #d9d6df;
    border-radius: 10px;
    color: var(--navy);
    cursor: pointer;
  }
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 1.25rem; height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before,
  .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .header-inner { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; border-top: 1px solid #ebe8ef; }
  .site-nav li + li { border-top: 1px solid #ebe8ef; }
  .site-nav a { padding: .9rem 0; font-size: 1.15rem; border-bottom: 0; }

  .intro { grid-template-columns: 1fr; text-align: left; }
  .intro-art img { max-width: min(17rem, 72vw); margin-inline: auto; }

  .services { grid-template-columns: 1fr; }
  .card h3 { max-width: 16ch; }
  .card p { max-width: 30ch; }

  .btn-send { width: 100%; }
}

@media (max-width: 360px) {
  .brand-tagline { font-size: .85rem; }
  .site-footer { font-size: .8rem; }
}

/* ---------- Thank-you / 404 ---------- */

.simple-page { min-height: 60vh; display: flex; align-items: center; }
.btn-link { max-width: 360px; text-align: center; text-decoration: none; }
