/* ============================================================
   Alpha IT Tool — Global Website Stylesheet
   ============================================================ */

:root {
  --primary: #0B1F3A;
  --accent: #1A5FD4;
  --accent-hover: #1548A8;
  --text: #1F2937;
  --text-muted: #6B7280;
  --bg: #FFFFFF;
  --bg-alt: #F9FAFB;
  --border: #E5E7EB;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text); line-height: 1.6; background: var(--bg);
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ── Typography ── */
h1 { font-size: 3rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.5px; }
h2 { font-size: 2rem; font-weight: 800; line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }

/* ── Buttons ── */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius); font-size: 0.92rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; border: 2px solid transparent; font-family: inherit;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,95,212,0.35); }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #fff; }
.btn-white { background: #fff; color: var(--primary); border: 2px solid rgba(255,255,255,0.3); }
.btn-white:hover { background: rgba(255,255,255,0.9); }
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* ── Header ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 64px;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 1px 8px rgba(0,0,0,0.06); }
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: 1140px; margin: 0 auto; padding: 0 24px;
}
.nav-logo { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; font-weight: 800; color: var(--primary); }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn-primary, .nav-cta .btn-ghost { padding: 8px 18px; font-size: 0.85rem; }
.nav-mobile-toggle {
  display: none; background: none; border: none; font-size: 1.5rem;
  cursor: pointer; color: var(--text); padding: 4px;
}

/* ── Mobile Menu ── */
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: #fff; padding: 20px 24px; z-index: 999; flex-direction: column; gap: 4px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { display: block; padding: 14px 0; font-size: 1rem; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-menu .btn-primary, .mobile-menu .btn-ghost { margin-top: 8px; text-align: center; width: 100%; }

/* ── Page Hero ── */
.page-hero {
  padding: 130px 0 60px; text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, #1A3A5C 100%); color: #fff;
}
.page-hero h1 { font-size: 2.5rem; margin-bottom: 12px; }
.page-hero p { font-size: 1.1rem; color: rgba(255,255,255,0.75); max-width: 580px; margin: 0 auto; }

/* ── Section helpers ── */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.section-label { display: inline-block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin-bottom: 10px; }
.section-title { margin-bottom: 12px; }
.section-subtitle { font-size: 1.05rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px; }
.text-center { text-align: center; }

/* ── Cards ── */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 28px; transition: all 0.2s;
}
.card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-icon { font-size: 1.8rem; margin-bottom: 12px; }
.card h3 { margin-bottom: 6px; color: var(--primary); }
.card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }

/* ── Grid ── */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Footer ── */
.site-footer { padding: 60px 0 28px; background: var(--primary); color: rgba(255,255,255,0.7); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-brand { }
.footer-brand .nav-logo { font-size: 1.2rem; color: #fff; margin-bottom: 10px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; max-width: 260px; }
.footer-col h4 { color: #fff; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 0.88rem; padding: 3px 0; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.newsletter-form { display: flex; gap: 8px; margin-top: 14px; }
.newsletter-form input {
  flex: 1; padding: 9px 12px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.08);
  color: #fff; font-size: 0.85rem; font-family: inherit;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form button {
  padding: 9px 16px; border-radius: 6px; background: var(--accent); color: #fff;
  border: none; font-weight: 600; cursor: pointer; font-size: 0.85rem; font-family: inherit;
}
.newsletter-form button:hover { background: var(--accent-hover); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.78rem; }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: #fff; }

/* ── CTA Banner ── */
.cta-banner {
  padding: 80px 0; text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, #1A3A5C 100%); color: #fff;
}
.cta-banner h2 { font-size: 2.2rem; margin-bottom: 12px; }
.cta-banner p { font-size: 1.05rem; color: rgba(255,255,255,0.75); max-width: 500px; margin: 0 auto 28px; }

/* ── Chat widget ── */
.chat-widget {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
}
.chat-widget a {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px; background: var(--accent); color: #fff; border-radius: 50px;
  font-weight: 600; font-size: 0.85rem; box-shadow: 0 4px 12px rgba(26,95,212,0.4);
  transition: background 0.2s;
}
.chat-widget a:hover { background: var(--accent-hover); }

/* ── Blog cards ── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.blog-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: all 0.2s; }
.blog-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.blog-card__img { padding: 28px 24px 0; color: var(--text-muted); }
.blog-card__body { padding: 20px 24px 24px; }
.blog-card__meta { display: flex; align-items: center; gap: 12px; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; }
.blog-card__tag { background: var(--bg-alt); padding: 2px 10px; border-radius: 20px; font-weight: 600; color: var(--accent); }
.blog-card__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.35; }
.blog-card__title a { color: var(--primary); }
.blog-card__title a:hover { color: var(--accent); }
.blog-card__excerpt { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; margin-bottom: 12px; }
.blog-card__footer { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: var(--text-muted); }
.blog-card__read { color: var(--accent); font-weight: 600; }

/* ── Contact form ── */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.92rem; font-family: inherit; color: var(--text); background: #fff;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26,95,212,0.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-status { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 16px; font-size: 0.88rem; display: none; }
.form-status--success { background: #D1FAE5; color: #065F46; display: block; }
.info-card { padding: 20px; background: var(--bg-alt); border-radius: 12px; margin-bottom: 12px; }
.info-card-icon { color: var(--accent); margin-bottom: 8px; }
.info-card h3 { font-size: 0.95rem; margin-bottom: 4px; }
.info-card p { font-size: 0.85rem; color: var(--text-muted); }
.info-card a { color: var(--accent); }

/* ── About page ── */
.cta-section { padding: 80px 0; text-align: center; background: linear-gradient(135deg, var(--primary), #1A3A5C); color: #fff; }
.cta-section h2 { font-size: 2rem; margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,0.75); font-size: 1.05rem; max-width: 500px; margin: 0 auto 28px; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .nav-links, .nav-cta { display: none; }
  .nav-mobile-toggle { display: block; }
  .page-hero { padding: 110px 0 48px; }
  .page-hero h1 { font-size: 1.8rem; }
  .section { padding: 50px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
}
