/* ===== Techno Logic Limited — redesign draft =====
   Colours come from the logo: navy + plum, on white and steel grey. */
:root {
  --navy: #0b1270;
  --navy-deep: #070b47;
  --plum: #8e2f63;
  --plum-dark: #74234f;
  --steel: #edeff3;
  --line: #d5d9e2;
  --ink: #161a33;
  --muted: #555b73;
  --white: #fff;
  --wide: "Archivo", "Arial Narrow", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--wide);
  font-variation-settings: "wdth" 100;
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; }

.wrap { width: min(1240px, 100% - 32px); margin: 0 auto; }

/* Headings: the wide cut of Archivo is the signature of the page */
h1, h2 {
  font-variation-settings: "wdth" 125;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(28px, 3.4vw, 44px); color: var(--navy); }
h3 { font-weight: 600; font-size: 17px; line-height: 1.35; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--plum { background: var(--plum); color: var(--white); }
.btn--plum:hover { background: var(--plum-dark); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: var(--steel); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex; align-items: center; gap: 32px;
  height: 76px;
}
.topbar__logo img { width: 260px; height: auto; }
.topbar__nav { display: flex; gap: 28px; margin-left: auto; }
.topbar__nav a {
  text-decoration: none; font-weight: 500; color: var(--ink);
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.topbar__nav a:hover { border-bottom-color: var(--plum); }
.topbar__call { padding: 11px 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(78vh, 680px);
  display: flex; align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  background: var(--navy-deep);
}
.hero__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
}
.hero::before {                                  /* navy wash so the text reads */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(7,11,71,.92) 0%, rgba(7,11,71,.72) 45%, rgba(7,11,71,.15) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: 120px 0 88px; }
.hero__title {
  font-size: clamp(36px, 5vw, 68px);
  font-variation-settings: "wdth" 112;
  max-width: 860px;
  animation: rise .8s cubic-bezier(.2,.7,.2,1) both;
}
.hero__title::after {                            /* plum rule under the headline, echoing the logo */
  content: ""; display: block;
  width: 96px; height: 6px; margin-top: 28px;
  background: var(--plum);
  transform-origin: left;
  animation: grow .6s .5s cubic-bezier(.2,.7,.2,1) both;
}
.hero__lead {
  max-width: 60ch; margin-top: 24px;
  font-size: clamp(17px, 1.4vw, 20px);
  color: rgba(255,255,255,.88);
  animation: rise .8s .15s cubic-bezier(.2,.7,.2,1) both;
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px;
  animation: rise .8s .3s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Section heads ---------- */
.section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px;
  align-items: end; margin-bottom: 44px;
}
.section-head p { color: var(--muted); max-width: 46ch; justify-self: end; }

/* ---------- Product catalogue (ruled index, like a supplier's catalogue) ---------- */
.products { padding: 96px 0; }
.catalogue {
  list-style: none;
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.item {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 22px 26px;
  display: flex; flex-direction: column; gap: 18px;
  background: var(--white);
}
.item__pic {
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
}
.item__pic img { width: 100%; height: 100%; object-fit: contain; }
.item__pic--empty { background: var(--steel); }
.item__pic--empty::after { content: "Picture coming soon"; color: var(--muted); font-size: 14px; }
.item h3 {
  padding-top: 14px;
  border-top: 3px solid var(--navy);
  color: var(--ink);
}

/* ---------- Where our equipment works ---------- */
.sites { background: var(--steel); padding: 96px 0; }
.photos {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
}
.photos figure { position: relative; margin: 0; }
.photos img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 3px;
}
.photos figcaption {
  margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--navy);
}

/* ---------- Contact ---------- */
.contact { background: var(--navy); color: var(--white); padding: 96px 0 72px; }
.contact h2 { color: var(--white); max-width: 22ch; }
.contact__top p { max-width: 54ch; margin-top: 20px; color: rgba(255,255,255,.82); font-size: 19px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.contact__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin-top: 72px; padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.25);
}
.contact__grid h3 { font-size: 15px; font-weight: 600; color: #d9a6c3; margin-bottom: 10px; }
.contact__grid p { color: rgba(255,255,255,.9); line-height: 1.8; }
.contact__grid a { text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; }
.contact__grid a:hover { text-decoration-color: var(--white); }

/* ---------- Footer ---------- */
.footer { padding: 28px 0; border-top: 1px solid var(--line); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__logo { width: 200px; height: auto; }
.footer p { color: var(--muted); font-size: 14px; }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .catalogue { grid-template-columns: repeat(3, 1fr); }
  .photos { grid-template-columns: repeat(3, 1fr); }
  .topbar__nav { display: none; }
  .topbar__call { margin-left: auto; }
}
/* ---------- Phone ---------- */
@media (max-width: 700px) {
  body { font-size: 16px; }
  .topbar__inner { height: 64px; gap: 12px; }
  .topbar__logo img { width: 190px; }
  .topbar__call { padding: 9px 12px; font-size: 14px; }
  .hero { min-height: 0; }
  .hero__inner { padding: 88px 0 56px; }
  .hero::before { background: linear-gradient(180deg, rgba(7,11,71,.55) 0%, rgba(7,11,71,.92) 70%); }
  .section-head { grid-template-columns: 1fr; margin-bottom: 28px; }
  .section-head p { justify-self: start; }
  .products, .sites { padding: 64px 0; }
  .catalogue { grid-template-columns: 1fr 1fr; }
  .item { padding: 14px 14px 18px; gap: 12px; }
  .item h3 { font-size: 15px; }
  .photos { grid-template-columns: 1fr 1fr; }
  .contact { padding: 64px 0 48px; }
  .contact__grid { grid-template-columns: 1fr; margin-top: 48px; }
}
@media (max-width: 380px) {
  .topbar__logo img { width: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
