/* Osborne Electric - Main Stylesheet */
/* Mobile-first responsive design */

:root {
  /* Brand Colors - Black, White, Yellow, Gray */
  --primary: #1a1a1a;
  --primary-dark: #000000;
  --accent: #F4B223;
  --accent-hover: #E5A31D;
  --dark-gray: #2d3436;
  --medium-gray: #636e72;
  --light-gray: #f5f6fa;
  --white: #ffffff;
  --success-green: #27ae60;
  --font-main: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  
  /* Legacy aliases for compatibility */
  --primary-blue: #1a1a1a;
  --electric-blue: #F4B223;
  --accent-blue: #E5A31D;
  --light-blue: #f5f6fa;
  --warning-yellow: #F4B223;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--dark-gray);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-blue);
}

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.875rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.625rem; }

p { margin-bottom: 1rem; }

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

a:hover {
  color: var(--accent-blue);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

.header-top {
  background: var(--primary-blue);
  color: var(--white);
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.header-top .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.header-top a {
  color: var(--white);
}

.header-top a:hover {
  color: var(--accent-blue);
}

.header-main {
  padding: 1rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

@media (max-width: 768px) {
  .logo-img {
    height: 45px;
  }
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: var(--electric-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--white);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark-gray);
  letter-spacing: 0.02em;
}

.logo-tagline {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--medium-gray);
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .logo-text {
    display: flex;
  }
  .logo-name {
    font-size: 1.1rem;
  }
  .logo-tagline {
    font-size: 0.55rem;
  }
  .logo-img {
    height: 40px;
  }
}

/* Navigation */
.nav-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--primary-blue);
  margin: 5px 0;
  transition: 0.3s;
}

.main-nav {
  display: none;
  width: 100%;
  padding-top: 1rem;
}

.main-nav.active {
  display: block;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.main-nav a {
  display: block;
  padding: 0.75rem 0;
  color: var(--dark-gray);
  font-weight: 500;
  border-bottom: 1px solid var(--light-gray);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--electric-blue);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-content {
  display: none;
  background: var(--light-gray);
  padding-left: 1rem;
}

.nav-dropdown.active .nav-dropdown-content {
  display: block;
}

.nav-dropdown-content a {
  font-size: 0.875rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(45, 45, 45, 0.8) 100%), 
              url('/images/work/hanging-lights.jpg') center center / cover no-repeat;
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.badge {
  background: rgba(255,255,255,0.2);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge svg {
  width: 16px;
  height: 16px;
  fill: var(--warning-yellow);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--warning-yellow);
  color: var(--dark-gray);
}

.btn-primary:hover {
  background: #d4a60b;
  color: var(--dark-gray);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-blue);
}

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

.btn-outline {
  background: transparent;
  border: 2px solid var(--electric-blue);
  color: var(--electric-blue);
}

.btn-outline:hover {
  background: var(--electric-blue);
  color: var(--white);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Sections */
section {
  padding: 3rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header p {
  color: var(--medium-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--light-gray);
}

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

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--light-blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.service-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--electric-blue);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--medium-gray);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.service-card a {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.service-card a:hover svg {
  transform: translateX(5px);
}

.service-card a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

/* About Preview */
.about-preview {
  background: var(--light-gray);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.about-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text h2 {
  margin-bottom: 1rem;
}

.value-list {
  list-style: none;
  margin: 1.5rem 0;
}

.value-list li {
  padding: 0.5rem 0;
  padding-left: 2rem;
  position: relative;
}

.value-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success-green);
  font-weight: bold;
}

/* Testimonials */
.testimonials {
  background: var(--primary-blue);
  color: var(--white);
}

.testimonials .section-header h2 {
  color: var(--white);
}

.testimonials .section-header p {
  color: rgba(255,255,255,0.8);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.testimonial-card {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.testimonial-stars {
  color: var(--warning-yellow);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
  opacity: 0.95;
}

.testimonial-author {
  font-weight: 600;
}

.testimonial-location {
  font-size: 0.875rem;
  opacity: 0.7;
}

/* CTA Section */
.cta-section {
  background: #1a1a1a;
  color: var(--white);
  text-align: center;
  padding: 3rem 0;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.cta-phone {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.cta-phone svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Areas Section */
.areas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.area-card {
  background: var(--white);
  border: 2px solid var(--light-gray);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.area-card:hover {
  border-color: var(--electric-blue);
  box-shadow: 0 5px 20px rgba(0,136,204,0.15);
}

.area-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.area-card p {
  color: var(--medium-gray);
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* Footer */
.footer {
  background: var(--dark-gray);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(255,255,255,0.7);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-col p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.social-links a:hover {
  background: var(--electric-blue);
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

/* Page Headers */
.page-header {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-header p {
  opacity: 0.9;
  margin-bottom: 0;
}

.breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.breadcrumb a {
  color: rgba(255,255,255,0.8);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb span {
  opacity: 0.6;
}

/* Content Sections */
.content-section {
  padding: 3rem 0;
}

.content-section.alt-bg {
  background: var(--light-gray);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.content-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.content-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Features List */
.features-list {
  list-style: none;
  margin: 1.5rem 0;
}

.features-list li {
  padding: 0.75rem 0;
  padding-left: 2.5rem;
  position: relative;
  border-bottom: 1px solid var(--light-gray);
}

.features-list li:last-child {
  border-bottom: none;
}

.features-list li::before {
  content: '⚡';
  position: absolute;
  left: 0;
  font-size: 1.25rem;
}

/* FAQ Section */
.faq-section {
  padding: 3rem 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.25rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-blue);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: var(--light-gray);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  fill: var(--electric-blue);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.25rem;
  color: var(--medium-gray);
}

.faq-item.active .faq-answer {
  display: block;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.contact-info {
  background: var(--light-gray);
  border-radius: 10px;
  padding: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--electric-blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

.contact-item h4 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.contact-item p {
  margin-bottom: 0;
  color: var(--medium-gray);
}

.contact-item a {
  color: var(--electric-blue);
  font-weight: 500;
}

/* Contact Form */
.contact-form {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.form-group {
  margin-bottom: 1.25rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid var(--light-gray);
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--electric-blue);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.team-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  text-align: center;
}

.team-image {
  height: 250px;
  background: var(--light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-image svg {
  width: 80px;
  height: 80px;
  fill: var(--electric-blue);
  opacity: 0.5;
}

.team-info {
  padding: 1.5rem;
}

.team-info h3 {
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--electric-blue);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.team-info p {
  color: var(--medium-gray);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* Map Container */
.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  height: 300px;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder {
  text-align: center;
  color: var(--medium-gray);
}

.map-placeholder svg {
  width: 60px;
  height: 60px;
  fill: var(--electric-blue);
  opacity: 0.5;
  margin-bottom: 1rem;
}

/* Area Page Specific */
.area-hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--electric-blue) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.area-hero h1 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.area-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--warning-yellow);
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.8;
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
}

.city-tag {
  background: var(--light-blue);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-size: 0.875rem;
  color: var(--primary-blue);
}

/* Responsive - Tablet */
@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  .header-top .container {
    justify-content: space-between;
  }
  
  .hero {
    padding: 5rem 0;
  }
  
  .hero h1 {
    font-size: 2.75rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-content {
    grid-template-columns: 1fr 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .areas-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .content-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  
  .content-grid.reverse {
    direction: rtl;
  }
  
  .content-grid.reverse > * {
    direction: ltr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Responsive - Desktop */
@media (min-width: 1024px) {
  h1 { font-size: 3rem; }
  
  .nav-toggle {
    display: none;
  }
  
  .main-nav {
    display: block;
    width: auto;
    padding-top: 0;
  }
  
  .main-nav ul {
    flex-direction: row;
    gap: 0;
  }
  
  .main-nav > ul > li {
    position: relative;
  }
  
  .main-nav a {
    padding: 0.5rem 1rem;
    border-bottom: none;
  }
  
  .nav-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    padding: 0.5rem 0;
    display: none;
  }
  
  .nav-dropdown:hover .nav-dropdown-content {
    display: block;
  }
  
  .nav-dropdown-content a {
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
  }
  
  .nav-dropdown-content a:hover {
    background: var(--light-gray);
  }
  
  .hero h1 {
    font-size: 3.25rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .services-grid.five-cols {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
  
  .cities-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .map-container {
    height: 400px;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

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

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-blue);
  color: var(--white);
  padding: 8px;
  z-index: 9999;
}

.skip-link:focus {
  top: 0;
}

/* Print Styles */
@media print {
  .header, .footer, .cta-section {
    display: none;
  }
  
  body {
    font-size: 12pt;
  }
  
  a {
    text-decoration: underline;
  }
}

/* GullStack Credit */
.gullstack-credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.5);
  transition: all .2s ease;
}
.gullstack-credit:hover { color: #8b5cf6; }
.gullstack-logo {
  height: 18px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  opacity: 0.7;
  transition: opacity .2s ease;
}
.gullstack-credit:hover .gullstack-logo { opacity: 1; }
.gullstack-text {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
