/* ============================================================
   RH Community Builders — Shared Stylesheet
   Brand: Blue #2469A0 | Green #4A9A3A
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1E2D3D;
  background: #fff;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  color: #1E2D3D;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { color: #4A5568; }

.lead {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #4A5568;
}

/* --- Colors --- */
:root {
  --blue:        #2469A0;
  --blue-dark:   #1A4E7A;
  --blue-light:  #EBF3FB;
  --green:       #4A9A3A;
  --green-dark:  #357229;
  --green-light: #EBF5E8;
  --gray-100:    #F7F9FC;
  --gray-200:    #EDF0F4;
  --gray-400:    #9AA5B4;
  --gray-600:    #4A5568;
  --gray-900:    #1E2D3D;
  --white:       #FFFFFF;
}

/* --- Utilities --- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section--sm { padding: 48px 0; }
.section--gray { background: var(--gray-100); }
.section--blue { background: var(--blue); color: #fff; }
.section--blue h2, .section--blue h3, .section--blue p { color: #fff; }
.section--blue-light { background: var(--blue-light); }
.section--green-light { background: var(--green-light); }

.text-center { text-align: center; }
.text-blue   { color: var(--blue); }
.text-green  { color: var(--green); }
.text-white  { color: #fff; }

.mt-4  { margin-top: 1rem; }
.mt-8  { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-8  { margin-bottom: 2rem; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 16px;
}

.section-intro {
  max-width: 640px;
}

.divider {
  width: 48px;
  height: 4px;
  background: var(--green);
  border-radius: 2px;
  margin: 16px 0 32px;
}
.divider--blue { background: var(--blue); }
.divider--center { margin-left: auto; margin-right: auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn--primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.btn--green {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn--green:hover { background: var(--green-dark); border-color: var(--green-dark); }

.btn--outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn--outline:hover { background: var(--blue); color: #fff; }

.btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.btn--outline-white:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

.btn--lg { padding: 16px 36px; font-size: 1rem; }

/* --- Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

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

.nav__logo img {
  height: 52px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__links a,
.nav__dropdown > button {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-900);
  padding: 8px 14px;
  border-radius: 5px;
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.nav__links a:hover,
.nav__dropdown > button:hover {
  color: var(--blue);
  background: var(--blue-light);
}

.nav__links a.active {
  color: var(--blue);
  font-weight: 600;
}

.nav__cta {
  margin-left: 12px;
}

/* Dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  min-width: 220px;
  padding: 8px;
  z-index: 200;
}

.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown:focus-within .nav__dropdown-menu {
  display: block;
}

.nav__dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 0.88rem;
  border-radius: 5px;
  color: var(--gray-900);
}

.nav__dropdown-menu a:hover {
  background: var(--blue-light);
  color: var(--blue);
}

.nav__mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--gray-900);
}

.nav__mobile-toggle svg { display: block; }

/* Mobile nav */
.nav__mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--gray-200);
  background: #fff;
}

.nav__mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-900);
  border-bottom: 1px solid var(--gray-200);
}

.nav__mobile-menu a:hover { color: var(--blue); }

.nav__mobile-menu .submenu-label {
  display: block;
  padding: 12px 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  border-bottom: 1px solid var(--gray-200);
}

.nav__mobile-menu .submenu-link {
  padding-left: 16px;
  font-size: 0.92rem;
  color: var(--gray-600);
}

.nav__mobile-menu .mobile-cta {
  margin-top: 16px;
  display: block;
  text-align: center;
}

/* --- Hero --- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, #2d7a5e 100%);
  color: #fff;
  padding: 100px 0 80px;
  overflow: hidden;
}

.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.03'%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__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(74,154,58,0.15);
  border: 1px solid rgba(74,154,58,0.3);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 { color: #fff; margin-bottom: 20px; }

.hero__sub {
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__logo-badge {
  width: 260px;
  height: 260px;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.hero__logo-badge img {
  width: 180px;
  filter: brightness(0) invert(1);
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  padding: 60px 0;
  color: #fff;
}

.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero .lead { color: rgba(255,255,255,0.85); }
.page-hero .breadcrumb { margin-bottom: 16px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* --- Stats Bar --- */
.stats-bar {
  background: var(--blue-dark);
  padding: 36px 0;
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat__number {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}

.stat__label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

/* --- Cards --- */
.card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 8px 28px rgba(36,105,160,0.12);
  transform: translateY(-3px);
}

.card__body { padding: 28px; }

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card__icon--blue { background: var(--blue-light); color: var(--blue); }
.card__icon--green { background: var(--green-light); color: var(--green); }

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.93rem; margin-bottom: 18px; }

.card__link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card__link:hover { color: var(--blue-dark); }
.card__link::after { content: '→'; }

/* Service cards grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* --- Mission Strip --- */
.mission-strip {
  background: var(--green);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}

.mission-strip h2 { color: #fff; max-width: 780px; margin: 0 auto 16px; }
.mission-strip p { color: rgba(255,255,255,0.88); max-width: 640px; margin: 0 auto 28px; font-size: 1.05rem; }

/* --- Two-column content --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.two-col--reverse .two-col__text { order: 2; }
.two-col--reverse .two-col__visual { order: 1; }

.two-col__visual {
  border-radius: 12px;
  overflow: hidden;
  background: var(--gray-200);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.two-col__visual--blue { background: var(--blue-light); }
.two-col__visual--green { background: var(--green-light); }

.two-col__placeholder {
  text-align: center;
  padding: 48px;
  color: var(--gray-400);
}

.two-col__placeholder svg { margin: 0 auto 12px; opacity: 0.4; }

/* --- Icon list --- */
.icon-list { display: flex; flex-direction: column; gap: 16px; }
.icon-list__item { display: flex; gap: 14px; align-items: flex-start; }
.icon-list__dot {
  width: 28px; height: 28px; min-width: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-light);
  color: var(--blue);
  margin-top: 2px;
}
.icon-list__dot--green { background: var(--green-light); color: var(--green); }

/* --- Quote / Highlight box --- */
.highlight-box {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: 0 8px 8px 0;
  padding: 24px 28px;
  margin: 32px 0;
}
.highlight-box--green { background: var(--green-light); border-left-color: var(--green); }
.highlight-box p { color: var(--gray-900); font-size: 1.05rem; line-height: 1.7; }

/* --- CTA Band --- */
.cta-band {
  background: var(--blue);
  padding: 72px 0;
  text-align: center;
}

.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p  { color: rgba(255,255,255,0.85); margin-bottom: 32px; font-size: 1.05rem; }
.cta-band__actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* --- Footer --- */
.site-footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__brand img {
  height: 52px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer__brand p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}

.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  transition: background 0.2s, color 0.2s;
}
.footer__social a:hover { background: var(--blue); color: #fff; }

.footer__col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col ul a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.15s;
}
.footer__col ul a:hover { color: #fff; }

.footer__contact p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer__contact a { color: rgba(255,255,255,0.65); }
.footer__contact a:hover { color: #fff; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 8px;
}

.footer__bottom a { color: rgba(255,255,255,0.35); }
.footer__bottom a:hover { color: rgba(255,255,255,0.65); }

/* --- Service Detail Page --- */
.service-detail__intro { padding: 64px 0; }
.service-detail__features { padding: 64px 0; background: var(--gray-100); }
.service-detail__features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.feature-card {
  background: #fff;
  border-radius: 10px;
  padding: 28px;
  border: 1px solid var(--gray-200);
}
.feature-card__icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-card__icon--green { background: var(--green-light); color: var(--green); }
.feature-card h4 { margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; }

/* --- Form styles --- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--gray-900);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36,105,160,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .hero { padding: 72px 0 56px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col--reverse .two-col__text { order: 1; }
  .two-col--reverse .two-col__visual { order: 2; }
  .services-grid { grid-template-columns: 1fr; }
  .service-detail__features-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__mobile-toggle { display: block; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .stats-bar__grid { grid-template-columns: 1fr 1fr; }
  .cta-band__actions { flex-direction: column; align-items: center; }
  .footer__bottom { flex-direction: column; text-align: center; }
}
