/*
  The Automation — base styles
*/

:root {
  --bg: #0b1020;
  --surface: #0f172a;
  --text: #e5e7eb;
  --muted: #9aa3b2;
  --brand: #3b82f6;
  --brand-ink: #1e3a8a;
  --card: #121a2e;
  --border: #1f2a44;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  color: var(--text);
  background: radial-gradient(1200px 800px at 80% -10%, #19325d, transparent 60%), var(--bg);
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-text { font-size: 18px; font-weight: 600; color: var(--brand); }
.footer-brand-text { font-size: 16px; font-weight: 600; color: var(--brand); }

.nav-toggle { display: none; background: none; color: var(--text); border: 1px solid var(--border); padding: 6px 10px; border-radius: 6px; }
.nav-menu { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-menu a { color: var(--text); text-decoration: none; padding: 8px 10px; border-radius: 6px; }
.nav-menu a:hover { background: var(--card); }
.nav-menu a.active { background: var(--card); color: var(--brand); }

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu { position: absolute; right: 20px; top: 64px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px; display: none; flex-direction: column; min-width: 200px; }
  .nav-menu.open { display: flex; }
}

/* Hero */
.hero { padding: 72px 20px 32px; text-align: center; }
.hero h1 { font-size: clamp(28px, 5vw, 48px); line-height: 1.15; margin: 0 0 12px; }
.lead { color: var(--muted); font-size: 18px; max-width: 780px; margin: 0 auto; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--border); color: var(--text); background: var(--card); transition: transform 0.05s ease, background 0.2s ease; }
.btn:hover { transform: translateY(-1px); background: #182443; }
.btn-primary { background: linear-gradient(180deg, #3b82f6, #2563eb); color: #1e3a8a; border: 1px solid #1d4ed8; }
.btn-primary:hover { background: linear-gradient(180deg, #60a5fa, #3b82f6); }
.btn-ghost { background: transparent; }

/* Trust strip */
.trust { padding: 10px 20px 0; }
.trust-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 10px; color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .trust-strip { grid-template-columns: 1fr 1fr; } }

/* Services */
.services { padding: 40px 0; }
.services h2, .process h2, .about h2, .contact h2 { font-size: 28px; margin: 0 0 16px; }
.grid.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
@media (max-width: 1200px) { .grid.cards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 700px) { .grid.cards { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.card-head { display: flex; align-items: center; gap: 10px; }
.card-logo { 
  display: inline-block; 
  width: 32px !important; 
  height: 32px !important; 
  margin-right: 12px;
  flex-shrink: 0;
}
.card h3 { margin: 4px 0 6px; }
.card p { color: var(--muted); margin-top: 0; }
.card ul { margin: 10px 0 0; padding-left: 18px; }

/* Process */
.process { padding: 20px 0 30px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.steps h3 { margin: 0 0 6px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); }

/* About */
.about { padding: 10px 0 30px; }
.about p { color: var(--muted); max-width: 800px; }

/* Contact */
.contact { padding: 10px 0 60px; text-align: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: rgba(15,23,42,0.6); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; }
.footer-brand p { color: var(--muted); margin: 6px 0 0; font-size: 14px; }
.footer-nav { display: flex; gap: 12px; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-nav a:hover { color: var(--text); }

/* Professional workflow stage */
.workflow-stage { position: relative; margin-top: 28px; border: 1px solid var(--border); background: radial-gradient(1200px 400px at 50% -20%, rgba(59, 130, 246, 0.12), transparent 70%), var(--surface); border-radius: 16px; overflow: hidden; }
.workflow-svg { width: 100%; height: auto; display: block; min-height: 300px; }

.stage-labels { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; align-items: center; pointer-events: none; }
.stage-label { position: absolute; display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; }
.label-dot { width: 6px; height: 6px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #60a5fa, #3b82f6); box-shadow: 0 0 8px rgba(59,130,246,0.4); }

@media (max-width: 800px) { 
  .workflow-svg { min-height: 260px; }
  .stage-label { font-size: 10px; }
  .stage-label span { display: none; }
}

/* Blog page styles */
.hero-blog { padding: 72px 20px 32px; text-align: center; }
.hero-blog h1 { font-size: clamp(28px, 5vw, 48px); line-height: 1.15; margin: 0 0 12px; }
.hero-blog .lead { color: var(--muted); font-size: 18px; max-width: 780px; margin: 0 auto; }

.blog-posts { padding: 40px 20px 60px; }
.posts-grid { display: flex; flex-direction: column; gap: 24px; max-width: 800px; margin: 0 auto; }

.blog-post { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 32px; }
.blog-post-preview { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; transition: transform 0.2s ease, border-color 0.2s ease; }
.blog-post-preview:hover { transform: translateY(-2px); border-color: var(--brand); }
.post-header { margin-bottom: 24px; }
.post-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.post-logo { display: inline-block; }
.post-date, .post-category { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.post-category { background: var(--card); padding: 4px 8px; border-radius: 4px; }

.blog-post h2 { font-size: 24px; line-height: 1.3; margin: 0 0 12px; }
.blog-post-preview h2 { font-size: 20px; line-height: 1.3; margin: 0 0 12px; }
.blog-post-preview h2 a { color: var(--text); text-decoration: none; }
.blog-post-preview h2 a:hover { color: var(--brand); }
.post-excerpt { color: var(--muted); font-size: 16px; margin: 0 0 16px; }
.read-more { color: var(--brand); text-decoration: none; font-weight: 500; font-size: 14px; }
.read-more:hover { text-decoration: underline; }

.blog-nav { margin-bottom: 32px; }
.back-to-blog { color: var(--brand); text-decoration: none; font-size: 14px; }
.back-to-blog:hover { text-decoration: underline; }

.post-content { line-height: 1.7; }
.post-content h3 { font-size: 20px; margin: 32px 0 16px; color: var(--brand); }
.post-content h4 { font-size: 18px; margin: 24px 0 12px; }
.post-content h5 { font-size: 16px; margin: 20px 0 10px; }
.post-content p { margin: 16px 0; }
.post-content ul, .post-content ol { margin: 16px 0; padding-left: 24px; }
.post-content li { margin: 8px 0; }

.sms-example { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 16px; margin: 16px 0; }
.sms-example p { margin: 12px 0; font-family: ui-monospace, 'SF Mono', Monaco, monospace; font-size: 14px; }

.funnel-flow { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 16px; margin: 16px 0; }
.comparison-table { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 16px; margin: 16px 0; }
.benchmarks { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 16px; margin: 16px 0; }

@media (max-width: 800px) {
  .blog-post { padding: 24px 20px; }
  .post-meta { flex-wrap: wrap; gap: 8px; }
  .blog-post h2 { font-size: 20px; }
  .post-content h3 { font-size: 18px; }
  .post-content h4 { font-size: 16px; }
}

/* Contact page styles */
.hero-contact { padding: 72px 20px 32px; text-align: center; }
.hero-contact h1 { font-size: clamp(28px, 5vw, 48px); line-height: 1.15; margin: 0 0 12px; }
.hero-contact .lead { color: var(--muted); font-size: 18px; max-width: 780px; margin: 0 auto; }

.contact-content { padding: 40px 20px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

.contact-info h2 { font-size: 24px; margin: 0 0 16px; }
.contact-info > p { color: var(--muted); margin-bottom: 32px; line-height: 1.6; }

.contact-methods { margin-bottom: 40px; }
.contact-method { display: flex; gap: 16px; margin-bottom: 24px; }
.method-icon { font-size: 24px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--card); border: 1px solid var(--border); border-radius: 12px; flex-shrink: 0; }
.method-details h3 { font-size: 16px; margin: 0 0 4px; }
.method-details p { margin: 0 0 4px; }
.method-details a { color: var(--brand); text-decoration: none; }
.method-details a:hover { text-decoration: underline; }
.method-note { font-size: 13px; color: var(--muted); }

.expertise-highlight { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.expertise-highlight h3 { font-size: 16px; margin: 0 0 16px; }
.expertise-logos { display: flex; gap: 12px; flex-wrap: wrap; }
.expertise-logos img { opacity: 0.8; transition: opacity 0.2s ease; }
.expertise-logos img:hover { opacity: 1; }

.contact-form-container { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.form-wrapper { position: relative; }
.form-wrapper iframe { border-radius: 8px; }

.contact-cta { padding: 40px 20px 60px; text-align: center; }
.cta-content h2 { font-size: 24px; margin: 0 0 32px; }
.process-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 800px; margin: 0 auto; }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; }
.step-number { width: 48px; height: 48px; background: var(--brand); color: var(--brand-ink); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 18px; margin-bottom: 16px; }
.step-content h3 { font-size: 16px; margin: 0 0 8px; }
.step-content p { color: var(--muted); margin: 0; font-size: 14px; }

@media (max-width: 1000px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-form-container { order: -1; }
}

@media (max-width: 600px) {
  .process-steps { grid-template-columns: 1fr; gap: 32px; }
  .contact-form-container { padding: 16px; }
  .expertise-logos { justify-content: center; }
}



