/* Nickerson Plumbing - Fixed Contrast */
:root {
  --navy: #1a365d;
  --navy-light: #2d4a7c;
  --grey-light: #f0f2f5;
  --grey: #e2e8f0;
  --grey-dark: #64748b;
  --white: #ffffff;
  --text: #334155;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
.header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo { color: var(--white); }
.logo h1 { font-size: 1.4rem; font-weight: 700; letter-spacing: 0.5px; }
.logo span {
  display: block;
  font-size: 0.65rem;
  color: #b8c5d6;
  font-weight: 400;
  letter-spacing: 1px;
  margin-top: 2px;
}
.nav { display: flex; gap: 32px; }
.nav a {
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover, .nav a.active { color: var(--white); }
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--white);
}
.nav-tool {
  background: rgba(255,255,255,0.15);
  padding: 8px 14px;
  border-radius: 6px;
}
.nav-tool:hover { background: rgba(255,255,255,0.25); }
.header-cta {
  background: var(--white);
  color: var(--navy);
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
}
.header-cta:hover { background: var(--grey-light); }
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 80px 24px;
  text-align: center;
}
.hero h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 16px; line-height: 1.2; }
.hero p {
  font-size: 1.1rem;
  color: #e2e8f0;
  max-width: 600px;
  margin: 0 auto 32px;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--white); color: var(--navy); }
.btn-primary:hover { background: var(--grey-light); transform: translateY(-2px); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); }

/* Sections */
.section { padding: 80px 24px; }
.section-grey { background: var(--grey-light); }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: 2rem; color: var(--navy); margin-bottom: 12px; }
.section-title p { color: var(--grey-dark); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  border: 1px solid var(--grey);
  transition: all 0.3s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  border-color: var(--navy);
}
.service-card .icon {
  width: 56px;
  height: 56px;
  background: var(--grey-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.service-card h3 { font-size: 1.25rem; color: var(--navy); margin-bottom: 12px; }
.service-card p { color: var(--grey-dark); font-size: 0.95rem; line-height: 1.7; }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}
.feature { text-align: center; padding: 24px; }
.feature .icon {
  width: 64px;
  height: 64px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
}
.feature h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 8px; }
.feature p { color: var(--grey-dark); font-size: 0.9rem; }

/* About */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.about-text h2 { font-size: 2rem; color: var(--navy); margin-bottom: 20px; }
.about-text p { color: var(--grey-dark); margin-bottom: 16px; font-size: 1rem; line-height: 1.8; }
.about-image {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 12px;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 4rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}
.contact-info h3 { font-size: 1.5rem; color: var(--navy); margin-bottom: 24px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.contact-item .icon {
  width: 48px;
  height: 48px;
  background: var(--grey-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-item h4 { font-size: 0.95rem; color: var(--navy); margin-bottom: 4px; }
.contact-item p { color: var(--grey-dark); font-size: 0.9rem; }
.contact-item a { color: var(--navy); font-weight: 500; }

.contact-form {
  background: var(--white);
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--grey);
}
.contact-form h3 { font-size: 1.25rem; color: var(--navy); margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--grey);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--navy);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.form-submit:hover { background: var(--navy-light); }

/* CTA - FIXED: White text on dark background */
.cta {
  background: var(--navy);
  color: var(--white);
  padding: 60px 24px;
  text-align: center;
}
.cta h2 { font-size: 1.8rem; margin-bottom: 12px; color: var(--white); }
.cta p { color: #e2e8f0; margin-bottom: 24px; font-size: 1.05rem; }

/* Footer - FIXED: Light text on dark background */
.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 48px 24px 24px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.footer-brand h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 8px; }
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.9rem; color: #cbd5e1; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid #334155;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Page Headers */
.page-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  padding: 60px 24px;
  text-align: center;
}
.page-header h1 { font-size: 2.2rem; margin-bottom: 12px; color: var(--white); }
.page-header p { color: #e2e8f0; font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* Service Detail */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--grey);
}
.service-detail:last-child { border-bottom: none; }
.service-detail.reverse { direction: rtl; }
.service-detail.reverse > * { direction: ltr; }
.service-detail-content h3 { font-size: 1.5rem; color: var(--navy); margin-bottom: 16px; }
.service-detail-content p { color: var(--grey-dark); margin-bottom: 16px; line-height: 1.8; }
.service-detail-content ul { list-style: none; margin-top: 20px; }
.service-detail-content ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--text);
}
.service-detail-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--navy);
  font-weight: bold;
}
.service-detail-image {
  background: var(--grey-light);
  border-radius: 12px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.value-card {
  padding: 32px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--grey);
  text-align: center;
}
.value-card .icon { font-size: 2rem; margin-bottom: 16px; }
.value-card h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 8px; }
.value-card p { color: var(--grey-dark); font-size: 0.9rem; }

/* Responsive */
@media (max-width: 900px) {
  .nav { display: none; }
  .mobile-toggle { display: block; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 24px;
    gap: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .hero h2 { font-size: 2rem; }
  .about-content, .contact-grid, .service-detail { grid-template-columns: 1fr; }
  .service-detail.reverse { direction: ltr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .hero { padding: 60px 20px; }
  .hero h2 { font-size: 1.75rem; }
  .section { padding: 60px 20px; }
  .header-cta { display: none; }
}
