/* ============================================================
   HRP Infra — Shared Sector Page Stylesheet
   ------------------------------------------------------------
   Used by every Core-Sector landing page (water-and-wastewater,
   data-center, building, carbon-capture, hydrogen, …).

   This file is loaded AFTER main.css so the sector-scoped
   palette below intentionally overrides a few global tokens.

   The ONLY per-page visual difference is the hero background
   image, which each page supplies via the --hero-image variable:

       <style> .service-hero { --hero-image: url('../assets/images/data-center.webp'); } </style>
   ============================================================ */

:root {
  --primary: #003b64;
  --secondary: #00a69c;
  --accent-1: #4d9fd6;
  --accent-2: #f7d117;
  --white: #ffffff;
  --light-bg: #f5f7fa;
  --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.12);
  --border-radius: 14px;
  --transition: all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Poppins', sans-serif; background: var(--white); color: #333; overflow-x: hidden; }

/* ── Breadcrumb ── */
.breadcrumb-bar { background: var(--primary); padding: 12px 0; font-size: 0.82rem; }
.breadcrumb-bar .container { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb-bar a { color: rgba(255, 255, 255, 0.75); text-decoration: none; transition: color 0.2s; }
.breadcrumb-bar a:hover { color: var(--accent-2); }
.breadcrumb-bar span { color: var(--accent-2); }
.breadcrumb-bar i { color: rgba(255, 255, 255, 0.5); font-size: 0.7rem; }

/* ── Hero ── */
.service-hero {
  padding: 110px 0 80px;
  background:
    linear-gradient(135deg, rgba(0, 59, 100, 0.9) 0%, rgba(0, 86, 90, 0.8) 100%),
    var(--hero-image, none) center/cover no-repeat;
  background-color: var(--primary);
  color: var(--white); text-align: center; position: relative; overflow: hidden;
}
.service-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(247, 209, 23, 0.15); border: 1px solid rgba(247, 209, 23, 0.4);
  color: var(--accent-2); padding: 6px 18px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px;
  position: relative;
}
.service-hero-title { font-family: 'Montserrat', sans-serif; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; color: var(--white); margin-bottom: 18px; line-height: 1.15; position: relative; }
.service-hero-title span { color: var(--accent-2); }
.service-hero-desc { font-size: 1.05rem; max-width: 720px; margin: 0 auto 30px; line-height: 1.7; color: rgba(255, 255, 255, 0.88); position: relative; }
.hero-stats { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-top: 40px; position: relative; }
.hero-stat { text-align: center; }
.hero-stat-num { font-family: 'Montserrat', sans-serif; font-size: 2rem; font-weight: 900; color: var(--accent-2); }
.hero-stat-label { font-size: 0.78rem; color: rgba(255, 255, 255, 0.75); text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Section Titles ── */
.section-header { text-align: center; margin-bottom: 50px; }
.section-label { display: inline-block; background: rgba(0, 166, 156, 0.1); color: var(--secondary); font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 6px 16px; border-radius: 50px; margin-bottom: 14px; }
.section-title { font-family: 'Montserrat', sans-serif; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: var(--primary); margin-bottom: 14px; }
.section-desc { color: #666; font-size: 1rem; max-width: 640px; margin: 0 auto; line-height: 1.7; }

/* ── Intro ── */
.intro-section { padding: 80px 0; background: var(--white); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.intro-text h2 { font-family: 'Montserrat', sans-serif; font-size: 1.9rem; font-weight: 800; color: var(--primary); margin-bottom: 18px; }
.intro-text p { color: #555; line-height: 1.8; margin-bottom: 16px; }
.intro-text .highlight { background: linear-gradient(135deg, #e8f8f7, #f0f8ff); border-left: 4px solid var(--secondary); padding: 18px 20px; border-radius: 0 10px 10px 0; margin: 24px 0; }
.intro-text .highlight p { color: var(--primary); font-weight: 500; margin: 0; }
.intro-visual { position: relative; }
.intro-visual img { width: 100%; height: 420px; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow-md); }

/* ── Service Features (Linked Cards) ── */
.services-section { padding: 80px 0; background: var(--light-bg); }
.service-features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px; margin-top: 50px;
}
.feature-box {
  background: white; border-radius: var(--border-radius); padding: 36px 30px;
  box-shadow: var(--shadow-sm); transition: var(--transition); border-bottom: 3px solid var(--accent-1);
  display: block; text-decoration: none; color: inherit; position: relative; overflow: hidden;
}
.feature-box:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); border-bottom-color: var(--secondary); }
.feature-icon { font-size: 2.4rem; color: var(--secondary); margin-bottom: 1.2rem; transition: var(--transition); }
.feature-box:hover .feature-icon { color: var(--accent-2); transform: scale(1.1); }
.feature-title { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-bottom: 0.8rem; }
.feature-desc { color: #666; line-height: 1.7; font-size: 0.92rem; margin-bottom: 14px; }
.feature-link { color: var(--secondary); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; transition: var(--transition); }
.feature-box:hover .feature-link { color: var(--primary); gap: 10px; }

/* ── Process Steps ── */
.process-section { padding: 80px 0; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 50px; }
.step-card {
  background: white; border-radius: var(--border-radius); padding: 32px 28px;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: var(--transition); border-top: 4px solid var(--accent-1);
}
.step-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-top-color: var(--secondary); }
.step-number { position: absolute; top: 16px; right: 20px; font-family: 'Montserrat', sans-serif; font-size: 3.5rem; font-weight: 900; color: rgba(0, 59, 100, 0.06); line-height: 1; }
.step-icon { width: 52px; height: 52px; background: linear-gradient(135deg, rgba(0, 166, 156, 0.12), rgba(77, 159, 214, 0.12)); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--secondary); font-size: 1.4rem; margin-bottom: 18px; transition: var(--transition); }
.step-card:hover .step-icon { background: var(--secondary); color: white; }
.step-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.step-card p { color: #666; font-size: 0.9rem; line-height: 1.7; }

/* ── Benefits ── */
.benefits-section { padding: 80px 0; background: var(--light-bg); }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 50px; }
.benefit-item { text-align: center; padding: 32px 24px; background: white; border-radius: var(--border-radius); box-shadow: var(--shadow-sm); transition: var(--transition); }
.benefit-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.benefit-icon { width: 64px; height: 64px; background: linear-gradient(135deg, var(--secondary), var(--accent-1)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem; margin: 0 auto 18px; }
.benefit-item h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.benefit-item p { color: #666; font-size: 0.88rem; line-height: 1.65; }

/* ── Projects ── */
.projects-showcase { padding: 80px 0; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-top: 50px; }
.project-card { background: white; border-radius: var(--border-radius); padding: 2rem; box-shadow: var(--shadow-sm); border-top: 4px solid var(--secondary); transition: var(--transition); }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.project-client { color: var(--secondary); font-weight: 700; font-size: 0.85rem; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.project-title-card { color: var(--primary); font-weight: 700; font-size: 1.15rem; margin-bottom: 12px; }
.project-desc { color: #555; font-size: 0.9rem; line-height: 1.7; margin-bottom: 15px; }
.project-tag { display: inline-block; background: var(--light-bg); color: var(--primary); padding: 5px 14px; border-radius: 20px; font-size: 0.82rem; margin: 4px 4px 0 0; font-weight: 600; }

/* ── FAQ ── */
.faq-section { padding: 80px 0; background: var(--light-bg); }
.faq-list { max-width: 800px; margin: 50px auto 0; }
.faq-item { border: 1px solid #e8eef3; border-radius: 12px; margin-bottom: 14px; overflow: hidden; transition: var(--transition); }
.faq-item:hover { border-color: var(--secondary); }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px; cursor: pointer; background: white; }
.faq-question h3 { font-size: 0.98rem; font-weight: 600; color: var(--primary); line-height: 1.5; }
.faq-question i { color: var(--secondary); font-size: 1rem; transition: transform 0.3s; flex-shrink: 0; margin-left: 16px; }
.faq-answer { display: none; padding: 0 26px 22px; color: #555; font-size: 0.92rem; line-height: 1.75; }
.faq-item.active .faq-question { background: rgba(0, 166, 156, 0.05); }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-item.active .faq-answer { display: block; }

/* ── CTA ── */
.cta-section { padding: 80px 0; background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); text-align: center; color: white; }
.cta-section h2 { font-family: 'Montserrat', sans-serif; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 16px; }
.cta-section p { font-size: 1rem; color: rgba(255, 255, 255, 0.85); max-width: 600px; margin: 0 auto 32px; line-height: 1.7; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary-cta { background: var(--accent-2); color: var(--primary); font-weight: 700; padding: 14px 32px; border-radius: 8px; text-decoration: none; font-size: 0.95rem; transition: var(--transition); border: 2px solid var(--accent-2); }
.btn-primary-cta:hover { background: transparent; color: var(--accent-2); }
.btn-outline-cta { background: transparent; color: white; font-weight: 600; padding: 14px 32px; border-radius: 8px; text-decoration: none; font-size: 0.95rem; transition: var(--transition); border: 2px solid rgba(255, 255, 255, 0.6); }
.btn-outline-cta:hover { background: white; color: var(--primary); border-color: white; }

@media (max-width: 768px) {
  .intro-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
}

/* ── Codes & Standards ── */
.codes-section { padding: 80px 0; background: var(--gray-100); }
.codes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.codes-group {
  background: var(--white); border-radius: 12px; padding: 30px 28px;
  border-top: 4px solid var(--primary); box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.codes-group:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0, 59, 98, 0.12); }
.codes-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.codes-group-icon {
  width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0;
  background: var(--light-blue); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.codes-group-title { font-size: 16px; font-weight: 700; color: var(--gray-800); line-height: 1.3; }
.codes-list { list-style: none; padding: 0; margin: 0; }
.codes-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--gray-700); line-height: 1.55;
  padding: 9px 0; border-bottom: 1px dashed var(--gray-200);
}
.codes-list li:last-child { border-bottom: none; }
.codes-list li i { color: var(--teal); font-size: 13px; margin-top: 3px; flex-shrink: 0; }
.codes-list .code-ref { font-weight: 600; color: var(--primary); }
.codes-note {
  margin-top: 36px; background: var(--white); border-left: 4px solid var(--yellow);
  border-radius: 0 10px 10px 0; padding: 20px 24px;
  font-size: 14px; color: var(--gray-700); line-height: 1.7;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.codes-note i { color: var(--yellow); margin-right: 8px; }
.codes-section .section-subtitle { color: var(--secondary); font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; }
.codes-section .section-title .highlight { color: var(--secondary); }
@media (max-width: 992px) { .codes-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .codes-grid { grid-template-columns: 1fr; } }
