/* =================================================================
   Dele Fayemi — Personal Consulting Site
   Palette derived from logo: charcoal-navy / cream / gold gradient
   ================================================================= */

:root {
  --navy: #101823;
  --navy-soft: #172230;
  --navy-softer: #1e2b3a;
  --cream: #f5f2ec;
  --cream-dim: #cdc6b7;
  --ink: #1b1b1b;
  --ink-dim: #565049;
  --gold-1: #e8c874;
  --gold-2: #a9812f;
  --gold-grad: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  --gold-grad-h: linear-gradient(90deg, var(--gold-1), var(--gold-2));
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1160px;
  --radius: 4px;
  --transition: 0.35s cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.15;
}

p { margin: 0 0 16px; }

a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-2);
  margin: 0 0 14px;
}

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-sub { color: var(--ink-dim); font-size: 17px; }

section { padding: 110px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 32px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  border: 1.5px solid transparent;
}
.btn-gold {
  background: var(--gold-grad-h);
  color: var(--navy);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(169,129,47,0.55); }

.btn-outline {
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--cream); transform: translateY(-2px); }

.btn-outline-light {
  border-color: var(--cream-dim);
  color: var(--cream);
}
.btn-outline-light:hover { background: var(--cream); color: var(--navy); transform: translateY(-2px); }

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(16, 24, 35, 0.92);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  box-shadow: 0 8px 24px -12px rgba(0,0,0,0.4);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; }
.brand-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--cream);
}

.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  color: var(--cream-dim);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color var(--transition);
}
.nav a:hover { color: var(--gold-1); }
.nav-cta {
  padding: 10px 22px;
  border: 1.5px solid var(--gold-1);
  border-radius: var(--radius);
  color: var(--gold-1) !important;
}
.nav-cta:hover { background: var(--gold-grad-h); color: var(--navy) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--cream);
  transition: transform var(--transition), opacity var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  color: var(--cream);
  overflow: hidden;
  padding-top: 100px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(232,200,116,0.14), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(232,200,116,0.08), transparent 40%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(46px, 7vw, 84px);
  margin-bottom: 20px;
}
.hero-tagline {
  font-size: 19px;
  color: var(--cream-dim);
  max-width: 480px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

.hero-media { display: flex; justify-content: center; }
.hero-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6);
}
.hero-frame::after {
  content: "";
  position: absolute;
  top: 18px; left: 18px; right: -18px; bottom: -18px;
  border: 2px solid transparent;
  border-image: var(--gold-grad-h) 1;
  z-index: -1;
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }

.scroll-cue {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--cream-dim);
  border-radius: 20px;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  background: var(--gold-1);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollcue 1.8s infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 8px; }
}

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
}
.about-media img {
  border-radius: 8px;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: 0 30px 60px -24px rgba(16,24,35,0.35);
}
.about-copy p { color: var(--ink-dim); font-size: 17px; }
.about-copy h2 { color: var(--navy); }

.stat-row {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(16,24,35,0.12);
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
  color: var(--gold-2);
}
.stat-label { font-size: 13px; color: var(--ink-dim); letter-spacing: 0.3px; }

/* ---------- Expertise ---------- */
.expertise { background: var(--navy); color: var(--cream); }
.expertise .eyebrow { color: var(--gold-1); }
.expertise h2 { color: var(--cream); }

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.expertise-card {
  background: var(--navy-soft);
  border: 1px solid rgba(232,200,116,0.12);
  border-radius: 8px;
  padding: 36px 28px;
  transition: transform var(--transition), border-color var(--transition);
}
.expertise-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232,200,116,0.4);
}
.expertise-icon {
  width: 48px; height: 48px;
  margin-bottom: 22px;
  color: var(--gold-1);
}
.expertise-card h3 { font-size: 19px; color: var(--cream); margin-bottom: 10px; }
.expertise-card p { color: var(--cream-dim); font-size: 15px; margin: 0; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--navy-softer); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  margin: 0;
  background: var(--cream);
  border-radius: 8px;
  padding: 32px;
  position: relative;
}
.testimonial-card p {
  font-family: var(--serif);
  font-size: 16.5px;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 20px;
}
.testimonial-card footer { display: flex; flex-direction: column; }
.testimonial-name { font-weight: 700; color: var(--navy); font-size: 14px; }
.testimonial-role { font-size: 13px; color: var(--gold-2); }

/* ---------- Gallery Carousel ---------- */
.gallery-carousel {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}
.gallery-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-radius: 10px;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }

.gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  position: relative;
  margin: 0;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.gallery-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.gallery-slide figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 26px;
  background: linear-gradient(0deg, rgba(16,24,35,0.88), transparent);
  color: var(--cream);
  font-size: 15px;
  font-weight: 600;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(16,24,35,0.65);
  color: var(--cream);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  z-index: 5;
}
.gallery-arrow:hover { background: var(--gold-2); color: var(--navy); }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.gallery-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(16,24,35,0.2);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.gallery-dot.active {
  background: var(--gold-grad-h);
  transform: scale(1.25);
}

/* ---------- Contact ---------- */
.contact {
  background: var(--navy);
  color: var(--cream);
  text-align: center;
}
.contact-inner { max-width: 640px; }
.contact .eyebrow { color: var(--gold-1); }
.contact h2 { color: var(--cream); }
.contact .section-sub { color: var(--cream-dim); }
.contact-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 12px 0 28px;
}
.location { color: var(--cream-dim); font-size: 14px; letter-spacing: 0.3px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); border-top: 1px solid rgba(232,200,116,0.12); padding: 32px 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer p { margin: 0; color: var(--cream-dim); font-size: 13px; }

.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold-grad-h);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  box-shadow: 0 12px 24px -10px rgba(0,0,0,0.4);
  z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* =================================================================
   Responsive
   ================================================================= */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-media { order: 1; }
  .hero-actions { justify-content: center; }
  .hero-tagline { margin-left: auto; margin-right: auto; }

  .about-inner { grid-template-columns: 1fr; }
  .about-media { max-width: 360px; margin: 0 auto; }

  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  section { padding: 80px 0; }
  .container { padding: 0 22px; }

  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -20px 0 60px rgba(0,0,0,0.35);
  }
  .nav.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .stat-row { gap: 24px; flex-wrap: wrap; }
  .expertise-grid { grid-template-columns: 1fr; }
  .gallery-arrow { width: 38px; height: 38px; font-size: 15px; }
  .gallery-prev { left: 8px; }
  .gallery-next { right: 8px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
