/* =========================
   ChairPants Media — Styles
   ========================= */

:root {
  --bg: #f7f7f5;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #6b7280;
  --accent: #0066ff;
  --accent-ink: #ffffff;
  --ring: rgba(0,102,255,.25);
  --shadow: 0 10px 20px rgba(15,23,42,.06), 0 2px 6px rgba(15,23,42,.04);
  --radius: 16px;
}

/* Base / Resets */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Utilities */
.container { width: min(1120px, 92%); margin-inline: auto; }
.section { padding: 64px 0; }
.section-head { margin-bottom: 20px; }
.section-head h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 28px); }
.section-head .muted { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,247,245,.75);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(15,23,42,.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--ink), #334155);
  position: relative; box-shadow: var(--shadow);
}
.logo-mark::after {
  content: ""; position: absolute; inset: 6px; border-radius: 6px;
  background: linear-gradient(135deg, #8ab4ff, var(--accent));
}
.brand-name { font-weight: 700; text-decoration: none; color: var(--ink); letter-spacing: .2px; }

.nav a {
  color: var(--ink); text-decoration: none; margin-left: 18px; font-size: 15px; opacity: .85;
}
.nav a:hover, .nav a:focus-visible { opacity: 1; outline: none; }

/* Buttons (kept generic for reuse) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 12px;
  text-decoration: none; border: 1px solid transparent; box-shadow: var(--shadow);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover, .btn-primary:focus-visible { filter: brightness(0.95); outline: none; }
.btn-secondary { background: #111827; color: #fff; }
.btn-secondary:hover, .btn-secondary:focus-visible { filter: brightness(1.05); outline: none; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 42px;
  align-items: center; padding: 56px 0;
}
.hero h1 { font-size: clamp(28px, 4.6vw, 42px); line-height: 1.15; margin: 0 0 10px; }
.lead { font-size: clamp(16px, 2.2vw, 18px); color: var(--muted); margin: 0 0 18px; }

/* Hero art (optional) */
.hero-art { display: grid; place-items: center; }
.hero-card {
  width: 100%; max-width: 440px; aspect-ratio: 4/5;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  position: relative; overflow: hidden; padding: 20px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hc-line {
  height: 8px; background: linear-gradient(90deg, #e5e7eb, #cbd5e1, #e5e7eb);
  border-radius: 6px; margin: 8px 0;
}
.hc-badge {
  position: absolute; top: 14px; right: 14px;
  background: #111827; color: #fff; font-size: 12px; padding: 6px 10px;
  border-radius: 999px; letter-spacing: .3px;
}

/* Newsletter */
.newsletter { margin-top: 8px; max-width: 560px; }
.newsletter label { display: block; margin: 10px 0 6px; font-weight: 600; }
.newsletter-row { display: flex; gap: 10px; align-items: center; }
.newsletter input[type="email"] {
  flex: 1; min-width: 160px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(15,23,42,.15); background: #fff; outline: none;
}
.newsletter input[type="email"]:focus-visible {
  border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring);
}
.form-help { color: var(--muted); margin: 8px 2px 0; font-size: 14px; }
.form-message { margin: 8px 2px 0; font-size: 14px; }

/* Honeypot field (fully hidden) */
.hp {
  position: absolute !important;
  left: -5000px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  pointer-events: none !important;
}

/* Socials (now in hero, under form; hidden by inline style until you’re ready) */
.socials ul {
  display: flex; gap: 16px; justify-content: flex-start; /* or center */
  list-style: none; padding: 0; margin: 16px 0 0;
}
.socials a { text-decoration: none; color: var(--ink); }
.socials a:hover, .socials a:focus-visible { text-decoration: underline; outline: none; }

/* Portfolio grid */
.grid { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.tile {
  border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow);
}
.tile img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Services & About */
.service-list {
  list-style: none; padding: 0; margin: 10px 0 0;
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px;
}
.service-list li {
  background: #fff; padding: 14px 16px; border-radius: 12px;
  box-shadow: var(--shadow); display: flex; align-items: flex-start; gap: 10px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 7px; flex: 0 0 auto; }

.about-cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 10px;
}
.about-card { background: #fff; padding: 16px; border-radius: 12px; box-shadow: var(--shadow); }

/* Contact */
.contact-wrap {
  background: #fff; padding: 22px; border-radius: 16px; box-shadow: var(--shadow);
  text-align: center;
}

/* Footer */
.site-footer {
  padding: 26px 0; border-top: 1px solid rgba(15,23,42,.06); margin-top: 48px; background: #fff5;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-nav a { color: var(--ink); text-decoration: none; margin-left: 16px; }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about-cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 10px; }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
