/* ============================================================
   Tiwa Olatoye — Portfolio Website
   Warm & Vibrant Design
   ============================================================ */

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

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  --bg: #fffbf5;
  --text: #1c0f05;
  --text-secondary: #7a6352;
  --rule: #e4cdb8;
  --light-bg: #f5ebe0;
  --accent: #c4602a;
  --accent-warm: #e8894a;
  --accent-pale: #fdf0e6;
  --font-serif: 'Cormorant Garant', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --max-w: 1100px;
  --nav-h: 64px;
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── Utility ──────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 48px;
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 251, 245, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  transition: box-shadow 0.2s ease;
}

.nav.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--accent);
}

.nav__links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--accent);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--nav-h));
  background: linear-gradient(135deg, var(--accent-pale) 0%, var(--bg) 55%);
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px 80px 32px;
  max-width: 580px;
  margin-left: auto;
}

.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero__name {
  font-family: var(--font-serif);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.hero__name em {
  font-style: italic;
  font-weight: 300;
}

.hero__subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.hero__stat {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.hero__stat span {
  color: var(--text);
  font-weight: 500;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 36px;
  border: 1px solid var(--accent);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
  width: fit-content;
}

.btn:hover {
  background: transparent;
  color: var(--accent);
}

.hero__photo {
  height: 100%;
  min-height: 600px;
  overflow: hidden;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ── About ────────────────────────────────────────────────── */
.about {
  padding: 100px 0;
  border-top: 1px solid var(--rule);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 80px;
  align-items: start;
}

.about__pull {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  margin-bottom: 32px;
  color: var(--accent);
}

.about__body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.about__stats {
  background: var(--accent-pale);
  padding: 40px;
  border-left: 3px solid var(--accent-warm);
}

.about__stat-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

.about__stat-item:first-child {
  padding-top: 0;
}

.about__stat-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.about__stat-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.about__stat-value {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
}

/* ── What I Do ────────────────────────────────────────────── */
.services {
  padding: 100px 0;
  border-top: 1px solid var(--rule);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.service-item {
  background: var(--bg);
  padding: 48px 40px;
  transition: background 0.2s;
}

.service-item:hover {
  background: var(--accent-pale);
}

.service-item__number {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 300;
  color: var(--accent-warm);
  display: block;
  margin-bottom: 24px;
  line-height: 1;
}

.service-item__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 12px;
}

.service-item__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Skills ───────────────────────────────────────────────── */
.skills {
  padding: 100px 0;
  border-top: 1px solid var(--rule);
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.skill-group__title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--accent-warm);
}

.skill-group__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skill-group__list li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
}

.skill-group__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-warm);
}

/* ── Experience ───────────────────────────────────────────── */
.experience {
  padding: 100px 0;
  border-top: 1px solid var(--rule);
}

.experience__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.experience-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
}

.experience-item:first-child {
  border-top: 1px solid var(--rule);
}

.experience-item__year {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 400;
  color: var(--accent);
  padding-top: 4px;
  font-style: italic;
}

.experience-item__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 10px;
}

.experience-item__role {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.experience-item__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
}

/* ── Gallery ──────────────────────────────────────────────── */
.gallery {
  padding: 100px 0;
  border-top: 1px solid var(--rule);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 8px;
}

.gallery__item {
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 3/4;
}

.gallery__item:nth-child(4),
.gallery__item:nth-child(5) {
  grid-column: span 1;
}

/* Make last 2 items span to fill 2-column row */
.gallery__grid--5 .gallery__item:nth-child(4) {
  grid-column: 1 / 3;
  aspect-ratio: 3/2;
}

.gallery__grid--5 .gallery__item:nth-child(5) {
  grid-column: 3 / 4;
  aspect-ratio: unset;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery__item:hover img {
  transform: scale(1.03);
  filter: brightness(0.88);
}

/* ── Lightbox ─────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox__close:hover {
  opacity: 1;
}

/* ── Why Book ─────────────────────────────────────────────── */
.why {
  padding: 100px 0;
  background: var(--light-bg);
  border-top: 1px solid var(--rule);
}

.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 80px;
}

.why__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}

.why__item-dash {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--accent-warm);
  flex-shrink: 0;
  line-height: 1.5;
}

.why__item-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

/* ── Contact ──────────────────────────────────────────────── */
.contact {
  padding: 120px 0;
  border-top: 1px solid var(--rule);
  text-align: center;
}

.contact__heading {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.2;
  margin-bottom: 16px;
}

.contact__subheading {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 64px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.contact__details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
}

.contact__row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.contact__row-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  width: 80px;
  text-align: right;
}

.contact__row-value a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-warm);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.contact__row-value a:hover {
  color: var(--text);
  border-color: var(--text);
}

.contact__availability {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 16px;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  text-align: center;
}

.footer p {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .hero__photo {
    min-height: 480px;
    order: -1;
  }

  .hero__content {
    padding: 60px 32px;
    max-width: 100%;
    margin-left: 0;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .skills__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .experience-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery__grid--5 .gallery__item:nth-child(4) {
    grid-column: unset;
    aspect-ratio: 3/4;
  }

  .gallery__grid--5 .gallery__item:nth-child(5) {
    grid-column: unset;
    aspect-ratio: 3/4;
  }

  .why__grid {
    grid-template-columns: 1fr;
  }

  .nav__links {
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 20px;
  }

  .hero__content {
    padding: 48px 20px;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .gallery__grid--5 .gallery__item {
    aspect-ratio: 4/3;
  }

  .nav__links {
    display: none;
  }

  .contact__row {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .contact__row-label {
    width: auto;
    text-align: center;
  }
}
