/* ============================================================
   CENTURY METRICS — STYLESHEET
   ------------------------------------------------------------
   HOW THIS FILE IS ORGANIZED (top to bottom):
     1. DESIGN TOKENS  — all colors & fonts live here. Change a
                          color ONCE here and it updates everywhere.
     2. BASE           — reset + body defaults
     3. NAV
     4. HERO
     5. SECTION BASE   — shared bits (eyebrow, h2, intro)
     6. SERVICES
     7. WORK
     8. ABOUT
     9. CONTACT
    10. FOOTER
    11. RESPONSIVE     — phone/tablet tweaks

   To recolor the whole site, you almost never need to leave the
   DESIGN TOKENS block below.
   ============================================================ */


/* ── 1. DESIGN TOKENS ──────────────────────────────────────
   These are the "objects" that keep colors consistent.
   Every color below is referenced elsewhere as var(--name),
   e.g. color: var(--sienna);
   Edit the value here → it changes site-wide.                */
:root {
  /* Brand colors */
  --cream:    #F5F0E8;   /* page background */
  --charcoal: #1C1C1A;   /* main text + dark sections */
  --sienna:   #C4622D;   /* primary accent (orange) */
  --avocado:  #4A7C59;   /* About section green */
  --tan:      #E8D5B0;   /* borders, cards, dot pattern */
  --mid-gray: #7A7570;   /* muted / secondary text */

  /* Fonts */
  --font-display: 'DM Serif Display', serif;   /* big headings */
  --font-body:    'DM Sans', sans-serif;       /* body text */
  --font-mono:    'IBM Plex Mono', monospace;  /* labels / eyebrows */
}


/* ── 2. BASE ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}


/* ── 3. NAV ──────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 4rem;
  background: var(--cream);
  border-bottom: 1.5px solid var(--tan);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  text-decoration: none;
}

.nav-logo span { color: var(--sienna); }

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

nav a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover { color: var(--sienna); }


/* ── 4. HERO ─────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 5rem 4rem 0;
  gap: 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--tan) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  opacity: 0.55;
  z-index: 0;
}

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sienna);
  margin-bottom: 1.25rem;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

h1 em {
  font-style: italic;
  color: var(--sienna);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--mid-gray);
  max-width: 460px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--sienna);
  color: var(--cream);
}

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

.btn-ghost {
  border: 1.5px solid var(--charcoal);
  color: var(--charcoal);
  margin-left: 1rem;
}

.btn-ghost:hover {
  background: var(--charcoal);
  color: var(--cream);
}

.hero-graphic {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-graphic svg { width: 100%; max-width: 480px; }


/* ── 5. SECTION BASE ─────────────────────────────────────── */
section { padding: 6rem 4rem; }

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sienna);
  margin-bottom: 0.75rem;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.12;
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1rem;
  color: var(--mid-gray);
  max-width: 560px;
  margin-bottom: 3.5rem;
}


/* ── 6. SERVICES ─────────────────────────────────────────── */
#services {
  background: var(--charcoal);
  color: var(--cream);
}

#services h2 { color: var(--cream); }
#services .section-eyebrow { color: var(--tan); }
#services .section-intro { color: #9A9590; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5px;
  background: #333330;
}

.service-card {
  background: var(--charcoal);
  padding: 2.5rem;
  transition: background 0.2s;
}

.service-card:hover { background: #252523; }

.service-icon {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  display: block;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  color: #9A9590;
  line-height: 1.65;
}

.service-tag {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sienna);
  border: 1px solid var(--sienna);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}


/* ── 7. WORK ─────────────────────────────────────────────── */
#work { background: var(--cream); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.work-card {
  background: var(--tan);
  border-radius: 3px;
  overflow: hidden;
  transition: transform 0.2s;
}

.work-card:hover { transform: translateY(-4px); }

.work-card-top {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.work-card-body { padding: 1.75rem; }

.work-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.work-card p {
  font-size: 0.88rem;
  color: var(--mid-gray);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.work-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--cream);
  color: var(--charcoal);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}


/* ── 8. ABOUT ────────────────────────────────────────────── */
#about {
  background: var(--avocado);
  color: var(--cream);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

#about h2 { color: var(--cream); }
#about .section-eyebrow { color: var(--tan); opacity: 0.8; }

.about-text p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(245,240,232,0.85);
  margin-bottom: 1.25rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat {
  border-top: 2px solid rgba(245,240,232,0.3);
  padding-top: 1rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.6);
}

.stack-list {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stack-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  background: rgba(245,240,232,0.12);
  color: var(--cream);
  border: 1px solid rgba(245,240,232,0.25);
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
}


/* ── 9. CONTACT ──────────────────────────────────────────── */
#contact {
  background: var(--cream);
  text-align: center;
  padding: 7rem 4rem;
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--tan) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  opacity: 0.45;
  z-index: 0;
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 580px;
  margin: 0 auto;
}

#contact h2 { margin-bottom: 1rem; }

.contact-sub {
  font-size: 1rem;
  color: var(--mid-gray);
  margin-bottom: 2.5rem;
}

.contact-phone {
  color: var(--sienna);
  text-decoration: none;
  border-bottom: 1px solid var(--sienna);
  transition: color 0.2s, border-color 0.2s;
}

.contact-phone:hover { color: var(--charcoal); border-color: var(--charcoal); }

.google-form-embed {
  width: 100%;
  border: none;
  border-radius: 3px;
  min-height: 600px;
}


/* ── 10. FOOTER ──────────────────────────────────────────── */
footer {
  background: var(--charcoal);
  color: #5A5550;
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

footer a { color: #5A5550; text-decoration: none; }
footer a:hover { color: var(--tan); }


/* ── 11. RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 820px) {
  nav { padding: 1rem 1.5rem; }
  nav ul { gap: 1.25rem; }
  .hero { grid-template-columns: 1fr; padding: 6rem 1.5rem 3rem; }
  .hero-graphic { display: none; }
  section { padding: 4rem 1.5rem; }
  #about { grid-template-columns: 1fr; gap: 2.5rem; padding: 4rem 1.5rem; }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
