/* Loop Design — rebuilt from the measured Squarespace design spec (2026-08) */

:root {
  --color-text: #333333;
  --color-bg: #ffffff;
  --color-nav: #aaaaaa;
  --color-nav-active: #333333;
  --color-accent: #ff0d00;
  --color-input-bg: #fafafa;
  --font-body: "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --container: 1040px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a { color: var(--color-accent); }
a:hover { color: var(--color-text); }

.container {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header { padding: 28px 0; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img { width: 136px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 40px; }

.nav-group { display: flex; list-style: none; gap: 24px; }

.nav-link {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  color: var(--color-nav);
}
.nav-link:hover, .nav-link.is-active { color: var(--color-nav-active); }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 32px; height: 26px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span {
  display: block; height: 3px; width: 100%;
  background: var(--color-text);
}

/* ---------- Work grid ---------- */

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.work-tile { position: relative; display: block; overflow: hidden; }
.work-tile img { width: 100%; height: 100%; object-fit: cover; }

.work-tile-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
  text-align: center;
  padding: 20px;
}
.work-tile:hover .work-tile-overlay,
.work-tile:focus-visible .work-tile-overlay { opacity: 1; }

.work-tile-overlay h2 {
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

/* ---------- Project sections ---------- */

.project {
  padding: 70px 0 30px;
  text-align: center;
}
.project + .project { border-top: 1px solid #eee; }

.project-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}

.project-blurb {
  max-width: 720px;
  margin: 0 auto 24px;
}

.project-link { margin-bottom: 32px; }

.project-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

/* ---------- Generic pages ---------- */

.page { padding: 40px 0 80px; }

.page-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 28px;
  text-align: center;
}

.subhead, h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.6;
  margin: 32px 0 12px;
}

.intro, .prose { max-width: 800px; margin: 0 auto; }
.intro { text-align: center; margin-bottom: 48px; }
.prose p { margin-bottom: 24px; }

.subhead { text-align: center; }
.prose + .subhead { margin-top: 48px; }

.page-figure { margin: 32px 0 40px; }
.page-figure img { width: 100%; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--color-accent);
  background: transparent;
  border: 1px solid var(--color-accent);
  border-radius: 0;
  padding: 14px 35px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover {
  background: var(--color-accent);
  color: #fff;
}

.cta { text-align: center; margin-top: 48px; }

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.service { text-align: center; }
.service-icon { width: 165px; height: 165px; margin: 0 auto 8px; }
.service h3 { margin-top: 16px; }
.service ul { list-style: none; }
.service li { margin-bottom: 6px; }

/* ---------- Banner with overlay text ---------- */

.banner { position: relative; }
.banner img { width: 100%; max-height: 70vh; object-fit: cover; }

.banner-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 20px;
}

.banner-heading {
  color: #fff;
  font-size: clamp(44px, 6.5vw, 89px);
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}
.banner-heading-sm { font-size: clamp(28px, 4vw, 56px); }

/* ---------- About ---------- */

.client-list {
  list-style: none;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* ---------- Contact form ---------- */

.contact-form { max-width: 800px; margin: 24px auto 0; text-align: left; }

.form-row { margin-bottom: 20px; }
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  background: var(--color-input-bg);
  border: 1px solid #ddd;
  border-radius: 0;
  padding: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
}
.contact-form textarea { min-height: 100px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.req { color: var(--color-accent); }

.hp-field { position: absolute; left: -9999px; }

.form-notice { max-width: 800px; margin: 24px auto; padding: 16px 20px; }
.form-notice ul { list-style: none; }
.form-success { border: 1px solid #2e7d32; color: #2e7d32; }
.form-error { border: 1px solid var(--color-accent); color: var(--color-accent); }

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

.site-footer { padding: 48px 0 40px; }

.social {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 24px;
}
.social a { color: var(--color-nav); }
.social a:hover { color: var(--color-nav-active); }

/* ---------- Mobile ---------- */

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .project-images { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .logo img { width: 80px; }

  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    z-index: 10;
  }
  .site-nav.is-open { display: flex; }
  .site-header { position: relative; }

  .nav-group { flex-direction: column; gap: 0; }
  .nav-group li { padding: 8px 0; }

  .work-grid { grid-template-columns: 1fr; }

  .project-title, .page-title { font-size: 32px; }
  .subhead, h3 { font-size: 12px; }

  .form-row-2 { grid-template-columns: 1fr 1fr; gap: 12px; }
}
