/* =====================================================
   INNER PAGES — Shared Styles
   ===================================================== */

/* Page hero */
.page-hero {
  position: relative;
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1600&q=70') center/cover;
  opacity: .15;
  z-index: -1;
}
.page-hero .container { position: relative; z-index: 2; text-align: center; }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p { color: rgba(255, 255, 255, .9); font-size: 1.1rem; max-width: 680px; margin: 0 auto; }
.page-hero .breadcrumb { justify-content: center; margin-top: 16px; margin-bottom: 0; }

/* Two-column content */
.content-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.content-2col img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }

/* Stats panel */
.stats-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  background: var(--grad-primary);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: #fff;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}
.stats-panel::after {
  content: '';
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  top: -100px; right: -80px;
}
.stat-item { text-align: center; position: relative; z-index: 1; }
.stat-item strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.stat-item span { color: rgba(255, 255, 255, .85); font-size: .9rem; }

/* Founders / leadership — alternating photo + full bio rows */
.founder-row { display: flex; gap: 48px; align-items: flex-start; }
.founder-row + .founder-row { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--border-light); }
.founder-row.reverse { flex-direction: row-reverse; }
.founder-media { flex: 0 0 36%; position: sticky; top: 100px; }
.founder-media img,
.founder-photo-ph {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}
.founder-media img { object-fit: cover; object-position: top center; }
.founder-photo-ph {
  background: var(--grad-primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.founder-photo-ph .ph-monogram { font-family: var(--font-head); font-weight: 800; font-size: 4rem; letter-spacing: 3px; line-height: 1; }
.founder-photo-ph .ph-label { margin-top: 14px; font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase; opacity: .85; }
.founder-text { flex: 1; }
.founder-text h3 { font-size: 1.6rem; margin-bottom: 2px; }
.founder-text .founder-role { color: var(--primary); font-weight: 600; margin: 0 0 18px; font-size: .95rem; }
.founder-text p { color: var(--text); margin-bottom: 14px; line-height: 1.8; font-size: .96rem; }
.founder-text p:last-child { margin-bottom: 0; }

/* Founder bio "Read more" expand/collapse */
.founder-more {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s ease;
}
.founder-more p:last-child { margin-bottom: 0; }
.founder-readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 0;
  background: none;
  border: none;
  color: var(--primary);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  transition: color .2s ease;
}
.founder-readmore:hover { color: var(--primary-light); }
.founder-readmore i { font-size: .78rem; transition: transform .25s ease; }
.founder-text.expanded .founder-readmore i { transform: rotate(180deg); }

/* Service hero / detailed */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.service-block {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all .3s ease;
}
.service-block:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.service-block .essential-icon { margin-bottom: 20px; }
.service-block ul { margin-top: 16px; }
.service-block ul li {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  font-size: .92rem;
  color: var(--text);
}
.service-block ul li i { color: var(--accent); margin-top: 4px; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}
.contact-info {
  background: var(--grad-primary);
  color: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.contact-info::after {
  content: '';
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  bottom: -80px; right: -80px;
}
.contact-info h3 { color: #fff; margin-bottom: 10px; }
.contact-info > p { color: rgba(255, 255, 255, .9); margin-bottom: 28px; }
.contact-info ul { position: relative; z-index: 1; }
.contact-info ul li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  font-size: .95rem;
}
.contact-info ul li i {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.18);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.contact-info ul li small { display: block; color: rgba(255,255,255,.75); font-size: .78rem; margin-bottom: 2px; }
.contact-info ul li a, .contact-info ul li strong { color: #fff; font-weight: 600; }
.contact-social { display: flex; gap: 10px; margin-top: 28px; position: relative; z-index: 1; }
.contact-social a {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.18);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .25s ease;
}
.contact-social a:hover { background: #fff; color: var(--primary); transform: translateY(-3px); }

/* Contact form */
.contact-form {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}
.form-row { display: grid; gap: 20px; }
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .88rem;
  color: var(--primary-dark);
}
.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--font-body);
  font-size: .95rem;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--text);
  transition: all .2s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group .help { font-size: .8rem; color: var(--text-muted); }
.form-actions { display: flex; gap: 12px; justify-content: flex-start; margin-top: 8px; flex-wrap: wrap; }

/* News / blog cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.news-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: all .3s ease;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-img { aspect-ratio: 16/9; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .news-img img { transform: scale(1.06); }
.news-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.news-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(59, 130, 246, .12);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: .76rem;
  font-weight: 600;
  margin-bottom: 12px;
  align-self: flex-start;
}
.news-card h4 { color: var(--primary-dark); margin-bottom: 10px; line-height: 1.4; }
.news-card > .news-body > p { color: var(--text-muted); font-size: .92rem; margin-bottom: 14px; flex: 1; }
.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}
.news-meta i { margin-right: 4px; }

/* FAQ accordion */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.faq-q {
  padding: 18px 24px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background .2s ease;
}
.faq-q:hover { background: var(--bg-soft); }
.faq-q i { transition: transform .25s ease; color: var(--primary); flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a {
  padding: 0 24px;
  color: var(--text-muted);
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-item.open .faq-a { padding: 0 24px 22px; max-height: 500px; }

/* =========================================
   FREE COUNSELLING FORM — matches screenshot
   ========================================= */
.counsel-form {
  background: #ecf7fb;
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow);
  border: 1px solid #d4ecf3;
  position: relative;
}
.cf-head { margin-bottom: 28px; }
.cf-head h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.2;
}
.cf-underline {
  display: block;
  width: 56px;
  height: 4px;
  background: var(--secondary);
  border-radius: 4px;
  margin-bottom: 18px;
}
.cf-head p {
  color: #475569;
  font-size: .98rem;
  margin: 0;
  max-width: 560px;
}

.cf-row { margin-bottom: 20px; }
.cf-row.cf-cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.cf-group { display: flex; flex-direction: column; gap: 6px; }
.cf-group label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .95rem;
  color: #0f172a;
}
.cf-group label .req { color: var(--secondary); margin-left: 2px; }
.cf-group input,
.cf-group select,
.cf-group textarea {
  font-family: var(--font-body);
  font-size: .98rem;
  padding: 12px 16px;
  border: 1.5px solid #cfd8dc;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  transition: all .2s ease;
  height: 48px;
}
.cf-group textarea { height: auto; min-height: 100px; resize: vertical; }
.cf-group select { cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%2364748b' d='M8 11L3 6h10z'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.cf-group input:focus,
.cf-group select:focus,
.cf-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}
.cf-group input:invalid:not(:placeholder-shown) {
  border-color: var(--danger);
}

/* intl-tel-input integration */
.cf-phone-group { position: relative; }
.cf-phone-group .iti { width: 100%; display: block; }
.cf-phone-group .iti__tel-input,
.cf-phone-group input[type="tel"] {
  width: 100%;
  height: 48px;
  padding-left: 100px !important;
  font-family: var(--font-body);
  font-size: .98rem;
  border: 1.5px solid #cfd8dc;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
}
.cf-phone-group .iti__selected-flag {
  background: #f5f5f5;
  border-right: 1.5px solid #cfd8dc;
  border-radius: 6px 0 0 6px;
  padding: 0 12px;
}
.cf-phone-group .iti--separate-dial-code .iti__selected-dial-code {
  color: #0f172a;
  font-weight: 500;
  margin-left: 6px;
}
.cf-phone-group .iti__country-list {
  font-family: var(--font-body);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  max-height: 280px;
}

/* Consent checkbox */
.cf-consent { padding: 4px 0; }
.cf-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  font-size: .9rem;
  color: #475569;
  line-height: 1.5;
}
.cf-check input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Submit actions */
.cf-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.cf-submit { flex: 1; min-width: 240px; justify-content: center; }

.cf-success {
  margin-top: 22px;
  padding: 16px 18px;
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
  border-radius: 8px;
  font-weight: 500;
  font-size: .95rem;
}

.cf-error {
  margin-top: 22px;
  padding: 16px 18px;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  border-radius: 8px;
  font-weight: 500;
  font-size: .95rem;
}
.cf-error a { color: inherit; text-decoration: underline; }

/* Map */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.map-wrap iframe { display: block; }

/* Legal pages (privacy / terms) */
.legal-content { max-width: 850px; margin: 0 auto; }
.legal-content .legal-updated { color: var(--text-muted); font-size: .9rem; font-style: italic; margin-bottom: 28px; }
.legal-content h2 { font-size: 1.25rem; margin: 32px 0 12px; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p { color: var(--text); line-height: 1.8; font-size: .96rem; margin-bottom: 14px; }
.legal-content a { color: var(--primary); }
.legal-content a:hover { color: var(--primary-light); }

/* Responsive */
@media (max-width: 1024px) {
  .content-2col { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .page-hero { padding: 60px 0 50px; }
  .contact-form, .contact-info, .counsel-form { padding: 28px 22px; }
  .form-row.cols-2 { grid-template-columns: 1fr; }
  .cf-row.cf-cols-2 { grid-template-columns: 1fr; gap: 14px; }
  .stats-panel { padding: 28px; }
  .stat-item strong { font-size: 1.8rem; }
  .cf-actions .btn { width: 100%; flex: 1 1 100%; min-width: 0; }
  .cf-head h2 { font-size: 1.5rem; }
  .founder-row, .founder-row.reverse { flex-direction: column; gap: 24px; }
  .founder-media { position: static; flex: 0 0 auto; width: 100%; max-width: 320px; }
  .founder-row + .founder-row { margin-top: 40px; padding-top: 40px; }
}
@media (max-width: 480px) {
  .counsel-form { padding: 24px 18px; }
  .cf-head h2 { font-size: 1.35rem; }
  .cf-head p { font-size: .9rem; }
  .cf-group input,
  .cf-group select { height: 46px; font-size: .92rem; }
  .cf-phone-group .iti__tel-input,
  .cf-phone-group input[type="tel"] { height: 46px; font-size: .92rem; padding-left: 96px !important; }
}
