/* ============================================
   Big Hat Group — Dark/Blue Theme
   ============================================ */

:root {
  --bg-dark: #1a1a2e;
  --bg-alt: #2d2d44;
  --bg-card: #353550;
  --accent: #2ea3f2;
  --accent-hover: #1b8fd9;
  --text: #e0e0e0;
  --text-muted: #a0a0b8;
  --text-white: #ffffff;
  --border: rgba(255,255,255,0.1);
  --max-width: 1200px;
  --radius: 8px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ---- Header ---- */
.site-header {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.logo img { height: 48px; width: auto; }

.nav-menu { flex: 1; }
.nav-menu ul { list-style: none; display: flex; gap: 8px; }
.nav-menu a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--text-white);
  background: var(--bg-alt);
}

.header-contact { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.header-phone { color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.header-social { display: flex; gap: 8px; }
.header-social a {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color var(--transition);
}
.header-social a:hover { color: var(--accent); }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- Sections ---- */
.section-dark { background: var(--bg-dark); }
.section-alt { background: var(--bg-alt); }

section { padding: 80px 0; }

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-white);
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #16213e 50%, var(--bg-dark) 100%);
  padding: 120px 0 100px;
  text-align: center;
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-white);
  max-width: 900px;
  margin: 0 auto 24px;
  line-height: 1.2;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  text-align: center;
}
.btn-primary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-primary:hover { background: var(--accent); color: var(--text-white); border-color: var(--accent); }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--text-white); }

/* ---- Services ---- */
.services .section-title { margin-bottom: 48px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}
.service-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.service-icon { font-size: 2.5rem; margin-bottom: 16px; }
.service-card h3 { color: var(--text-white); font-size: 1.1rem; margin-bottom: 12px; }
.service-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ---- New Era ---- */
.new-era-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
}
.new-era-text { color: var(--text); font-size: 1.05rem; }
.new-era-text strong { color: var(--text-white); }
.era-point {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 16px;
}
.era-point h4 { color: var(--accent); margin-bottom: 8px; font-size: 1rem; }
.era-point p { color: var(--text-muted); font-size: 0.9rem; }

/* ---- Future Workplace ---- */
.future-desc {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
  color: var(--text-muted);
}
.future-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.future-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}
.future-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.future-icon { font-size: 2rem; margin-bottom: 12px; }
.future-card h3 { color: var(--text-white); font-size: 1rem; margin-bottom: 10px; }
.future-card p { color: var(--text-muted); font-size: 0.85rem; }
.future-cta { text-align: center; }

/* ---- Blog Cards ---- */
.blog-section, .blog-listing { padding: 80px 0; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}
.blog-card { position: relative; }
.blog-card:hover { transform: translateY(-4px); border-color: var(--accent); cursor: pointer; }
.blog-card-link { display: block; text-decoration: none; color: inherit; }
.blog-card-link:hover { text-decoration: none; color: inherit; }
.blog-card-link h3 { color: var(--text-white); }
.blog-card:hover .blog-card-link h3 { color: var(--accent); }
.blog-card-image { aspect-ratio: 16/9; overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-content { padding: 20px; }
.blog-card-content time { color: var(--text-muted); font-size: 0.8rem; }
.blog-card-content h3 { color: var(--text-white); font-size: 1.05rem; margin: 8px 0; line-height: 1.4; }
.blog-card-content h3 a { color: var(--text-white); }
.blog-card-content h3 a:hover { color: var(--accent); }
.blog-card-content p { color: var(--text-muted); font-size: 0.9rem; }
.blog-categories { margin-top: 12px; }
.category-tag {
  display: inline-block;
  background: rgba(46,163,242,0.15);
  color: var(--accent);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  margin-right: 4px;
}
.blog-cta { text-align: center; margin-top: 40px; }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}
.page-info { color: var(--text-muted); font-size: 0.9rem; }

/* ---- FAQ ---- */
.faq-section { padding: 80px 0; }
.faq-list { max-width: 800px; margin: 40px auto 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}
.faq-question:hover { color: var(--accent); }
.faq-chevron { transition: transform var(--transition); flex-shrink: 0; margin-left: 16px; }
.faq-item.active .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.active .faq-answer { max-height: 300px; padding-bottom: 20px; }
.faq-answer p { color: var(--text-muted); line-height: 1.7; }

/* ---- Customer Logos ---- */
.customers .section-title { margin-bottom: 16px; }
.customer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 48px;
}
.customer-logo {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 12px 20px;
}
.customer-logo img {
  height: 40px;
  width: auto;
  display: block;
  opacity: 0.8;
  transition: opacity var(--transition);
}
.customer-logo:hover img { opacity: 1; }

/* ---- Footer ---- */
.site-footer {
  background: #111122;
  border-top: 1px solid var(--border);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo { height: 80px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; }
.site-footer h4 { color: var(--text-white); font-size: 0.9rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.footer-contact a { color: var(--text-muted); display: block; margin-bottom: 8px; font-size: 0.9rem; }
.footer-contact a:hover { color: var(--accent); }
.social-links { display: flex; flex-direction: column; gap: 8px; }
.social-links a { color: var(--text-muted); font-size: 0.9rem; }
.social-links a:hover { color: var(--accent); }
.footer-links a { display: block; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 8px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; text-align: center; }
.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; }

/* ---- Single Page / Blog Post ---- */
.page-single, .blog-post { padding: 60px 0 80px; }
.page-single h1, .blog-post h1 {
  font-size: 2.2rem;
  color: var(--text-white);
  margin-bottom: 24px;
  line-height: 1.3;
}
.post-featured-image {
  margin-bottom: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 480px;
}
.post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.post-header { margin-bottom: 32px; }
.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.post-categories { display: flex; gap: 4px; }

/* Prose content */
.prose { max-width: 800px; }
.prose h2 { color: var(--text-white); font-size: 1.6rem; margin: 40px 0 16px; }
.prose h3 { color: var(--text-white); font-size: 1.3rem; margin: 32px 0 12px; }
.prose h4 { color: var(--text-white); font-size: 1.1rem; margin: 24px 0 8px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 16px 24px; }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  margin: 24px 0;
  padding: 16px 24px;
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.prose blockquote p { margin-bottom: 0; }
.prose img { border-radius: var(--radius); margin: 24px 0; }
.prose code {
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.prose pre {
  background: var(--bg-alt);
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 24px 0;
}
.prose pre code { background: none; padding: 0; }
.prose strong { color: var(--text-white); }
.prose a { color: var(--accent); }

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Blog listing heading */
.blog-listing h1 {
  font-size: 2.2rem;
  color: var(--text-white);
  text-align: center;
  margin-bottom: 8px;
}

/* ---- Hero Extended ---- */
.hero-description {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 750px;
  margin: 0 auto 16px;
  line-height: 1.7;
}
.hero-detail {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 750px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.hero-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.hero-links a {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 22px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.hero-links a:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ---- Payment Page ---- */
.payment-page { padding: 80px 0; min-height: 60vh; }
.payment-page h1 { text-align: center; margin-bottom: 32px; }
.payment-content { max-width: 600px; margin: 0 auto; text-align: center; }
#paypal-container-D8FEAXCR3875E { margin-top: 32px; }

/* ---- Expertise Intro ---- */
.expertise-content {
  max-width: 800px;
  margin: 32px auto 0;
  text-align: center;
  font-size: 1.05rem;
  color: var(--text);
}
.expertise-content p { margin-bottom: 16px; }

/* ---- Service Blocks (full detail) ---- */
.service-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  margin-bottom: 32px;
  transition: border-color var(--transition);
}
.service-block:hover { border-color: var(--accent); }
.service-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.service-header .service-icon { font-size: 2rem; }
.service-header h3 {
  color: var(--text-white);
  font-size: 1.4rem;
  margin: 0;
}
.service-summary {
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 20px;
}
.service-detail {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 24px;
}
.service-detail p { margin-bottom: 14px; }
.service-detail strong { color: var(--text-white); }
.service-subpoints {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.subpoint {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.subpoint h4 { color: var(--accent); margin-bottom: 8px; font-size: 1rem; }
.subpoint p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 8px; }
.subpoint-link { color: var(--accent); font-size: 0.85rem; font-weight: 600; }

/* ---- New Era Closing ---- */
.new-era-closing {
  grid-column: 1 / -1;
  margin-top: 24px;
  padding: 24px 32px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 1.05rem;
  color: var(--text);
}
.new-era-closing strong { color: var(--text-white); }

/* ---- Agentic AI ---- */
.agentic-content {
  max-width: 800px;
  margin: 32px auto 24px;
  text-align: center;
  font-size: 1.05rem;
  color: var(--text);
}
.agentic-content strong { color: var(--text-white); }
.agentic-subtitle {
  color: var(--accent);
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 12px;
}
.agentic-capabilities {
  max-width: 700px;
  margin: 20px auto 0;
  list-style: none;
  padding: 0;
}
.agentic-capabilities li {
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  color: var(--text);
  font-size: 0.95rem;
}
.agentic-capabilities li strong { color: var(--text-white); }

/* ---- Training ---- */
.training-content {
  max-width: 800px;
  margin: 32px auto 0;
  text-align: center;
  font-size: 1.05rem;
  color: var(--text);
}
.training-content p { margin-bottom: 16px; }
.training-cta { text-align: center; margin-top: 32px; }

/* ---- Future Extended ---- */
.future-subtitle {
  text-align: center;
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: 24px;
}
.future-desc {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 24px;
  color: var(--text);
  font-size: 1rem;
}
.future-desc p { margin-bottom: 12px; }
.future-desc strong { color: var(--text-white); }
.future-link { text-align: center; margin-bottom: 40px; }
.future-card h4 { color: var(--text-white); font-size: 1rem; margin-bottom: 10px; }

/* ---- Footer Tagline ---- */
.footer-tagline {
  padding: 40px 0;
  text-align: center;
}
.footer-tagline p {
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .future-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .new-era-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
    z-index: 99;
  }
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-menu ul { flex-direction: column; gap: 4px; }
  .header-contact { display: none; }

  .hero { padding: 80px 0 60px; }
  .hero h1 { font-size: 1.8rem; }
  section { padding: 60px 0; }
  .section-title { font-size: 1.5rem; }

  .services-grid { grid-template-columns: 1fr; }
  .future-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .page-single h1, .blog-post h1 { font-size: 1.6rem; }
}
