/* ================================
   COLOR PALETTE (from SVG)
================================ */
:root {
  --primary-color: #0052CC;   /* deep blue */
  --secondary-color: #00B8D9; /* teal */
  --success-color: #36B37E;
  --warning-color: #FFAB00;
  --danger-color: #FF5630;
  --info-color: #6554C0;
  --neutral-color: #42526E;
  --muted-color: #6B778C;

  --light-bg: #F4F5F7;
  --white: #ffffff;
}

/* ================================
   GLOBAL FONTS & TYPOGRAPHY
================================ */
body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  color: var(--neutral-color);
  line-height: 1.6;
  font-size: 0.95rem;
  background-color: var(--white);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

.lead {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--muted-color);
}

/* ================================
   HERO SECTIONS
================================ */
.hero-banner,
.page-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-banner {
  min-height: 80vh;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.page-hero {
  min-height: 40vh;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.hero-banner .hero-overlay,
.page-hero .overlay {
  position: absolute;
  inset: 0;
  background: url("../images/watermark.svg") no-repeat center center;
  background-size: 300px auto;
  opacity: 0.08;
  z-index: 1;
}

.hero-banner .container,
.page-hero .container {
  position: relative;
  z-index: 2;
  color: #fff;
}

.hero-banner h1,
.page-hero h1 { color: #fff; }

.hero-banner p,
.page-hero p { color: #eaeaea; }

/* Mobile hero adjustments */
@media (max-width: 767px) {
  .hero-banner {
    min-height: 70vh;
    padding: 2rem 1rem;
  }
  .hero-banner h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  .hero-banner p {
    font-size: 1rem;
  }
}

/* ================================
   NAVBAR
================================ */
.navbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.navbar .navbar-brand { font-weight: 600; color: #fff !important; }

.navbar .nav-link {
  color: #fff !important;
  font-weight: 500;
  padding: 0.6rem 1rem;
  transition: all 0.3s ease;
  border-radius: 4px;
  position: relative;
}

/* Fix hover underline glitch */
.navbar .nav-link::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.navbar .nav-link:hover::after {
  width: 70%;
}

.navbar .nav-link.active {
  color: var(--secondary-color) !important;
  font-weight: 600;
}
.navbar .nav-link.active::after {
  width: 70%;
}

/* Scrolled state */
.navbar.scrolled {
  background: var(--primary-color) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.navbar.scrolled .nav-link { color: #fff !important; }

/* Dropdown */
.navbar-nav .dropdown-menu {
  background: var(--white);
  border-radius: 0.5rem;
  border: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.navbar-nav .dropdown-item {
  color: var(--neutral-color);
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
}
.navbar-nav .dropdown-item:hover {
  background: var(--light-bg);
  color: var(--primary-color);
}

/* Mobile menu */
@media (max-width: 991px) {
  .navbar-collapse {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1rem;
    border-radius: 0 0 8px 8px;
  }
  .navbar .nav-link { display: block; padding: 0.8rem 1rem; }
  .navbar .nav-link::after { display: none; }
}

/* Hamburger */
.navbar-toggler { border: none; }
.navbar-toggler-icon {
  width: 24px; height: 24px; position: relative;
  background: none;
}
.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon span {
  content: "";
  position: absolute;
  left: 0; width: 100%; height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.navbar-toggler-icon::before { top: 5px; }
.navbar-toggler-icon span { top: 11px; }
.navbar-toggler-icon::after { top: 17px; }

/* Expanded → X */
.navbar-toggler:not(.collapsed) .navbar-toggler-icon::before {
  transform: rotate(45deg); top: 11px;
}
.navbar-toggler:not(.collapsed) .navbar-toggler-icon span { opacity: 0; }
.navbar-toggler:not(.collapsed) .navbar-toggler-icon::after {
  transform: rotate(-45deg); top: 11px;
}

/* ================================
   BUTTONS
================================ */
.btn {
  font-weight: 500;
  border-radius: 0.4rem;
  transition: all 0.3s ease;
}
.btn-primary { background: var(--primary-color); border-color: var(--primary-color); }
.btn-primary:hover { background: var(--secondary-color); border-color: var(--secondary-color); }
.btn-outline-primary { color: var(--primary-color); border-color: var(--primary-color); }
.btn-outline-primary:hover { background: var(--primary-color); color: #fff; }
.btn-success { background: var(--success-color); border-color: var(--success-color); }
.btn-warning { background: var(--warning-color); border-color: var(--warning-color); }
.btn-danger { background: var(--danger-color); border-color: var(--danger-color); }
.btn-info { background: var(--info-color); border-color: var(--info-color); }

/* ================================
   CARDS
================================ */
.card {
  border-radius: 0.5rem;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.hover-card { transition: all 0.3s ease; }
.hover-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }


/* ================================
   CLASSIFICATION CARDS
================================ */
.classification-card {
  background: #fff;
  border: 2px solid transparent;
  border-radius: 0.75rem;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}

.classification-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.classification-card h5 {
  margin-top: 1rem;
  font-weight: 600;
  color: #222;
}

.classification-card p {
  font-size: 0.9rem;
}

.classification-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}


/* ================================
   TIMELINE (Framework & Process)
================================ */
.timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin: 2rem auto;
  max-width: 1100px;
  padding: 2rem 0;
}

/* The line now starts at the center of the first circle
   and ends at the center of the last circle */
.timeline::before {
  content: "";
  position: absolute;
  top: 80px; /* half of circle height (100px) */
  left: 90px; /* half of first circle’s width */
  right: 90px; /* half of last circle’s width */
  height: 3px;
  background: #d0d6e4;
  z-index: 0;
}

.timeline-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.timeline-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  position: relative;
  z-index: 2;
}

.timeline-step h5 {
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
}

.timeline-step p {
  font-size: 0.9rem;
  color: var(--muted-color);
  margin: 0.5rem auto 0;
  max-width: 240px;
}

/* Mobile: vertical timeline */
@media (max-width: 768px) {
  .timeline {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  .timeline::before {
    display: none;
  }
  .timeline-step { width: 100%; }
}



/* ================================
   CERTIFIED PROPERTIES
================================ */
.property-item {
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}
.property-item:hover { transform: translateY(-4px); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.property-icon { flex: 0 0 60px; text-align: center; }
.property-details h5 { font-size: 1.1rem; }
.property-action .btn { border-radius: 0.3rem; }

/* ================================
   RESOURCE PAGE
================================ */
.resource-list li {
  padding: 6px 0;
  border-bottom: 1px dashed #e0e0e0;
}
.resource-list li:last-child { border-bottom: none; }
.resource-list a { text-decoration: none; color: var(--primary-color); }
.resource-list a:hover { text-decoration: underline; }

/* ================================
   CONTACT PAGE
================================ */
.info-box {
  background: var(--light-bg);
  border: 1px solid #eee;
  border-radius: 0.5rem;
  padding: 1rem;
  transition: all 0.3s ease;
}
.info-box:hover { background: #eaf6ff; border-color: var(--secondary-color); }
.icon-circle-sm {
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; background: var(--primary-color); color: #fff;
}

/* ================================
   ABOUT PAGE
================================ */
.about-img-wrapper { overflow: hidden; border-radius: 0.5rem; }
.about-img-wrapper img { transition: transform 0.4s ease; }
.about-img-wrapper img:hover { transform: scale(1.05); }
.about-list li { margin-bottom: 0.5rem; font-size: 0.95rem; }

/* ================================
   FAQ PAGE
================================ */
.accordion-button { font-size: 1rem; }
.accordion-button:not(.collapsed) { background: var(--light-bg); color: var(--primary-color); }
.accordion-body p { font-size: 0.9rem; }

/* ================================
   FORMS
================================ */
form .form-control,
form .form-select {
  font-size: 0.9rem;
  border-radius: 0.3rem;
  border: 1px solid #ddd;
}
form button {
  font-size: 0.9rem;
  padding: 8px 20px;
}

/* ================================
   NEWS & UPDATES
================================ */
.list-group-item {
  font-size: 0.9rem;
  border: 1px solid #e0e0e0;
}
.list-group-item:hover { background: var(--light-bg); }

/* ================================
   FOOTER
================================ */
footer {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  padding: 2rem 0;
}
footer a { color: #fff; text-decoration: none; }
footer a:hover { text-decoration: underline; }
