/* Your AI Guy, uraiguy.com
   White and blue, hardware-store plain: the trade a local owner already trusts.
   Light only, deliberately: no dark variant, no prefers-color-scheme. */

:root {
  --bg:        #FFFFFF;
  --bg-alt:    #F3F7FB;
  --accent:    #004990;   /* primary blue: white text on this passes AA at all sizes */
  --accent-hi: #0060BF;   /* hover / brighter blue */
  --text:      #101820;
  --muted:     #5A6672;
  --line:      #DFE6EE;

  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --maxw: 1080px;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* ---------- Focus ---------- */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Wordmark ---------- */

.wordmark {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { text-decoration: none; }
.wordmark__accent { color: var(--accent); margin: 0 2px; }
.wordmark--sm { font-size: 18px; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

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

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover {
  text-decoration: none;
  background: var(--accent-hi);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 73, 144, 0.28);
}
.btn:active { transform: translateY(0); }
.btn--sm { padding: 9px 16px; font-size: 15px; }
.btn--lg { padding: 15px 30px; font-size: 17px; }

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

.hero {
  position: relative;
  padding: clamp(64px, 12vw, 132px) 0 clamp(56px, 9vw, 96px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, #EAF2FA 0%, rgba(255, 255, 255, 0) 68%);
  pointer-events: none;
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; animation: rise 0.6s ease both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2.1rem, 6vw, 3.9rem);
  font-weight: 700;
  max-width: 26ch;      /* fits "Like a handyman for AI," before the manual break */
}

.hero__sub {
  margin-top: 24px;
  max-width: 60ch;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: var(--muted);
}

.hero__cta {
  margin-top: 38px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.hero__note { font-size: 14px; color: var(--muted); }

/* ---------- Proof ---------- */

.proof {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(48px, 7vw, 76px) 0;
  background: var(--bg-alt);
}
.proof__lead {
  font-size: clamp(1.35rem, 2.8vw, 1.8rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 34px;
  max-width: 24ch;
}

/* ---------- Portfolio grid ---------- */

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

.proj {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 26px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
/* Accent rule that wipes in across the top edge on hover. */
.proj::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}
.proj:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 73, 144, 0.35);
  box-shadow: 0 16px 38px rgba(16, 24, 32, 0.11);
}
.proj:hover::after { transform: scaleX(1); }

.proj__vertical {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}
.proj__result {
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.28;
  color: var(--text);
}
.proj__detail {
  font-size: 0.97rem;
  line-height: 1.58;
  color: #4C5763;
}
.proj__tag {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.74rem !important;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

/* The one engagement with a hard number gets the loud treatment. */
.proj--featured {
  grid-column: span 2;
  grid-row: span 2;
  border: none;
  justify-content: center;   /* content sits centred; tag is pinned below */
  padding-bottom: 74px;
  min-height: 380px;
  color: #fff;
  background:
    radial-gradient(120% 140% at 100% 0%, #0060BF 0%, rgba(0, 96, 191, 0) 55%),
    linear-gradient(150deg, #004990 0%, #00335F 100%);
}
.proj--featured::after { background: rgba(255, 255, 255, 0.85); }
.proj--featured:hover {
  border-color: transparent;
  box-shadow: 0 20px 44px rgba(0, 73, 144, 0.34);
}
.proj--featured .proj__vertical { color: rgba(255, 255, 255, 0.72); }
.proj--featured .proj__result   { color: #fff; font-size: 1.5rem; }
.proj--featured .proj__detail   { color: rgba(255, 255, 255, 0.86); max-width: 46ch; }
.proj--featured .proj__tag {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  margin-top: 0;
  color: rgba(255, 255, 255, 0.78);
  border-top-color: rgba(255, 255, 255, 0.26);
}
.proj__stat {
  font-size: clamp(3rem, 7.4vw, 6rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: #fff;
  margin: 6px 0 -2px;
}

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 9vw, 100px) 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* Sits INSIDE .container, so it inherits the container's left edge and stays
   aligned with every other section heading. Do not add margin auto here. */
.section__narrow { max-width: 720px; }
.section__title {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 32px;
}
.section__closer {
  margin-top: 28px;
  font-size: 1.05rem;
  color: var(--text);
  border-left: 2px solid var(--accent);
  padding-left: 18px;
}

/* ---------- Checklist ---------- */

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li {
  position: relative;
  padding-left: 34px;
  color: var(--muted);
  font-size: 1.03rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--accent);
}

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: rgba(0, 73, 144, 0.45);
  box-shadow: 0 10px 26px rgba(16, 24, 32, 0.09);
  transform: translateY(-2px);
}
.card__title { font-size: 1.17rem; font-weight: 700; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card__tag {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.83rem !important;
  color: var(--muted);
}
.card__tag--trust { color: var(--accent) !important; }

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}
.step { display: flex; flex-direction: column; gap: 10px; }
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
.step__title { font-size: 1.1rem; font-weight: 700; }
.step p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Booking ---------- */

.book__sub { color: var(--muted); margin: -18px 0 30px; max-width: 56ch; }

/* Cal's month_view needs ~1150px to lay out title + calendar + slot column
   without clipping the slots. Give this one section a wider container. */
.book > .container { max-width: 1220px; }
.cal-embed {
  min-height: 640px;
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.book__fallback {
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--muted);
  text-align: center;
}

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

.footer { padding: 44px 0; border-top: 1px solid var(--line); }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.footer__links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}
.footer__links a { color: var(--muted); }
.footer__links a:hover { color: var(--accent); }
.footer__copy { font-size: 0.88rem; color: var(--muted); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .proj--featured { grid-column: span 2; grid-row: auto; }
  .proj:last-child { grid-column: span 2; }
  .br-lg { display: none; }
}

@media (max-width: 680px) {
  .projects { grid-template-columns: 1fr; }
  .proj--featured, .proj:last-child { grid-column: span 1; }
  .proj { padding: 24px 22px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .hero__cta { align-items: stretch; flex-direction: column; }
  .btn--lg { text-align: center; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .cal-embed { min-height: 560px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
