/* IH Electrical - Style Sheet */
/* Mobile-first, clean trades design */

:root {
  --primary: #4AADE8;
  --primary-dark: #2D8BC9;
  --yellow: #FFE033;
  --yellow-dark: #E6C62E;
  --dark: #1A1A1A;
  --dark-light: #2D2D2D;
  --gray: #6B7280;
  --gray-light: #E5E7EB;
  --white: #FFFFFF;
  --bg: #F9FAFB;
  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;
  --phone: #3B82F6;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

h1 { font-size: 2.25rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; color: var(--gray); }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

section { padding: 3rem 0; }

/* Header */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-family: 'Archivo', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo:hover { text-decoration: none; }
.logo span { color: var(--primary); }
.logo svg { width: 32px; height: 32px; fill: var(--yellow); }

.nav { display: none; }
.nav ul { list-style: none; display: flex; gap: 2rem; }
.nav a { color: var(--dark); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav a:hover { color: var(--primary); text-decoration: none; }
.header-cta { display: none; }

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: 0.3s;
}

.mobile-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--gray-light);
  padding: 1rem 1.25rem;
}

.mobile-nav.active { display: block; }
.mobile-nav ul { list-style: none; }
.mobile-nav li { border-bottom: 1px solid var(--gray-light); }
.mobile-nav a { display: block; padding: 0.875rem 0; color: var(--dark); font-weight: 500; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  padding: 3rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: var(--primary);
  opacity: 0.05;
  transform: rotate(15deg);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 166, 35, 0.15);
  border: 1px solid rgba(245, 166, 35, 0.3);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero h1 { color: var(--white); font-size: 2rem; margin-bottom: 1rem; }
.hero h1 span { color: var(--primary); }
.hero p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 2rem; max-width: 500px; }
.hero-buttons { display: flex; flex-direction: column; gap: 1rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn svg { width: 20px; height: 20px; }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: var(--whatsapp-dark); text-decoration: none; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); }
.btn-call { background: var(--white); color: var(--dark); border: 2px solid var(--gray-light); }
.btn-call:hover { border-color: var(--primary); text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--dark); }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--dark); border: 2px solid var(--gray-light); }
.btn-outline:hover { border-color: var(--primary); text-decoration: none; }

/* Services Grid */
.services-grid { display: grid; gap: 1.25rem; margin-top: 2rem; }

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--gray-light);
}

.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.service-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-dark) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.service-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--dark); stroke-width: 2; }
.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { font-size: 0.95rem; margin-bottom: 1rem; }

/* Areas */
.areas { background: var(--white); }
.areas-intro { text-align: center; max-width: 600px; margin: 0 auto 2rem; }
.area-tags { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 2rem; }

.area-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--gray-light);
  padding: 0.625rem 1rem;
  border-radius: 50px;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  transition: all 0.2s;
}

.area-tag:hover { background: var(--primary); border-color: var(--primary); text-decoration: none; }
.area-tag svg { width: 16px; height: 16px; fill: var(--primary); }
.area-tag:hover svg { fill: var(--dark); }
.area-tag.primary { background: var(--dark); color: var(--white); border-color: var(--dark); }
.area-tag.primary svg { fill: var(--primary); }

/* Trust */
.trust { background: var(--dark); color: var(--white); }
.trust h2 { color: var(--white); text-align: center; }
.trust-intro { text-align: center; color: rgba(255,255,255,0.7); max-width: 500px; margin: 0 auto 2rem; }
.trust-grid { display: grid; gap: 1.5rem; }
.trust-item { text-align: center; padding: 1.5rem; }

.trust-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 224, 51, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.trust-icon svg { width: 28px; height: 28px; fill: var(--yellow); }
.trust-item h3 { color: var(--white); margin-bottom: 0.5rem; }
.trust-item p { color: rgba(255,255,255,0.6); font-size: 0.95rem; }

/* CTA Section */
.cta-section { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); text-align: center; padding: 3rem 0; }
.cta-section h2 { color: var(--dark); margin-bottom: 0.75rem; }
.cta-section p { color: rgba(0,0,0,0.7); margin-bottom: 1.5rem; }
.cta-buttons { display: flex; flex-direction: column; gap: 1rem; max-width: 320px; margin: 0 auto; }
.cta-section .btn-whatsapp { background: var(--dark); }
.cta-section .btn-whatsapp:hover { background: var(--dark-light); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.cta-section .btn-call { background: var(--white); }

/* Footer */
.footer { background: var(--dark); color: rgba(255,255,255,0.6); padding: 3rem 0 1rem; }
.footer-grid { display: grid; gap: 2rem; margin-bottom: 2rem; }
.footer h4 { color: var(--white); margin-bottom: 1rem; font-size: 1rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.5rem; }
.footer a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer a:hover { color: var(--primary); text-decoration: none; }
.footer-logo { font-family: 'Archivo', sans-serif; font-size: 1.25rem; font-weight: 800; color: var(--white); margin-bottom: 0.75rem; }
.footer-logo span { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; text-align: center; font-size: 0.875rem; }
.footer-bottom a { margin: 0 0.5rem; }

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.75rem;
  z-index: 1000;
}

.sticky-cta .btn { flex: 1; padding: 0.875rem 1rem; }

/* Page Header */
.page-header { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%); padding: 3rem 0; text-align: center; }
.page-header h1 { color: var(--white); }
.page-header p { color: rgba(255,255,255,0.7); max-width: 500px; margin: 0 auto; }

/* Content */
.content-section { background: var(--white); }
.content-block { margin-bottom: 2rem; }
.content-block:last-child { margin-bottom: 0; }

/* Service Detail */
.service-detail { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; margin-bottom: 1.5rem; border: 1px solid var(--gray-light); }
.service-detail h3 { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.service-detail .icon { width: 40px; height: 40px; background: var(--primary); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.service-detail .icon svg { width: 20px; height: 20px; fill: var(--dark); }
.service-detail ul { margin: 1rem 0; padding-left: 1.25rem; color: var(--gray); }
.service-detail li { margin-bottom: 0.5rem; }

/* Pricing */
.pricing-card { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; border: 2px solid var(--gray-light); margin-bottom: 1.5rem; }
.pricing-card.featured { border-color: var(--primary); position: relative; }
.pricing-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: var(--dark); padding: 0.25rem 1rem; border-radius: 50px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.pricing-card h3 { text-align: center; margin-bottom: 0.5rem; }
.pricing-card .price { text-align: center; font-size: 2rem; font-weight: 700; color: var(--dark); margin-bottom: 1rem; }
.pricing-card .price span { font-size: 1rem; font-weight: 400; color: var(--gray); }
.pricing-card ul { list-style: none; margin-bottom: 1.5rem; }
.pricing-card li { padding: 0.5rem 0; border-bottom: 1px solid var(--gray-light); display: flex; align-items: center; gap: 0.5rem; }
.pricing-card li svg { width: 16px; height: 16px; fill: var(--whatsapp); flex-shrink: 0; }
.pricing-note { background: var(--bg); padding: 1.5rem; border-radius: var(--radius); margin-top: 2rem; }
.pricing-note h4 { margin-bottom: 0.5rem; }

/* FAQ */
.faq-item { background: var(--white); border: 1px solid var(--gray-light); border-radius: var(--radius); 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(--dark); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: inherit; }
.faq-question svg { width: 20px; height: 20px; fill: var(--gray); transition: transform 0.3s; }
.faq-item.active .faq-question svg { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 1.25rem 1.25rem; color: var(--gray); }
.faq-item.active .faq-answer { display: block; }

/* Contact */
.contact-methods { display: grid; gap: 1.5rem; margin-bottom: 2rem; }
.contact-card { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; text-align: center; border: 1px solid var(--gray-light); }
.contact-card .icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.contact-card .icon svg { width: 32px; height: 32px; fill: var(--white); }
.contact-card.whatsapp .icon { background: var(--whatsapp); }
.contact-card.phone .icon { background: var(--phone); }
.contact-card h3 { margin-bottom: 0.5rem; }
.contact-card p { margin-bottom: 1rem; }

/* Location Hero */
.location-hero { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%); padding: 3rem 0 4rem; }
.location-hero h1 { color: var(--white); margin-bottom: 1rem; }
.location-hero h1 span { color: var(--primary); }
.location-hero p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 2rem; }
.location-services { background: var(--white); }
.location-services h2 { margin-bottom: 1.5rem; }
.nearby-areas { background: var(--bg); }

/* Text Page */
.text-page { background: var(--white); }
.text-page h2 { margin-top: 2rem; }
.text-page ul { margin: 1rem 0; padding-left: 1.5rem; }
.text-page li { margin-bottom: 0.5rem; color: var(--gray); }

/* Utilities */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* Desktop */
@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  section { padding: 5rem 0; }
  .menu-toggle { display: none; }
  .nav { display: block; }
  .header-cta { display: block; }
  .hero { padding: 5rem 0 6rem; }
  .hero h1 { font-size: 3rem; }
  .hero-buttons { flex-direction: row; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-buttons { flex-direction: row; max-width: 500px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .sticky-cta { display: none; }
  .contact-methods { grid-template-columns: repeat(2, 1fr); }
}

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

@media (max-width: 767px) {
  body { padding-bottom: 80px; }
}

/* Contact Page Grid */
.contact-grid { display: grid; gap: 3rem; }
.contact-main h2 { margin-bottom: 1rem; }
.contact-buttons { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }

/* Large Buttons */
.btn-large { padding: 1rem 2rem; font-size: 1.1rem; }

/* Legal Content */
.legal-content { max-width: 800px; }
.legal-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.5rem; }
.legal-content h2:first-of-type { margin-top: 1.5rem; }
.legal-content p { margin-bottom: 1rem; }
.legal-content a { color: var(--primary); }

/* About Content */
.about-content h2 { margin-bottom: 1rem; }
.about-content p { margin-bottom: 1rem; }

/* Location Header */
.location-header { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%); }
.location-header .cta-buttons { justify-content: flex-start; }

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1.5fr 1fr; }
  .contact-buttons { flex-direction: row; }
}

/* Raretrade CTA */
.raretrade-cta {
  background: var(--bg);
  border-top: 1px solid var(--gray-light);
  padding: 1.5rem 0;
  text-align: center;
}

.raretrade-cta p {
  font-size: 0.9rem;
  color: var(--gray);
  margin: 0;
}

.raretrade-cta a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.raretrade-cta a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}
