/* ============================================================
   Iron Pines Services — Main Stylesheet
   Built with Claude AI (Anthropic)
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pine:       #1a5c2a;
  --pine-light: #2a7a3a;
  --pine-glow:  #3db85a;
  --dark:       #0d1117;
  --dark-2:     #161b22;
  --dark-3:     #21262d;
  --slate:      #1e293b;
  --text:       #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim:   #64748b;
  --white:      #ffffff;
  --border:     rgba(255,255,255,0.08);
  --card-bg:    rgba(255,255,255,0.04);
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --glow:       0 0 40px rgba(61,184,90,0.15);
  --transition: all 0.25s ease;
  --font:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-head:  'Space Grotesk', 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--pine-glow); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--white); }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--white);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text-muted); max-width: 65ch; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pine-glow);
  margin-bottom: 1rem;
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }

.section-center { text-align: center; }
.section-center p { margin: 0 auto; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── Header / Nav ─────────────────────────────────────────── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,17,23,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--pine), var(--pine-glow));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text .name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: -0.02em;
}

.logo-text .sub {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pine-glow);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  padding: 0.25rem 0;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--pine-glow);
  transition: width 0.25s ease;
}

nav a:hover, nav a.active { color: var(--white); }
nav a:hover::after, nav a.active::after { width: 100%; }

.nav-cta {
  background: var(--pine) !important;
  color: var(--white) !important;
  padding: 0.55rem 1.25rem !important;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: var(--transition) !important;
}

.nav-cta:hover { background: var(--pine-light) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  font-family: var(--font);
}

.btn-primary {
  background: linear-gradient(135deg, var(--pine), var(--pine-light));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(26,92,42,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(26,92,42,0.5);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--pine-glow);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

/* ── Hero ─────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 5rem 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(26,92,42,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(61,184,90,0.08) 0%, transparent 60%),
    var(--dark);
  z-index: 0;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(61,184,90,0.1);
  border: 1px solid rgba(61,184,90,0.3);
  color: var(--pine-glow);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pine-glow);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

#hero h1 { margin-bottom: 1.5rem; }
#hero h1 .highlight { color: var(--pine-glow); }

#hero .hero-sub {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 560px;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat-item .num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-item .label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(61,184,90,0.3);
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(26,92,42,0.5), rgba(61,184,90,0.2));
  border: 1px solid rgba(61,184,90,0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.card h3 { margin-bottom: 0.75rem; font-size: 1.15rem; }
.card p  { font-size: 0.9rem; margin: 0; }

/* ── Services Section ─────────────────────────────────────── */
#services { background: var(--dark-2); }

.services-intro {
  max-width: 600px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: rgba(61,184,90,0.4);
  background: rgba(61,184,90,0.04);
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

.service-card .tag {
  display: inline-block;
  background: rgba(61,184,90,0.1);
  color: var(--pine-glow);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.service-card h3 { margin-bottom: 0.75rem; }
.service-card p  { font-size: 0.9rem; flex: 1; }

.price-badge {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.price-badge strong { color: var(--white); font-family: var(--font-head); font-size: 1.1rem; }

/* ── AI Stack Section ─────────────────────────────────────── */
#ai-stack {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

#ai-stack::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(61,184,90,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.ai-stack-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.ai-stack-header p { margin: 0.75rem auto 0; }

.ai-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.ai-tool-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.ai-tool-card:hover {
  border-color: rgba(61,184,90,0.4);
  transform: translateY(-3px);
}

.ai-tool-card .tool-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.ai-tool-card .tool-name {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.ai-tool-card .tool-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.4;
  margin: 0;
  max-width: none;
}

.built-with-banner {
  background: linear-gradient(135deg, rgba(26,92,42,0.3), rgba(61,184,90,0.1));
  border: 1px solid rgba(61,184,90,0.3);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.built-with-banner .bw-text h4 { color: var(--white); margin-bottom: 0.4rem; }
.built-with-banner .bw-text p  { font-size: 0.88rem; margin: 0; max-width: 500px; }

/* ── Process / How It Works ───────────────────────────────── */
#process { background: var(--dark-2); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 30px;
  left: calc(12.5% + 30px);
  right: calc(12.5% + 30px);
  height: 2px;
  background: linear-gradient(90deg, var(--pine), var(--pine-glow), var(--pine));
  opacity: 0.4;
}

.step {
  text-align: center;
  padding: 1.5rem;
  position: relative;
}

.step-num {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--pine), var(--pine-light));
  border: 3px solid var(--dark-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
}

.step h4 { margin-bottom: 0.5rem; }
.step p  { font-size: 0.875rem; max-width: 200px; margin: 0 auto; }

/* ── About / Proof ────────────────────────────────────────── */
#about-preview { background: var(--dark); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-block {
  position: relative;
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--dark-3), var(--dark-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.about-image-placeholder .ph-icon { font-size: 2.5rem; }
.about-image-placeholder .ph-label { font-size: 0.75rem; color: var(--text-dim); text-align: center; }

.proof-badge {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.proof-badge .badge-icon { font-size: 1.75rem; }
.proof-badge .badge-text .num { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--white); }
.proof-badge .badge-text .lbl { font-size: 0.72rem; color: var(--text-dim); }

.about-content .section-label { margin-bottom: 0.75rem; }
.about-content h2 { margin-bottom: 1.25rem; }
.about-content p  { margin-bottom: 1.25rem; }

.credential-list {
  list-style: none;
  margin: 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.credential-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.credential-list .check {
  width: 20px;
  height: 20px;
  background: rgba(61,184,90,0.15);
  border: 1px solid rgba(61,184,90,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--pine-glow);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── CTA Banner ───────────────────────────────────────────── */
#cta-banner {
  background: linear-gradient(135deg, var(--pine) 0%, var(--dark-3) 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

#cta-banner .container { position: relative; z-index: 1; }
#cta-banner h2 { margin-bottom: 1rem; }
#cta-banner p  { margin: 0 auto 2rem; font-size: 1.05rem; }

.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Contact Page ─────────────────────────────────────────── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }
.contact-info p  { margin-bottom: 2rem; }

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-method .cm-icon {
  width: 42px;
  height: 42px;
  background: rgba(26,92,42,0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-method .cm-text .label { font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-method .cm-text .value { font-weight: 600; color: var(--white); font-size: 0.9rem; }

.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-form h3 { margin-bottom: 1.75rem; }

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--pine-glow);
  background: rgba(61,184,90,0.04);
}

.form-group textarea { resize: vertical; min-height: 140px; }

.form-group select option { background: var(--dark-2); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── Footer ───────────────────────────────────────────────── */
#site-footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.875rem; max-width: 280px; }

.footer-col h5 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { font-size: 0.875rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--pine-glow); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { font-size: 0.8rem; color: var(--text-dim); margin: 0; max-width: none; }

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(61,184,90,0.08);
  border: 1px solid rgba(61,184,90,0.2);
  color: var(--text-dim);
  font-size: 0.72rem;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
}

.ai-badge .ai-dot {
  width: 5px;
  height: 5px;
  background: var(--pine-glow);
  border-radius: 50%;
}

/* ── Page Hero (inner pages) ──────────────────────────────── */
.page-hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(180deg, rgba(26,92,42,0.12) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero p  { font-size: 1.05rem; }

/* ── Alerts / Notice ──────────────────────────────────────── */
.alert-success {
  background: rgba(61,184,90,0.1);
  border: 1px solid rgba(61,184,90,0.3);
  color: var(--pine-glow);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* ── Utility ──────────────────────────────────────────────── */
.text-green  { color: var(--pine-glow); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: 0.5rem; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-wrap { grid-template-columns: 1fr; }
  .about-image-block { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .process-steps::before { display: none; }
  .built-with-banner { flex-direction: column; text-align: center; }
  .built-with-banner .bw-text p { margin: 0 auto; }
}

@media (max-width: 600px) {
  section { padding: 3rem 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  nav ul { display: none; }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .proof-badge { display: none; }
  .contact-form { padding: 1.5rem; }
}
