/*!
Theme Name: Flux Power and Automation
Theme URI: https://www.fluxpowerandautomation.com
Description: Professional electrical engineering services website with WordPress integration
Version: 1.0.0
Author: Flux Power and Automation
Author URI: https://www.fluxpowerandautomation.com
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flux-power-automation
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
*/

/* Import main styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --navy: #1a2332;
  --amber: #f59e0b;
  --light-gray: #f3f4f6;
  --dark-gray: #374151;
  --text: #1f2937;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: #ffffff;
}

html {
  scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--navy);
}

h2 {
  font-size: 2rem;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--navy);
}

h3 {
  font-size: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--navy);
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

a {
  color: var(--amber);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #d97706;
}

/* Header */
.header {
  background: var(--navy);
  color: white;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
}

.logo a {
  color: white;
}

.logo img {
  max-height: 50px;
  width: auto;
}

.nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav a {
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: var(--amber);
}

/* Main Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.content {
  min-height: 60vh;
  padding: 3rem 0;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0f1419 100%);
  color: white;
  padding: 6rem 2rem;
  text-align: center;
}

.hero h1 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 3rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #e5e7eb;
}

/* Grid System */
.grid {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.grid-cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* Cards */
.card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}

/* Section */
.section {
  padding: 3rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.section:last-child {
  border-bottom: none;
}

/* Footer */
.footer {
  background: var(--navy);
  color: white;
  padding: 2rem;
  margin-top: 3rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.footer a {
  color: var(--amber);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav {
    gap: 1rem;
    flex-direction: column;
  }
  
  .hero {
    padding: 3rem 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
}

/* Blog */
.post-list {
  display: grid;
  gap: 2rem;
}

.post-item {
  border-left: 4px solid var(--amber);
  padding-left: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.post-meta {
  font-size: 0.875rem;
  color: var(--dark-gray);
  margin-bottom: 0.5rem;
}

.post-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input, textarea, select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

button, .btn {
  background: var(--amber);
  color: var(--navy);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

button:hover, .btn:hover {
  background: #d97706;
  transform: translateY(-2px);
}

/* Lists */
ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.featured {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--amber);
}
