/*
  ARQ PRINTERS LIMITED - STYLES
  =============================
  This file is CSS: it controls how the HTML LOOKS.
  A rule reads:   which-elements { property: value; }
  e.g.            h1 { color: red; }   = "make every main heading red"

  A class (written .name here) matches HTML elements with class="name".

  DESIGN IDEA: quiet, confident and mostly white, like good paper.
  One signature move: the hero photo is cut on the same slant as the
  logo's stripes. Red is used sparingly, for actions and key moments.
*/

/* ---------- 1. BRAND COLOURS & SETTINGS ----------
   Defined once here. Change a value here and it changes everywhere.
   These match the brand guide.                                       */
:root {
  --red: #EE2737;        /* Arq Red    - Pantone 1788 C */
  --red-action: #D91F2E; /* red for buttons with white text: passes 4.5:1 contrast */
  --red-dark: #C81E2C;   /* red for text links and hover states */
  --grey: #97999B;       /* Press Grey - Pantone Cool Gray 7 C */
  --ink: #3D3935;        /* Ink        - Pantone Black 7 C */
  --text: #2E2A27;       /* body text, a touch darker than Ink for reading */
  --muted: #66615D;      /* secondary text (passes contrast on white) */
  --line: #E4E2DF;       /* hairlines */
  --stock: #F3F3F2;      /* soft paper-grey background */
  --paper: #FFFFFF;
  --font: "Poppins", Arial, sans-serif;
  --max: 1200px;
  --slant: 0.78;         /* the logo's stripe angle, used for the hero cut */
}

/* ---------- 2. BASICS ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;   /* 17px, but grows if a visitor sets bigger text in their browser */
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 600; }
h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lead { font-size: 19px; line-height: 1.6; color: #4A4541; max-width: 34em; }
.lead.light { color: #D9D5D1; }
.muted-text { color: var(--muted); max-width: 32em; }

/* Keyboard users: always show where focus is */
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { top: 12px; }

/* ---------- 3. BUTTONS & LINKS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 28px;
  font: 600 15px var(--font); text-decoration: none;
  border: 2px solid transparent; border-radius: 3px; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-red { background: var(--red-action); color: #fff; }
.btn-red:hover { background: #B81A27; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.text-link {
  color: var(--red-dark); font-weight: 600; text-decoration: underline;
  text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.text-link:hover { color: var(--ink); }

/* ---------- 4. HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo { height: 64px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { text-decoration: none; font-weight: 500; font-size: 15px; }
.main-nav a:not(.btn):hover { color: var(--red-dark); }
.main-nav .btn { min-height: 44px; padding: 0 20px; }
.menu-toggle { display: none; }

/* ---------- 5. HERO ---------- */
.hero { padding: 72px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-text h1 { max-width: 11em; margin-bottom: 28px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-visual { position: relative; margin: 0; height: 520px; }
.hero-visual img {
  position: absolute; inset: 0 0 32px 0; width: 100%; height: calc(100% - 32px); object-fit: cover;
  /* The slanted cut: same angle as the logo stripes */
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-slab {
  position: absolute; left: -2%; bottom: 32px; width: 24%; height: 58%;
  background: var(--red);
  clip-path: polygon(52% 0, 100% 0, 48% 100%, 0 100%);
}
.hero-visual figcaption {
  position: absolute; right: 0; bottom: 0; font-size: 13px; color: var(--muted);
}
/* One page-load moment: the photo wipes in along the slant */
@media (prefers-reduced-motion: no-preference) {
  .hero-visual img { animation: wipe 1s cubic-bezier(.2,.7,.2,1) both 0.15s; }
  .hero-slab { animation: rise 0.8s cubic-bezier(.2,.7,.2,1) both 0.6s; }
}
@keyframes wipe {
  from { clip-path: polygon(100% 0, 100% 0, 70% 100%, 70% 100%); }
  to   { clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); }
}
@keyframes rise { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- 6. CLIENTS ---------- */
.clients { padding: 40px 0 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients-title { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-bottom: 28px; }
.client-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px;
}
.client-list li { display: flex; align-items: center; gap: 12px; }
.client-list img {
  max-height: 60px; max-width: 170px; width: auto;
  filter: grayscale(1); opacity: 0.7; mix-blend-mode: multiply;
  transition: filter 0.25s, opacity 0.25s;
}
.client-list li:hover img { filter: none; opacity: 1; }
.client-list span, .client-list .name-only {
  font-weight: 600; font-size: 15px; line-height: 1.3; color: #7A7470; max-width: 13em;
}

/* ---------- 7. SECTIONS ---------- */
.section { padding: 112px 0; scroll-margin-top: 80px; }
.section-stock { background: var(--stock); }
.section-ink { background: var(--ink); }
.section-title { margin-bottom: 56px; }
#clients, #careers, #offices, #quote { scroll-margin-top: 80px; }

/* Split layout: heading on the left, content on the right */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.split-head { position: sticky; top: 120px; display: grid; gap: 20px; justify-items: start; }

/* Services: an open two-column list, not boxes */
.services { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.service { padding: 28px 0; border-top: 1px solid var(--line); }
.service h3 { margin-bottom: 8px; }
.service p { color: var(--muted); font-size: 16px; }

/* Work */
.project {
  display: grid; grid-template-columns: 4fr 7fr; gap: 64px; align-items: start;
  padding: 56px 0; border-top: 1px solid #DAD8D5;
}
.project:last-child { padding-bottom: 0; }
.project-tag { font-size: 14px; font-weight: 600; color: var(--red-dark); margin-bottom: 12px; }
.project-text h3 { font-size: 26px; letter-spacing: -0.02em; margin-bottom: 20px; }
.project-text p { color: #4A4541; }
.project-client { font-size: 14px; color: var(--muted) !important; margin-top: 24px; }
.project-media img { width: 100%; height: 100%; object-fit: cover; }

.media-kericho { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.media-kericho .logo-panel {
  grid-column: 1 / -1; background: #fff; display: grid; place-items: center; padding: 48px;
}
.media-kericho .logo-panel img { width: 100%; height: auto; max-width: 440px; object-fit: contain; }
.media-kericho { min-width: 0; }
.media-kericho .logo-panel { min-width: 0; }
.media-kericho > img { aspect-ratio: 4 / 3; }

.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.media-grid img { aspect-ratio: 4 / 3; }
.media-grid img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

/* About */
.section-ink h2, .section-ink h3 { color: #fff; }
.statement { font-size: clamp(34px, 4.6vw, 60px); max-width: 15em; margin-bottom: 64px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.values { display: grid; gap: 28px; }
.values > div { border-top: 2px solid var(--red); padding-top: 16px; }
.values h3 { margin-bottom: 4px; }
.values p { color: #C9C5C1; }

/* News: a simple dated list */
.news { border-bottom: 1px solid var(--line); }
.news-item {
  display: grid; grid-template-columns: 220px 1fr; gap: 32px;
  padding: 32px 0; border-top: 1px solid var(--line);
}
.news-item time { font-size: 15px; font-weight: 500; color: var(--muted); padding-top: 2px; }
.news-item h3 { margin-bottom: 8px; }
.news-item p { color: var(--muted); max-width: 44em; }

/* Careers band */
.careers { background: var(--stock); padding: 72px 0; scroll-margin-top: 80px; }
.careers-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.careers h2 { font-size: 32px; margin-bottom: 10px; }
.careers p { color: var(--muted); max-width: 40em; }
.careers .btn { flex-shrink: 0; }

/* Contact + quote */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-info h2 { margin-bottom: 32px; }
.office { padding: 22px 0; border-top: 1px solid var(--line); }
.office h3 { font-size: 17px; margin-bottom: 6px; }
.office p { color: var(--muted); margin-bottom: 8px; }
.office a:not(.text-link) { color: var(--ink); font-weight: 600; text-decoration: none; }

.quote-box { background: var(--stock); padding: 48px; }
.quote-box h2 { font-size: 32px; margin-bottom: 10px; }
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.quote-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
.quote-form .full { grid-column: 1 / -1; }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%; font: 400 16px var(--font); color: var(--text);
  padding: 13px 14px; border: 1px solid #CBC8C4; border-radius: 3px; background: #fff;
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
  outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red);
}
.form-error { grid-column: 1 / -1; color: var(--red-dark); font-size: 14px; margin: 0; min-height: 1em; }

/* ---------- 8. FOOTER ---------- */
.site-footer { background: var(--ink); color: #CFCAC6; padding: 56px 0 48px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-logo { height: 76px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-links a { text-decoration: none; font-weight: 500; font-size: 15px; }
.footer-links a:hover { color: #fff; }
.footer-links .staff-mail { border: 1px solid #6E6863; padding: 4px 14px; border-radius: 3px; }
.copyright { width: 100%; margin: 16px 0 0; padding-top: 24px; border-top: 1px solid #55504B; font-size: 14px; }

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #128C7E; color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

/* ---------- 9. SMALLER SCREENS ----------
   "@media" rules only apply when the screen is narrower than the number. */
@media (max-width: 1080px) {
  /* The 7 menu links don't fit, so use the menu button */
  .menu-toggle { display: grid; gap: 5px; padding: 10px; background: none; border: 0; cursor: pointer; }
  .menu-toggle .bar { width: 24px; height: 2px; background: var(--ink); }
  .main-nav {
    display: none; position: absolute; top: 80px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 32px 24px;
  }
  .main-nav a { padding: 12px 0; }
  .main-nav .btn { margin-top: 8px; }
  .main-nav.open { display: flex; }   /* js/main.js adds the "open" class */
}

@media (max-width: 960px) {
  .hero-grid, .split, .project, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 380px; }
  .split-head { position: static; }
  .careers-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .hero { padding: 40px 0 56px; }
  .hero-visual { height: 280px; }
  .logo { height: 50px; }
  .services, .quote-form { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; gap: 6px; }
  .media-kericho .logo-panel { padding: 28px; }
  .quote-box { padding: 28px 20px; }
  .client-list { justify-content: flex-start; }
  .client-list img { max-height: 48px; max-width: 140px; }
}

/* ---------- 10. ACCESSIBILITY EXTRAS ---------- */
/* Required-field marker and form errors */
.req { color: var(--red-dark); font-weight: 600; }
.form-error.ok { color: var(--ink); font-weight: 500; }
.quote-form [aria-invalid="true"] { border-color: var(--red-dark); border-width: 2px; }
.form-note { grid-column: 1 / -1; font-size: 14px; color: var(--muted); margin: 0; }
/* Visitors who ask for more contrast in their system settings */
@media (prefers-contrast: more) {
  :root { --muted: #3F3B38; --line: #8A8580; }
  .client-list img { filter: none; opacity: 1; }
}
/* Accessibility page */
.page { padding: 72px 0 112px; }
.page .container { max-width: 820px; }
.page h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 24px; }
.page h2 { font-size: 26px; margin: 48px 0 14px; }
.page ul { padding-left: 1.2em; margin: 0 0 16px; }
.page li { margin-bottom: 8px; }
