/* Brand colours sampled from Vishal's 2019 logo pack */
:root {
  --blue: #1883c0;
  --blue-dark: #12679a;
  --green: #8dc642;
  --grey: #5f6062;
  --ink: #142533;
  --night: #0d2436;
  --text: #2a3540;
  --muted: #55606b;
  --paper: #ffffff;
  --mist: #f2f5f7;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --head: "Michroma", "Segoe UI", sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 1.125rem; line-height: 1.6; color: var(--text); background: var(--paper); }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.25; }
h1, h2 { font-family: var(--head); font-weight: 400; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.35rem, 1rem + 1.5vw, 2rem); }
p { margin: 0; }
a { color: var(--blue-dark); }
a:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.7rem 1.4rem;
  font-weight: 600; font-size: 1.0625rem; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; border-radius: 3px;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--blue { background: var(--blue-dark); color: #fff; }
.btn--blue:hover { background: var(--ink); }
.btn--green { background: var(--green); color: var(--night); }
.btn--green:hover { background: #a3d65f; }
.btn--ghost { border-color: rgb(255 255 255 / 0.7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--night); }

/* Header */
.site-header { border-bottom: 1px solid #e3e8ec; background: var(--paper); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.85rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand__mark { width: 2.6rem; flex: none; }
.brand__name { width: 9.5rem; }
@media (max-width: 30rem) {
  .brand__name { display: none; }
  .site-header__call { padding-inline: 1rem; font-size: 1rem; }
}

/* Hero: text on the brand's dark blue, photo beside it on wide screens and above it on narrow ones */
.hero { position: relative; background: var(--night); color: #dbe6ee; overflow: hidden; }
.hero__photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 70% 50%; }
.hero__inner { padding-block: 2.5rem 3rem; }
.hero h1 { color: #fff; font-size: clamp(1.6rem, 1rem + 2.6vw, 2.9rem); max-width: 18ch; }
.hero__lede { margin-top: 1.25rem; max-width: 36rem; font-size: 1.1875rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

@media (min-width: 56rem) {
  .hero__photo { position: absolute; inset: 0 0 0 50%; }
  .hero__photo img { height: 100%; aspect-ratio: auto; }
  .hero__inner { padding-block: clamp(4rem, 8vw, 7rem); }
  .hero__text { width: 46%; }
}

/* Services: slanted tiles taken from Vishal's own services banner */
.services { padding-block: clamp(3rem, 7vw, 5.5rem); }
.services__list { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; gap: 2rem 1.5rem; grid-template-columns: 1fr; padding-inline: 0.5rem; }
@media (min-width: 36rem) { .services__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .services__list { grid-template-columns: repeat(3, 1fr); gap: 2.25rem 2.5rem; } }
.service__tile { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.6rem; color: #fff; isolation: isolate; }
.service__tile::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(-12deg); }
.service__tile--blue::before { background: var(--blue); }
.service__tile--grey::before { background: var(--grey); }
.service__tile svg { width: 2.75rem; flex: none; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.service__tile h3 { color: #fff; font-size: 1.25rem; font-weight: 600; }
.service p { margin-top: 0.85rem; padding-inline: 0.4rem; color: var(--muted); max-width: 32ch; }

/* Contact */
.contact { padding-block: clamp(3rem, 7vw, 5rem); background: var(--mist); }
.contact__grid { display: grid; gap: 2.5rem 3rem; margin-top: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.contact__item { border-top: 4px solid var(--green); padding-top: 1.25rem; }
.contact__item h3 { font-size: 1.3rem; font-weight: 600; }
.contact__item p { margin-top: 0.25rem; color: var(--muted); }
.contact__big { display: inline-block; margin-top: 0.9rem; font-family: var(--head); font-size: clamp(1.4rem, 1rem + 1.6vw, 2rem); color: var(--ink); text-decoration: none; }
.contact__big:hover { color: var(--blue-dark); }
.contact__mail { display: block; margin-top: 0.4rem; font-weight: 500; overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: var(--night); color: #b9c8d4; font-size: 0.95rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 2rem; }
.site-footer img { width: 11rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
