/* ============================================
   INDOTA PRINTS — Shared Stylesheet (assets/css/styles.css)
   Vanilla CSS — Black & White base, CMY accents
   Loaded on every page. Page-only styles live next to
   each page: services/services.css, contact/contact.css
   ============================================ */

:root {
  --black: #0d0d0d;
  --white: #ffffff;
  --grey-light: #f4f4f5;
  --grey: #6e6e6e;
  --grey-border: #e2e2e4;

  --cyan: #00AEEF;
  --magenta: #EC008C;
  --yellow: #FFDE00;

  --radius: 12px;
  --radius-sm: 6px;
  --transition: 0.25s ease;
  --max-width: 1180px;
  --header-h: 84px; /* CMY bar 5 + header 78 + border 1 */

  --font-heading: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Ensure the hidden attribute wins over component display rules (e.g. modal overlay) */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  background: var(--grey-light);
  border-radius: var(--radius);
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- CMY registration bar (brand signature) ---------- */
.cmy-bar {
  display: flex;
  width: 100%;
  height: 5px;
}
.cmy-bar span { flex: 1; }
.cmy-bar .c { background: var(--cyan); }
.cmy-bar .m { background: var(--magenta); }
.cmy-bar .y { background: var(--yellow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--black);
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--white);
  color: var(--black);
  box-shadow: 3px 3px 0 var(--cyan), 6px 6px 0 var(--magenta);
  transform: translate(-3px, -3px);
}

.btn-outline {
  background: transparent;
  color: var(--black);
}
.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 100;
  border-bottom: 1px solid var(--grey-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
/* Image logo (header). Resets the global img background/radius. */
.logo img {
  height: 48px;
  width: auto;
  max-width: none;
  background: none;
  border-radius: 0;
  transition: transform var(--transition);
}
.logo:hover img { transform: scale(1.04); }
.logo span {
  background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  gap: 36px;
}
.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--yellow));
  transition: width var(--transition);
}
.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 70px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 18px;
}
.eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--magenta);
}
.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: 20px;
}
.hero h1 .accent {
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  color: var(--grey);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-image {
  position: relative;
}
.hero-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.hero-image::before {
  content: "";
  position: absolute;
  top: -16px; left: -16px;
  width: 90px; height: 90px;
  background: var(--yellow);
  border-radius: var(--radius);
  z-index: -1;
}
.hero-image::after {
  content: "";
  position: absolute;
  bottom: -16px; right: -16px;
  width: 130px; height: 60px;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  border-radius: var(--radius);
  z-index: -1;
}

/* ---------- Section basics ---------- */
section { padding: 80px 0; }
.section-head {
  max-width: 640px;
  margin: 0 auto 50px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 14px;
}
.section-head p { color: var(--grey); }

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

/* ---------- Value props (home) ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value-card {
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.value-card:hover {
  transform: translateY(-6px);
  border-color: var(--black);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}
.value-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  color: var(--white);
}
.value-card:nth-child(4n+1) .value-icon { background: var(--cyan); }
.value-card:nth-child(4n+2) .value-icon { background: var(--magenta); }
.value-card:nth-child(4n+3) .value-icon { background: var(--yellow); color: var(--black); }
.value-card:nth-child(4n+4) .value-icon { background: var(--black); }
.value-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.value-card p { color: var(--grey); font-size: 0.92rem; }

/* ---------- About split ---------- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-split img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 30px;
}
.stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
}
.stat-num.c { color: var(--cyan); }
.stat-num.m { color: var(--magenta); }
.stat-label { font-size: 0.85rem; color: var(--grey); }

/* ---------- Service cards (shared) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.1);
}
.service-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 0;
}
.service-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.service-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
  width: fit-content;
}
.tag-c { background: rgba(0,174,239,0.12); color: var(--cyan); }
.tag-m { background: rgba(236,0,140,0.12); color: var(--magenta); }
.tag-y { background: rgba(255,222,0,0.18); color: #a88900; }
.service-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.service-card p { color: var(--grey); font-size: 0.92rem; flex: 1; }
.service-list {
  list-style: none;
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--black);
}
.service-list li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--magenta);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--yellow));
}
.cta-banner h2 { margin-bottom: 14px; }
.cta-banner p { color: #cfcfcf; max-width: 500px; margin: 0 auto 30px; }
.cta-banner .btn-primary { background: var(--white); color: var(--black); border-color: var(--white); }
.cta-banner .btn-primary:hover { background: transparent; color: var(--white); box-shadow: none; transform: none; }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  padding: 28px;
}
.testimonial-card .stars { color: var(--yellow); margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card p { font-size: 0.95rem; margin-bottom: 18px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--white);
}
.avatar.c { background: var(--cyan); }
.avatar.m { background: var(--magenta); }
.avatar.y { background: var(--yellow); color: var(--black); }
.author-name { font-weight: 600; font-size: 0.9rem; }
.author-role { font-size: 0.78rem; color: var(--grey); }

/* ---------- Page header (services/contact) ---------- */
.page-header {
  padding: 60px 0 50px;
  text-align: center;
  background: var(--grey-light);
}
.page-header h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 14px; }
.page-header p { color: var(--grey); max-width: 560px; margin: 0 auto; }

/* ---------- Service categories page ---------- */
.category-block { margin-bottom: 70px; }
.category-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}
.category-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}
.category-block:nth-of-type(3n+1) .category-num { background: var(--cyan); }
.category-block:nth-of-type(3n+2) .category-num { background: var(--magenta); }
.category-block:nth-of-type(3n+3) .category-num { background: var(--yellow); color: var(--black); }
.category-head h2 { font-size: 1.5rem; }
.category-head p { color: var(--grey); font-size: 0.92rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding-top: 60px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.site-footer .logo { color: var(--white); }
.footer-inner p, .footer-inner a { color: #b8b8b8; font-size: 0.9rem; }
.footer-inner h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
  color: var(--white);
}
.footer-inner ul { list-style: none; }
.footer-inner ul li { margin-bottom: 10px; }
.footer-inner ul li a:hover { color: var(--white); }
.footer-brand p { margin: 16px 0 20px; max-width: 280px; }
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 36px; height: 36px;
  border: 1px solid #333;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  transition: background var(--transition), border-color var(--transition);
}
.social-row a:hover { background: var(--white); color: var(--black); }
.footer-bottom {
  border-top: 1px solid #262626;
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
  color: #888;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner, .about-split { grid-template-columns: 1fr; }
  .hero-image { order: -1; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav { 
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    gap: 20px;
    border-bottom: 1px solid var(--grey-border);
    display: none;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .header-actions .btn { display: none; }
  .logo img { height: 40px; }
  .values-grid, .services-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 50px 0 40px; }
  section { padding: 56px 0; }
}

/* ============================================
   MOBILE POLISH + MOTION (added Sept 2026)
   ============================================ */

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

/* Photo zoom on the home service cards (matches the catalog cards) */
.service-card img { transition: transform 0.4s ease; }
.service-card:hover img { transform: scale(1.04); }

/* Hero: one short load-in sequence */
@keyframes heroUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroImg {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.hero-inner > div:first-child > * { animation: heroUp 0.6s ease both; }
.hero-inner > div:first-child > *:nth-child(2) { animation-delay: 0.08s; }
.hero-inner > div:first-child > *:nth-child(3) { animation-delay: 0.16s; }
.hero-inner > div:first-child > *:nth-child(4) { animation-delay: 0.24s; }
.hero-image { animation: heroImg 0.7s ease 0.12s both; }

/* Mobile menu slides down instead of popping in */
@keyframes navDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 680px) {
  .nav.open { animation: navDrop 0.2s ease; box-shadow: 0 12px 24px rgba(0,0,0,0.06); }
  .about-stats { flex-wrap: wrap; gap: 20px 32px; }
  .stat-num { font-size: 1.7rem; }
  .cta-banner { padding: 44px 22px; }
  .hero-image::before { top: -10px; left: -10px; width: 64px; height: 64px; }
  .hero-image::after { bottom: -10px; right: -10px; width: 96px; height: 44px; }
}

/* Respect "reduce motion" settings */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .reveal { opacity: 1; transform: none; }
}
