/* ==========================================================================
   Prime Printing & Signs — shared styles
   Design source: Figma "Untitled" (fkVqx0ixTNIRFPnmYjnlg7), 1686px canvas
   Page-specific styles live in css/pages/<page>.css
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --c-cyan: #00b8db;
  --c-pink: #f6339a;
  --c-orange: #ff6900;
  --c-purple: #a767e5;
  --c-red: #fa4c52;

  --c-ink: #101828;
  --c-text: #4a5565;
  --c-text-strong: #364153;
  --c-muted: #6a7282;
  --c-placeholder: #757575;
  --c-border: #e5e7eb;
  --c-border-soft: #f3f4f6;
  --c-surface: #f5f5f5;
  --c-surface-alt: #f9fafb;

  --c-footer-bg: #0a0a0a;
  --c-footer-line: #1e2939;
  --c-footer-text: #99a1af;
  --c-footer-link: #ccc;

  --grad-brand: linear-gradient(90deg, var(--c-cyan), var(--c-pink));
  --grad-warm: linear-gradient(90deg, var(--c-orange), var(--c-pink));
  --grad-tri: linear-gradient(90deg, var(--c-cyan), var(--c-pink) 50%, var(--c-orange));
  --grad-pill-cool: linear-gradient(90deg, #cefafe, #fce7f3);
  --grad-pill-warm: linear-gradient(90deg, #ffedd4, #fce7f3);
  --grad-rainbow: linear-gradient(90deg,
      #00b8db 0%, #f6339a 14.286%, #a767e5 28.571%, #ff6900 42.857%,
      #00b8db 57.143%, #f6339a 71.429%, #a767e5 85.714%, #ff6900 100%);

  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-body: "Montserrat", system-ui, sans-serif;

  --container: 1240px;
  --container-wide: 1425px;
  --gutter: 90px;

  --shadow-btn: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
  --shadow-btn-pink: 0 18.3px 36.6px -8.8px rgba(246, 51, 154, .25);
  --shadow-card: 0 10px 7.5px rgba(0, 0, 0, .1), 0 4px 3px rgba(0, 0, 0, .1);
  --shadow-glass: 0 20px 25px rgba(0, 0, 0, .1), 0 8px 10px rgba(0, 0, 0, .1);

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.625;
  color: var(--c-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 2px solid var(--c-pink); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; }
.container-wide {
  width: 100%; max-width: var(--container-wide);
  margin-inline: auto; padding-inline: var(--gutter);
}
main { overflow-x: clip; } /* slide-in animations start off-screen; never cause sideways scroll */
.section { padding-block: 80px; }
.section--alt { background: var(--c-surface-alt); }

/* ---------- Typography helpers ---------- */
.text-grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-grad--warm { background-image: var(--grad-warm); }

.section-head { display: flex; flex-direction: column; align-items: center; gap: 15px; text-align: center; }
.section-head--left { align-items: flex-start; text-align: left; }
.section-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 60px;
  line-height: 1.25;
  color: var(--c-ink);
}
.section-lead { font-size: 20px; line-height: 32.5px; color: var(--c-text); max-width: 760px; }

/* Pill label (e.g. "Our Services") */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--grad-pill-cool);
  font-weight: 500; font-size: 14px; line-height: 20px;
  color: var(--c-text-strong);
}
.pill--warm { background: var(--grad-pill-warm); }
.pill img { width: 20px; height: 20px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 15px 32px;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  font-weight: 600; font-size: 16px; line-height: 24px; white-space: nowrap;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: var(--shadow-btn);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
/* Animated rainbow sweep on hover (matches the off-canvas gradient layer in Figma) */
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--grad-rainbow);
  background-size: 800% 100%;
  background-position: 100% 0;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.btn:hover, .btn:focus-visible { transform: scale(1.04); box-shadow: 0 14px 28px -8px rgba(246, 51, 154, .45); }
.btn:hover::before, .btn:focus-visible::before { opacity: 1; animation: rainbow-slide 4s linear infinite; }
@keyframes rainbow-slide { from { background-position: 100% 0; } to { background-position: 0 0; } }

.btn--warm { background: var(--grad-warm); }
.btn--tri { background: var(--grad-tri); box-shadow: var(--shadow-btn-pink); font-weight: 400; line-height: 20.5px; }
.btn--sm { height: 51px; padding: 15px 24px; }
.btn--light {
  background: #fff; color: #000; font-weight: 400;
  box-shadow: none; filter: drop-shadow(0 18.3px 18.3px rgba(246, 51, 154, .25));
}
.btn--light { transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease); }
.btn--light:hover::before, .btn--light:focus-visible::before { opacity: 0; animation: none; }
.btn--light:hover, .btn--light:focus-visible { background: #000; color: #fff; box-shadow: none; }
.btn img { width: 20px; height: 20px; }
.btn-row { display: flex; justify-content: center; padding-top: 65px; }

/* ---------- Header ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  padding-block: 35px;
}
.site-header.is-stuck {
  position: fixed; padding-block: 12px;
  animation: header-in .35s var(--ease);
}
@keyframes header-in { from { transform: translateY(-100%); } to { transform: none; } }
.site-header.is-stuck .nav-bar { box-shadow: 0 10px 30px rgba(16, 24, 40, .12); }

.nav-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 103px; padding: 14px 50px;
  background: #fff;
  border-radius: 20px;
  transition: box-shadow .3s var(--ease);
}
.brand { flex-shrink: 0; width: 75px; height: 75px; }
.brand img { width: 75px; height: 75px; object-fit: cover; }

.nav-wrap { display: flex; align-items: center; }
.main-nav ul { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  position: relative; display: block;
  font-size: 16px; line-height: 24px; color: #000;
  transition: color .2s var(--ease);
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; top: 22px;
  height: 2px; background: var(--c-red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.main-nav a:hover { color: var(--c-red); }
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 15px; padding-left: 25px; }
.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 20px; overflow: hidden; isolation: isolate;
  background: #fff;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
/* Animated rainbow fill; the icon PNG has a white background, so multiply
   lets the gradient show through the white while the black glyph stays black. */
.icon-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--grad-rainbow); background-size: 800% 100%; background-position: 100% 0;
  opacity: 0; transition: opacity .3s var(--ease);
}
.icon-btn img { width: 30px; height: 30px; mix-blend-mode: multiply; }
.icon-btn:hover, .icon-btn:focus-visible { transform: scale(1.1); box-shadow: 0 8px 18px -6px rgba(246, 51, 154, .45); }
.icon-btn:hover::before, .icon-btn:focus-visible::before { opacity: 1; animation: rainbow-slide 4s linear infinite; }
.nav-actions .btn { height: 44.5px; padding: 12px 35px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; border-radius: 12px;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #000; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  display: flex; align-items: flex-end;
  min-height: 540px; padding: 210px 0 80px;
  color: #fff;
  background: #000 center / cover no-repeat;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .59); }
.page-hero > * { position: relative; }

/* ---------- Glass card / contact block (home + contact) ---------- */
.glass {
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(255, 255, 255, .8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.contact-block { position: relative; padding-block: 80px; background: #fff center / cover no-repeat; }
.contact-block .section-title { text-align: center; margin-bottom: 67px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 50px; align-items: start; }

.contact-form {
  display: flex; flex-direction: column; gap: 15px;
  padding: 40px; border-radius: 24px; box-shadow: var(--shadow-glass);
}
.field { display: flex; flex-direction: column; }
.field input,
.field textarea,
.field select {
  width: 100%;
  height: 58px; padding: 18px 24px;
  border: 2px solid var(--c-border); border-radius: 16px;
  background: rgba(255, 255, 255, .8);
  font-size: 14px; color: var(--c-ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { height: 207px; resize: vertical; font-size: 16px; }
.field input::placeholder, .field textarea::placeholder { color: var(--c-placeholder); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--c-pink); box-shadow: 0 0 0 4px rgba(246, 51, 154, .12);
}
.field.has-error input, .field.has-error textarea { border-color: #e11d48; }
.field-error { font-size: 13px; color: #e11d48; }
.field-error:not(:empty) { margin-top: 6px; }
.contact-form .btn { width: 100%; height: 49px; border-radius: 40px; margin-top: 8px; background: var(--grad-rainbow); background-size: 100% 100%; }
.form-status { font-size: 14px; text-align: center; color: #047857; }
.form-status:empty { display: none; }
.form-status.is-error { color: #e11d48; }
.contact-form .btn:disabled { opacity: .7; cursor: progress; transform: none; }
/* Spam honeypot: hidden from people, left in the DOM for bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.info-list { display: flex; flex-direction: column; gap: 20px; }
.info-card { display: flex; gap: 10px; align-items: flex-start; padding: 24px; border-radius: 16px; }
.info-card img { width: 50px; height: 50px; flex-shrink: 0; }
.info-card__label { font-size: 14px; line-height: 20px; color: var(--c-muted); }
.info-card__value { font-weight: 500; font-size: 16px; line-height: 24px; color: var(--c-ink); }
.info-card__value a:hover { color: var(--c-pink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-footer-bg); border-top: 1px solid var(--c-footer-line); color: var(--c-footer-text); }
.footer-main {
  display: grid;
  grid-template-columns: 435.75fr 242.77fr 242.77fr 242.77fr;
  column-gap: 25px;
  padding-block: 75px;
}
.footer-logo { display: flex; align-items: center; width: 100px; height: 100px; }
.footer-logo img { width: 73px; height: 73px; }
.footer-hours { padding-block: 20px; font-size: 16px; line-height: 26px; }
.footer-title {
  font-family: var(--f-display); font-weight: 500;
  font-size: 22px; line-height: 27px; color: #fff;
}
.footer-closed { display: grid; grid-template-columns: 226.6px 1fr; row-gap: 10px; padding-top: 15px; margin-bottom: 20px; font-size: 16px; color: var(--c-footer-link); }
.footer-col--indent { padding-left: 80px; }
.footer-links { padding-top: 15px; }
.footer-links a { display: inline-block; padding-block: 4px; font-size: 16px; line-height: 24px; color: var(--c-footer-link); transition: color .25s var(--ease); }
.footer-links li { display: flex; } /* link hit-area = text width, no inline-block line gap */
.footer-links li:first-child a { padding-top: 0; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--c-red); }

.socials { display: flex; gap: 10px; }
.socials a {
  position: relative; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50px; overflow: hidden; isolation: isolate;
  background: var(--c-footer-line);
  transition: transform .3s var(--ease);
}
.socials a:hover, .socials a:focus-visible { transform: scale(1.1); }
.socials a::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--grad-rainbow); background-size: 800% 100%;
  opacity: 0; transition: opacity .3s var(--ease);
}
.socials a:hover::before { opacity: 1; animation: rainbow-slide 4s linear infinite; }
.socials img { width: 20px; height: 20px; }

.footer-bottom { border-top: 1px solid var(--c-footer-line); padding-block: 20px; font-size: 14px; line-height: 22px; }
.footer-bottom .container-wide { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom nav a { color: var(--c-footer-link); transition: color .25s var(--ease); }
.footer-bottom nav a:hover, .footer-bottom nav a:focus-visible { color: var(--c-red); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 17px; bottom: 24px; z-index: 40;
  width: 29px; height: 29px; border-radius: 200px;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, .25); color: #fff;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, visibility .3s, transform .3s, background .2s;
}
.to-top::before {
  content: ""; width: 8px; height: 8px; margin-top: 4px;
  border-top: 2px solid currentColor; border-left: 2px solid currentColor;
  transform: rotate(45deg);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--c-pink); }

/* ---------- Scroll animations (driven by js/main.js) ----------
   .reveal            fade + slide up (default)
   .reveal--left      slide in from the left   (auto for elements on the left of the screen)
   .reveal--right     slide in from the right  (auto for elements on the right)
   .reveal--zoom      fade + scale (pills / labels)
   .split             heading split into words that rise out of a mask
   Doubled class raises specificity so page hover transitions can't hijack the entrance;
   JS strips the classes once the entrance finishes so hovers work normally afterwards. */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }
.reveal.reveal {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity .8s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--rd, 0ms);
}
.reveal.reveal--left  { transform: translate3d(-90px, 0, 0); }
.reveal.reveal--right { transform: translate3d(90px, 0, 0); }
.reveal.reveal--zoom  { transform: scale(.85); }
.reveal.reveal.is-in  { opacity: 1; transform: none; }

.split-w {
  display: inline-block; vertical-align: top;
  overflow: hidden;
  padding-bottom: .14em; margin-bottom: -.14em; /* keep descenders (g, y, p) inside the mask */
}
.split-w--block { display: block; }
.split-w > span {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 110%, 0) rotate(4deg);
  transform-origin: left bottom;
  transition: transform .9s var(--ease-out), opacity .6s var(--ease-out);
  transition-delay: var(--wd, 0ms);
}
.split-w--block > span { display: block; }
.split.is-in .split-w > span { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal.reveal, .split-w > span { opacity: 1; transform: none; transition: none; }
  .btn:hover::before, .socials a:hover::before, .icon-btn:hover::before { animation: none; }
  .btn:hover, .icon-btn:hover, .socials a:hover { transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1440px) {
  :root { --gutter: 60px; }
}

@media (max-width: 1320px) {
  .container { padding-inline: 40px; }
  :root { --gutter: 40px; }
}

@media (max-width: 1180px) {
  .main-nav ul { gap: 22px; }
  .nav-bar { padding-inline: 30px; }
  .nav-actions { padding-left: 18px; gap: 10px; }
}

@media (max-width: 1080px) {
  .section-title { font-size: 48px; }
  .nav-bar { height: 84px; }
  .brand, .brand img { width: 60px; height: 60px; }
  .nav-toggle { display: inline-flex; }
  @media (hover: hover) { .nav-toggle:hover { background: var(--c-surface); } }
  .nav-bar { position: relative; }

  /* Dim + blur the page behind the open menu (click it to close) */
  .site-header::before {
    content: ""; position: fixed; inset: 0; z-index: -1;
    background: rgba(10, 10, 10, .45);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s;
  }
  .nav-open.site-header::before { opacity: 1; visibility: visible; }

  /* Dropdown panel: sits 10px below the bar, same width as the bar */
  .nav-wrap {
    position: absolute; left: 0; right: 0; top: calc(100% + 10px);
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - 140px); overflow-y: auto; overscroll-behavior: contain;
    padding: 12px;
    background: #fff; border-radius: 20px;
    box-shadow: 0 24px 48px -12px rgba(16, 24, 40, .25);
    opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98); transform-origin: top center;
    transition: opacity .25s var(--ease), visibility .25s, transform .3s var(--ease);
  }
  .nav-open .nav-wrap { opacity: 1; visibility: visible; transform: none; }

  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav li { opacity: 0; transform: translateX(-12px); transition: opacity .3s var(--ease), transform .35s var(--ease); }
  .nav-open .main-nav li { opacity: 1; transform: none; }
  .nav-open .main-nav li:nth-child(2) { transition-delay: .03s; }
  .nav-open .main-nav li:nth-child(3) { transition-delay: .06s; }
  .nav-open .main-nav li:nth-child(4) { transition-delay: .09s; }
  .nav-open .main-nav li:nth-child(5) { transition-delay: .12s; }
  .nav-open .main-nav li:nth-child(6) { transition-delay: .15s; }
  .main-nav a {
    padding: 12px 16px; border-radius: 12px;
    font-size: 16px; line-height: 24px;
    transition: background-color .2s var(--ease), color .2s var(--ease);
  }
  .main-nav a::after { display: none; }
  .main-nav a:hover { background: var(--c-surface); color: var(--c-red); }
  .main-nav a[aria-current="page"] { background: var(--grad-pill-cool); color: var(--c-ink); font-weight: 600; }

  .nav-actions {
    gap: 12px; padding: 14px 4px 4px; margin-top: 10px;
    border-top: 1px solid var(--c-border-soft);
    justify-content: flex-start;
  }
  .nav-actions .btn { margin-left: auto; height: 44px; padding: 10px 28px; }
  html.nav-locked { overflow: hidden; }

  .contact-grid { grid-template-columns: 1fr; }
  .info-list { gap: 20px; }

  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .footer-col--indent { padding-left: 0; }
}

@media (max-width: 768px) {
  :root { --gutter: 16px; }
  .container { padding-inline: 16px; }
  .section { padding-block: 60px; }
  .section-title { font-size: 38px; }
  .section-lead { font-size: 17px; line-height: 28px; }
  .btn-row { padding-top: 40px; }
  .site-header { padding-block: 16px; }
  .nav-bar { height: 72px; padding: 10px 16px; border-radius: 16px; }
  .brand, .brand img { width: 52px; height: 52px; }
  .page-hero { min-height: 420px; padding: 140px 0 56px; }
  .contact-block .section-title { margin-bottom: 40px; }
  .contact-form { padding: 24px; }
  .footer-main { grid-template-columns: 1fr; padding-block: 56px; }
  .footer-bottom .container-wide { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  .section-title { font-size: 32px; }
  .footer-closed { grid-template-columns: 1fr 1fr; }
}
