/* ============================================================
   Chris Portelli — Corporate Design System
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@500;600;700;800&display=swap');

:root {
  /* Corporate Navy Palette */
  --navy-900: #1A1D24; /* Dark slate background from screenshot */
  --navy-800: #222730;
  --navy-700: #2A303A;
  --navy-600: #333A46;
  --navy-500: #3E4756;

  /* Warm neutrals for body */
  --warm-50:  #FAFAF8;
  --warm-100: #F5F5F0;
  --warm-200: #E8E6DF;
  --warm-300: #D4D0C8;

  /* Copper accent — from screenshot */
  --gold-500: #C29375; /* Copper text */
  --gold-400: #D6A485;
  --gold-300: #EAB696;

  /* Functional */
  --text-dark:   #1A1A2E;
  --text-body:   #3D3D56;
  --text-muted:  #6B7280;
  --white:       #FFFFFF;
  --border:      #E5E7EB;
  --accent:      #1A6FB5;
  --accent-hover:#155A94;

  /* Typography */
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Montserrat', sans-serif;

  /* Depth */
  --shadow-subtle: 0 1px 3px rgba(10, 22, 40, 0.06);
  --shadow-card:   0 2px 8px rgba(10, 22, 40, 0.08), 0 1px 2px rgba(10, 22, 40, 0.04);
  --shadow-lifted: 0 8px 24px rgba(10, 22, 40, 0.12), 0 2px 6px rgba(10, 22, 40, 0.06);
  --shadow-hero:   0 20px 60px rgba(10, 22, 40, 0.3);

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--warm-50);
  color: var(--text-body);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 0.75rem;
  font-weight: 700;
}
h5, h6 {
  font-family: var(--font-body);
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

p { margin-bottom: 1rem; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
a:hover { color: var(--accent-hover); text-decoration: underline; }

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

/* ============================================================
   HEADER — Corporate Top Bar
   ============================================================ */
header {
  background: var(--navy-900);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  /* Removed bottom border to match sleek screenshot */
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-section .logo-icon {
  width: 40px;
  height: 40px;
  /* CSS Filter to roughly match #C29375 (copper) */
  filter: brightness(0) saturate(100%) invert(63%) sepia(19%) saturate(795%) hue-rotate(338deg) brightness(91%) contrast(92%);
}

.logo-section h1 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 0;
  letter-spacing: 0.5px;
}

.logo-section h2 {
  font-family: var(--font-body);
  color: var(--gold-500);
  font-size: 0.65rem;
  font-weight: 600;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  align-items: center;
}

.main-nav a {
  color: #9BA3AF;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 1.5rem 1rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  position: relative;
  transition: color 0.2s var(--ease-out);
}

.main-nav a:hover {
  color: var(--white);
  text-decoration: none;
}

.main-nav a.active {
  color: var(--white);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--gold-500);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  transition: border-color 0.2s;
}
.mobile-menu-btn:hover { border-color: var(--gold-400); }

/* ============================================================
   HERO BANNER — background.jpg
   ============================================================ */
.hero-banner {
  position: relative;
  background: url('/assets/background.jpg') center center / cover no-repeat;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 29, 36, 0.35) 0%,
    rgba(26, 29, 36, 0.75) 70%,
    rgba(26, 29, 36, 0.95) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 3rem 2rem;
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 2rem;
}

.hero-profile-img {
  width: 130px;
  height: 130px;
  border-radius: 8px;
  object-fit: cover;
  border: 3px solid var(--gold-500);
  box-shadow: var(--shadow-hero);
  flex-shrink: 0;
}

.hero-text h2 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 2.2rem;
  margin-bottom: 0.25rem;
}

.hero-text .subtitle {
  color: var(--gold-500);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.75rem;
}

.hero-text p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  max-width: 600px;
  margin: 0;
}

/* Page-level hero (non-home pages) */
.page-hero {
  position: relative;
  background: url('/assets/background.jpg') center 30% / cover no-repeat;
  padding: 3rem 0;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 29, 36, 0.85);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-hero-content h2 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.page-hero-content .page-subtitle {
  color: var(--gold-400);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 600;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
main {
  flex: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  width: 100%;
}

.content-box {
  background-color: var(--white);
  border-radius: 6px;
  box-shadow: var(--shadow-card);
  padding: 2.5rem;
  border: 1px solid var(--border);
}

/* Profile page */
.profile-layout {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.profile-img {
  width: 160px;
  height: 160px;
  border-radius: 6px;
  object-fit: cover;
  border: 3px solid var(--gold-500);
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
}

.profile-text h3 {
  font-family: var(--font-display);
  color: var(--navy-700);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ============================================================
   FOOTER — Corporate
   ============================================================ */
footer {
  background: var(--navy-900);
  border-top: 3px solid var(--gold-500);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 2rem 0;
  margin-top: auto;
  font-size: 0.85rem;
}

footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
footer a:hover { color: var(--gold-400); text-decoration: none; }

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-inner .footer-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.footer-divider {
  color: rgba(255,255,255,0.2);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--navy-800);
    border-top: 1px solid rgba(255,255,255,0.05);
    box-shadow: var(--shadow-lifted);
  }
  .main-nav.show { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .main-nav a { padding: 1rem 2rem; font-size: 0.85rem; }
  .main-nav a.active::after { display: none; }

  .hero-content { flex-direction: column; align-items: flex-start; gap: 1.5rem; min-height: auto; padding: 3rem 2rem; }
  .hero-banner { min-height: 300px; }
  .hero-text h2 { font-size: 1.7rem; }
  .hero-profile-img { width: 90px; height: 90px; }

  .profile-layout { flex-direction: column; align-items: center; text-align: center; }
  .profile-img { margin-bottom: 1rem; }

  .content-box { padding: 1.5rem; }

  .footer-inner { flex-direction: column; gap: 0.75rem; }

  .card-list { grid-template-columns: 1fr; }
  .image-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* ============================================================
   WORK EXPERIENCE ACCORDION
   ============================================================ */
.experience-section {
  margin-bottom: 0;
  border: 1px solid var(--border);
  border-bottom: none;
  background: var(--white);
}
.experience-section:first-of-type { border-radius: 6px 6px 0 0; }
.experience-section:last-of-type  { border-radius: 0 0 6px 6px; border-bottom: 1px solid var(--border); }

.experience-summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: background 0.15s var(--ease-out);
  list-style: none;
}
.experience-summary::-webkit-details-marker { display: none; }

.experience-summary:hover { background: var(--warm-100); }

.experience-summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--gold-500);
  flex-shrink: 0;
  margin-left: 1rem;
}

.experience-section[open] .experience-summary {
  background: var(--warm-100);
  border-bottom: 1px solid var(--border);
}
.experience-section[open] .experience-summary::after { content: '−'; }

.experience-content {
  padding: 1.5rem;
  border-left: 3px solid var(--gold-500);
  margin-left: 1.5rem;
}

.experience-content h4 {
  font-family: var(--font-body);
  color: var(--navy-600);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.experience-content h5 {
  color: var(--gold-500);
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
}

/* ============================================================
   CARDS — Downloads & Contact
   ============================================================ */
.card-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  border-top: 3px solid var(--navy-700);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lifted);
}

.card h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy-700);
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}

.card ul {
  list-style: none;
  color: var(--text-body);
  padding: 0;
}

.card li {
  margin-bottom: 0.6rem;
  padding-left: 1rem;
  position: relative;
}

.card li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--gold-500);
  font-weight: 700;
}

.card li a { display: inline-block; padding: 0.15rem 0; }

/* ============================================================
   VIDEO — Responsive Wrapper
   ============================================================ */
.video-section {
  margin-bottom: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-subtle);
}

.video-section-text {
  padding: 2rem;
}

.video-section-text h3 {
  font-family: var(--font-display);
  color: var(--navy-700);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-section-header {
  margin: 2.5rem 0 1rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.gallery-section-header:first-child { margin-top: 0; }

.gallery-section-header h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  color: var(--text-dark);
  font-size: 1.1rem;
  margin-bottom: 0;
}

.year-badge {
  background: var(--navy-700);
  color: var(--white);
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: var(--warm-100);
  box-shadow: var(--shadow-subtle);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-card);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(10,22,40,0.85));
  color: var(--white);
  padding: 2rem 0.6rem 0.6rem;
  font-size: 0.75rem;
  line-height: 1.3;
  transform: translateY(100%);
  transition: transform 0.25s var(--ease-out);
}

.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(8px);
}

.lightbox-overlay.active { display: flex; }

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: lightboxIn 0.3s var(--ease-out);
}

@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: var(--shadow-hero);
}

.lightbox-caption {
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 1rem;
  font-size: 0.95rem;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.lightbox-close:hover {
  border-color: var(--gold-400);
  background: rgba(255,255,255,0.1);
}
