@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --cc-dark: #2c3e50;
  --cc-light: #f8f9fa;
  --cc-accent: #1a7a5a;
  --cc-accent-light: #e8f5f0;
  --cc-text: #2d3436;
  --cc-text-light: #636e72;
  --cc-border: #e9ecef;
  --cc-radius: 12px;
  --cc-radius-lg: 20px;
}

* {
  box-sizing: border-box;
}

/* Avant/Apres full-width images */
.avant-apres-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--cc-radius) var(--cc-radius) 0 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--cc-text);
  line-height: 1.7;
  font-size: 1.05rem;
  background: #fff;
}

/* ===== NAVBAR ===== */
.navbar {
  background: #fff !important;
  border-bottom: 1px solid var(--cc-border);
  padding: 1rem 0;
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.navbar-brand {
  color: var(--cc-dark) !important;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
}

.navbar-brand span {
  color: var(--cc-accent);
}

.nav-link {
  color: var(--cc-text) !important;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--cc-accent) !important;
}

.dropdown-menu {
  background: #fff;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  padding: 0.5rem;
  margin-top: 0.5rem;
}

.dropdown-item {
  color: var(--cc-text);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.dropdown-item:hover {
  background: var(--cc-accent-light);
  color: var(--cc-accent);
}

/* ===== HERO (new style - text only, minimal) ===== */
.page-hero {
  padding: 5rem 0 3rem;
  text-align: center;
  background: linear-gradient(135deg, #f0faf6 0%, #e8f5f0 25%, #f8f9fa 50%, #eef7f3 75%, #f0faf6 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(26,122,90,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(44,62,80,0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  color: var(--cc-dark);
  max-width: 700px;
  margin: 0 auto 1.2rem;
  position: relative;
  z-index: 1;
}

.page-hero .lead {
  font-size: 1.2rem;
  color: var(--cc-text-light);
  max-width: 560px;
  margin: 0 auto 2rem;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

.page-hero .badge-tag {
  display: inline-block;
  background: var(--cc-accent-light);
  color: var(--cc-accent);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

/* ===== SECTIONS ===== */
section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--cc-light);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 1rem;
  color: var(--cc-dark);
}

.section-title.text-center {
  margin-bottom: 1.5rem;
}

.section-subtitle {
  color: var(--cc-text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

h2 {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--cc-dark);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cc-dark);
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1.1rem;
}

/* ===== IMAGES in content ===== */
.content-img {
  border-radius: var(--cc-radius-lg);
  overflow: hidden;
  margin: 0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  height: 350px;
  position: relative;
}

.content-img img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.content-img:hover img {
  transform: scale(1.02);
}

.content-img-sm {
  border-radius: var(--cc-radius) var(--cc-radius) 0 0;
  overflow: hidden;
  height: 220px;
  position: relative;
}

.content-img-sm img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

/* ===== CARDS ===== */
.card {
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  box-shadow: none;
  transition: box-shadow 0.3s, transform 0.3s;
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

/* Ensure all images stay within containers */
img {
  max-width: 100%;
  height: auto;
}

.card-title a {
  color: var(--cc-dark);
  text-decoration: none;
  font-weight: 600;
}

.card-title a:hover {
  color: var(--cc-accent);
}

/* ===== FEATURE CARDS ===== */
.feature-card {
  background: #fff;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
  height: 100%;
}

.feature-card:hover {
  border-color: var(--cc-accent);
  box-shadow: 0 8px 30px rgba(26, 122, 90, 0.08);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--cc-accent-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.5rem;
  color: var(--cc-accent);
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-top: 0;
}

/* ===== BUTTONS ===== */
.btn-accent {
  background: var(--cc-accent);
  color: #fff;
  border: none;
  padding: 0.75rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-accent:hover {
  background: #15634a;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(26, 122, 90, 0.3);
}

.btn-outline-accent {
  border: 2px solid var(--cc-accent);
  color: var(--cc-accent);
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  background: transparent;
}

.btn-outline-accent:hover {
  background: var(--cc-accent);
  color: #fff;
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
}

/* ===== LINKS ===== */
a.internal-link, .internal-link {
  color: var(--cc-accent);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

a.internal-link:hover, .internal-link:hover {
  border-bottom-color: var(--cc-accent);
}

/* ===== TABLES ===== */
.table {
  border-radius: var(--cc-radius);
  overflow: hidden;
  font-size: 0.95rem;
}

.table thead.table-dark th {
  background: var(--cc-dark);
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.9rem 1rem;
}

.table td {
  padding: 0.8rem 1rem;
  vertical-align: middle;
}

/* ===== ACCORDION ===== */
.accordion-item {
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius) !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.accordion-button {
  font-weight: 600;
  font-size: 1rem;
  color: var(--cc-dark);
  padding: 1.1rem 1.3rem;
}

.accordion-button:not(.collapsed) {
  background: var(--cc-accent-light);
  color: var(--cc-accent);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--cc-border);
}

.accordion-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--cc-text-light);
}

/* ===== SIDEBAR CARDS ===== */
.sidebar-card {
  background: var(--cc-light);
  border: none;
  border-radius: var(--cc-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-card h3 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

/* ===== STAT BLOCKS ===== */
.stat-block {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--cc-accent);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--cc-text-light);
  font-weight: 500;
}

/* ===== STEPS ===== */
.step-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--cc-accent);
  color: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.step-content h3 {
  margin-top: 0.2rem;
  font-size: 1.15rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--cc-dark);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
  border-radius: 0;
}

.cta-section h2 {
  color: #fff;
  font-size: 2rem;
}

.cta-section p {
  color: rgba(255,255,255,0.7);
}

.cta-inline {
  background: var(--cc-accent-light);
  border-radius: var(--cc-radius-lg);
  padding: 3rem;
  text-align: center;
  margin: 3rem 0;
}

.cta-inline h3 {
  color: var(--cc-dark);
  margin-top: 0;
}

/* ===== FOOTER ===== */
footer {
  background: var(--cc-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

footer h5 {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

footer a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--cc-accent);
}

footer ul li {
  margin-bottom: 0.5rem;
}

/* ===== BREADCRUMB ===== */
.breadcrumb-nav {
  padding: 1rem 0 0;
  font-size: 0.85rem;
}

.breadcrumb-nav a {
  color: var(--cc-text-light);
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  color: var(--cc-accent);
}

.breadcrumb-nav span {
  color: var(--cc-text-light);
}

/* ===== TEXT ACCENT ===== */
.text-accent {
  color: var(--cc-accent) !important;
}

.bg-accent-light {
  background: var(--cc-accent-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .page-hero h1 {
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    padding: 0 0.5rem;
  }
  
  .page-hero {
    padding: 3rem 0 2rem;
  }

  .page-hero .lead {
    font-size: 1.05rem;
    padding: 0 0.5rem;
  }

  .page-hero::before,
  .page-hero::after {
    display: none;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  .cta-inline {
    padding: 2rem 1.5rem;
  }
}

/* Prevent horizontal scroll */
html, body {
  overflow-x: hidden;
}

.container, .row, section {
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== MISC ===== */
.list-check li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.list-check li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--cc-accent);
  font-weight: 700;
}

.divider {
  width: 60px;
  height: 4px;
  background: var(--cc-accent);
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}

.divider-center {
  margin-left: auto;
  margin-right: auto;
}

/* Remove old hero styles */
.hero-section {
  display: none;
}
