/* ==========================================================================
   PAWCAR Ltd. — stylesheet
   Plain CSS, no build step. Edit colours and spacing in :root below.
   ========================================================================== */

:root {
  --paper:      #F3F4F1;  /* page background, a cool off-white */
  --white:      #FFFFFF;
  --ink:        #13242C;  /* deep petrol — headings, dark bands */
  --ink-soft:   #263B45;
  --steel:      #5E7079;  /* secondary text */
  --line:       #DBDFDA;  /* hairlines */
  --plant:      #E5A81F;  /* machinery yellow — the single bold note */
  --plant-dark: #B8850F;

  --wrap: 1140px;
  --gutter: 24px;
  --radius: 3px;
}

/* ---------- reset ---------- */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p { margin: 0 0 1.1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--plant);
  outline-offset: 3px;
}

/* ---------- layout helpers ---------- */

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

.band { padding-block: clamp(56px, 8vw, 104px); }
.band-dark { background: var(--ink); color: var(--paper); }
.band-white { background: var(--white); }

.skip {
  position: absolute;
  left: -9999px;
  background: var(--plant);
  color: var(--ink);
  padding: 12px 18px;
  font-weight: 600;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* The one recurring motif: a plant-machinery hazard stripe. */
.hazard {
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--plant) 0 14px,
    var(--ink) 14px 28px
  );
}

/* ---------- header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 74px;
}

.logo { margin-right: auto; display: flex; align-items: center; }
.logo img { height: 42px; width: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 14px;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  color: var(--ink);
}

.nav { display: flex; align-items: center; gap: 4px; }

.nav a,
.nav-services > button {
  display: block;
  padding: 9px 12px;
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  border-radius: var(--radius);
}

.nav a:hover,
.nav-services > button:hover { color: var(--ink); background: var(--paper); }

.nav-services { position: relative; }

.nav-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 270px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--plant);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(19, 36, 44, .13);
  padding: 6px;
  display: none;
}

.nav-services:hover .nav-menu,
.nav-services:focus-within .nav-menu { display: block; }

.nav-menu a { padding: 9px 12px; font-size: 15px; }

.cta-call {
  background: var(--ink);
  color: var(--white);
  padding: 11px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  white-space: nowrap;
}
.cta-call:hover { background: var(--ink-soft); }

.cta-short { display: none; }

/* ---------- hero ---------- */

.hero {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(64px, 11vw, 132px);
}

.hero h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.5rem);
  max-width: 15ch;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero-lede {
  margin-top: 26px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: #B9C6CC;
  max-width: 52ch;
}

.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary { background: var(--plant); color: var(--ink); }
.btn-primary:hover { background: #F3B928; }

.btn-ghost { border-color: #43606C; color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); }

/* ---------- facts strip ---------- */

.facts {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.fact {
  background: var(--white);
  padding: 30px 26px;
}

.fact strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.fact span {
  display: block;
  margin-top: 4px;
  color: var(--steel);
  font-size: 15.5px;
}

/* ---------- section headings ---------- */

.section-head { margin-bottom: 44px; }

.section-head h2 {
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  font-weight: 800;
}

.section-head p {
  margin-top: 16px;
  color: var(--steel);
  font-size: 1.08rem;
}

.band-dark .section-head p { color: #A9B9C0; }

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.about-copy p { font-size: 1.06rem; }

.offices {
  border-top: 3px solid var(--plant);
  padding-top: 22px;
}

.offices h3 { font-size: 1.05rem; font-weight: 700; }

.offices ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.offices li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--steel);
}
.offices li strong { color: var(--ink); font-weight: 600; }

/* ---------- pillars ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 52px);
  margin-top: 64px;
}

.pillar { border-top: 2px solid var(--ink); padding-top: 20px; }

.pillar h3 { font-size: 1.22rem; margin-bottom: 12px; }

.pillar p { color: var(--steel); font-size: 16px; }

/* ---------- services ---------- */

.service {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: clamp(24px, 5vw, 64px);
  padding-block: clamp(34px, 5vw, 52px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 92px;
}

.service:last-of-type { border-bottom: 1px solid var(--line); }

.service h3 {
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  font-weight: 700;
}

.service-body p { font-size: 1.04rem; color: var(--ink-soft); }

.service-body .muted { color: var(--steel); font-size: 15.5px; }

/* ---------- gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.gallery-grid a {
  display: block;
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gallery-grid a:hover img { opacity: .88; }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.phones { list-style: none; margin: 0; padding: 0; }

.phones li {
  padding: 16px 0;
  border-bottom: 1px solid #2E454F;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  align-items: baseline;
}

.phones .place {
  min-width: 150px;
  color: #A9B9C0;
  font-size: 15.5px;
}

.phones a {
  font-size: 1.22rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.phones a:hover { color: var(--plant); }

.email-line { margin-top: 30px; }

.email-line a {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--plant);
  text-decoration: none;
  word-break: break-all;
}
.email-line a:hover { text-decoration: underline; }

.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.social a {
  padding: 11px 18px;
  border: 1px solid #3C5560;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 15.5px;
}
.social a:hover { border-color: var(--plant); color: var(--plant); }

/* ---------- footer ---------- */

.footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding-block: 30px;
  color: var(--steel);
  font-size: 15px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
}

.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .about-grid,
  .contact-grid,
  .service { grid-template-columns: 1fr; }

  .pillars { grid-template-columns: 1fr; gap: 30px; }

  .facts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; order: 3; padding: 8px 12px; }

  .nav {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 14px;
  }

  .header-inner { flex-wrap: wrap; padding-block: 12px; gap: 10px; min-height: 0; }

  .logo img { height: 32px; max-width: 42vw; object-fit: contain; }

  .nav.is-open { display: flex; }

  .nav a, .nav-services > button {
    width: 100%;
    text-align: left;
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
  }

  .nav-menu {
    position: static;
    display: block;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 16px;
    min-width: 0;
  }

  .cta-call { order: 2; padding: 9px 13px; font-size: 14.5px; }
  .cta-full { display: none; }
  .cta-short { display: inline; }

  [id] { scroll-margin-top: 70px; }
}

@media (max-width: 480px) {
  :root { --gutter: 16px; }
}

/* ---------- gallery fallback ----------
   Shown only when no photos are present in assets/gallery/.
   Handled automatically by site.js — nothing to configure. */

.gallery-empty {
  display: none;
  border-top: 3px solid var(--plant);
  padding-top: 26px;
  max-width: 62ch;
}

.gallery-empty p { font-size: 1.06rem; color: var(--ink-soft); }

.btn-outline { border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }

/* Links that only make sense once photos exist. Hidden until site.js
   confirms at least one loaded. */
.needs-photos { display: none; }
body.has-photos .needs-photos { display: block; }
span.needs-photos { display: none; }
body.has-photos span.needs-photos { display: inline; }
