/* ============================================
   Timesolves — stylesheet
   Palette: ink / paper / brass / slate
   Type: Space Grotesk (display) + Work Sans (body)
   ============================================ */

:root {
  --ink: #14171e;
  --ink-soft: #262b35;
  --paper: #eef1f2;
  --paper-dim: #e1e5e3;
  --brass: #b8863c;
  --brass-soft: #d9b378;
  --slate: #5b6472;
  --white: #fafaf9;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Work Sans", sans-serif;
  --max-width: 1140px;
  --radius: 6px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
  font-weight: 600;
}

p {
  margin: 0;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.btn-primary {
  background: var(--brass);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--brass-soft);
}

.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
  opacity: 0.85;
}

.btn-ghost:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a:not(.nav-cta) {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.85;
}

.nav-links a:not(.nav-cta):hover {
  opacity: 1;
}

.nav-cta {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links.open {
    max-height: 320px;
  }

  .nav-links a {
    width: 100%;
    padding: 14px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-cta {
    margin: 14px 28px;
    width: calc(100% - 56px);
    justify-content: center;
  }
}

/* ===== Hero ===== */
.hero {
  background: var(--ink);
  color: var(--white);
  padding: 88px 0 96px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.25rem, 4.4vw + 1rem, 3.6rem);
  color: var(--white);
  max-width: 14ch;
}

.hero p.lede {
  margin-top: 24px;
  font-size: 1.1rem;
  color: rgba(250, 250, 249, 0.78);
  max-width: 46ch;
  line-height: 1.65;
}

.hero .cta-row {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-graphic svg {
  width: 100%;
  max-width: 340px;
  height: auto;
}

.ring-outer {
  animation: spin 48s linear infinite;
  transform-origin: 200px 200px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ring-outer {
    animation: none;
  }
}

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .hero-graphic {
    order: -1;
    max-width: 220px;
    margin: 0 auto;
  }
}

/* ===== Section generic ===== */
.section {
  padding: 88px 0;
}

.section-dim {
  background: var(--paper-dim);
}

.section-ink {
  background: var(--ink);
  color: var(--white);
}

.section-head {
  max-width: 60ch;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 2.6vw + 1rem, 2.4rem);
}

.section-head p {
  margin-top: 14px;
  color: var(--slate);
  font-size: 1.05rem;
}

.section-ink .section-head p {
  color: rgba(250, 250, 249, 0.72);
}

/* ===== About ===== */
.about .wrap {
  max-width: 780px;
}

.about p {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--ink);
}

.about p + p {
  margin-top: 20px;
}

/* ===== Services ===== */
.services-list {
  border-bottom: 1px solid rgba(20, 23, 30, 0.12);
}

.service-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  padding: 34px 0;
  border-top: 1px solid rgba(20, 23, 30, 0.12);
}

.service-row h3 {
  font-size: 1.35rem;
}

.service-row p {
  color: var(--slate);
  max-width: 58ch;
  font-size: 1.02rem;
  line-height: 1.65;
}

.service-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--brass);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.service-link:hover {
  border-bottom-color: var(--brass);
}

/* ===== Individual service pages ===== */
.service-page-inner {
  max-width: 720px;
}

.service-page-section {
  margin-top: 40px;
}

.service-page-section h2 {
  font-size: 1.4rem;
}

.service-page-section p {
  margin-top: 12px;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink);
}

.service-page-cta {
  margin-top: 48px;
}

@media (max-width: 720px) {
  .service-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ===== Team ===== */
.team-group {
  margin-bottom: 44px;
}

.team-group:last-child {
  margin-bottom: 0;
}

.team-group-label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(20, 23, 30, 0.12);
}

.team-group-note {
  font-weight: 400;
  font-family: var(--font-body);
  color: var(--slate);
  font-size: 0.85rem;
}

.team-people {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
}

.person {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink-soft);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid var(--brass-soft);
  flex-shrink: 0;
}

.person-name {
  font-weight: 600;
  font-size: 1rem;
}

.person-role {
  color: var(--slate);
  font-size: 0.88rem;
  margin-top: 2px;
}

/* ===== Contact ===== */
.contact .wrap {
  max-width: 640px;
}

.contact h2 {
  color: var(--white);
}

.contact p.lede {
  color: rgba(250, 250, 249, 0.78);
  margin-top: 16px;
  font-size: 1.1rem;
  max-width: 50ch;
}

.contact .cta-row {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.contact .email-link {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: rgba(250, 250, 249, 0.6);
  padding: 32px 0;
  font-size: 0.9rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-links a {
  text-decoration: none;
  color: inherit;
}

.footer-links a:hover {
  color: var(--white);
}

/* ===== Contact page ===== */
.contact-page {
  padding: 120px 0 140px;
}

.contact-page-inner {
  max-width: 620px;
}

.contact-page h1 {
  font-size: clamp(2.25rem, 4vw + 1rem, 3.2rem);
}

.contact-page .lede {
  margin-top: 18px;
  font-size: 1.15rem;
  color: var(--slate);
  line-height: 1.7;
  max-width: 52ch;
}

.btn-large {
  padding: 17px 32px;
  font-size: 1.05rem;
  margin-top: 32px;
}

.contact-note {
  margin-top: 22px;
  color: var(--slate);
  font-size: 0.95rem;
}

.contact-alt {
  margin-top: 24px;
  color: var(--slate);
  font-size: 0.95rem;
}

.contact-alt a {
  color: var(--ink);
  font-weight: 600;
}

/* ===== Contact form ===== */
.contact-form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 520px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid rgba(20, 23, 30, 0.18);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--brass);
}

.contact-form button[type="submit"] {
  align-self: flex-start;
  border: none;
}

/* Honeypot: kept off-screen for real visitors, still reachable by simple bots */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.form-banner {
  margin-top: 28px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  max-width: 520px;
}

.form-banner-success {
  background: rgba(184, 134, 60, 0.12);
  border: 1px solid var(--brass);
}

.form-banner-error {
  background: rgba(91, 100, 114, 0.12);
  border: 1px solid var(--slate);
}
