/* ==========================================================================
   Sitenow — pixel recreation
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=Playball&display=swap');

:root {
  /* Colors */
  --navy: #0b1f3a;
  --navy-soft-border: rgba(255, 255, 255, 0.22);
  --cream: #fdfcfa;
  --white: #ffffff;
  --text-dark: #14151a;
  --text-body: #46484c;
  --text-on-navy: #ffffff;
  --text-on-navy-muted: rgba(255, 255, 255, 0.78);
  --border-light: #e4e1dd;
  --border-on-navy: rgba(255, 255, 255, 0.25);
  --placeholder-bg: #d9d9d9;
  --placeholder-icon: #b0b0b0;

  /* Type */
  --font-body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-script: 'Playball', cursive;

  --fs-display: clamp(2rem, 1.1rem + 4vw, 3.25rem);
  --fs-h2: clamp(1.625rem, 1.05rem + 2.6vw, 2.375rem);
  --fs-h3: clamp(1.125rem, 0.95rem + 0.8vw, 1.375rem);
  --fs-body-lg: clamp(1rem, 0.9rem + 0.4vw, 1.0625rem);
  --fs-body: 0.9375rem;
  --fs-small: 0.8125rem;
  --fs-nav: 0.9375rem;
  --fs-eyebrow: 0.8125rem;

  /* Layout */
  --container-max: 1240px;
  --container-pad: clamp(24px, 5.5vw, 90px);
  --header-h: 68px;
  --radius-pill: 999px;
  --radius-sm: 10px;

  --section-pad-y: clamp(48px, 8vw, 80px);
  --section-pad-y-sm: 56px;
}

@media (max-width: 600px) {
  :root {
    --header-h: 64px;
  }
}

/* Very narrow phones: logo + CTA button + menu icon need extra room */
@media (max-width: 400px) {
  :root {
    --container-pad: 14px;
  }
  .logo-btn img { height: 22px; }
  .header-actions { gap: 6px; }
  .header-actions .btn {
    padding: 9px 13px;
    font-size: 0.75rem;
  }
  .menu-toggle { padding: 4px; }
  .menu-toggle svg { width: 20px; height: 20px; }
}

/* ==========================================================================
   Reset / base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: inherit;
  font-size: 100%;
  text-align: left;
}

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4, p {
  margin: 0;
}

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* offset for sticky header when jumping to anchors */
section[id] {
  scroll-margin-top: var(--header-h);
}

/* ==========================================================================
   Buttons & shared bits
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: opacity 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover { opacity: 0.85; }

/* filled navy pill — used for primary CTA on light backgrounds */
.btn-primary {
  background: var(--navy);
  color: var(--white);
}

/* outline pill on light background */
.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--border-light);
}

/* filled white pill — primary CTA on navy backgrounds */
.btn-on-navy {
  background: var(--white);
  color: var(--navy);
}

/* outline pill on navy background */
.btn-outline-on-navy {
  background: transparent;
  color: var(--white);
  border-color: var(--border-on-navy);
}

/* plain text + chevron link, used for secondary "Contact" links on light bg */
.link-chevron {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--text-dark);
}

.link-chevron svg { width: 15px; height: 15px; flex-shrink: 0; }

.link-chevron.on-navy { color: var(--white); }

.cta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.eyebrow {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  margin-bottom: 14px;
}

.eyebrow.on-navy { color: var(--white); }
.eyebrow.on-light { color: var(--text-dark); }

h1, h2.display {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

h2.medium {
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.on-navy-heading { color: var(--white); }
.on-light-heading { color: var(--text-dark); }

.body-text {
  font-size: var(--fs-body-lg);
  line-height: 1.55;
}

.body-text.on-navy { color: var(--text-on-navy-muted); }
.body-text.on-light { color: var(--text-body); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: var(--header-h);
}

.logo-btn {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  flex-shrink: 0;
}

.logo-btn img {
  display: block;
  height: 28px;
  width: auto;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(9px, 1.6vw, 24px);
}

.main-nav a {
  font-size: clamp(0.75rem, 0.65rem + 0.3vw, 0.9375rem);
  color: var(--white);
  white-space: nowrap;
}

.main-nav a:hover { opacity: 0.8; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.header-actions .btn { flex-shrink: 0; }

.mobile-only { display: none; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  color: var(--white);
  align-items: center;
  justify-content: center;
}

.menu-toggle svg { width: 22px; height: 22px; }

/* mobile dropdown panel */
.mobile-nav {
  display: none;
  background: var(--navy);
  border-top: 0 solid var(--navy-soft-border);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.28s ease;
}

.mobile-nav.open {
  max-height: 420px;
  border-top-width: 1px;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  padding: 8px var(--container-pad) 20px;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 1rem;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav li:last-child a { border-bottom: none; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .desktop-only { display: none; }
  .mobile-only { display: inline-flex; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav { display: block; }
}

/* ==========================================================================
   Generic section paddings / split layout (eyebrow+heading | text+ctas)
   ========================================================================== */

.section { padding-block: var(--section-pad-y); }
.bg-navy { background: var(--navy); }
.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.split .split-right {
  max-width: 480px;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .split .split-right { max-width: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero .split { align-items: center; }

.hero-copy p.body-text { margin: 20px 0 28px; max-width: 440px; }

.hero-image img {
  width: 100%;
  aspect-ratio: 383 / 352;
  object-fit: cover;
  border-radius: 4px;
}

@media (max-width: 900px) {
  .hero .split { grid-template-columns: 1fr; }
  .hero-image { order: 2; }
  .hero-copy p.body-text { max-width: none; }
}

/* ==========================================================================
   "More than a website" split-with-gallery section
   ========================================================================== */

.gallery-section .split {
  grid-template-columns: 0.85fr 1fr;
}

.gallery-copy .body-text { margin: 20px 0 28px; max-width: 420px; }

.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
  height: 100%;
}

.gallery img.gallery-big {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 100%;
  height: 100%;
  aspect-ratio: 279 / 415;
  object-fit: cover;
  border-radius: 4px;
}

.gallery img.gallery-small {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  aspect-ratio: 189 / 193;
  object-fit: cover;
  border-radius: 4px;
}

@media (max-width: 900px) {
  .gallery-section .split { grid-template-columns: 1fr; }
  .gallery-copy .body-text { max-width: none; }
  .gallery {
    max-width: 420px;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 1fr;
    height: auto;
    aspect-ratio: 279 / 200;
  }
  .gallery img.gallery-big,
  .gallery img.gallery-small {
    grid-row: 1;
    height: 100%;
    aspect-ratio: auto;
  }
  .gallery img.gallery-small { grid-column: 2; }
}

/* ==========================================================================
   What we do — intro navy band reuses .split; detail section below
   ========================================================================== */

.whatwedo-detail .split {
  grid-template-columns: 0.95fr 1fr;
  align-items: stretch;
}

.wwd-list {
  display: flex;
  flex-direction: column;
}

.wwd-item {
  border-left: 1px solid var(--border-light);
  padding: 22px 0 22px 22px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.wwd-item h3 {
  font-size: var(--fs-h3);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.wwd-item p {
  font-size: var(--fs-body);
  color: var(--text-body);
  line-height: 1.5;
  max-width: 420px;
}

.wwd-item.active {
  border-left: 1px solid var(--text-dark);
}

.wwd-image {
  border-radius: 4px;
  overflow: hidden;
}

.wwd-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .whatwedo-detail .split { grid-template-columns: 1fr; }
  .wwd-image { max-width: 420px; aspect-ratio: 378/375; }
}

/* ==========================================================================
   Built to be seen — project cards
   ========================================================================== */

.section-heading-center {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 48px;
}

.section-heading-center .eyebrow { text-align: center; }
.section-heading-center p.body-text { margin-top: 14px; }

.cards-row {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.card-image { width: 100%; aspect-ratio: 795/448; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 24px; }

.card-body h3 {
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.card-body p {
  font-size: var(--fs-body);
  color: var(--text-body);
  margin-bottom: 16px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  font-size: var(--fs-small);
  font-weight: 700;
  padding: 6px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
}

.card-body .link-chevron {
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

/* Desktop only: cards run horizontally, per explicit spec */
@media (min-width: 901px) {
  .cards-row { flex-direction: row; align-items: stretch; }
  .cards-row .card { flex: 1 1 0; }
  .card-image { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   Timeline ("A simple path to a better website")
   ========================================================================== */

.timeline-intro { margin-bottom: 56px; }
.timeline-intro .body-text { margin: 16px 0 24px; max-width: 480px; }

.timeline { position: relative; padding-left: 28px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: -10px;
  bottom: 6px;
  width: 1px;
  background: var(--text-dark);
  opacity: 0.85;
}

.timeline-step {
  position: relative;
  padding-bottom: 48px;
}

.timeline-step:last-child { padding-bottom: 0; }

.timeline-step::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-dark);
}

.timeline-step .step-num {
  font-size: 1.375rem;
  font-weight: 800;
  display: block;
  margin-bottom: 2px;
}

.timeline-step h3 {
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.timeline-step p {
  font-size: var(--fs-body);
  color: var(--text-body);
  max-width: 460px;
  margin-bottom: 18px;
}

/* ==========================================================================
   Contact form
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-grid .eyebrow { margin-bottom: 14px; }
.contact-grid h2 { margin-bottom: 14px; }
.contact-intro { color: var(--text-body); margin-bottom: 36px; }

.form-field { margin-bottom: 22px; }

.form-field label {
  display: block;
  font-size: var(--fs-body);
  font-weight: 500;
  margin-bottom: 10px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border-light);
  background: transparent;
  padding: 6px 0 12px;
  font-family: inherit;
  font-size: var(--fs-body);
  color: var(--text-dark);
  resize: vertical;
}

.form-field textarea { min-height: 110px; }

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--text-dark);
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: #9a9a9a; }

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  font-size: var(--fs-body);
}

.form-check input { width: 16px; height: 16px; accent-color: var(--navy); }

.contact-image {
  width: 100%;
  aspect-ratio: 4/3.6;
  background: var(--placeholder-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-image svg { width: 64px; height: 64px; color: var(--placeholder-icon); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-image { order: 2; max-width: 420px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer-cta {
  text-align: center;
  padding-bottom: 72px;
}

.footer-cta .eyebrow { display: none; }
.footer-cta h2 { margin-bottom: 18px; }
.footer-cta .body-text {
  max-width: 460px;
  margin: 0 auto 28px;
}
.footer-cta .cta-row { justify-content: center; }

.footer-columns {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-top: 48px;
  border-top: 1px solid var(--navy-soft-border);
}

.footer-brand .logo-btn {
  margin-bottom: 22px;
}
.footer-brand .logo-btn img { height: 34px; }

.footer-brand p {
  color: var(--text-on-navy-muted);
  font-size: var(--fs-body);
  margin-bottom: 16px;
  line-height: 1.5;
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-size: var(--fs-body);
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-brand a { color: var(--text-on-navy-muted); text-decoration: underline; }

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.social-row a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-row svg { width: 16px; height: 16px; color: var(--white); }

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-links ul { display: flex; flex-direction: column; gap: 16px; }
.footer-links a { color: var(--white); font-size: var(--fs-body); font-weight: 500; }
.footer-links a:hover { opacity: 0.8; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--navy-soft-border);
  color: var(--text-on-navy-muted);
  font-size: var(--fs-small);
}

.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { text-decoration: underline; color: var(--text-on-navy-muted); }

@media (max-width: 900px) {
  .footer-columns { flex-direction: column; gap: 40px; }
  .footer-links { gap: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .footer-links { flex-direction: column; gap: 32px; }
}
