/* ═══════════════════════════════════════════════════════
   R&S Educational Consultants — Main Stylesheet v1.0
   Brand: Deep Navy #0D1F3C + Academic Gold #C9993F
═══════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────── */
:root {
  --navy:       #0D1F3C;
  --navy-mid:   #1A3560;
  --gold:       #C9993F;
  --gold-lt:    #E8C97A;
  --slate:      #4A6FA5;
  --slate-lt:   #EDF1F9;
  --white:      #FFFFFF;
  --off-white:  #F7F9FC;
  --text:       #1A1A2E;
  --text-muted: #6B7280;
  --border:     #DDE3EE;
  --nav-h:      88px;
  --nav-h-scrolled: 66px;
  --radius:     10px;
  --shadow:     0 4px 20px rgba(13,31,60,0.08);
  --shadow-lg:  0 12px 40px rgba(13,31,60,0.12);
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); transition: color 0.2s; }
a:hover { color: var(--gold); }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; }

/* ── Accessibility ─────────────────────────────────── */
.skip-link { position: absolute; left: -9999px; top: auto; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 9999; background: var(--gold); color: var(--navy); padding: .5rem 1rem; border-radius: 4px; }

/* ── Layout Helpers ────────────────────────────────── */
.container   { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
.section-pad { padding: 96px 5%; }
.bg-white    { background: var(--white); }
.bg-offwhite { background: var(--off-white); }
.bg-navy     { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); }

/* ── Typography ────────────────────────────────────── */
.section-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem;
  display: block;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700; color: var(--navy); line-height: 1.25; margin-bottom: 1rem;
}
.section-lead {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 620px; line-height: 1.8;
}
.divider {
  width: 52px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  border-radius: 2px; margin: 1.25rem 0 2rem;
}

/* ── Buttons ───────────────────────────────────────── */
.btn-primary {
  display: inline-block; background: var(--gold); color: var(--navy);
  padding: 0.85rem 2.2rem; border-radius: 5px; font-weight: 600;
  font-size: 0.95rem; text-decoration: none; letter-spacing: 0.03em;
  transition: transform 0.2s, background 0.2s; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-1px); color: var(--navy); }

.btn-secondary {
  display: inline-block; background: transparent; color: var(--navy);
  padding: 0.75rem 1.75rem; border-radius: 5px; font-weight: 600;
  font-size: 0.9rem; text-decoration: none; border: 2px solid var(--navy);
  transition: background 0.2s, color 0.2s;
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }

.btn-outline {
  display: inline-block; border: 1.5px solid rgba(255,255,255,0.4);
  color: var(--white); padding: 0.85rem 2.2rem; border-radius: 5px;
  font-weight: 500; font-size: 0.95rem; text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: var(--gold); background: rgba(201,153,63,0.08); color: var(--white); }

/* ── Navigation ────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(13,31,60,0.97); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201,153,63,0.25); height: var(--nav-h);
  transition: height 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
  overflow: visible;
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 5%;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: inline-flex;
  align-items: flex-start;
  position: relative;
  text-decoration: none;
  min-width: 420px;
  align-self: flex-start;
}
.nav-logo-image {
  display: block;
  width: auto;
  max-width: min(560px, 54vw);
  transition: opacity 0.28s ease, transform 0.35s ease, height 0.35s ease;
}
.nav-logo-image--default {
  height: 126px;
  opacity: 1;
  transform: translateY(10px);
}
.nav-logo-image--scrolled {
  position: absolute;
  left: 0;
  top: 16px;
  height: 40px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}
.site-nav.nav--scrolled {
  height: var(--nav-h-scrolled);
  background: rgba(13,31,60,0.94);
  box-shadow: 0 10px 30px rgba(13,31,60,0.18);
}
.site-nav.nav--scrolled .nav-logo-image--default {
  opacity: 0;
  transform: translateY(-6px);
}
.site-nav.nav--scrolled .nav-logo-image--scrolled {
  opacity: 1;
  transform: translateY(0);
}
.nav-menu-wrap { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; gap: 1.75rem; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.82); text-decoration: none; font-size: 0.875rem;
  font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; transition: color 0.2s;
}
.nav-links a:hover,
.nav-links .current-menu-item > a { color: var(--gold); }
.btn-nav-cta {
  background: var(--gold); color: var(--navy); padding: 0.45rem 1.2rem;
  border-radius: 4px; font-weight: 600; font-size: 0.85rem; text-decoration: none;
  transition: background 0.2s; white-space: nowrap;
}
.btn-nav-cta:hover { background: var(--gold-lt); color: var(--navy); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: transparent;
  border: none; cursor: pointer; padding: 4px;
}
.nav-toggle-bar { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero (Front Page) ─────────────────────────────── */
.hero {
  min-height: 100vh; padding-top: var(--nav-h);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1e4080 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: calc(var(--nav-h) + 4rem) 5% 6rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(201,153,63,0.08) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(74,111,165,0.12) 0%, transparent 40%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 900px; }
.hero-eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); border: 1px solid rgba(201,153,63,0.4);
  padding: 0.35rem 1.1rem; border-radius: 20px; margin-bottom: 1.5rem;
}
.hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700;
  color: var(--white); line-height: 1.2; margin-bottom: 1.25rem;
}
.hero__title em { font-style: normal; color: var(--gold); }
.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem); color: rgba(255,255,255,0.72);
  max-width: 600px; margin: 0 auto 2.5rem; font-weight: 300;
}
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__stats {
  position: absolute; bottom: 2.5rem; left: 0; right: 0;
  display: flex; justify-content: center; gap: 3rem; z-index: 1;
}
.stat { text-align: center; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--gold); line-height: 1; }
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.1em; }

/* ── Page Hero (Interior Pages) ────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: calc(var(--nav-h) + 4rem) 5% 4rem;
  text-align: center;
}
.page-hero .container { max-width: 780px; margin: 0 auto; }
.page-hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700;
  color: var(--white); line-height: 1.25; margin-bottom: 1rem;
}
.page-hero__title em { font-style: normal; color: var(--gold); }
.page-hero__sub { font-size: 1.1rem; color: rgba(255,255,255,0.72); max-width: 560px; margin: 0 auto; font-weight: 300; }

/* ── About Section ─────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-grid--single { grid-template-columns: 1fr; }
.about-copy--wide { width: min(65%, 760px); }
.badge-row  { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.about-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(201,153,63,0.1); border: 1px solid rgba(201,153,63,0.35);
  color: var(--gold); font-size: 0.82rem; padding: 0.4rem 0.9rem;
  border-radius: 20px; font-weight: 500;
}
.about-card {
  background: var(--navy); border-radius: 12px; padding: 3rem 2.5rem;
  color: white; position: relative; overflow: hidden;
}
.about-card::after {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px; border-radius: 50%; background: rgba(201,153,63,0.12);
}
.about-card-year { font-family: 'Playfair Display', serif; font-size: 4.5rem; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 0.5rem; }
.about-card-label { font-size: 0.9rem; color: rgba(255,255,255,0.65); margin-bottom: 2rem; }
.about-card p   { color: rgba(255,255,255,0.75); font-size: 0.95rem; line-height: 1.75; position: relative; z-index: 1; }
.about-card-quote { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); }
.quote-text   { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--gold); margin-bottom: 0.4rem; font-style: italic; }
.quote-source { font-size: 0.8rem; color: rgba(255,255,255,0.45); }
.about-section-content p { font-size: 0.97rem; color: var(--text-muted); line-height: 1.85; }
.about-section-content p + p { margin-top: 1rem; }
.about-inline-quote {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.about-inline-quote__bar {
  width: 4px;
  min-height: 72px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--slate), var(--navy));
  flex-shrink: 0;
}
.about-inline-quote__body {
  padding: 0.25rem 0 0.25rem 0.25rem;
}
.about-inline-quote__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.6rem;
}
.about-inline-quote .quote-text {
  color: var(--gold);
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  line-height: 1.45;
  margin-bottom: 0;
}
.about-card--quote-only { min-height: 280px; display: flex; align-items: center; }
.about-card--quote-only .quote-text {
  position: relative; z-index: 1; font-size: clamp(0.95rem, 1.8vw, 1.4rem);
  line-height: 1.35; margin-bottom: 0;
}

/* ── Services Grid ─────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem; }
.service-card {
  display: block; text-decoration: none; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.2rem; transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  position: relative; overflow: hidden; background: var(--white);
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--slate));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--slate); color: var(--text); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px; background: var(--slate-lt); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; overflow: hidden;
  border: 1px solid rgba(26, 53, 96, 0.08);
}
.service-icon img {
  width: 100%; height: 100%; object-fit: cover;
}
.service-icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.service-icon-svg svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.service-card h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 0.75rem; }
.service-card p  { font-size: 0.93rem; color: var(--text-muted); line-height: 1.75; }
.service-card__link { display: inline-block; margin-top: 1rem; font-size: 0.875rem; font-weight: 600; color: var(--slate); }

/* Services Detail (services page) */
.services-detail-grid { display: flex; flex-direction: column; gap: 3rem; margin-top: 2rem; }
.service-detail-card {
  display: grid; grid-template-columns: 80px 1fr; gap: 2.5rem;
  background: var(--off-white); border-radius: 12px; padding: 3rem;
  border-left: 5px solid var(--gold);
}
.service-detail-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.25rem;
}
.service-detail-thumb {
  width: 80px; aspect-ratio: 1; border-radius: var(--radius);
  overflow: hidden; background: var(--white);
}
.service-detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.service-detail-body h2 { font-family: 'Playfair Display', serif; font-size: 1.7rem; color: var(--navy); margin-bottom: 1rem; }
.service-detail-body p { font-size: 0.97rem; color: var(--text-muted); line-height: 1.85; }
.service-list { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.service-list li {
  background: var(--white); border: 1px solid var(--border); border-radius: 20px;
  padding: 0.4rem 1rem; font-size: 0.85rem; color: var(--navy); font-weight: 500;
}

/* Process Steps */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
.process-step { background: var(--white); border-radius: var(--radius); padding: 2rem; text-align: center; box-shadow: var(--shadow); }
.process-num { font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 0.75rem; }
.process-step h4 { font-size: 0.97rem; font-weight: 600; color: var(--navy); margin-bottom: 0.6rem; }
.process-step p  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

/* ── Mission & Vision ──────────────────────────────── */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }
.mv-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 2.5rem;
}
.mv-card-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--white);
}
.foundation-icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.foundation-icon-svg svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.mv-card h3   { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--gold); margin-bottom: 1rem; }
.mv-card p    { color: rgba(255,255,255,0.78); font-size: 0.97rem; line-height: 1.8; font-style: italic; }
.mv-card-copy p { color: rgba(255,255,255,0.78); font-size: 0.97rem; line-height: 1.8; font-style: italic; }
.mv-card-copy p + p { margin-top: 0.85rem; }

/* ── Goals Grid ────────────────────────────────────── */
.goals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.goal-card { background: var(--white); border-radius: var(--radius); padding: 1.75rem; border-left: 4px solid var(--gold); box-shadow: var(--shadow); }
.goal-card--slate { border-left-color: var(--slate); }
.goal-num  { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--border); line-height: 1; margin-bottom: 0.5rem; }
.goal-card h4 { font-size: 0.97rem; font-weight: 600; color: var(--navy); margin-bottom: 0.6rem; }
.goal-card p  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

/* ── Values Grid ───────────────────────────────────── */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.value-chip  { background: var(--slate-lt); border-radius: var(--radius); padding: 1.5rem 1.75rem; display: flex; align-items: flex-start; gap: 1rem; }
.value-dot   { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex-shrink: 0; margin-top: 6px; }
.value-chip h4 { font-size: 0.97rem; font-weight: 600; color: var(--navy); margin-bottom: 0.3rem; }
.value-chip p  { font-size: 0.85rem; color: var(--text-muted); }

/* ── Why Us ────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem; }
.why-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 2rem; display: flex; gap: 1.25rem;
  align-items: flex-start; transition: background 0.2s;
}
.why-card:hover { background: rgba(255,255,255,0.1); }
.why-check {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%;
  background: rgba(201,153,63,0.2); border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1rem;
}
.why-card h4 { font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 0.4rem; }
.why-card p  { font-size: 0.875rem; color: rgba(255,255,255,0.6); line-height: 1.7; }

/* ── Clients Carousel ──────────────────────────────── */
.clients-section { overflow: hidden; }
.carousel-track-wrap { overflow: hidden; width: 100%; margin-top: 0.5rem; }
.carousel-track {
  display: flex; gap: 2rem; align-items: center;
  animation: carousel-scroll 28s linear infinite; width: max-content;
}
.carousel-track:hover { animation-play-state: paused; }
.carousel-item {
  flex-shrink: 0; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 2rem;
  display: flex; align-items: center; justify-content: center;
  height: 84px; min-width: 180px; transition: box-shadow 0.2s;
}
.carousel-item:hover { box-shadow: var(--shadow-lg); }
.carousel-item img {
  max-height: 50px; max-width: 150px; object-fit: contain;
  filter: grayscale(20%); opacity: 0.85; transition: filter 0.2s, opacity 0.2s;
}
.carousel-item:hover img { filter: grayscale(0%); opacity: 1; }
@keyframes carousel-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── CTA Banner ────────────────────────────────────── */
.cta-section .container { max-width: 960px; }
.cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: 16px; padding: 5rem 3rem; position: relative;
  overflow: hidden; text-align: center;
}
.cta-box::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 220px; height: 220px; border-radius: 50%; background: rgba(201,153,63,0.1);
}
.cta-box::after {
  content: ''; position: absolute; bottom: -40px; left: -40px;
  width: 160px; height: 160px; border-radius: 50%; background: rgba(74,111,165,0.15);
}
.cta-box p { color: rgba(255,255,255,0.65); font-size: 1.05rem; max-width: 460px; margin: 0 auto 2.5rem; }
.cta-email {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.75); padding: 0.75rem 1.5rem; border-radius: 6px;
  font-size: 0.95rem; text-decoration: none; margin-top: 1.5rem;
  transition: background 0.2s, border-color 0.2s;
}
.cta-email:hover { background: rgba(255,255,255,0.14); border-color: rgba(201,153,63,0.5); color: var(--white); }

/* ── Blog ──────────────────────────────────────────── */
.blog-section { padding: 64px 5%; background: var(--off-white); }
.blog-layout  { display: block; }
.blog-main--full { width: 100%; }
.blog-grid    { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; }
.blog-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: box-shadow 0.2s, transform 0.2s;
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.blog-card__thumb { display: block; overflow: hidden; aspect-ratio: 16/9; }
.blog-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.blog-card:hover .blog-card__thumb img { transform: scale(1.04); }
.blog-card__body  { padding: 1.5rem; }
.blog-card__title { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; line-height: 1.35; margin-bottom: 0.6rem; }
.blog-card__title a { color: var(--navy); text-decoration: none; }
.blog-card__title a:hover { color: var(--gold); }
.blog-card__excerpt { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; }
.blog-card__link { font-size: 0.875rem; font-weight: 600; color: var(--slate); text-decoration: none; }
.blog-card__link:hover { color: var(--gold); }

/* Sidebar */
.blog-sidebar { position: sticky; top: calc(var(--nav-h) + 2rem); }
.sidebar-widget { background: var(--white); border-radius: var(--radius); padding: 1.75rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.widget-title   { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--navy); margin-bottom: 1rem; }
.sidebar-cta    { background: var(--navy); color: white; }
.sidebar-cta h4 { color: var(--gold); font-family: 'Playfair Display', serif; font-size: 1.1rem; margin-bottom: 0.75rem; }
.sidebar-cta p  { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* Pagination */
.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; gap: 0.5rem; justify-content: center; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 6px;
  background: var(--white); border: 1px solid var(--border); color: var(--navy);
  font-size: 0.9rem; text-decoration: none; transition: background 0.2s, color 0.2s;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pagination .prev, .pagination .next { width: auto; padding: 0 1rem; }

/* Single Post */
.page-hero--single .container { max-width: 1160px; }
.page-hero--single .page-hero__title {
  max-width: 960px;
  margin: 0 auto;
}

.single-post-section { padding: 64px 5%; background: var(--off-white); }
.single-layout  {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 240px;
  gap: 2rem;
  align-items: start;
}
.single-content {
  min-width: 0;
  background: var(--white);
  border-radius: var(--radius);
  padding: 3rem;
}
.single-content .entry-content { max-width: none; }
.blog-sidebar { width: 100%; max-width: 240px; justify-self: end; }
.single-thumb   { border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; }
.entry-content h1,
.entry-content h2,
.entry-content h3 { font-family: 'Playfair Display', serif; color: var(--navy); margin: 1.5rem 0 0.75rem; }
.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.25rem; }
.entry-content p  { margin-bottom: 1.25rem; color: var(--text-muted); line-height: 1.85; }
.entry-content ul,
.entry-content ol { margin: 1rem 0 1.25rem 1.5rem; color: var(--text-muted); }
.entry-content li { margin-bottom: 0.4rem; line-height: 1.75; }
.entry-content a  { color: var(--slate); text-decoration: underline; }
.entry-content a:hover { color: var(--gold); }
.entry-content blockquote {
  border-left: 4px solid var(--gold); padding: 1rem 1.5rem; margin: 2rem 0;
  background: var(--slate-lt); border-radius: 0 8px 8px 0;
  font-style: italic; color: var(--navy);
}
.sidebar-widget--reading-list {
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin-bottom: 1.5rem;
}
.reading-list { display: flex; flex-direction: column; gap: 0.9rem; }
.reading-card {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-decoration: none;
  box-shadow: none;
  transition: color 0.2s;
}
.reading-card:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
  background: transparent;
}
.reading-card__title {
  display: block;
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 600;
  color: var(--navy);
}
.reading-card:hover .reading-card__title { color: var(--gold); }

/* Interior Page */
.interior-page-section { padding: 64px 5%; }
.interior-content { max-width: 800px; margin: 0 auto; }
.interior-thumb { border-radius: var(--radius); overflow: hidden; margin-bottom: 2.5rem; }

/* ── Contact Page ──────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1fr 380px; gap: 3rem; align-items: start; }
.contact-form-wrap { background: var(--white); border-radius: 12px; padding: 3rem; box-shadow: var(--shadow); }
.contact-form-title { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--navy); margin-bottom: 0.5rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.875rem; font-weight: 600; color: var(--navy); }
.required { color: var(--gold); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem; border: 1.5px solid var(--border); border-radius: 6px;
  font-size: 0.95rem; color: var(--text); background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s; width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--slate);
  box-shadow: 0 0 0 3px rgba(74,111,165,0.15);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.contact-response { padding: 1rem 1.25rem; border-radius: 6px; font-size: 0.9rem; margin-bottom: 0.5rem; display: none; }
.contact-response.success { background: #d1fae5; border: 1px solid #6ee7b7; color: #065f46; display: block; }
.contact-response.error   { background: #fee2e2; border: 1px solid #fca5a5; color: #7f1d1d; display: block; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-card { background: var(--white); border-radius: 12px; padding: 2rem; box-shadow: var(--shadow); }
.contact-info-card h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--navy); margin-bottom: 1.25rem; }
.contact-info-card--dark { background: var(--navy); }
.contact-info-card--dark h3 { color: var(--gold); }
.contact-detail { display: flex; align-items: flex-start; gap: 1rem; }
.contact-detail-icon { font-size: 1.4rem; flex-shrink: 0; }
.contact-detail-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.2rem; }
.contact-detail a { font-size: 0.9rem; color: var(--slate); word-break: break-word; }
.contact-institution-list { display: flex; flex-direction: column; gap: 0.6rem; }
.contact-institution-list li { font-size: 0.9rem; color: rgba(255,255,255,0.75); padding-left: 1rem; position: relative; }
.contact-institution-list li::before { content: '›'; position: absolute; left: 0; color: var(--gold); }
.contact-info-card:not(.contact-info-card--dark) .contact-institution-list li { color: var(--text-muted); }
.contact-info-card:not(.contact-info-card--dark) .contact-institution-list a { color: var(--slate); }
.contact-info-card:not(.contact-info-card--dark) .contact-institution-list a:hover { color: var(--gold); }

/* ── Footer ────────────────────────────────────────── */
.site-footer { background: #06101E; }
.footer-top  { padding: 5rem 5% 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 1rem;
}
.footer-logo-image {
  display: block;
  width: auto;
  height: 82px;
  max-width: 100%;
}
.footer-tagline { font-size: 0.875rem; color: rgba(255,255,255,0.5); line-height: 1.7; margin-bottom: 0.75rem; }
.footer-since   { font-size: 0.8rem; color: rgba(255,255,255,0.35); }
.footer-since strong { color: var(--gold); }
.footer-col-title { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 1.25rem; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 1.5rem 5%; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p,
.footer-credits { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }

/* ── No-posts / 404 ────────────────────────────────── */
.no-posts { padding: 3rem; background: var(--white); border-radius: var(--radius); text-align: center; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .footer-grid     { grid-template-columns: 1fr 1fr; }
  .process-steps   { grid-template-columns: repeat(2, 1fr); }
  .contact-layout  { grid-template-columns: 1fr; }
  .contact-info    { flex-direction: row; flex-wrap: wrap; }
  .contact-info-card { flex: 1 1 280px; }
}

@media (max-width: 900px) {
  .nav-toggle    { display: flex; }
  .nav-logo { min-width: 250px; }
  .nav-logo-image { max-width: 320px; }
  .nav-logo-image--default { height: 92px; transform: translateY(8px); }
  .nav-logo-image--scrolled { top: 14px; height: 34px; }
  .nav-menu-wrap {
    display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--navy); flex-direction: column; align-items: flex-start;
    padding: 2rem; gap: 0; border-top: 1px solid rgba(201,153,63,0.2);
  }
  .nav-menu-wrap.is-open { display: flex; }
  .nav-links { flex-direction: column; gap: 0; width: 100%; }
  .nav-links li { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-links a   { display: block; padding: 0.85rem 0; font-size: 1rem; }
  .btn-nav-cta   { margin-top: 1rem; }

  .about-grid, .mv-grid, .why-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-copy--wide { width: 100%; }
  .services-grid  { grid-template-columns: 1fr; }
  .goals-grid     { grid-template-columns: 1fr 1fr; }
  .values-grid    { grid-template-columns: 1fr 1fr; }
  .blog-layout    { grid-template-columns: 1fr; }
  .single-layout  { grid-template-columns: 1fr; }
  .hero__stats    { gap: 1.5rem; }

  .service-detail-card { grid-template-columns: 1fr; gap: 1.5rem; }
  .service-detail-icon { font-size: 2rem; }
  .service-detail-thumb { width: 96px; }
}

@media (max-width: 640px) {
  section.section-pad { padding: 64px 1.5rem; }
  .container { padding: 0 1.25rem; }
  .nav-logo { min-width: 180px; }
  .nav-logo-image { max-width: 230px; }
  .nav-logo-image--default { height: 78px; transform: translateY(6px); }
  .nav-logo-image--scrolled { top: 14px; height: 30px; }
  .footer-logo-image { height: 64px; }
  .goals-grid  { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .form-row    { grid-template-columns: 1fr; }
  .cta-box     { padding: 3rem 1.75rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
  .hero { padding-bottom: 14rem; }
  .hero__stats { flex-direction: column; gap: 1rem; bottom: 1.5rem; }
  .process-steps { grid-template-columns: 1fr; }
  .contact-form-wrap,
  .service-detail-card,
  .single-content { padding: 2rem 1.5rem; }
  .cta-email { max-width: 100%; overflow-wrap: anywhere; justify-content: center; }
}
