/* DESIGN SYSTEM */
:root {
  --background: 0 0% 100%;
  --foreground: 0 0% 9%;
  --primary: 212 100% 50%;
  --primary-foreground: 0 0% 100%;
  --secondary: 0 0% 96%;
  --secondary-foreground: 0 0% 9%;
  --muted: 0 0% 96%;
  --muted-foreground: 0 0% 45%;
  --border: 0 0% 90%;
  --radius: 0.5rem;
  --shadow-md: 0 4px 6px -1px hsl(0 0% 0% / 0.1), 0 2px 4px -2px hsl(0 0% 0% / 0.1);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

/* BASE & RESET */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

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

/* LAYOUT */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  padding-top: 80px; /* Offset for fixed header */
}

/* HEADER */
.main-header {
  background: hsla(var(--background), 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid hsl(var(--border));
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

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

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

.logo-img {
  height: 80px;
  width: auto;
}

.main-nav a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

/* HERO SECTION */
.hero {
  padding: 6rem 0;
  background: hsl(var(--secondary));
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  max-width: 800px;
  margin: 0 auto 1rem;
}

.subtitle {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* GENERIC SECTIONS */
.services-section, .schematic-section, .contact-info-section {
  padding: 5rem 0;
}

.page-title-section {
  padding: 4rem 0;
  text-align: center;
  background: hsl(var(--secondary));
}
.page-title-section h1 { font-size: 2.5rem; font-weight: 700; }

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.section-title p { font-size: 1.1rem; color: hsl(var(--muted-foreground)); }

/* SERVICES SECTION */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.service-card {
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.service-card .card-number { font-size: 1rem; font-weight: 600; color: hsl(var(--muted-foreground)); margin-bottom: 1rem; display: block; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }

/* SCHEMATIC & HOW-IT-WORKS SECTIONS */
.schematic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.schematic-text h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
.schematic-graphic {
  width: 100%;
  min-height: 300px;
  background-color: hsl(var(--secondary));
  background-image: linear-gradient(45deg, hsl(var(--border)) 25%, transparent 25%), 
                    linear-gradient(-45deg, hsl(var(--border)) 25%, transparent 25%),
                    linear-gradient(45deg, transparent 75%, hsl(var(--border)) 75%),
                    linear-gradient(-45deg, transparent 75%, hsl(var(--border)) 75%);
  background-size: 20px 20px;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
}
.step-section.alt-layout .schematic-grid { grid-template-columns: 1fr 1fr; }
.step-section.alt-layout .schematic-text { order: 2; }
.step-section { border-bottom: 1px solid hsl(var(--border)); }
.step-section:last-of-type { border-bottom: none; }
.schematic-text .step-number { display: block; color: hsl(var(--primary)); font-weight: 700; margin-bottom: 0.5rem; }


/* CONTACT PAGE */
.contact-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 2.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--background));
}
.contact-card h3 { font-size: 1.75rem; margin-bottom: 0.75rem; }
.contact-card p { color: hsl(var(--muted-foreground)); margin-bottom: 1.5rem; }
.contact-card .email-link {
  display: inline-block;
  background: hsl(var(--secondary));
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--primary));
  text-decoration: none;
  margin-bottom: 1.5rem;
}
.contact-card .location-info { font-size: 1rem; margin-bottom: 0; }

/* FOOTER */
.main-footer {
  background-color: hsl(var(--secondary));
  border-top: 1px solid hsl(var(--border));
  padding: 2rem 0;
  margin-top: 4rem;
}
.main-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: hsl(var(--muted-foreground));
}
.footer-nav a { color: hsl(var(--muted-foreground)); text-decoration: none; margin-left: 1.5rem; }
.footer-nav a:hover { color: hsl(var(--primary)); }

/* RESPONSIVENESS */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .schematic-grid { grid-template-columns: 1fr; }
  .step-section.alt-layout .schematic-text { order: 0; }
  .hero h1, .schematic-text h2 { font-size: 2rem; }
}