/* ═══════════════════════════════════════════════
   CORNER DELI — Retro Primary Colour Paper Pop
   ═══════════════════════════════════════════════ */

:root {
  /* Paper & Ink — premium dark mode slate-black base */
  --paper: #0C0E14;
  --paper-warm: #141823;
  --ink: #FAF6F0;
  --ink-soft: #FAF6F0;
  --ink-muted: #8E9AA8;
  --ink-faint: #535E6C;

  /* Primary Colours — from the Corner Deli pennant logo */
  --deli-red: #E53935;
  --deli-yellow: #F5C518;
  --deli-blue: #4DA6E8;

  /* Accent — teal from the "Refreshments" mural wall */
  --deli-teal: #1B9E8C;

  /* Utility */
  --border-paper: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --shadow-paper: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.6);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.8);

  /* Type */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Subtle paper texture overlay ── */
.pixel-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.005) 0px,
      rgba(255, 255, 255, 0.005) 1px,
      transparent 1px,
      transparent 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.005) 0px,
      rgba(255, 255, 255, 0.005) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: screen;
  opacity: 0.8;
}

/* ═══ HEADER ═══ */
.site-header {
  border-bottom: 1px solid var(--border-paper);
  background-color: rgba(7, 9, 19, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 36px;
  width: auto;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  color: #fff;
  line-height: 1.1;
  text-transform: uppercase;
}

.header-subtitle {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  font-family: var(--font-body);
}

.site-nav {
  display: flex;
  gap: 24px;
}

.nav-link {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-display);
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--deli-red);
}

/* ═══ HERO ═══ */
.hero-section {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
  background-color: #1A1A1A;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: auto 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000000;
  z-index: 1;
  filter: none;
  opacity: 1;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
  color: var(--paper);
}

/* Colour stripes behind hero text for paper pop feel */
.hero-title span.pop-red {
  background-color: var(--deli-red);
  color: #fff;
  padding: 0 8px;
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-title span.pop-blue {
  background-color: var(--deli-blue);
  color: #fff;
  padding: 0 8px;
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-tagline {
  color: rgba(250, 246, 240, 0.8);
  font-size: 1.15rem;
  max-width: 580px;
  font-weight: 400;
  line-height: 1.65;
}

/* ═══ SECTIONS ═══ */
.projects-section {
  padding: 80px 24px;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--deli-red) 0px,
    var(--deli-red) 12px,
    var(--deli-yellow) 12px,
    var(--deli-yellow) 24px,
    var(--deli-blue) 24px,
    var(--deli-blue) 36px
  );
}

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

/* ═══ PROJECT CARDS ═══ */
.project-card {
  background-color: var(--paper-warm);
  border: 2px solid var(--border-medium);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  .project-card {
    flex-direction: row;
    height: 380px;
  }

  .hero-title {
    font-size: 4rem;
  }
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--deli-red);
  box-shadow: var(--shadow-hover);
}

.card-image-box {
  flex: 1.2;
  overflow: hidden;
  position: relative;
  background-color: var(--paper-warm);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .card-img {
  transform: scale(1.03);
}

.card-content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.65rem;
  color: var(--ink);
}

.card-desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
}

.card-btn {
  display: inline-block;
  background-color: var(--deli-red);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 28px;
  border-radius: 6px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  margin-top: 8px;
  letter-spacing: 0.02em;
}

.card-btn:hover {
  background-color: #C62828;
  transform: translateX(3px);
}

/* ═══ ABOUT ═══ */
.about-section {
  padding: 80px 24px;
  border-top: 2px solid var(--border-medium);
  background-color: var(--paper-warm);
}

.about-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (min-width: 768px) {
  .about-container {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 60px;
    text-align: left;
  }
}

.about-content {
  flex: 1.2;
  max-width: 550px;
  width: 100%;
}

.about-text {
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.7;
}

.about-image-box {
  flex: 0.8;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 320px;
  width: 100%;
}

.about-img {
  max-width: 100%;
  max-height: 280px;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease;
}

.about-img:hover {
  transform: scale(1.03);
}

/* ═══ FOOTER ═══ */
.site-footer {
  border-top: 3px solid var(--ink);
  padding: 0;
  background-color: var(--ink);
  color: var(--paper);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand .logo-img {
  height: 28px;
  filter: brightness(10);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--paper);
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-link {
  color: var(--ink-faint);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-display);
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--deli-yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 24px;
  text-align: center;
}

.footer-bottom p {
  max-width: 1200px;
  margin: 0 auto;
  color: var(--ink-muted);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}

/* Colour stripe accent on footer top */
.footer-stripe {
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--deli-yellow) 0px,
    var(--deli-yellow) 33.33%,
    var(--deli-red) 33.33%,
    var(--deli-red) 66.66%,
    var(--deli-blue) 66.66%,
    var(--deli-blue) 100%
  );
}

/* ═══ MOBILE ═══ */
@media (max-width: 768px) {
  .header-container {
    padding: 12px 16px;
  }

  .hero-container {
    padding: 40px 16px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .card-content {
    padding: 24px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
    padding: 28px 16px 20px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 16px;
  }
}
