/* ============================================================================
   Nfinnerty Electrical - Main Stylesheet
   Color Scheme: Navy Blue (#1A3A52) + Gold (#F39C12)
   Mobile-First Responsive Design
   ============================================================================ */

/* ============================================================================
   CSS Variables - Color Palette
   ============================================================================ */
:root {
  --primary-color: #1A3A52;
  --accent-color: #F39C12;
  --secondary-color: #2C3E50;
  --background-color: #FFFFFF;
  --success-color: #27AE60;
  --alert-color: #E74C3C;
  --light-bg: #F8F9FA;
  --border-color: #DDD;
  --text-dark: #2C3E50;
  --text-light: #555;
  --text-muted: #999;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-color);
  min-height: 100vh;
}

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

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

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

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

/* ============================================================================
   Buttons
   ============================================================================ */
.btn {
  display: inline-block;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-accent {
  background-color: var(--accent-color);
  color: white;
}

.btn-accent:hover {
  background-color: #E67E22;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-alert {
  background-color: var(--alert-color);
  color: white;
}

.btn-alert:hover {
  background-color: #C0392B;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

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

.btn-block {
  display: block;
  width: 100%;
}

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

.section {
  padding: 2rem 0;
}

.section-padded {
  padding: 3rem 1rem;
}

/* ============================================================================
   Header & Navigation
   ============================================================================ */
header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 0;
  border-bottom: 3px solid var(--accent-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
}

.logo img {
  max-height: 50px;
  margin-right: 0.5rem;
}

nav a {
  color: white;
  margin-left: 1.5rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

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

/* ============================================================================
   Hero Section
   ============================================================================ */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #254B6D 100%);
  color: white;
  padding: 3rem 1rem;
  text-align: center;
}

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

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

.hero-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent-color);
}

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

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

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.hero-cta a {
  color: white;
}

/* ============================================================================
   Trust Section
   ============================================================================ */
.trust-section {
  background-color: var(--light-bg);
  padding: 2rem 1rem;
  border-top: 3px solid var(--accent-color);
}

.trust-content {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.trust-item {
  background-color: white;
  padding: 1.5rem;
  border-left: 4px solid var(--accent-color);
  border-radius: 4px;
}

.trust-item h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.trust-item p {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
}

.badge {
  background-color: var(--accent-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial {
  background-color: white;
  padding: 1.5rem;
  border-left: 4px solid var(--accent-color);
  border-radius: 4px;
  margin-top: 1rem;
  font-style: italic;
  color: var(--text-light);
}

.testimonial-author {
  color: var(--primary-color);
  font-weight: 600;
  font-style: normal;
  margin-top: 1rem;
}

/* ============================================================================
   Services Grid
   ============================================================================ */
.services-section {
  padding: 3rem 1rem;
  background-color: white;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
  border-color: var(--accent-color);
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.service-card a {
  display: inline-block;
  color: var(--accent-color);
  font-weight: 600;
  transition: color 0.3s ease;
}

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

/* ============================================================================
   Contact Section
   ============================================================================ */
.contact-section {
  background-color: var(--light-bg);
  padding: 3rem 1rem;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-phone {
  background-color: var(--accent-color);
  color: white;
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.contact-phone a {
  color: white;
  text-decoration: none;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.contact-item {
  padding: 1rem;
  background-color: white;
  border-left: 4px solid var(--accent-color);
  border-radius: 4px;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  font-size: 16px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
}

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

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

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-section h4 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

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

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

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

.social-links a:hover {
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
}

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

/* ============================================================================
   Utility Classes
   ============================================================================ */
.text-center {
  text-align: center;
}

.text-accent {
  color: var(--accent-color);
}

.text-primary {
  color: var(--primary-color);
}

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

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.highlight {
  background-color: rgba(243, 156, 18, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  color: var(--primary-color);
  font-weight: 600;
}

/* ============================================================================
   Responsive Design - Tablet (768px+)
   ============================================================================ */
@media (min-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero {
    padding: 4rem 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-logo {
    width: 150px;
    height: 150px;
  }

  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }

  .section-padded {
    padding: 4rem 1rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .trust-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }

  nav {
    flex: 1;
    text-align: right;
  }

  nav a {
    margin-left: 2rem;
  }
}

/* ============================================================================
   Responsive Design - Desktop (1024px+)
   ============================================================================ */
@media (min-width: 1024px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .hero {
    padding: 5rem 1rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.25rem;
  }

  .hero-logo {
    width: 180px;
    height: 180px;
  }

  .section-padded {
    padding: 5rem 1rem;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .trust-content {
    grid-template-columns: repeat(1, 1fr);
  }

  .btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
  }

  nav a {
    margin-left: 2.5rem;
  }
}

/* ============================================================================
   Accessibility & Print
   ============================================================================ */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Skip to main content link */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-to-main:focus {
  top: 0;
}

@media print {
  header, footer, .contact-section {
    display: none;
  }

  body {
    font-size: 12pt;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }
}
