/* CSS Variables */
:root {
  --primary-blue: #243168;
  --secondary-orange: #f57e20;
  --mechanical-blue: #4c8ac9;
  --plumbing-green: #4fba6f;
  --light-gray: #f8f9fa;
  --dark-gray: #6b7280;
  --white: #ffffff;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #374151;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background-color: #e06d00;
  transform: translateY(-2px);
}

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

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

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

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

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

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

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

.grid-4 { 
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--dark-gray);
  max-width: 600px;
  margin: 0 auto;
}

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

.animate-on-scroll {
  animation: fadeInUp 0.6s ease-out;
}

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

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark-gray);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--secondary-orange);
}

.mobile-menu {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu {
    display: block;
  }
}

/* Hero Styles */
.hero {
  background: linear-gradient(rgba(36, 49, 104, 0.85), rgba(31, 41, 59, 0.9)), 
             url('../img/tradefix-electrician-installing-lights.jpeg') center/cover;
  color: white;
  padding: 8rem 0;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

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

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero {
    padding: 4rem 0;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* Services Styles */
#services h3
{
  min-height: 4rem;
}

.services {
  padding: 5rem 0;
  background: white;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

#main-logo
{
  width: 450px;
}

#footer-logo
{
  width: 200px;
  padding: 0;
}

.logotype {
  fill: #243168;
  font-family: InterDisplay-Bold, 'Inter Display';
  font-size: 46.5px;
  font-weight: 700;
  isolation: isolate;
}

#footer-logo .logotype {
  fill: #fff;
}

svg .plumbing {
  fill: #4fba6f;
}

.st1 {
  isolation: isolate;
}

svg .electric {
  fill: #f57e20;
}

svg .mechanical {
  fill: #4c8ac9;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-content.active {
  max-height: 500px;
  transition: max-height 0.3s ease-in;
}

.mechanical { background-color: var(--mechanical-blue); }
.electrical { background-color: var(--secondary-orange); }
.plumbing { background-color: var(--plumbing-green); }
.general { background-color: var(--primary-blue); }

.mechanical-txt { color: var(--mechanical-blue); }
.electrical-txt { color: var(--secondary-orange); }
.plumbing-txt { color: var(--plumbing-green); }
.general-txt { color: var(--primary-blue); }

.text-orange-500
{color: oklch(0.705 0.213 47.604)}
.bg-orange-500
{background-color: oklch(0.705 0.213 47.604)}
.bg-orange-500:hover
{background-color: oklch(0.553 0.195 38.402)}
.bg-blue-500
{background-color: rgb(30, 58, 138);}
.bg-blue-500:hover
{background-color: rgb(30, 64, 175);}
.bg-green-900
{background-color: rgb(20, 83, 45);}
.bg-green-900:hover
{background-color: rgb(22, 101, 52);}

.service-card h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--dark-gray);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
}

.service-features li {
  padding: 0.25rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.service-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--plumbing-green);
  font-weight: bold;
}

/* Multi-Trade Advantage Styles */
.multitrade {
  padding: 5rem 0;
  background: var(--light-gray);
}

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

.multitrade-text h2 {
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

.multitrade-text p {
  font-size: 1.125rem;
  color: var(--dark-gray);
  margin-bottom: 2rem;
}

.advantage-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.advantage-icon {
  width: 60px;
  height: 60px;
  background: var(--secondary-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.advantage-icon span {
  font-size: 1.5rem;
  color: white;
}

.advantage-content h4 {
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.advantage-content p {
  color: var(--dark-gray);
  margin: 0;
}

.multitrade-image {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.multitrade-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .multitrade-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .multitrade-image img {
    height: 300px;
  }
}

/* Why Choose Us Styles */
.whychoose {
  padding: 5rem 0;
  background: white;
}

.whychoose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  border-radius: 0.75rem;
  background: var(--light-gray);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
}

.feature-card h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--dark-gray);
}

/* CTA Styles */
.cta {
  background: linear-gradient(rgba(36, 49, 104, 0.9), rgba(31, 41, 59, 0.85)), 
             url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1200&q=80') center/cover;
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.cta h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* Footer Styles */
footer {
  background: #1f2937;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1rem;
}

.footer-section p, .footer-section li {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

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

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--secondary-orange);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.contact-item span {
  margin-right: 0.75rem;
  color: var(--secondary-orange);
  font-size: 1.2rem;
}

.emergency-notice {
  background: var(--secondary-orange);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
}

.emergency-notice h4 {
  color: white;
  margin-bottom: 0.5rem;
}

.emergency-notice p {
  color: white;
  margin: 0;
}

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