/* Brands Dotcom company site. Colours, type and layout follow the WordPress
   site it replaces (Elementor "Home Startup" layout, Poppins). */

:root {
  --blue: #0057fc;
  --blue-dark: #0046cc;
  --yellow: #ffd60a;
  --red: #e5212d;
  --ink: #111111;
  --text: #4b4b5a;
  --muted: #f5f7fb;
  --line: #e7e9f0;
  --white: #ffffff;
  --radius: 14px;
  --wrap: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 16px/1.65 "Poppins", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0;
}

.wrap {
  width: min(var(--wrap), 100% - 32px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
}

/* Read by screen readers, not shown. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--white);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* Buttons and labels */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 2px solid var(--blue);
  border-radius: 4px;
  background: var(--blue);
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.btn-light {
  background: transparent;
  border-color: var(--white);
}

.btn-light:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--blue);
}

.pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(255 255 255 / 0.94);
  backdrop-filter: blur(8px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 84px;
}

.logo img {
  width: 180px;
}

.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--blue);
}

/* Hero */

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
  padding-block: 56px 72px;
}

.hero h1 {
  margin: 22px 0 18px;
}

.hero p {
  max-width: 34rem;
  margin-bottom: 30px;
}

/* Three pillars under the hero */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-block: 8px 72px;
}

.pillar {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
}

.pillar .icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--white);
}

.pillar .icon svg {
  width: 24px;
  height: 24px;
}

.pillar h3 {
  margin-bottom: 6px;
}

.pillar p {
  font-size: 0.92rem;
}

.icon-blue {
  background: var(--blue);
}

.pillar .icon-yellow {
  background: var(--yellow);
  color: var(--ink);
}

.icon-red {
  background: var(--red);
}

/* Split sections: text beside a picture */

.split .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding-block: 72px;
}

.split h2 {
  margin-bottom: 20px;
}

.split p + p {
  margin-top: 16px;
}

.split .btn {
  margin-top: 30px;
}

.check {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 22px;
  color: var(--ink);
  font-weight: 500;
}

.check svg {
  width: 26px;
  height: 26px;
  color: var(--blue);
}

.picture-end img {
  margin-left: auto;
  max-height: 460px;
  width: auto;
}

/* Company vision: the yellow band */

.vision {
  position: relative;
  overflow: hidden;
  background: var(--yellow);
}

.vision .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 48px;
  padding-top: 72px;
}

.vision .copy {
  align-self: center;
  padding-bottom: 72px;
}

.vision .eyebrow {
  color: var(--ink);
}

.vision h2 {
  margin-bottom: 20px;
}

.vision p {
  color: var(--ink);
}

.vision .btn {
  margin-top: 30px;
}

.vision img {
  justify-self: center;
  max-height: 520px;
  width: auto;
}

/* Stats */

.stats .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding-block: 88px;
}

.stats .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
  margin: 30px 0 34px;
}

/* The number shows above its label; the markup keeps the label (dt) first. */
.stat {
  display: flex;
  flex-direction: column-reverse;
}

.stat dd {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
}

.stat dt {
  font-size: 0.92rem;
}

/* What we do */

.services {
  padding-block: 24px 88px;
}

.services header {
  margin-bottom: 44px;
  text-align: center;
}

.services ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.services li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: box-shadow 0.2s, transform 0.2s;
}

.services li:hover {
  box-shadow: 0 18px 40px rgb(17 17 17 / 0.08);
}

.services img {
  width: 56px;
  height: 56px;
}

.services h3 {
  margin-bottom: 6px;
}

.services p {
  font-size: 0.92rem;
}

/* We're hiring: blue band with a photo */

.hiring {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--blue);
  color: var(--white);
}

.hiring .copy {
  align-self: center;
  justify-self: end;
  width: min(560px, 100%);
  padding: 72px 48px 72px 16px;
}

.hiring .eyebrow,
.hiring h2,
.hiring p {
  color: var(--white);
}

.hiring h2 {
  margin-bottom: 14px;
}

.hiring .btn {
  margin-top: 28px;
}

.hiring .photo {
  min-height: 360px;
  background: url("/images/photo-1559136656-3db4bf6c35f8.jpeg") center / cover no-repeat;
}

/* Contact page */

.contact .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding-block: 64px 96px;
}

.contact h1 {
  margin: 14px 0 12px;
}

.contact .lead {
  font-size: 1.1rem;
}

.contact .email {
  margin-top: 28px;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 500;
}

.contact .email a {
  color: var(--blue);
  text-decoration: none;
}

.contact .email a:hover {
  text-decoration: underline;
}

.talk {
  position: relative;
  margin-top: 48px;
  padding: 36px;
  border-radius: var(--radius);
  background: var(--muted);
}

.talk .eyebrow {
  color: var(--ink);
}

.talk h2 {
  margin-bottom: 22px;
}

.talk .arrow {
  position: absolute;
  top: -34px;
  right: 40px;
  width: 22px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding-block: 48px 24px;
}

.site-footer .logo img {
  width: 140px;
  margin-bottom: 14px;
}

.site-footer h2 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.site-footer a {
  color: var(--blue);
  text-decoration: none;
}

.site-footer .legal {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

/* Gentle entrance, like the old site's, for those who don't mind motion. It
   only moves: the content is visible even if the animation never runs. */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: rise 0.6s ease-out;
  }

  .services li:hover {
    transform: translateY(-2px);
  }

  @keyframes rise {
    from {
      transform: translateY(14px);
    }
  }
}

/* Tablets and phones */

@media (max-width: 900px) {
  .hero .wrap,
  .split .wrap,
  .stats .wrap,
  .contact .wrap,
  .vision .wrap,
  .hiring {
    grid-template-columns: 1fr;
  }

  .hero .wrap {
    padding-top: 24px;
  }

  .pillars,
  .services ul {
    grid-template-columns: 1fr;
  }

  .pillars {
    gap: 28px;
  }

  .split .wrap,
  .stats .wrap {
    gap: 40px;
    padding-block: 56px;
  }

  .split .picture-end {
    order: -1;
  }

  .picture-end img {
    margin-inline: auto;
    max-height: 320px;
  }

  .stats .picture img {
    max-height: 320px;
    width: auto;
    margin-inline: auto;
  }

  .vision .copy {
    padding-bottom: 0;
  }

  .vision img {
    max-height: 380px;
  }

  .hiring .copy {
    justify-self: stretch;
    width: auto;
    padding: 56px 16px;
  }

  .hiring .photo {
    min-height: 260px;
  }

  .site-footer .wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header .wrap {
    gap: 16px;
    min-height: 68px;
  }

  .logo img {
    width: 140px;
  }

  .site-nav {
    gap: 18px;
  }

  .site-header .btn {
    display: none;
  }

  .services li {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px;
  }

  .talk {
    padding: 28px 22px;
  }
}
