/* ============================================
   Jai Blackley - Personal Brand Site
   ============================================ */

:root {
  --navy: #0f1f2e;
  --navy-mid: #1a2f42;
  --accent: #2563eb;
  --accent-light: #3b82f6;
  --accent-subtle: rgba(37,99,235,0.08);
  --gold: #f59e0b;
  --bg: #f8fafc;
  --white: #ffffff;
  --grey-light: #f1f5f9;
  --grey-mid: #e2e8f0;
  --text-dark: #0f1f2e;
  --text-mid: #475569;
  --text-light: #94a3b8;
  --shadow: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-hover: 0 8px 28px rgba(0,0,0,0.13);
  --radius: 10px;
  --radius-lg: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text-dark); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-light); }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { color: var(--text-mid); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 88px 0; }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--grey-mid);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem; max-width: 1100px; margin: 0 auto;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 700;
  color: var(--navy); text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--text-mid); font-weight: 500; font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.65rem 1.5rem; border-radius: 6px;
  font-weight: 600; font-size: 0.9rem;
  cursor: pointer; transition: all 0.2s;
  text-decoration: none; border: 2px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-light); border-color: var(--accent-light); color: var(--white); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(37,99,235,0.3); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-white:hover { background: var(--grey-light); color: var(--navy); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); transition: all 0.3s; }
.nav-mobile { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--white); z-index: 999; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; }
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 1.3rem; font-weight: 600; color: var(--navy); }
.nav-mobile a:hover { color: var(--accent); }
.nav-mobile-close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; font-size: 2rem; cursor: pointer; color: var(--navy); }

/* ============================================
   HERO
   ============================================ */
.hero {
  background: var(--navy);
  padding: 0;
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(37,99,235,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(37,99,235,0.3);
  color: var(--accent-light);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-family: 'Inter', sans-serif;
}
.hero h1 { color: var(--white); margin-bottom: 0.5rem; }
.hero-role {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--accent-light);
  margin-bottom: 1.5rem;
  font-style: italic;
}
.hero-bio { color: rgba(255,255,255,0.72); font-size: 1.05rem; max-width: 520px; margin-bottom: 2rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.hero-social { display: flex; align-items: center; gap: 1rem; }
.hero-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
}
.hero-social a:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.hero-photo-wrap {
  display: flex; justify-content: center; align-items: flex-end;
  position: relative;
}
.hero-photo {
  width: 380px; height: 460px;
  object-fit: cover; object-position: top center;
  border-radius: var(--radius-lg);
  border: 3px solid rgba(37,99,235,0.3);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.hero-badge {
  position: absolute;
  bottom: 2rem; left: -1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  box-shadow: var(--shadow-hover);
  display: flex; align-items: center; gap: 0.7rem;
}
.hero-badge-icon { width: 36px; height: 36px; background: var(--accent-subtle); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.hero-badge-text strong { display: block; font-size: 0.95rem; color: var(--navy); font-weight: 700; }
.hero-badge-text span { font-size: 0.78rem; color: var(--text-light); }

/* ============================================
   ABOUT / ENTITY
   ============================================ */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { margin-bottom: 0.8rem; }
.section-header p { color: var(--text-mid); max-width: 580px; margin: 0 auto; font-size: 1.05rem; }
.eyebrow-label {
  display: inline-block;
  color: var(--accent); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 0.6rem; font-family: 'Inter', sans-serif;
}

.about-grid { display: grid; grid-template-columns: 380px 1fr; gap: 4rem; align-items: center; }
.about-photo {
  width: 100%; aspect-ratio: 4/5;
  object-fit: cover; object-position: top center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
}
.about-content h2 { margin-bottom: 1.2rem; }
.about-content p { margin-bottom: 1rem; font-size: 1.02rem; }
.about-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.about-tag {
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  font-size: 0.85rem; font-weight: 600;
}

/* ============================================
   SERVICES
   ============================================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2.2rem; box-shadow: var(--shadow);
  transition: all 0.25s; border: 1px solid var(--grey-mid);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.service-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px;
  background: var(--accent-subtle); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 1.3rem;
}
.service-card h3 { margin-bottom: 0.7rem; }
.service-card p { font-size: 0.95rem; margin-bottom: 1.2rem; }
.service-card ul { padding: 0; }
.service-card ul li {
  font-size: 0.88rem; color: var(--text-mid);
  padding: 0.3rem 0; padding-left: 1.2rem; position: relative;
}
.service-card ul li::before { content: '•'; color: var(--accent); position: absolute; left: 0; font-weight: bold; }

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.portfolio-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
  transition: all 0.25s; border: 1px solid var(--grey-mid);
  display: flex; flex-direction: column;
}
.portfolio-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.portfolio-img {
  width: 100%; height: 200px;
  background: var(--navy-mid);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.portfolio-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portfolio-img-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.4); font-size: 0.85rem;
}
.portfolio-body { padding: 1.5rem; }
.portfolio-tag {
  display: inline-block;
  background: var(--accent-subtle); color: var(--accent);
  border-radius: 20px; padding: 0.2rem 0.7rem;
  font-size: 0.75rem; font-weight: 600; margin-bottom: 0.7rem;
}
.portfolio-body h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.portfolio-body p { font-size: 0.9rem; margin-bottom: 1rem; }
.portfolio-body a { font-size: 0.88rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 0.3rem; }

/* ============================================
   TESTIMONIAL
   ============================================ */
.testimonial-wrap {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 3rem;
  position: relative;
}
.testimonial-quote {
  font-size: 5rem; line-height: 1;
  color: var(--accent); opacity: 0.3;
  font-family: Georgia, serif;
  position: absolute; top: 1rem; left: 2rem;
}
.testimonial-text {
  font-size: 1.15rem; color: rgba(255,255,255,0.85);
  font-style: italic; line-height: 1.8;
  margin-bottom: 1.5rem; position: relative; z-index: 1;
  padding-top: 1rem;
}
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-author-img {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-subtle); border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-weight: 700; font-size: 1.1rem;
}
.testimonial-author-info strong { display: block; color: var(--white); font-weight: 700; }
.testimonial-author-info span { color: rgba(255,255,255,0.5); font-size: 0.85rem; }

/* ============================================
   CREDENTIALS / BADGES
   ============================================ */
.credentials-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; max-width: 900px; margin: 0 auto; }
.credentials-grid.awards-grid { grid-template-columns: repeat(2, 1fr); max-width: 500px; }
.credential-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.8rem; box-shadow: var(--shadow);
  text-align: center; border: 1px solid var(--grey-mid);
  transition: all 0.2s;
}
.credential-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.credential-badge-img {
  width: 120px; height: 120px; object-fit: contain;
  margin: 0 auto 1rem;
}
.credential-badge-placeholder {
  width: 80px; height: 80px;
  background: var(--accent-subtle); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; color: var(--accent);
}
.credential-card h4 { font-size: 0.95rem; margin-bottom: 0.3rem; font-family: 'Inter', sans-serif; font-weight: 700; }
.credential-card p { font-size: 0.82rem; margin: 0; color: var(--text-light); }

/* ============================================
   CONTACT / CTA
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  text-align: center; padding: 96px 0; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(37,99,235,0.2) 0%, transparent 60%);
}
.cta-section h2 { color: var(--white); margin-bottom: 1rem; position: relative; z-index: 1; }
.cta-section p { color: rgba(255,255,255,0.7); font-size: 1.1rem; margin-bottom: 2rem; position: relative; z-index: 1; }
.cta-btns { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; position: relative; z-index: 1; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: #07111b; color: rgba(255,255,255,0.6); padding: 48px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .footer-logo { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--white); text-decoration: none; display: block; margin-bottom: 0.8rem; }
.footer-brand .footer-logo span { color: var(--accent); }
.footer-brand p { font-size: 0.9rem; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.2rem; font-family: 'Inter', sans-serif; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { color: rgba(255,255,255,0.55); font-size: 0.9rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-col p { font-size: 0.9rem; }
.footer-col a { color: rgba(255,255,255,0.55); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding: 1.2rem 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; }
.footer-social { display: flex; gap: 0.8rem; }
.footer-social a { color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer-social a:hover { color: var(--white); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-photo-wrap { display: none; }
  .hero-btns { justify-content: center; }
  .hero-social { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; margin: 0 auto; aspect-ratio: 1; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .credentials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .credentials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .cta-btns { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .credentials-grid { grid-template-columns: 1fr 1fr; }
}
