/* ============================================
   RahimNoor.com — Shared Stylesheet
   Palette: Navy #1B3A5C | White #FAFAFA | Gold #B8860B
   ============================================ */

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

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

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

body {
  font-family: 'Inter', sans-serif;
  background: #FAFAFA;
  color: #2C2C2C;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: 'Lora', serif;
  color: #1B3A5C;
  line-height: 1.25;
  font-weight: 500;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); margin-bottom: 0.5rem; }
h4 { font-size: 1rem; font-family: 'Inter', sans-serif; font-weight: 600; }

p { margin-bottom: 1rem; color: #3a3a3a; }
p:last-child { margin-bottom: 0; }

.serif { font-family: 'Lora', serif; font-style: italic; }

/* ---- LAYOUT ---- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }
section.section--tight { padding: 3.5rem 0; }
section.section--dark {
  background: #1B3A5C;
  color: #FAFAFA;
}
section.section--dark h1,
section.section--dark h2,
section.section--dark h3 { color: #FAFAFA; }
section.section--dark p { color: #c8d5e0; }

section.section--cream {
  background: #F3F1EC;
}

/* ---- NAVIGATION ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FAFAFA;
  border-bottom: 1px solid #E2E2E2;
  padding: 0 1.5rem;
}

.nav__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  font-family: 'Lora', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: #1B3A5C;
  letter-spacing: -0.01em;
}

.nav__logo span {
  color: #B8860B;
}

.nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav__links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: #2C2C2C;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a.active { color: #1B3A5C; }

.nav__cta {
  background: #1B3A5C;
  color: #FAFAFA !important;
  padding: 0.5rem 1.2rem;
  border-radius: 2px;
  font-size: 0.82rem !important;
  transition: background 0.2s !important;
}

.nav__cta:hover { background: #14304e !important; }

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1B3A5C;
  transition: all 0.3s;
}

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: #FAFAFA;
  border-top: 1px solid #E2E2E2;
  padding: 1rem 0;
}

.nav__mobile.is-open { display: flex; }

.nav__mobile a {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #2C2C2C;
  border-bottom: 1px solid #F0F0F0;
  display: block;
}

.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile a:hover { color: #1B3A5C; background: #F3F1EC; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn--primary {
  background: #1B3A5C;
  color: #FAFAFA;
}
.btn--primary:hover { background: #14304e; }

.btn--outline {
  background: transparent;
  color: #1B3A5C;
  border: 1.5px solid #1B3A5C;
}
.btn--outline:hover { background: #1B3A5C; color: #FAFAFA; }

.btn--gold {
  background: #B8860B;
  color: #FAFAFA;
}
.btn--gold:hover { background: #9e7209; }

.btn--white {
  background: #FAFAFA;
  color: #1B3A5C;
}
.btn--white:hover { background: #eef0f4; }

/* ---- CARDS ---- */
.card-grid {
  display: grid;
  gap: 1.5rem;
}
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #FFFFFF;
  border: 1px solid #E8E8E8;
  padding: 2rem;
  border-radius: 2px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 4px 24px rgba(27,58,92,0.08);
  transform: translateY(-2px);
}

.card__number {
  font-size: 2rem;
  font-family: 'Lora', serif;
  color: #B8860B;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.card__icon {
  width: 40px;
  height: 40px;
  background: #EEF2F7;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card__icon svg { width: 20px; height: 20px; stroke: #1B3A5C; fill: none; }

/* ---- ICON ROW (Who This Is For) ---- */
.icon-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.icon-list__item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.25rem;
  background: #FFFFFF;
  border: 1px solid #E8E8E8;
  border-radius: 2px;
}

.icon-list__dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  background: #B8860B;
  border-radius: 50%;
  margin-top: 0.5rem;
}

.icon-list__text { font-size: 0.95rem; color: #3a3a3a; }

/* ---- ICON CARDS ---- */
.icon-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: #FFFFFF;
  border: 1px solid #E8E8E8;
  border-radius: 2px;
  border-top: 3px solid #1B3A5C;
}

.icon-card__icon {
  font-size: 1.4rem;
  color: #B8860B;
  line-height: 1;
  margin-top: 0.1rem;
  min-width: 1.6rem;
}

.icon-card__text {
  font-size: 0.95rem;
  color: #3a3a3a;
  margin: 0;
  line-height: 1.6;
}

/* ---- HERO ---- */
.hero {
  padding: 5.5rem 0 4.5rem;
  border-bottom: 1px solid #E8E8E8;
}

.hero__meta {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #B8860B;
  margin-bottom: 1.25rem;
}

.hero__h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 1.25rem;
  max-width: 680px;
}

.hero__sub {
  font-size: 1.08rem;
  color: #555;
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* ---- SECTION LABEL ---- */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #B8860B;
  margin-bottom: 0.75rem;
  display: block;
}

/* ---- DIVIDER ---- */
.divider {
  width: 48px;
  height: 2px;
  background: #B8860B;
  margin: 1.5rem 0;
}

/* ---- FEATURED INSIGHT ---- */
.insight-card {
  border-left: 3px solid #B8860B;
  padding: 1.5rem 2rem;
  background: #FFFFFF;
  border-top: 1px solid #E8E8E8;
  border-right: 1px solid #E8E8E8;
  border-bottom: 1px solid #E8E8E8;
}

.insight-card__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #B8860B;
  margin-bottom: 0.5rem;
}

.insight-card__title {
  font-family: 'Lora', serif;
  font-size: 1.25rem;
  color: #1B3A5C;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.insight-card__excerpt { font-size: 0.95rem; color: #555; margin-bottom: 1rem; }

.link-arrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1B3A5C;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s;
}

.link-arrow:hover { gap: 0.7rem; }
.link-arrow::after { content: '→'; }

/* ---- CLOSING CTA STRIP ---- */
.cta-strip {
  background: #1B3A5C;
  padding: 4rem 0;
  text-align: center;
}

.cta-strip h2 { color: #FAFAFA; margin-bottom: 1rem; }
.cta-strip p { color: #c8d5e0; margin-bottom: 1.75rem; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---- ABOUT PAGE ---- */
.about-intro {
  font-family: 'Lora', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  color: #1B3A5C;
  line-height: 1.65;
  margin-bottom: 2rem;
  font-style: italic;
}

.credential-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.credential-tag {
  padding: 0.4rem 1rem;
  border: 1px solid #1B3A5C;
  font-size: 0.82rem;
  font-weight: 500;
  color: #1B3A5C;
  letter-spacing: 0.03em;
  border-radius: 2px;
}

.positioning-line {
  border-left: 3px solid #B8860B;
  padding: 1.25rem 1.5rem;
  background: #F3F1EC;
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: #1B3A5C;
  margin: 2rem 0;
}

/* ---- ADVISORY PAGES ---- */
.service-header {
  background: #1B3A5C;
  padding: 4.5rem 0 3.5rem;
}

.service-header h1 { color: #FAFAFA; }
.service-header p { color: #c8d5e0; font-size: 1.05rem; }
.service-header .section-label { color: #B8860B; }

.details-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.details-list__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.details-list__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B8860B;
  min-width: 90px;
  padding-top: 0.1rem;
}

.details-list__value { font-size: 0.95rem; color: #3a3a3a; }

/* ---- INSIGHTS PAGE ---- */
.essay-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.essay-item {
  padding: 2rem 0;
  border-bottom: 1px solid #E8E8E8;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
}

.essay-item:first-child { border-top: 1px solid #E8E8E8; }

.essay-item__date {
  font-size: 0.78rem;
  color: #999;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.essay-item__title {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  color: #1B3A5C;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.essay-item__excerpt { font-size: 0.9rem; color: #666; margin-bottom: 0; }

/* ---- SCORECARD ---- */
.scorecard-form {
  max-width: 680px;
  margin: 0 auto;
}

.question-block {
  margin-bottom: 2rem;
  padding: 1.75rem;
  background: #FFFFFF;
  border: 1px solid #E8E8E8;
  border-radius: 2px;
}

.question-block__q {
  font-weight: 600;
  color: #1B3A5C;
  margin-bottom: 1rem;
  font-size: 0.97rem;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 2px;
  transition: background 0.15s;
}

.radio-option:hover { background: #F3F1EC; }

.radio-option input[type="radio"] {
  accent-color: #1B3A5C;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.radio-option label {
  font-size: 0.92rem;
  color: #3a3a3a;
  cursor: pointer;
}

.progress-bar {
  height: 4px;
  background: #E8E8E8;
  border-radius: 2px;
  margin-bottom: 2.5rem;
}

.progress-bar__fill {
  height: 100%;
  background: #1B3A5C;
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* ---- CONTACT FORM ---- */
.form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1B3A5C;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #D0D0D0;
  border-radius: 2px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #2C2C2C;
  background: #FFFFFF;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #1B3A5C;
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 0.82rem;
  color: #888;
  margin-top: 0.4rem;
}

/* ---- FOOTER ---- */
.footer {
  background: #111820;
  padding: 3rem 0;
  text-align: center;
}

.footer__logo {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  color: #FAFAFA;
  margin-bottom: 0.75rem;
}

.footer__logo span { color: #B8860B; }

.footer__tagline {
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 1.5rem;
}

.footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer__links a {
  font-size: 0.8rem;
  color: #888;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer__links a:hover { color: #FAFAFA; }

.footer__copy {
  font-size: 0.78rem;
  color: #555;
}

/* ---- HERO PHOTO (Home page) ---- */
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: flex-end;
}

.hero__text {
  padding-bottom: 4rem;
}

.hero__photo-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.hero__photo-frame {
  width: 340px;
  max-width: 100%;
  position: relative;
}

/* Subtle navy accent line behind photo */
.hero__photo-frame::before {
  content: '';
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 100%;
  height: 100%;
  border: 2px solid #1B3A5C;
  opacity: 0.15;
  pointer-events: none;
}

.hero__photo {
  width: 100%;
  display: block;
  filter: grayscale(100%);
  border-bottom: 3px solid #B8860B;
}

/* ---- ABOUT PAGE PORTRAIT ---- */
.about__intro-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 4rem;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.about__portrait-wrap {
  text-align: center;
}

.about__portrait {
  width: 100%;
  display: block;
  filter: grayscale(100%);
  border-bottom: 3px solid #B8860B;
  margin-bottom: 0.75rem;
}

.about__portrait-caption {
  font-size: 0.78rem;
  color: #999;
  line-height: 1.6;
  margin: 0;
}

/* ---- THANK YOU PAGE ---- */
.thankyou-center {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.thankyou-icon {
  width: 64px;
  height: 64px;
  background: #EEF2F7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.thankyou-icon svg { width: 28px; height: 28px; stroke: #1B3A5C; fill: none; }

/* ---- CIRCLE PAGE ---- */
.membership-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  section { padding: 3.5rem 0; }

  .nav__links { display: none; }
  .nav__toggle { display: flex; }

  .card-grid--3,
  .card-grid--2 { grid-template-columns: 1fr; }

  .icon-list { grid-template-columns: 1fr; }

  .essay-item { grid-template-columns: 1fr; }

  .membership-card { grid-template-columns: 1fr; }

  .hero { padding: 3.5rem 0 3rem; }

  /* Photo layouts collapse on mobile */
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero__text { padding-bottom: 0; }
  .hero__photo-wrap { justify-content: center; }
  .hero__photo-frame { width: 260px; }

  .about__intro-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.25rem;
  }
  .about__portrait-wrap {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
  }
  .about__portrait { width: 120px; flex-shrink: 0; }

  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .btn { padding: 0.8rem 1.5rem; font-size: 0.84rem; }
  .container { padding: 0 1.25rem; }
}
