/* ========================================
   Ja'Qor Goodwin — Personal Site
   Colors derived from brand book
   Fonts: Cormorant (headers), Lato (body)
   ======================================== */

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

/* Tokens */
:root {
  --charcoal: #1C1C1C;
  --navy: #22314F;
  --stone: #F5F3EF;
  --gold: #C6A667;
  --sage: #7D8B7A;
  --crimson: #9B2D30;
  --grey: #A8A8A8;
  --warm-black: #111111;

  --font-display: 'Cormorant', Georgia, serif;
  --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;

  --max-width: 1400px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--charcoal);
  background-color: var(--stone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--crimson);
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h4 {
  font-size: 1.125rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

p {
  margin-bottom: 1rem;
  font-size: 1.0625rem;
}

p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}

.dark .eyebrow {
  color: var(--gold);
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

/* ========================================
   Navigation
   ======================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(28, 28, 28, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(198, 166, 103, 0.15);
  transition: background 0.3s ease;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--stone);
  letter-spacing: -0.01em;
}

.nav-logo:hover {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--stone);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--stone);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(28, 28, 28, 0.98);
    flex-direction: column;
    padding: 2rem var(--gutter);
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 1rem;
  }
}

/* ========================================
   Hero
   ======================================== */
.hero {
  background: var(--warm-black);
  color: var(--stone);
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.hero-text h1 {
  color: var(--stone);
  margin-bottom: 1.5rem;
}

.hero-text h1 .accent {
  color: var(--gold);
}

.hero-text .hero-bio {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--grey);
  max-width: 520px;
}

.hero-text .hero-bio strong {
  color: var(--stone);
  font-weight: 400;
}

.hero-portrait {
  display: flex;
  justify-content: center;
}

.hero-portrait img {
  width: 100%;
  max-width: 420px;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-portrait {
    order: -1;
  }

  .hero-portrait img {
    max-width: 280px;
  }

  .hero-text .hero-bio {
    max-width: 100%;
  }
}

/* ========================================
   Sections — Light & Dark
   ======================================== */
.dark {
  background: var(--charcoal);
  color: var(--stone);
}

.dark h2,
.dark h3 {
  color: var(--stone);
}

.dark p {
  color: var(--grey);
}

.navy {
  background: var(--navy);
  color: var(--stone);
}

.navy h2 {
  color: var(--stone);
}

.navy p {
  color: rgba(245, 243, 239, 0.8);
}

/* ========================================
   Homepage — What I Do Grid
   ======================================== */
.what-i-do {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.what-i-do h2 {
  margin-bottom: 3rem;
}

.duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.duo-card {
  background: var(--charcoal);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 3px;
  border: 1px solid rgba(198, 166, 103, 0.1);
  transition: border-color 0.3s ease;
}

.duo-card:hover {
  border-color: rgba(198, 166, 103, 0.3);
}

.duo-card .eyebrow {
  color: var(--gold);
}

.duo-card h3 {
  color: var(--stone);
  margin-bottom: 1rem;
}

.duo-card p {
  color: var(--grey);
  font-size: 1rem;
  line-height: 1.7;
}

.duo-card .card-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

.duo-card .card-link:hover {
  border-color: var(--gold);
}

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

/* ========================================
   Awards / Credentials Bar
   ======================================== */
.credentials {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  border-top: 1px solid rgba(28, 28, 28, 0.08);
  border-bottom: 1px solid rgba(28, 28, 28, 0.08);
}

.credentials-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
  text-align: center;
}

.credential {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--sage);
}

.credential strong {
  font-weight: 700;
  color: var(--charcoal);
}

/* ========================================
   Music Page
   ======================================== */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2.5rem;
}

.album-card {
  background: white;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(28, 28, 28, 0.06);
}

.album-card iframe {
  width: 100%;
  border: none;
}

.album-info {
  padding: 1.5rem 1.75rem 1.75rem;
}

.album-info h3 {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}

.album-info .album-year {
  font-size: 0.8125rem;
  color: var(--sage);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.album-info p {
  font-size: 0.9375rem;
  margin-top: 0.875rem;
  color: var(--charcoal);
  opacity: 0.75;
  line-height: 1.6;
}

/* Podcast section */
.podcast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.podcast-card {
  background: var(--charcoal);
  border-radius: 3px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  border: 1px solid rgba(198, 166, 103, 0.1);
}

.podcast-card img {
  width: 220px;
  height: 220px;
  object-fit: cover;
}

.podcast-card-text {
  padding: 1.75rem 2rem;
}

.podcast-card-text h3 {
  color: var(--stone);
  font-size: 1.5rem;
  margin-bottom: 0.625rem;
}

.podcast-card-text p {
  color: var(--grey);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.podcast-card-text .card-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

@media (max-width: 768px) {
  .album-grid {
    grid-template-columns: 1fr;
  }
  .podcast-grid {
    grid-template-columns: 1fr;
  }
  .podcast-card {
    grid-template-columns: 160px 1fr;
  }
  .podcast-card img {
    width: 160px;
    height: 160px;
  }
}

/* ========================================
   Services Page
   ======================================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.service-block {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-bottom: 1px solid rgba(28, 28, 28, 0.08);
}

.service-block:last-child {
  border-bottom: none;
}

.service-block .eyebrow {
  color: var(--sage);
}

.service-block h3 {
  margin-bottom: 1rem;
}

.service-block p {
  max-width: 680px;
  font-size: 1.0625rem;
  color: rgba(28, 28, 28, 0.75);
}

.service-list {
  list-style: none;
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 2rem;
}

.service-list li {
  font-size: 0.9375rem;
  color: var(--charcoal);
  padding-left: 1rem;
  position: relative;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

@media (max-width: 768px) {
  .service-list {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Strategy Portfolio — Password Gate
   ======================================== */
.password-gate {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 64px;
}

.gate-box {
  text-align: center;
  max-width: 420px;
  padding: 2rem;
}

.gate-box h2 {
  margin-bottom: 0.75rem;
}

.gate-box p {
  color: var(--sage);
  margin-bottom: 2rem;
}

.gate-input-wrap {
  display: flex;
  gap: 0.5rem;
}

.gate-input-wrap input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid rgba(28, 28, 28, 0.15);
  border-radius: 2px;
  background: white;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.2s;
}

.gate-input-wrap input:focus {
  border-color: var(--gold);
}

.gate-input-wrap button {
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--charcoal);
  color: var(--stone);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
}

.gate-input-wrap button:hover {
  background: var(--navy);
}

.gate-error {
  color: var(--crimson);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  display: none;
}

/* Strategy content (hidden until password) */
.strategy-content {
  display: none;
}

.strategy-content.unlocked {
  display: block;
}

/* Case study cards */
.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.case-card {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  border-bottom: 1px solid rgba(28, 28, 28, 0.08);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
}

.case-card:last-child {
  border-bottom: none;
}

.case-meta {
  position: sticky;
  top: 80px;
}

.case-meta .eyebrow {
  color: var(--sage);
  margin-bottom: 0.5rem;
}

.case-meta h4 {
  font-size: 0.875rem;
  color: var(--charcoal);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.case-meta .case-role {
  font-size: 0.8125rem;
  color: var(--sage);
}

.case-body h3 {
  margin-bottom: 0.75rem;
}

.case-body p {
  max-width: 640px;
  color: rgba(28, 28, 28, 0.75);
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.case-tag {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(28, 28, 28, 0.12);
  border-radius: 2px;
  color: var(--sage);
}

@media (max-width: 768px) {
  .case-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .case-meta {
    position: static;
  }
}

/* ========================================
   Contact Page
   ======================================== */
.contact-section {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding-top: 64px;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-text h1 {
  margin-bottom: 1.5rem;
}

.contact-text p {
  font-size: 1.125rem;
  color: rgba(28, 28, 28, 0.7);
  max-width: 480px;
}

.contact-email {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--charcoal);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
  transition: color 0.2s;
}

.contact-email:hover {
  color: var(--gold);
}

.contact-links {
  list-style: none;
  margin-top: 2.5rem;
  display: flex;
  gap: 2rem;
}

.contact-links a {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
}

.contact-links a:hover {
  color: var(--charcoal);
}

.contact-visual {
  display: flex;
  justify-content: center;
}

.contact-visual img {
  max-width: 360px;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .contact-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-text p {
    max-width: 100%;
  }

  .contact-links {
    justify-content: center;
  }

  .contact-visual {
    order: -1;
  }
}

/* ========================================
   Page Headers (interior pages)
   ======================================== */
.page-header {
  background: var(--charcoal);
  color: var(--stone);
  padding: clamp(6rem, 12vw, 9rem) 0 clamp(3rem, 6vw, 5rem);
  padding-top: calc(64px + clamp(3rem, 6vw, 5rem));
}

.page-header h1 {
  color: var(--stone);
  margin-bottom: 0.75rem;
}

.page-header p {
  font-size: 1.125rem;
  color: var(--grey);
  max-width: 600px;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background: var(--warm-black);
  color: var(--grey);
  padding: 3rem 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-inner p {
  font-size: 0.8125rem;
  color: var(--grey);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--grey);
}

.footer-links a:hover {
  color: var(--stone);
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ========================================
   Utilities
   ======================================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
