/* =====================================================================
   GetCloudDone styles
   ---------------------------------------------------------------------
   Visitor-facing words live in index.html, not in this file.
   The values under "Brand colors" are safe to change if you want
   a different blue, navy, or grey. Everything else is layout.
   ===================================================================== */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-regular.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-medium.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-semibold.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/inter-bold.woff2") format("woff2");
}

:root {
  /* Brand colors */
  --ink: #111111;
  --text: #2c2c2c;
  --navy: #0c1e3d;
  --blue: #1a6fe8;
  --line: #e2e2e2;
  --line-soft: #d5d8e0;
  --grey: #f3f4f6;
  --footer: #0a0a0a;
  --white: #ffffff;

  --max: 1120px;
  --gutter: 1.5rem;
  --font: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7.5rem;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
}

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

::selection {
  background: #d6e6ff;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  z-index: 30;
}

.skip:focus {
  transform: none;
}

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

/* Navigation ---------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  border-bottom: 1px solid #ececec;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  min-height: 4.5rem;
  margin-inline: auto;
}

.brand {
  display: flex;
  flex: 0 0 auto;
  line-height: 0;
}

.brand img {
  width: 42px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-right: auto;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
}

.nav-links a:hover {
  color: var(--blue);
}

.button {
  display: inline-block;
  flex: 0 0 auto;
  background: #111111;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  white-space: nowrap;
}

.button:hover {
  background: #000000;
}

/* Hero ---------------------------------------------------------------- */

.hero {
  padding: 4.25rem 0 4.5rem;
  text-align: center;
}

.hero h1 {
  margin: 0 auto;
  max-width: 17em;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}

.lockup {
  margin-top: 3rem;
}

.hero-mark {
  width: min(168px, 46vw);
  height: auto;
}

.wordmark {
  margin: 0.85rem 0 0;
  font-size: clamp(2.15rem, 6.2vw, 3.55rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.wordmark .navy {
  color: var(--navy);
}

.wordmark .blue {
  color: var(--blue);
}

.tagline {
  margin: 0.75rem 0 0;
  font-size: clamp(0.68rem, 2.1vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #1a1a1a;
}

.promise {
  margin: 2.75rem auto 0;
  max-width: 24em;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  text-wrap: balance;
}

.body-copy {
  margin: 1.15rem auto 0;
  max-width: 40rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
}

.closer {
  margin-top: 1.75rem;
  font-weight: 700;
  color: var(--ink);
}

/* Shared section pieces ---------------------------------------------- */

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 0 2.5rem;
}

.section-title {
  margin: 0 0 2.5rem;
  text-align: center;
  font-size: clamp(2rem, 4.4vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

/* Services ------------------------------------------------------------ */

.services {
  padding: 0 0 5.5rem;
}

.services-grid {
  /* Six tracks so three cards fill a row (each spans two).
     An incomplete last row is centered: two cards sit in the
     middle tracks, and a single leftover card sits in the center. */
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2.25rem 1.75rem;
}

.service-card {
  grid-column: span 2;
}

.service-card:nth-child(3n + 1):nth-last-child(2) {
  grid-column: 2 / span 2;
}

.service-card:nth-child(3n + 2):nth-last-child(1) {
  grid-column: 4 / span 2;
}

.service-card:nth-child(3n + 1):nth-last-child(1) {
  grid-column: 3 / span 2;
}

.service-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
}

.service-card h3 {
  margin: 1.1rem 0 0.55rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.service-card p {
  margin: 0;
  color: #333333;
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Expertise ----------------------------------------------------------- */

.expertise {
  background: var(--grey);
  padding: 4.25rem 0 5.5rem;
}

.expertise .rule {
  border-top-color: var(--line-soft);
}

.expertise-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
}

.expertise-photo {
  display: block;
  width: 100%;
  border-radius: 22px;
  box-shadow: 0 12px 36px rgba(16, 24, 40, 0.07);
}

.expertise-copy p {
  margin: 0 0 1.15rem;
  color: #2a2a2a;
  font-size: 1.02rem;
  line-height: 1.7;
}

.expertise-copy p:last-child {
  margin-bottom: 0;
}

/* Footer -------------------------------------------------------------- */

.site-footer {
  background: var(--footer);
  color: var(--white);
  text-align: center;
  padding: 4.5rem 1.25rem 5rem;
}

.site-footer h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.contact-link {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 600;
  text-underline-offset: 0.2em;
}

.contact-link:hover {
  color: #c5dbff;
}

.site-footer a:focus-visible {
  outline-color: var(--white);
}

/* Narrow screens ------------------------------------------------------ */

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 34rem;
    margin-inline: auto;
  }

  .services-grid > .service-card:nth-child(n) {
    grid-column: auto;
  }

  .expertise-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .expertise-photo {
    max-width: 32rem;
    margin-inline: auto;
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 1.15rem;
  }

  .nav {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    min-height: 0;
    padding: 0.85rem 0 0.7rem;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-right: 0;
    gap: 1.75rem;
    padding-bottom: 0.15rem;
  }

  .button {
    margin-left: auto;
  }

  .hero {
    padding: 2.75rem 0 3.25rem;
  }

  .lockup {
    margin-top: 2.25rem;
  }

  .tagline {
    letter-spacing: 0.1em;
  }

  .services {
    padding-bottom: 4rem;
  }

  .expertise {
    padding: 3.25rem 0 4rem;
  }

  .site-footer {
    padding: 3.5rem 1.15rem 4rem;
  }
}

@media (max-width: 380px) {
  .tagline {
    letter-spacing: 0.06em;
    font-size: 0.64rem;
  }

  .button {
    padding: 0.7rem 0.95rem;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
