/* Sticky Development Inc. — static site
   Sizes scale with the viewport like the original Squarespace site
   (values measured at a 1905px-wide window). */

:root {
  --text: #1d1d1f;
  --text-muted: #5e5e62;
  --bg: #fcfcfc;
  --bg-gray: #efefef;
  --card: #f0f0f0;
  --number: #c8c8c8;
  --footer-bg: #000;
  --footer-text: #cacacc;

  --gutter: max(20px, 7.87vw);  /* side margin for header, footer and all page content */
  --edge: var(--gutter);

  --fs-base: clamp(16px, calc(0.9375vw + 3.75px), 18px);
  --fs-small: max(15px, 0.833vw);
  --fs-h1: max(40px, calc(31.2px + 1.5vw));  /* page titles: 60 at 1920, 54 at 1520 (home hero stays bigger) */
  --fs-h2: max(30px, 2.29vw);
  --fs-h4: max(21px, 1.354vw);
  --fs-hero-top: max(26px, 2.92vw);
  --fs-hero-main: max(36px, 3.96vw);
  --fs-label: max(17px, 0.99vw);
  --fs-lead: 22px;   /* home hero description */
  --fs-intro: 21px;  /* page intro description (About Us, Contact Us) */
  --fs-item-title: var(--fs-h4);   /* item titles: home value cards + About Us items */
  --fs-item: 18px;
  --top-space: max(150px, 10.2vw);   /* header top -> first line of every page (home hero, About, Expertise): 116 / 75 below the header at 1920 / 1520 */
  --item-gap: 10px;   /* item title -> description: home, About, Expertise */
  --grid-width: min(1240px, 64.6vw);   /* 2x2 box grids (home Key Value Points + Area of Expertise): 1240 at 1920, ~980 at 1520 */   /* item descriptions: home value cards + About Us items */

  --ls-base: -0.02em;
  --ls-head: -0.025em;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.4;
  letter-spacing: var(--ls-base);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p { margin: 0; font-weight: 400; }
a { color: inherit; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: #000; color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 80px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--edge);
  transition: background-color .25s ease;
}
.site-header.is-scrolled { background: rgba(252, 252, 252, .94); }
.header-logo img { width: 69px; height: auto; }

.header-nav { display: flex; align-items: center; gap: max(28px, 2.1vw); }
.header-nav a {
  text-decoration: none;
  font-size: var(--fs-small);
  line-height: 1.4;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.header-nav a:hover,
.header-nav a[aria-current="page"] { text-decoration: underline; }

.header-nav a.header-button {
  margin-left: max(4px, 0.4vw);
  border: 1.5px solid #000;
  border-radius: 8px;
  padding: 10px 24px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.header-nav a.header-button:hover { background: #000; color: #fff; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; padding: 10px; cursor: pointer;
}
.menu-toggle:focus:not(:focus-visible) { outline: none; }  /* ring only for keyboard users */
.menu-toggle span { display: block; height: 1.5px; background: var(--text); margin: 6px 0; transition: transform .25s, opacity .25s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  background: #000; color: #fff;
  border: 0; border-radius: 8px;
  font: inherit; font-size: var(--fs-base); font-weight: 500; letter-spacing: var(--ls-base);
  text-decoration: none;
  cursor: pointer;
  transition: opacity .2s;
}
.button:hover { opacity: .8; }

/* ---------- Home: hero ---------- */
.hero {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: var(--top-space) var(--gutter) max(80px, 6vw);
  text-align: center;
  background: var(--bg) url("../img/hero-bg.jpg") center / cover no-repeat;
}
.hero-inner { position: relative; width: 100%; }
.hero-network {
  position: absolute; inset: 0;
  pointer-events: none;
  /* fade out behind the text in the middle */
  -webkit-mask-image: radial-gradient(ellipse 42% 48% at 50% 50%, transparent 30%, #000 100%);
          mask-image: radial-gradient(ellipse 42% 48% at 50% 50%, transparent 30%, #000 100%);
}
.hero h2.hero-top {
  font-size: var(--fs-hero-top);
  line-height: 1;
  letter-spacing: var(--ls-head);
}
.hero h1 {
  margin-top: 0.06em;
  font-size: var(--fs-hero-main);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em; /* matches the width of the line above */
}
.hero p {
  max-width: 910px;
  margin: max(28px, 2.1vw) auto 0;
  font-size: var(--fs-lead);
  text-wrap: pretty;
}
.hero .button {
  margin-top: max(32px, 2.5vw);
  font-size: 20px;
  height: 56px;
  padding: 0 56px;
}

/* ---------- Home: key value points ---------- */
/* 2 x 2 cards; same space above the title and below the button */
.values {
  display: flex; flex-direction: column; align-items: center;
  padding: max(80px, 6.25vw) var(--gutter);
  text-align: center;
}
.values h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: var(--ls-head);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  max-width: var(--grid-width);
  margin: 48px 0 0;
}
.value-card {
  background: var(--card);
  border-radius: 12px;
  padding: 52px 32px;
}
.value-card img { width: 64px; margin: 0 auto; }
.value-card h3 {
  margin-top: 28px;
  font-size: var(--fs-item-title);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: var(--ls-head);
}
.value-card p { margin-top: var(--item-gap); font-size: var(--fs-item); color: var(--text-muted); }  /* same colour as About + Expertise */
.values .button {
  margin-top: 48px;
  font-size: 20px;
  height: 56px;
  padding: 0 56px;
}

/* Entrance animation: fades up when the section scrolls into view */
.js .reveal { opacity: 0; transform: translateY(32px); }
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--d, 0) * 110ms);
}
/* Slower, later entrance (hero button arrives after the text has settled) */
.js .reveal--slow.is-visible { transition-duration: 1.1s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Inner page intro ---------- */
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 11px;
  padding: max(120px, 9.66vw) var(--gutter) max(64px, 9.2vw);
}
.intro--gray { background: var(--bg-gray); }
.eyebrow {
  font-size: var(--fs-base);
  font-weight: 500;
  margin-bottom: 11px;
}
.intro h1 {
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: var(--ls-head);
}
.intro-text { align-self: start; padding-top: max(41px, 2.15vw); max-width: 640px; font-size: var(--fs-intro); }
/* Centered intro (About Us hero): label, title, text stacked in the middle */
.intro--center {
  grid-template-columns: 1fr;
  text-align: center;
  padding-top: var(--top-space);                 /* same as the home hero */
  padding-bottom: max(48px, 3.33vw);
}
.intro--center .intro-text { justify-self: center; padding-top: 20px; max-width: 840px; }

/* ---------- About ---------- */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 8.24vw;
  padding: max(64px, 6.25vw) var(--gutter) max(96px, 8.33vw);
}
/* About Us section 1: two columns grouped in the middle, text left-aligned */
.features.features--center { grid-template-columns: repeat(2, minmax(0, 560px)); justify-content: center; column-gap: 120px; }
.feature img { width: max(40px, calc(18px + 1.5vw)); }  /* 48 at 1920, 40 at 1520 */
.feature h2 {
  margin-top: max(16px, 1.1vw);
  font-size: var(--fs-item-title);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: var(--ls-head);
}
.feature p, .value-card p, .expertise-card p { text-wrap: pretty; }   /* avoid short last lines */
.feature p { margin-top: var(--item-gap); color: var(--text-muted); max-width: 560px; font-size: var(--fs-item); }

/* ---------- Area of Expertise ---------- */
.expertise {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;                                                     /* same as home cards */
  grid-auto-rows: 1fr;                                           /* all four cards the same height */
  max-width: var(--grid-width);
  margin: 0 auto;
  box-sizing: content-box;
  padding: max(64px, 6.25vw) var(--gutter) max(96px, 8.33vw);   /* same as About Us section 1 */
}
.expertise-card {
  background: var(--card);
  border-radius: 12px;
  padding: max(32px, 2.5vw);   /* 48 at 1920, 38 at 1520; height follows the content */
}
.expertise-card .number {
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: var(--ls-head);
  color: var(--number);
}
.expertise-card h2 {
  margin-top: max(20px, 1.67vw);
  font-size: var(--fs-item-title);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: var(--ls-head);
}
.expertise-card h2 + p { margin-top: var(--item-gap); font-size: var(--fs-item); color: var(--text-muted); max-width: 38em; }

/* ---------- Contact form ---------- */
/* Contact Us: title on the left, form on the right */
.contact-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: max(64px, 6.25vw);
  align-items: center;                                  /* title block sits level with the middle of the form */
  padding: var(--top-space) var(--gutter) max(96px, 8.33vw);
  background: linear-gradient(to right, var(--bg-gray) 50%, var(--bg) 50%);   /* left half grey, like the other page intros */
}
.contact-intro h1 {
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: var(--ls-head);
}
.contact-intro .intro-text { padding-top: 24px; max-width: 700px; text-wrap: balance; }   /* new line at the second sentence (desktop) */
.contact-form { max-width: none; margin: 0; }
.form-field { margin: 0 0 23px; border: 0; padding: 0; min-width: 0; }
.form-field > legend,
.form-field > label {
  display: block;
  padding: 0 0 2px;
  font-size: var(--fs-label);
  font-weight: 500;   /* field names: Name, Company, Email, Phone, Message */
}
.required { margin-left: 4px; font-size: 13px; color: var(--text-muted); }
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.name-row label { display: block; font-size: 12px; line-height: 2; }
.name-row .required { font-size: 12px; }
.contact-form input,
.contact-form textarea {
  display: block; width: 100%;
  font: inherit; font-size: var(--fs-base); color: var(--text);
  background: #fff;
  border: 1px solid #cfcfd1;          /* light edge */
  border-radius: 8px;                 /* same corners as the buttons */
  padding: 6px 14px;
}
.contact-form input { height: 44px; }
.contact-form textarea { min-height: 100px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: #000; }   /* black edge while typing */
.form-submit { text-align: center; }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0 0 16px; text-align: center; font-size: var(--fs-small); color: #c00; }
.form-success { max-width: 1018px; margin: 0 auto; }
.form-success h2 { font-size: var(--fs-h4); font-weight: 700; line-height: 1.25; letter-spacing: var(--ls-head); }
.form-success p { margin-top: 1.4em; }
[hidden] { display: none !important; }
.form-submit .button { padding: 0 max(32px, 2vw); height: max(52px, 3.1vw); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 40px var(--edge);
}
.footer-top {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.footer-logo img { width: max(280px, 26.4vw); }
.footer-nav { display: flex; gap: max(28px, 2.1vw); } /* same spacing as the header menu */
.footer-nav a {
  font-size: var(--fs-small);
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: opacity .2s;
}
.footer-nav a:hover { opacity: .7; }
.copyright { margin-top: 16px; text-align: right; font-size: 14px; color: #8a8a8e; }

/* ---------- Laptop: hero text stays large (52/70 at 1520, 56/76 at 1920) ---------- */
@media (min-width: 901px) and (max-width: 1799px) {
  :root {
    --fs-hero-top: calc(36.8px + 1vw);
    --fs-hero-main: calc(47.2px + 1.5vw);
    --fs-item: 17px;   /* item descriptions on laptop screens */
    --fs-item-title: 23px;   /* item titles on laptop screens */
  }
}

/* ---------- Laptop: Key Value Points fits one screen (about 800px tall at 1520) ---------- */
@media (min-width: 901px) and (max-width: 1799px) {
  .values { padding-top: 64px; padding-bottom: 64px; }
  .values-grid { gap: 16px; margin-top: 52px; }
  .value-card { padding: 54px 32px; }
  .value-card img { width: 56px; }
  .value-card h3 { margin-top: 24px; }
  .values .button { margin-top: 32px; }
}

/* ---------- Tablet / mobile ---------- */
@media (max-width: 900px) {
  .site-header { height: 64px; background: rgba(252, 252, 252, .94); }
  .header-logo img { width: 56px; }
  .menu-toggle { display: block; }
  /* Menu drops down under the header, only as tall as its items; the page behind is dimmed */
  .header-nav {
    position: fixed; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: center; gap: 0;   /* items centered in the panel */
    padding: 8px var(--edge) 28px;
    background: var(--bg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, visibility .25s, transform .25s;
  }
  .menu-open .header-nav { opacity: 1; visibility: visible; transform: none; }
  .header-nav a { font-size: 20px; padding: 14px 0; }
  /* in the menu, Contact Us looks like the site's other main buttons: black fill, sized to its text */
  .header-nav a.header-button {
    display: inline-flex; align-items: center;
    margin: 16px 0 0; height: 52px; padding: 0 56px;   /* same side padding as the hero button */
    font-size: 18px;
    background: #000; color: #fff; border-color: #000;
  }
  .menu-open { overflow: hidden; }
  .menu-open .site-header { background: var(--bg); }   /* solid header while the menu is open */
  .menu-open::after {
    content: ""; position: fixed; inset: 64px 0 0 0; z-index: 40;
    background: rgba(0, 0, 0, .7);   /* dark, so page content behind doesn't compete */
  }

  .intro, .features, .expertise, .values-grid { grid-template-columns: 1fr; }
  .values-grid, .expertise { max-width: none; }  /* box grids use the full width on tablets and phones */
  .expertise { grid-auto-rows: auto; }   /* one card per row: each card only as tall as its text */
  .intro-text { padding-top: 24px; }
  .hero p { max-width: none; }
  .br-desktop { display: none; }  /* fixed line break only on large screens */
  .features { row-gap: 64px; }
  .features.features--center { grid-template-columns: 1fr; row-gap: 48px; }
  .footer-top { flex-direction: column; align-items: center; }
  .footer-nav { flex-wrap: wrap; justify-content: center; gap: 16px 28px; padding-right: 0; }
  .copyright { text-align: center; margin-top: 24px; }
}

@media (max-width: 560px) {
  :root {
    --top-space: 112px;   /* 48 below the 64px phone header */
    --fs-lead: 18px;
    --fs-intro: 18px;   /* same as the home hero text on phones */
    --fs-item-title: 17px;
    --fs-item: 16px;
    --fs-hero-top: min(24px, 6.3vw);  /* 24 on most phones, a touch smaller on 360-wide so it stays one line */
    --fs-hero-main: min(36px, 8.8vw);
    --fs-h1: 36px;
    --fs-h2: 28px;
    --fs-h4: 20px;
  }
  .hero h2.hero-top { text-wrap: balance; font-weight: 500; }
  .hero h1 { white-space: nowrap; margin-top: 10px; }
  .hero { padding: var(--top-space) 20px 64px; }
  .hero p { margin-top: 24px; }
  .hero .button, .values .button { font-size: 18px; height: 52px; padding: 0 32px; }
  .hero .button { margin-top: 32px; }
  .intro { padding-left: 20px; padding-right: 20px; }   /* same 20 side margin as the home hero, so intro text breaks less */
  .features { padding-left: 20px; padding-right: 20px; }   /* same 20 side margin, so item text breaks less */
  .contact-split { grid-template-columns: 1fr; row-gap: 48px; align-items: start; padding-left: 20px; padding-right: 20px; background: var(--bg); }
  /* phones: the grey sits behind the title block as a full-width band */
  .contact-intro { margin: calc(-1 * var(--top-space)) -20px 0; padding: var(--top-space) 20px 48px; background: var(--bg-gray); }
  .contact-intro { text-align: center; }   /* same as the About / Expertise intros on phones */
  .contact-intro .intro-text { margin-left: auto; margin-right: auto; }
  .intro-text { text-wrap: pretty; }

  .values { padding: 64px 20px 96px; }   /* same 20 side margin as the mobile hero */
  .expertise { padding-left: 20px; padding-right: 20px; }   /* same 20 as home cards */
  .values-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 16px; margin-top: 72px; }
  .value-card { padding: 0; background: none; border-radius: 0; }  /* no grey box on phones */
  /* same-row items share row heights: titles sit in the middle of the title row,
     descriptions start at the same height */
  .value-card { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
  .value-card h3 { align-self: center; }
  .value-card p { align-self: start; }
  .value-card img { width: 36px; }
  .value-card h3 { margin-top: 12px; }
  .value-card p { line-height: 1.4; }
  .values .button { margin-top: 56px; white-space: nowrap; padding: 0 20px; font-size: min(18px, 4.6vw); }

  /* compact form on phones: first/last name side by side, tighter fields */
  .name-row { grid-template-columns: 1fr 1fr; }
  .form-field { margin-bottom: 16px; }
  .contact-form input { height: 42px; }
  .contact-form textarea { min-height: 88px; }
  .contact-intro { padding-bottom: 40px; }
  .contact-split { row-gap: 32px; }
  .footer-logo img { width: 280px; }
  .footer-nav { gap: 12px 24px; }
  .footer-nav a { font-size: 14px; }
}
