/* =====================================================
   CredNet — GitHub Pages Stylesheet
   Colors: Navy #1B4F8A | Teal #00A2AC | White/Gray
   ===================================================== */

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #2D3748;
  background: #fff;
  line-height: 1.75;
}

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

a { color: #1B4F8A; text-decoration: none; transition: color 0.2s; }
a:hover { color: #00A2AC; }

ul { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; color: #4A5568; }

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

p { margin-bottom: 1rem; color: #4A5568; }
p:last-child { margin-bottom: 0; }

/* ── Layout ───────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

section { padding: 5.5rem 0; }
.section-alt { background: #F7FAFC; }

/* ── Section Header ───────────────────────────────── */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p { max-width: 620px; margin: 0 auto; color: #718096; }

.accent-line {
  width: 48px;
  height: 3px;
  background: #00A2AC;
  border-radius: 2px;
  margin: 0.6rem auto 1rem;
}

/* ── Navigation ───────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.875rem 1.75rem;
}

.nav-logo img { height: 52px; width: auto; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.25rem;
  padding: 0;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: #4A5568;
  letter-spacing: 0.025em;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: #1B4F8A;
  border-bottom-color: #00A2AC;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #2D3748;
  border-radius: 2px;
  transition: all 0.25s;
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.925rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  text-align: center;
}

.btn-primary {
  background: #00A2AC;
  color: #fff;
  border-color: #00A2AC;
}
.btn-primary:hover { background: #008d97; border-color: #008d97; color: #fff; }

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

.btn-outline-navy {
  background: transparent;
  color: #1B4F8A;
  border-color: #1B4F8A;
}
.btn-outline-navy:hover { background: #1B4F8A; color: #fff; }

/* ── Hero ─────────────────────────────────────────── */
.hero {
  background: url('../assets/images/doctor-10.jpg') center/cover no-repeat;
  color: #fff;
  padding: 7rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,42,92,0.65) 0%, rgba(27,79,138,0.58) 50%, rgba(0,80,88,0.55) 100%);
}

.hero::after {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  border: 2px solid rgba(0,162,172,0.35);
  background: radial-gradient(circle, rgba(0,162,172,0.12) 0%, transparent 70%);
}

.hero-content { position: relative; max-width: 780px; margin: 0 auto; }

.hero-tagline {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.25rem;
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.hero p {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto 2.25rem;
  line-height: 1.8;
}

.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Page Hero (inner pages) ──────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #1B4F8A 0%, #0D2A5C 100%);
  padding: 4.5rem 0 4rem;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 0.6rem; font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
.page-hero p { color: rgba(255,255,255,0.78); max-width: 580px; margin: 0 auto; font-size: 1.05rem; }

/* ── Cards ────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: 10px;
  padding: 2rem 1.75rem;
  box-shadow: 0 2px 18px rgba(0,0,0,0.065);
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.11);
  transform: translateY(-3px);
}

/* ── Grids ────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }

/* ── Card Accent ──────────────────────────────────── */
.card-accent {
  border-top: 3px solid #00A2AC;
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: #00A2AC;
}
.card-link:hover { color: #008d97; }

/* ── About Photo ──────────────────────────────────── */
.about-photo-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.14);
  border: 6px solid #1B4F8A;
}
.about-photo-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Services Page Detail ─────────────────────────── */
.service-block {
  padding: 3rem 0;
  border-bottom: 1px solid #E2E8F0;
}
.service-block:last-child { border-bottom: none; }

.service-block-inner {
  display: block;
}

.service-block h3 {
  font-size: 1.35rem;
  color: #1B4F8A;
  margin-bottom: 0.75rem;
}

.service-block p { margin-bottom: 0.75rem; }

.service-block ul {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
}

/* ── Profile / Who We Are ─────────────────────────── */
.profile-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: start;
}

.profile-photo {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(0,0,0,0.12);
}
.profile-photo img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center top;
}

.profile-name { font-size: 2rem; margin-bottom: 0.25rem; }
.profile-title {
  color: #00A2AC;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.stat-row {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #E2E8F0;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: #00A2AC;
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.75rem;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
  display: block;
}

/* ── Highlight Box ────────────────────────────────── */
.highlight {
  background: linear-gradient(135deg, #EBF5FF, #E6F7F8);
  border-left: 4px solid #00A2AC;
  border-radius: 0 8px 8px 0;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
.highlight p { color: #2D3748; margin: 0; font-style: italic; }

/* ── About Features ───────────────────────────────── */
.feature-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}
.feature-icon {
  width: 44px;
  height: 44px;
  background: #E8F4F8;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Contact ──────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: #E8F4F8;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.contact-info-item h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #718096;
  margin-bottom: 0.2rem;
}
.contact-info-item p { margin: 0; font-weight: 500; color: #2D3748; }
.contact-info-item a { color: #1B4F8A; font-weight: 500; }

/* ── Form ─────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: #2D3748;
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #CBD5E0;
  border-radius: 6px;
  font-size: 0.975rem;
  font-family: inherit;
  color: #2D3748;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00A2AC;
  box-shadow: 0 0 0 3px rgba(0,162,172,0.12);
}
.form-group textarea { min-height: 145px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── Ironman Band ─────────────────────────────────── */
.ironman-band {
  background: linear-gradient(135deg, #0D2A5C 0%, #1B4F8A 60%, #00727A 100%);
  padding: 4.5rem 0;
}

.ironman-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.ironman-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.ironman-stat {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.ironman-stat span {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  color: #00A2AC;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.ironman-stat small {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 768px) {
  .ironman-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ── Story Grid (two-col, stacks on mobile) ───────── */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 768px) {
  .story-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .story-grid .about-photo-wrap,
  .story-grid img { order: -1; }
}

/* ── CTA Band ─────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, #00A2AC 0%, #007A84 100%);
  color: #fff;
  padding: 4.5rem 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-band p { color: rgba(255,255,255,0.88); max-width: 560px; margin: 0 auto 2rem; font-size: 1.05rem; }

/* ── Footer ───────────────────────────────────────── */
.footer {
  background: #0D1E40;
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand img { height: 44px; width: auto; margin-bottom: 1.25rem; background: #fff; padding: 6px 12px; border-radius: 8px; display: block; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; max-width: 300px; }

.footer h4 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.1rem;
}

.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 0.6rem; }
.footer ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer ul li a:hover { color: #00A2AC; }

.footer-contact-list { list-style: none; padding: 0; }
.footer-contact-list li {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin: 0; }

.social-links { display: flex; gap: 0.75rem; }
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: background 0.2s, color 0.2s;
}
.social-links a:hover { background: #00A2AC; color: #fff; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-photo img { height: 300px; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  section { padding: 3.5rem 0; }
  .grid-3,
  .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stat-row { justify-content: center; }
  .service-block-inner { grid-template-columns: 1fr; gap: 0.75rem; }
  .service-block-inner .service-icon { display: none; }

  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 1rem 1.75rem 1.5rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    gap: 0.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.6rem 0; border-bottom: none; font-size: 1rem; }
}
