/* Certified Waterproofing — Multi-page Site
   Dark, professional design
   Font: Inter (Google Fonts) with system fallback */

:root {
  --dark: #0D1117;
  --dark-surface: #161B22;
  --navy: #0A1628;
  --white: #FFFFFF;
  --off-white: #F0F2F5;
  --teal: #00A5B5;
  --teal-hover: #008E9B;
  --text: #E6EDF3;
  --text-dark: #1A1A1A;
  --muted: #8B949E;
  --muted-dark: #6B7280;
  --border: #30363D;
  --border-light: #E5E7EB;
  --accent-glow: rgba(0, 165, 181, 0.15);
}

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

body {
  font-family: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: var(--dark);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; }

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
}
.nav-logo:hover { text-decoration: none; color: var(--teal); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--muted);
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── HERO ── */
.hero {
  padding: 120px 0 120px;
  text-align: center;
  background: linear-gradient(180deg, rgba(13,17,23,0.80) 0%, rgba(10,22,40,0.88) 100%),
              url('HeroBackground.png') center / cover no-repeat;
  border-bottom: 1px solid var(--border);
  position: relative;
}

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

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--teal);
  border: 1px solid rgba(0, 165, 181, 0.3);
  background: var(--accent-glow);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: 44px;
  font-weight: 700;
  color: var(--white);
  max-width: 780px;
  margin: 0 auto 20px;
  letter-spacing: -0.5px;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 36px;
}

.btn {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  background: var(--teal);
  padding: 14px 32px;
  border-radius: 8px;
  transition: background 0.2s;
}
.btn:hover {
  background: var(--teal-hover);
  text-decoration: none;
}
.btn-lg {
  padding: 16px 40px;
  font-size: 17px;
}
.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--teal);
}
.btn-outline:hover {
  background: var(--accent-glow);
}

/* ── PAGE HEADER (non-home pages) ── */
.page-header {
  padding: 100px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, rgba(13,17,23,0.90) 0%, rgba(10,22,40,0.95) 100%);
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 38px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.page-header-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ── SERVICES ── */
.services {
  padding: 88px 0;
  background: var(--dark-surface);
}

.section-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--teal);
  text-align: center;
  margin-bottom: 12px;
}

.services h2 {
  text-align: center;
  font-size: 30px;
  color: var(--white);
  margin-bottom: 52px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.cards-4 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--dark);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
  overflow: hidden;
}
.card:hover {
  border-color: rgba(0, 165, 181, 0.4);
}

.card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.card:hover .card-img img {
  transform: scale(1.03);
}

.card-body {
  padding: 28px 28px 32px;
}

.card h3 {
  font-size: 18px;
  color: var(--white);
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── HOW WE WORK ── */
.process {
  padding: 88px 0;
  background: var(--dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.process h2 {
  text-align: center;
  font-size: 30px;
  color: var(--white);
  margin-bottom: 52px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid rgba(0, 165, 181, 0.3);
  color: var(--teal);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 17px;
  color: var(--white);
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── WHY US ── */
.why {
  padding: 88px 0;
  background: var(--dark-surface);
}

.why h2 {
  text-align: center;
  font-size: 30px;
  color: var(--white);
  margin-bottom: 16px;
}

.why-lead {
  text-align: center;
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 48px;
}

.features {
  max-width: 660px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature {
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
  border-left: 3px solid var(--teal);
  background: var(--dark);
  border-radius: 0 8px 8px 0;
}

.feature-label {
  font-weight: 600;
  font-size: 15px;
  color: var(--white);
}

.feature-desc {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

/* ── TEAM ── */
.team {
  padding: 88px 0;
  background: var(--dark);
  border-top: 1px solid var(--border);
}

.team h2 {
  text-align: center;
  font-size: 30px;
  color: var(--white);
  margin-bottom: 52px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 700px;
  margin: 0 auto;
}

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

.team-photo {
  width: 140px;
  height: 140px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-surface);
  color: var(--teal);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 1px;
}

.team-card h3 {
  font-size: 20px;
  color: var(--white);
  margin-bottom: 4px;
}

.team-role {
  display: block;
  font-size: 14px;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 12px;
}

.team-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 300px;
  margin: 0 auto;
}

/* ── CREDENTIALS ── */
.credentials {
  padding: 56px 0;
  background: linear-gradient(180deg, rgba(10,22,40,0.92) 0%, rgba(10,22,40,0.92) 100%),
              url('CredentialsAccent.png') center / cover no-repeat;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cred-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.cred {
  text-align: center;
}

.cred-value {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
}

.cred-label {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

.cred-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
}

/* ── CONTACT ── */
.contact {
  padding: 88px 0;
  text-align: center;
  background: var(--dark);
}

.contact h2 {
  font-size: 30px;
  color: var(--white);
  margin-bottom: 12px;
}

.contact-lead {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
}

.contact-role {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.contact-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--teal);
}

/* ── INSIGHTS LISTING ── */
.insights-listing {
  padding: 64px 0 88px;
  background: var(--dark);
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.insight-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--dark-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, transform 0.2s;
  color: var(--text);
}
.insight-card:hover {
  border-color: rgba(0, 165, 181, 0.4);
  transform: translateY(-2px);
  text-decoration: none;
}

.insight-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--teal);
  background: var(--accent-glow);
  border: 1px solid rgba(0, 165, 181, 0.25);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
  width: fit-content;
}

.insight-card h3 {
  font-size: 17px;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.35;
}

.insight-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.insight-read {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  margin-top: 16px;
}

/* ── ARTICLE PAGE ── */
.article {
  padding: 100px 0 88px;
  background: var(--dark);
}

.article-container {
  max-width: 720px;
}

.article-back {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 24px;
}
.article-back:hover { color: var(--teal); }

.article h1 {
  font-size: 34px;
  font-weight: 700;
  color: var(--white);
  margin-top: 12px;
  margin-bottom: 28px;
  line-height: 1.25;
}

.article-placeholder {
  font-size: 16px;
  color: var(--muted);
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.article-body {
  font-size: 16px;
  color: var(--text);
  line-height: 1.8;
}

.article-body h2 {
  font-size: 24px;
  color: var(--white);
  margin: 40px 0 16px;
}

.article-body h3 {
  font-size: 19px;
  color: var(--white);
  margin: 32px 0 12px;
}

.article-body p {
  margin-bottom: 16px;
}

.article-body ul, .article-body ol {
  margin: 0 0 16px 24px;
}

.article-body li {
  margin-bottom: 8px;
}

/* ── PROJECTS LISTING ── */
.projects-listing {
  padding: 64px 0 88px;
  background: var(--dark);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.project-card {
  padding: 28px;
  background: var(--dark-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s;
}
.project-card:hover {
  border-color: rgba(0, 165, 181, 0.4);
}

.project-card h3 {
  font-size: 18px;
  color: var(--white);
  margin-bottom: 6px;
}

.project-type {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--teal);
  margin-bottom: 12px;
}

.project-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.project-location {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

.projects-note {
  text-align: center;
  font-size: 15px;
  color: var(--muted);
}

/* ── FOOTER ── */
.footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  background: var(--dark);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
}
.footer-links a:hover { color: var(--teal); }

.footer-partner {
  color: var(--muted);
}

.footer-partner a {
  color: var(--teal);
  font-weight: 500;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { padding: 88px 0 80px; }
  .page-header { padding: 80px 0 48px; }
  .card-img { height: 180px; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 16px; }
  .page-header h1 { font-size: 28px; }

  .cards, .cards-4 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .services, .process, .why, .contact, .team { padding: 64px 0; }

  .cred-items { gap: 24px; }
  .cred-divider { display: none; }

  .contact-details {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .why-lead br { display: none; }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .insights-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .footer-links { gap: 16px; }

  /* Mobile nav */
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(13, 17, 23, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 0;
  }

  .nav-links.open { display: flex; }

  .nav-links li { padding: 12px 0; }

  .nav-inner { position: relative; }

  .article h1 { font-size: 26px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .hero { padding: 64px 0 48px; }
  .page-header { padding: 72px 0 40px; }
  .card-img { height: 160px; }
  .card-body { padding: 20px 20px 24px; }
  .nav-logo { font-size: 15px; }
  .article h1 { font-size: 22px; }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
