/* Electric Gate Repair Website - Premium Design */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #0f3460;
  --primary-dark: #082032;
  --accent: #e94560;
  --accent-light: #ff6b6b;
  --accent-gold: #f4b942;
  --text: #1a1a2e;
  --text-light: #4a4a68;
  --bg-light: #f0f4f8;
  --bg-cream: #faf8f5;
  --white: #ffffff;
  --shadow: 0 10px 40px rgba(15, 52, 96, 0.08);
  --shadow-hover: 0 20px 50px rgba(15, 52, 96, 0.15);
  --radius: 16px;
  --radius-lg: 24px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
}

/* Top Bar */
.top-bar {
  background: linear-gradient(90deg, var(--primary) 0%, #1a4a7a 100%);
  color: var(--white);
  padding: 0.6rem 0;
  font-size: 0.9rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.top-bar a {
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.top-bar a:hover {
  color: var(--accent-gold);
  transform: translateY(-1px);
}

/* Header / Nav */
.main-header {
  background: var(--white);
  box-shadow: 0 4px 30px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.logo span {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #0a1628 100%);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(233,69,96,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.92;
  max-width: 680px;
  margin: 0 auto 2rem;
  font-weight: 500;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.25rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.15rem;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(15, 52, 96, 0.06);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(233,69,96,0.2);
}

.card-icon {
  background: linear-gradient(135deg, var(--primary) 0%, #1a4a7a 100%);
  color: var(--white);
  font-size: 2.75rem;
  padding: 2rem;
  text-align: center;
}

.card-body {
  padding: 2rem;
}

.card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.card p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.7;
}

.card a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.card a:hover {
  gap: 0.75rem;
}

/* Content Blocks */
.content-block {
  margin-bottom: 2.5rem;
}

.content-block h2 {
  color: var(--primary);
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.content-block h3 {
  color: var(--primary);
  font-size: 1.35rem;
  margin: 1.5rem 0 0.75rem;
  font-weight: 600;
}

.content-block p {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.content-block ul {
  margin: 1rem 0 1.5rem 1.5rem;
}

.content-block li {
  margin-bottom: 0.6rem;
  color: var(--text-light);
}

/* FAQ */
.faq-list {
  margin-top: 2rem;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}

.faq-item h4 {
  color: var(--primary);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.faq-item p {
  color: var(--text-light);
  margin: 0;
  font-size: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(233,69,96,0.35);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(233,69,96,0.45);
}

.btn-primary {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-primary:hover {
  background: var(--bg-light);
}

/* Footer */
footer {
  background: linear-gradient(180deg, var(--primary-dark) 0%, #050d18 100%);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-grid > div {
  display: flex;
  flex-direction: column;
}

.footer h4 {
  margin-bottom: 1.25rem;
  color: var(--accent-gold);
  font-size: 1.15rem;
  font-weight: 700;
}

.footer p {
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.footer a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  display: block;
  margin-bottom: 0.6rem;
  transition: var(--transition);
}

.footer-grid > div a {
  display: block;
  width: 100%;
}

.footer a:hover {
  color: var(--accent-gold);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Sticky CTA Button - Mobile only */
.sticky-cta {
  display: none;
}

.sticky-cta a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 8px 30px rgba(40, 167, 69, 0.5);
  transition: var(--transition);
  white-space: nowrap;
}

.sticky-cta a:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(40, 167, 69, 0.6);
}

.sticky-cta .call-btn {
  background: linear-gradient(135deg, #28a745, #20c997);
  font-size: 1rem;
}

.sticky-cta a:not(.call-btn) {
  background: linear-gradient(135deg, var(--primary), #1a4a7a);
  box-shadow: 0 8px 30px rgba(15, 52, 96, 0.4);
}

.sticky-cta a:not(.call-btn):hover {
  box-shadow: 0 12px 40px rgba(15, 52, 96, 0.5);
}

/* Services Page */
.page-hero {
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 100%);
  padding: 3rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(15, 52, 96, 0.08);
}

.page-hero h1 {
  font-size: 2.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* Service Detail */
.service-detail {
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-detail h2 {
  color: var(--primary);
  margin-bottom: 1.25rem;
  font-size: 1.75rem;
  font-weight: 700;
}

.service-detail ul {
  margin: 1rem 0 1.5rem 1.5rem;
}

.service-detail li {
  margin-bottom: 0.6rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 2rem;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 70% 30%, rgba(233,69,96,0.2) 0%, transparent 50%);
}

.cta-section h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 700;
}

.cta-section p {
  margin-bottom: 1.5rem;
  opacity: 0.95;
  font-size: 1.1rem;
}

/* Map Section */
.map-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  height: 400px;
  box-shadow: var(--shadow);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Alternating Section Backgrounds */
section.alt-bg {
  background: var(--bg-light);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero {
    padding: 3.5rem 0;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .sticky-cta {
    display: flex;
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1000;
    gap: 0.5rem;
    flex-direction: row;
    align-items: flex-end;
  }
  
  .sticky-cta a {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(40, 167, 69, 0.5);
    transition: var(--transition);
    white-space: nowrap;
  }
  
  .sticky-cta a:not(.call-btn) {
    background: linear-gradient(135deg, var(--primary), #1a4a7a);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
  
  .footer-grid > div {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1.5rem;
  }
  
  .footer-grid > div:last-of-type {
    border-bottom: none;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
  }
}
