/* ============================================================
   HIS — Hidayah International School
   Global Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --green:       #1b4332;
  --green-mid:   #2d6a4f;
  --green-light: #d8ede4;
  --green-pale:  #f0f8f4;
  --gold:        #c9a84c;
  --gold-light:  #f5ecd3;
  --cream:       #faf9f5;
  --cream2:      #f3f1ea;
  --white:       #ffffff;
  --ink:         #1a1a18;
  --ink2:        #3d3d38;
  --ink3:        #6b6460;
  --ink4:        #a09a94;
  --border:      #e4dfd6;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 2px 16px rgba(27,67,50,0.10);
  --shadow-lg:   0 8px 40px rgba(27,67,50,0.15);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', -apple-system, sans-serif;
  --nav-h:       70px;
  --transition:  0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}
body.loaded { opacity: 1; }

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

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-feature-settings: "liga" 1, "kern" 1;
  text-rendering: optimizeLegibility;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 500; }
h4 { font-size: 1.2rem; font-weight: 500; }
p  { color: var(--ink3); line-height: 1.8; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title { color: var(--ink); margin-bottom: 16px; }
.section-desc  { color: var(--ink3); max-width: 600px; font-size: 1rem; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27,67,50,0.30);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: #b8953f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}

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

/* Button shine sweep */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
  pointer-events: none;
}
.btn:hover::after { left: 150%; }

/* Focus-visible accessibility */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(250,249,245,0.97);
  box-shadow: 0 2px 20px rgba(27,67,50,0.10);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(27,67,50,0.08);
}

.navbar.dark-start { background: rgba(0,0,0,0.28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.navbar.scrolled.dark-start { background: rgba(250,249,245,0.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-icon {
  width: 44px; height: 44px;
  background: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--gold);
  overflow: hidden;
  padding: 4px;
}
.nav-logo-icon img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.nav-logo-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1.1;
  font-feature-settings: "liga" 1, "kern" 1;
}

.nav-logo-text span {
  font-size: 0.68rem;
  color: var(--ink3);
  letter-spacing: 0.04em;
}

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

.nav-link {
  font-size: 0.83rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink2);
  transition: all var(--transition);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--green);
  background: var(--green-pale);
}

.nav-link.active {
  border-bottom: 2px solid var(--gold);
  border-radius: 8px 8px 0 0;
  padding-bottom: 6px;
}

.nav-link.has-dropdown { padding-right: 22px; }
.nav-link.has-dropdown::after {
  content: '▾';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  transition: transform var(--transition);
}

.nav-item { position: relative; }
.nav-item:hover .nav-link.has-dropdown::after { transform: translateY(-50%) rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 9px 14px;
  font-size: 0.83rem;
  color: var(--ink2);
  border-radius: 6px;
  transition: all var(--transition);
  font-weight: 400;
}

.nav-dropdown a:hover {
  background: var(--green-pale);
  color: var(--green);
  padding-left: 18px;
}

.nav-cta {
  margin-left: 8px;
  padding: 9px 20px;
  font-size: 0.83rem;
}
.nav-cta.active {
  box-shadow: 0 0 0 3px rgba(201,168,76,0.45);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  right: 0;
  width: min(320px, 85vw);
  height: calc(100vh - var(--nav-h));
  background: var(--white);
  border-left: 1px solid var(--border);
  box-shadow: -4px 0 32px rgba(27,67,50,0.12);
  z-index: 999;
  transform: translateX(100%);
  overflow-y: auto;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}

.mobile-menu.open { transform: translateX(0); }

.mobile-menu-inner { padding: 16px 24px 24px; }

.mobile-menu a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink2);
}

.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--green); }

.mobile-menu .sub-link {
  padding: 9px 0 9px 16px;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink3);
  border-bottom: 1px solid transparent;
}

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  background: var(--green);
  padding: calc(var(--nav-h) + 60px) 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  border: 60px solid rgba(201,168,76,0.08);
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  border: 40px solid rgba(255,255,255,0.04);
}

.page-header .section-eyebrow { color: var(--gold); }
.page-header h1 { color: var(--white); margin-bottom: 12px; }
.page-header p  { color: rgba(255,255,255,0.70); max-width: 560px; margin: 0 auto; }

/* ── SECTIONS ── */
.section { padding: 80px 24px; }
.section-sm { padding: 56px 24px; }

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header { margin-bottom: 48px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-desc { margin: 0 auto; }

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(27,67,50,0.15), 0 0 0 1px rgba(27,67,50,0.08);
  border-color: var(--green-light);
}

.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--cream2);
}

.card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--green-light), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.card-body { padding: 24px; }
.card-body h3 { margin-bottom: 8px; font-size: 1.2rem; }
.card-body p  { font-size: 0.9rem; }

/* ── HIGHLIGHT PILLS ── */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.highlight-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: all var(--transition);
}

.highlight-item:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.highlight-item .icon {
  width: 52px; height: 52px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.4rem;
}

.highlight-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.highlight-item p { font-size: 0.82rem; }

/* ── FLOATING ACTION BUTTON ── */
.fab-container {
  position: fixed;
  bottom: 28px; right: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.fab-main {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--green);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(27,67,50,0.45), 0 0 0 3px rgba(201,168,76,0.35);
  transition: all var(--transition);
  color: var(--white);
}

.fab-main svg { width: 24px; height: 24px; flex-shrink: 0; }
.fab-main:hover { background: var(--green-mid); transform: scale(1.08); box-shadow: 0 8px 28px rgba(27,67,50,0.5), 0 0 0 4px rgba(201,168,76,0.5); }

.fab-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition);
}

.fab-actions.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fab-action {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fab-action-label {
  background: var(--white);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink2);
  box-shadow: var(--shadow);
  white-space: nowrap;
}

.fab-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0,0,0,0.22);
  transition: all var(--transition);
  flex-shrink: 0;
}
.fab-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.fab-whatsapp svg { width: 23px; height: 23px; }
.fab-btn:hover { transform: scale(1.12); box-shadow: 0 6px 18px rgba(0,0,0,0.3); }
.fab-whatsapp { background: #25d366; position: relative; }
.fab-call     { background: var(--green); }
.fab-location { background: var(--gold); }

/* WhatsApp pulse ring */
.fab-whatsapp::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  animation: fabPulseRing 2.5s cubic-bezier(0.455,0.03,0.515,0.955) infinite;
  pointer-events: none;
}

@keyframes fabPulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.45); }
  70%  { box-shadow: 0 0 0 12px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* FAB open/close icon swap */
.fab-main .fab-icon-close { display: none; }
.fab-main.is-open .fab-icon-open { display: none; }
.fab-main.is-open .fab-icon-close { display: block; }
.fab-main.is-open { background: var(--ink); }

/* FAB ripple */
.fab-main { position: relative; overflow: hidden; }
.fab-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: scale(0);
  animation: fabRipple 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes fabRipple {
  to { transform: scale(3); opacity: 0; }
}

/* FAB action stagger spring */
.fab-action {
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
  transform: translateY(16px) scale(0.8);
  opacity: 0;
}
.fab-actions.open .fab-action { transform: translateY(0) scale(1); opacity: 1; }
.fab-actions.open .fab-action:nth-child(1) { transition-delay: 0.08s; }
.fab-actions.open .fab-action:nth-child(2) { transition-delay: 0.16s; }
.fab-actions.open .fab-action:nth-child(3) { transition-delay: 0.24s; }

/* Pillar card image support */
.pillar-card-img {
  width: 100%;
  aspect-ratio: 3/2;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.pillar-card-img img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 768px) {
  .fab-main { width: 60px; height: 60px; }
  .fab-main svg { width: 26px; height: 26px; }
}

/* ── FOOTER ── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 60px 24px 32px;
  border-top: 2px solid var(--gold);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .nav-logo-text strong { color: var(--white); }
.footer-brand .nav-logo-text span   { color: rgba(255,255,255,0.4); }

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: 14px;
  line-height: 1.7;
}

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
  position: relative;
  display: inline-block;
}
.footer-col ul a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.footer-col ul a:hover { color: var(--gold); }
.footer-col ul a:hover::after { width: 100%; }

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  align-items: flex-start;
}

.footer-contact-item .icon {
  font-size: 0.9rem;
  margin-top: 3px;
  flex-shrink: 0;
  color: var(--gold);
}

.footer-contact-item span {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  transition: all var(--transition);
}

.social-btn:hover        { background: var(--green); transform: scale(1.15) translateY(-2px); }
.social-btn.yt:hover     { background: #ff0000; }
.social-btn.fb:hover     { background: #1877f2; }
.social-btn.ig:hover     { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-btn.wa:hover     { background: #25d366; }
.social-btn svg          { display: block; }

.footer-bottom {
  max-width: 1200px;
  margin: 28px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* Footer logo ring */
.footer-brand .nav-logo-icon {
  box-shadow: 0 0 0 2px var(--gold);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 92px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid rgba(255,255,255,0.15);
  color: var(--white);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 800;
  padding: 0;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--green-mid); border-color: var(--gold); }
.back-to-top svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.back-to-top svg circle { fill: none; stroke: var(--gold); stroke-width: 2; }
.back-to-top-arrow { position: relative; z-index: 1; font-size: 1rem; }

/* ── UTILITY ── */
.text-green { color: var(--green); }
.text-gold  { color: var(--gold); }
.bg-green   { background: var(--green); }
.bg-cream   { background: var(--cream2); }

.divider {
  width: 48px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 20px;
}

.divider.centered { margin: 0 auto 20px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-light);
  color: var(--green);
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tag {
  display: inline-block;
  background: var(--gold-light);
  color: #8a6c1c;
  border-radius: 50px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 600;
}

/* ── PLACEHOLDER IMAGE ── */
.placeholder-img {
  width: 100%;
  background: linear-gradient(135deg, var(--green-light) 0%, var(--gold-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--ink3);
  font-size: 0.78rem;
  font-weight: 500;
}

.placeholder-img .ph-icon { font-size: 2rem; opacity: 0.5; }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
  will-change: transform;
}

.reveal-left  { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }
.reveal-scale { transform: scale(0.95); }

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Cap stagger at 0.5s */
.stagger .reveal:nth-child(n+6) { transition-delay: 0.5s !important; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .section  { padding: 56px 20px; }
  .section-sm { padding: 40px 20px; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .page-header { padding: calc(var(--nav-h) + 40px) 20px 48px; }
}

/* ── TOUCH TARGETS ── */
.fab-btn, .fab-main, .slider-btn, .hamburger {
  min-width: 44px;
  min-height: 44px;
}

/* ── DEV CREDIT ── */
.dev-credit {
  background: #fff;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  border-top: 1px solid #e8e3d8;
}
.dev-credit-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #b0a898;
  letter-spacing: 0.03em;
}
.dev-credit-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.dev-credit-link:hover { opacity: 0.75; }
.dev-credit-link img {
  height: 22px;
  width: auto;
  display: block;
}
.dev-credit-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── CUSTOM CURSOR ── */
body.has-custom-cursor,
body.has-custom-cursor * { cursor: none !important; }

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 9px; height: 9px;
  background: #c9a84c;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  scale: 1;
  transition:
    scale 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.18s ease,
    opacity 0.15s ease;
  will-change: translate;
}

.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 28px; height: 28px;
  border: 1px solid rgba(201, 168, 76, 0.38);
  background: transparent;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  scale: 1;
  transition:
    scale 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.22s ease,
    background-color 0.22s ease,
    opacity 0.18s ease;
  will-change: translate;
}

/* Hover state — links & buttons */
body.cursor-hover .cursor-dot  { scale: 0; opacity: 0; }
body.cursor-hover .cursor-ring { scale: 1.7; background-color: rgba(201,168,76,0.10); border-color: rgba(201,168,76,0.7); }

/* Hover state — headings */
body.cursor-heading .cursor-dot  { scale: 1.3; background-color: #1b4332; }
body.cursor-heading .cursor-ring { scale: 1.25; border-color: rgba(27,67,50,0.45); }

/* Hover state — cards (subtle ring expansion, dot stays visible) */
body.cursor-card .cursor-ring { scale: 1.5; border-color: rgba(201,168,76,0.55); }

/* Hover state — form inputs (no visual change — cursor stays clean) */

/* Hover state — FAB */
body.cursor-fab .cursor-dot  { scale: 0; opacity: 0; }
body.cursor-fab .cursor-ring { scale: 1.8; background-color: rgba(37,211,102,0.12); border-color: rgba(37,211,102,0.7); }

/* Hover state — nav links */
body.cursor-nav .cursor-dot  { scale: 1.2; }
body.cursor-nav .cursor-ring { scale: 1.3; border-color: rgba(201,168,76,0.65); }

/* Click shrink — overrides all hover states */
body.cursor-click .cursor-dot  { scale: 0.6 !important; }
body.cursor-click .cursor-ring { scale: 0.8 !important; }

/* Click ripple */
.cursor-ripple {
  position: fixed;
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.6);
  pointer-events: none;
  z-index: 99997;
  animation: cursorRipple 0.5s ease-out forwards;
}
@keyframes cursorRipple {
  from { transform: scale(0); opacity: 1; }
  to   { transform: scale(1); opacity: 0; }
}

/* Card spotlight glow */
.has-spotlight { position: relative; overflow: hidden; }
.spotlight-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
    rgba(201,168,76,0.13) 0%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  border-radius: inherit;
}
.has-spotlight.spotlight-active .spotlight-glow { opacity: 1; }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── RESPONSIVE TWO-COLUMN CONTENT GRID ── */
.content-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 768px) {
  .content-grid-2 { grid-template-columns: 1fr; }
}

/* ── DARK-START NAV VISIBILITY (hero overlay) ── */
.navbar.dark-start:not(.scrolled) .nav-link {
  color: rgba(255,255,255,0.78);
}
.navbar.dark-start:not(.scrolled) .nav-link:hover,
.navbar.dark-start:not(.scrolled) .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.13);
}
.navbar.dark-start:not(.scrolled) .nav-link.active {
  border-bottom-color: var(--gold);
}
.navbar.dark-start:not(.scrolled) .nav-logo-text strong { color: var(--white); }
.navbar.dark-start:not(.scrolled) .nav-logo-text span   { color: rgba(255,255,255,0.55); }
.navbar.dark-start:not(.scrolled) .hamburger span       { background: var(--white); }

/* ── MOBILE MENU ACTIVE STATE ── */
.mobile-menu a.active {
  color: var(--green);
  font-weight: 700;
  background: var(--green-pale);
  border-bottom-color: var(--green);
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
}

/* ── TABLE HORIZONTAL SCROLL (mobile) ── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── CARD IMAGE CONTAINERS — ensure images fill correctly ── */
.life-card-img,
.act-card-img,
.gallery-img {
  overflow: hidden;
}
.life-card-img img,
.act-card-img img,
.gallery-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.life-card:hover .life-card-img img,
.act-card:hover .act-card-img img,
.gallery-item:hover .gallery-img img {
  transform: scale(1.05);
}

/* ── NAV LOGO IMAGE (dark-start variant) ── */
.navbar.dark-start:not(.scrolled) .nav-logo-icon {
  background: rgba(255,255,255,0.15);
  box-shadow: 0 0 0 2px rgba(201,168,76,0.6);
}
