@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #0c0d0f;
  --surface: #17181b;
  --surface-2: #1d1f23;
  --border: #2a2c31;
  --ink: #f0f1f3;
  --ink-soft: #9a9ea6;
  --accent: #f5820f;
  --accent-bright: #ff9f3d;
  --accent-dark: #c96606;
  --on-accent: #1a1200;
}

* { box-sizing: border-box; }

html { background: var(--bg); }
html, body { margin: 0; color: var(--ink); font-family: 'Inter', -apple-system, sans-serif; font-size: 17px; line-height: 1.6; overflow-x: hidden; }

#site-bg-video { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; pointer-events: none; }
#site-bg-scrim { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: rgba(12, 13, 15, 0.6); }

h1, h2, h3, .wordmark { font-family: 'Oswald', sans-serif; font-weight: 600; margin: 0; color: #fff; letter-spacing: 0.01em; }
a { color: inherit; }
.hidden { display: none !important; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(12, 13, 15, 0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1150px; margin: 0 auto; padding: 1.1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-size: 1.2rem; color: var(--accent-bright); }
.wordmark-sub { display: block; font-size: 0.55rem; letter-spacing: 0.3em; color: var(--ink-soft); font-family: 'Inter', sans-serif; font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { text-decoration: none; font-size: 0.9rem; color: var(--ink-soft); }
.nav-links a:hover { color: var(--accent-bright); }
.nav-cta { border: 1px solid var(--accent); padding: 0.5rem 1.1rem; border-radius: 4px; color: var(--accent-bright) !important; }
.nav-cta:hover { background: var(--accent); color: var(--on-accent) !important; }

/* ---------- Hero ---------- */
.hero { padding: 8rem 1.5rem 6rem; text-align: center; }
.hero-content { max-width: 800px; margin: 0 auto; }
.hero .eyebrow { text-transform: uppercase; letter-spacing: 0.25em; font-size: 0.75rem; color: var(--accent-bright); margin-bottom: 1.2rem; display: block; font-weight: 600; }
.hero h1 { font-size: 3.2rem; line-height: 1.1; margin-bottom: 1.2rem; text-transform: uppercase; }
.hero p.lede { color: #d8dade; font-size: 1.15rem; max-width: 55ch; margin: 0 auto 2rem; }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn { display: inline-block; padding: 0.9rem 1.9rem; border-radius: 4px; font-weight: 600; font-size: 0.95rem; text-decoration: none; border: none; cursor: pointer; font-family: 'Inter', sans-serif; transition: transform 0.15s, box-shadow 0.2s; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-bright); box-shadow: 0 0 24px rgba(245, 130, 15, 0.4); transform: translateY(-1px); }
.btn-outline { background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--ink); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-bright); }

/* ---------- Sections ---------- */
.section { max-width: 1150px; margin: 0 auto; padding: 4.5rem 1.5rem; }
.section.tight { padding-top: 0; }
.section-heading { text-align: center; margin-bottom: 3rem; }
.section-heading .eyebrow { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.72rem; color: var(--accent-bright); display: block; margin-bottom: 0.6rem; font-weight: 600; }
.section-heading h2 { font-size: 2rem; text-transform: uppercase; }
.section-heading p { color: var(--ink-soft); margin-top: 0.8rem; }

.services-grid, .about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.service-card, .about-card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: 8px; padding: 1.75rem; }
.service-card h3, .about-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--accent-bright); }
.service-card p, .about-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem; }
.contact-info p { margin: 0 0 1.3rem; color: var(--ink-soft); }
.contact-info strong { color: #fff; display: block; margin-bottom: 0.2rem; }
.quote-form { display: flex; flex-direction: column; gap: 1rem; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: 8px; padding: 2rem; }
.quote-form label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.9rem; color: var(--ink-soft); }
.quote-form input, .quote-form textarea { font-family: 'Inter', sans-serif; font-size: 1rem; padding: 0.65rem 0.8rem; border: 1px solid var(--border); background: var(--bg); color: var(--ink); border-radius: 4px; }
.quote-form input:focus, .quote-form textarea:focus { outline: none; border-color: var(--accent); }
.hint { color: #4ade80; font-size: 0.9rem; margin: 0; min-height: 1.2em; }

@media (max-width: 720px) {
  .hero h1 { font-size: 2.1rem; }
  .contact-wrap { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 2rem 1.5rem; color: var(--ink-soft); font-size: 0.85rem; border-top: 1px solid var(--border); margin-top: 3rem; }
.footer-credit { margin-top: 0.4rem; font-size: 0.8rem; }
.footer-credit a { color: var(--accent-bright); text-decoration: none; font-weight: 600; }
.footer-credit a:hover { text-decoration: underline; }

/* ---------- Chat widget ---------- */
#chat-widget { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 50; }
#chat-toggle { width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer; background: var(--accent); box-shadow: 0 6px 24px rgba(245, 130, 15, 0.4); font-size: 1.5rem; display: flex; align-items: center; justify-content: center; }
#chat-toggle.pulse { animation: chatPulse 1.6s ease-out 3; }
@keyframes chatPulse {
  0% { box-shadow: 0 6px 24px rgba(245, 130, 15, 0.4), 0 0 0 0 rgba(245, 130, 15, 0.55); }
  70% { box-shadow: 0 6px 24px rgba(245, 130, 15, 0.4), 0 0 0 16px rgba(245, 130, 15, 0); }
  100% { box-shadow: 0 6px 24px rgba(245, 130, 15, 0.4), 0 0 0 0 rgba(245, 130, 15, 0); }
}
#chat-panel { position: absolute; right: 0; bottom: 72px; width: 320px; max-width: calc(100vw - 3rem); background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); display: flex; flex-direction: column; overflow: hidden; }
.chat-header { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--border); font-family: 'Oswald', sans-serif; color: #fff; }
.chat-header button { background: none; border: none; color: var(--ink-soft); font-size: 1.4rem; cursor: pointer; }
#chat-messages { flex: 1; min-height: 200px; max-height: 320px; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.chat-msg { font-size: 0.9rem; line-height: 1.45; padding: 0.55rem 0.8rem; border-radius: 8px; max-width: 85%; white-space: pre-wrap; }
.chat-msg-bot { align-self: flex-start; background: var(--bg); border: 1px solid var(--border); }
.chat-msg-user { align-self: flex-end; background: var(--accent); color: var(--on-accent); }
.chat-msg-thinking { opacity: 0.5; }
#chat-form { display: flex; border-top: 1px solid var(--border); }
#chat-form input { flex: 1; border: none; background: var(--bg); color: var(--ink); padding: 0.8rem 1rem; font-family: 'Inter', sans-serif; font-size: 0.9rem; }
#chat-form input:focus { outline: none; }
#chat-form button { border: none; background: var(--accent); color: var(--on-accent); font-weight: 600; padding: 0 1.2rem; cursor: pointer; }
