/* ==========================================
   1. DESIGN SYSTEM VARIABLES & RESET
   ========================================== */
:root {
  --bg-dark: #121214;       /* Deep charcoal background */
  --bg-card: #1a1a1e;       /* Slightly lighter gray for cards/containers */
  --accent-blue: #3b82f6;   /* Electric engineering blue for links/buttons */
  --text-main: #f3f4f6;     /* Crisp off-white for high readability */
  --text-muted: #9ca3af;    /* Soft gray for secondary descriptions */
}

/* The Global Reset: Strips browser defaults so layouts behave consistently */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}
/* ==========================================
   2. HEADER & NAVIGATION (Flexbox)
   ========================================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background-color: var(--bg-card);
  border-bottom: 1px solid #27272a;
}

header .logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

header nav {
  display: flex;
  align-items: center;
  gap: 1.5rem; /* Automatically spaces our links out */
}

header nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

header nav a:hover {
  color: var(--accent-blue);
}

/* Styling our special "Request Repair" call-to-action link */
header nav .nav-cta {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

header nav .nav-cta:hover {
  background-color: var(--accent-blue);
  color: var(--text-main);
}
/* ==========================================
   3. HERO SECTION (Flexbox Centering)
   ========================================== */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem; /* Generous breathing room top and bottom */
  background: radial-gradient(circle at top, #1e1e24 0%, var(--bg-dark) 70%);
}

.hero-content {
  max-width: 700px; /* Keeps lines of text from stretching too wide */
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* The primary "Get an Estimate" button styling */
.btn-primary {
  display: inline-block;
  background-color: var(--accent-blue);
  color: var(--text-main);
  text-decoration: none;
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: #2563eb; /* Slightly darker blue on hover */
  transform: translateY(-2px); /* Subtle lift effect */
}
/* ==========================================
   4. SERVICES SECTION (CSS Grid)
   ========================================== */
.services-section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto; /* Centers the entire section layout on wide screens */
}

.services-section h2 {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: -0.03em;
}

/* The Grid Container */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem; /* Exact spacing between the rows and columns */
}

/* Individual Service Cards */
.service-card {
  background-color: var(--bg-card);
  padding: 2.5rem 2rem;
  border-radius: 8px;
  border: 1px solid #27272a;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-4px);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.service-card p {
  color: var(--text-muted);
  font-size: 1rem;
}
/* ==========================================
   5. PORTFOLIO SECTION ("THE LAB")
   ========================================== */
.lab-section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid #27272a; /* Clean separator line */
}

.lab-section h2 {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 4rem;
  font-size: 1.1rem;
}

/* Vertical timeline/stack layout for projects */
.lab-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.project-card {
  background-color: var(--bg-card);
  padding: 2.5rem;
  border-radius: 8px;
  border: 1px solid #27272a;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.project-card:hover {
  border-color: rgba(59, 130, 246, 0.5);
}

.project-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-blue);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.project-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.project-card p {
  color: var(--text-muted);
  max-width: 800px;
  margin-bottom: 1.5rem;
}

.tech-badge {
  display: inline-block;
  background-color: #121214;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: monospace;
  color: var(--text-main);
  border: 1px solid #27272a;
}
/* ==========================================
   6. INTAKE COMPILING ELEMENTS & FORM GROUPS
   ========================================== */
.contact-card {
  background-color: var(--bg-card);
  padding: 3rem;
  border-radius: 12px;
  border: 1px solid #27272a;
}

.contact-card h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.contact-card > p {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  background-color: var(--bg-dark);
  color: var(--text-main);
  border: 1px solid #27272a;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.btn-submit {
  width: 100%;
  background-color: var(--accent-blue);
  color: var(--text-main);
  border: none;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 1rem;
}

.btn-submit:hover {
  background-color: #2563eb;
}

.success-message {
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  margin-top: 1rem;
}

.success-message h3 {
  color: #10b981;
  margin-bottom: 0.5rem;
}

/* ==========================================
   7. TIERED PRICING MATRIX
   ========================================== */
.pricing-section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid #27272a;
}

.pricing-section h2 {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch;
  margin-top: 3rem;
}

.price-card {
  background-color: var(--bg-card);
  border: 1px solid #27272a;
  border-radius: 12px;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.popular {
  border-color: var(--accent-blue);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
}

/* RESPONSIVE DESIGN: Only scale the element upward on desktop screens */
@media (min-width: 1024px) {
  .price-card.popular {
    transform: scale(1.03);
  }
}

.popular-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background-color: var(--accent-blue);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tier-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tier-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.tier-price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.tier-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  min-height: 4.5rem;
}

.tier-features {
  list-style: none;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tier-features li::before {
  content: "→ ";
  color: var(--accent-blue);
  font-weight: bold;
  margin-right: 0.5rem;
}

.btn-tier-select {
  width: 100%;
  background-color: #121214;
  color: var(--text-main);
  border: 1px solid #27272a;
  padding: 0.8rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  margin-top: auto;
  transition: all 0.2s ease;
}

.btn-tier-select:hover {
  border-color: var(--text-main);
}

.btn-tier-select.primary {
  background-color: var(--accent-blue);
  border: none;
}

.btn-tier-select.primary:hover {
  background-color: #2563eb;
}

.intake-form-wrapper {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}