/*
Theme Name: JBMTEK IT Services
Theme URI: https://jbmtek.com
Author: DeepMind Antigravity
Description: A highly-converting, SEO-optimized lead generation site for JBMTEK. Features Calendly booking and professional tech branding.
Version: 1.3.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: jbmtek
*/

:root {
  --color-bg: #ffffff;
  --color-surface: #f8fafc;
  --color-surface-alt: #f1f5f9;
  --color-primary: #1d4ed8; /* Deep Blue */
  --color-primary-hover: #1e3a8a;
  --color-secondary: #0ea5e9; /* Light Blue Accent */
  --color-text: #334155; /* Slate Gray */
  --color-text-dark: #0f172a;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
  --transition-slow: 0.8s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-dark);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-hover);
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn var(--transition-slow) forwards;
}

/* Header & Top Bar */
.top-contact-bar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border);
  z-index: 1001;
  height: 40px;
  display: flex;
  align-items: center;
}

.site-header {
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 40px; /* Accounts for top contact bar */
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-branding img {
  max-height: 45px;
  width: auto;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text-dark);
  margin: 0;
}

/* Desktop Navigation */
.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-navigation a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 1rem;
}

.main-navigation a:hover {
  color: var(--color-primary);
}

/* Mobile Menu Toggle Button (Hidden on Desktop) */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1002;
}

.menu-toggle .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--color-text-dark);
  transition: all 0.3s ease-in-out;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.3);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.4);
  color: white;
}

.btn-secondary {
  background: white;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-surface);
  color: var(--color-primary-hover);
}

/* Forms */
.lead-form-container {
  background: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  border: 1px solid var(--color-border);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text-dark);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: var(--font-main);
  font-size: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.site-footer {
  background-color: var(--color-text-dark);
  color: white;
  padding: 4rem 0 2rem;
  margin-top: 0;
}

.footer-content {
  text-align: center;
}

.footer-content p {
  color: var(--color-text-muted);
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
  
  /* Top Bar */
  .hide-mobile {
    display: none !important;
  }
  .top-contact-inner {
    justify-content: center !important;
  }

  /* Hamburger Menu */
  .menu-toggle {
    display: block;
  }
  
  .main-navigation {
    position: fixed;
    top: 72px; /* Header height approx */
    left: -100%;
    width: 100%;
    height: calc(100vh - 72px);
    background: white;
    padding: 2rem;
    transition: 0.3s ease-in-out;
    box-shadow: inset 0 10px 10px -10px rgba(0,0,0,0.1);
    overflow-y: auto;
  }
  
  .main-navigation.toggled {
    left: 0;
  }
  
  .main-navigation ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .main-navigation a {
    font-size: 1.25rem;
  }
  
  /* Typography & Padding adjustments */
  .hero-title {
    font-size: 2.5rem !important;
  }
  
  .hero-section {
    padding: 6rem 0 4rem !important;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .section-title {
    font-size: 2rem !important;
  }
  
  .lead-form-container {
    padding: 1.5rem !important;
  }
  
  .contact-grid,
  .footer-widgets,
  .why-grid {
    grid-template-columns: 1fr !important;
  }
}
