/* ========================================
   PROCURE FOR IMPACT — Site Stylesheet
   ======================================== */

/* Brand Fonts */
@font-face {
  font-family: 'Caslon Ionic';
  src: url('../fonts/CaslonIonic-Thin.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Graphik';
  src: url('../fonts/Graphik-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Graphik';
  src: url('../fonts/Graphik-RegularItalic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Graphik';
  src: url('../fonts/Graphik-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Graphik';
  src: url('../fonts/Graphik-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #D85A2B;
  --orange-light: rgba(216, 90, 43, 0.08);
  --orange-border: rgba(216, 90, 43, 0.15);
  --cream: #F5F0E8;
  --cream-light: #FAF8F4;
  --dark: #1A1A1A;
  --dark-secondary: #333333;
  --dark-muted: #5A5A5A;
  --white: #FAFAF8;
  --serif: 'Caslon Ionic', Georgia, 'Times New Roman', serif;
  --sans: 'Graphik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --content-width: 680px;
}

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

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

body {
  font-family: var(--sans);
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
}

/* ---- NAVIGATION ---- */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-logo {
  display: block;
  height: 48px;
  width: auto;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding-bottom: 3px;
  transition: border-bottom 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  border-bottom: 2px solid var(--orange);
}

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

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

/* ---- HERO (Home) ---- */
.hero-wrapper {
  background: var(--white);
  margin: 0 auto;
}

.hero {
  padding: 48px 48px 48px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--serif);
  font-size: 3.2rem;
  font-weight: 100;
  line-height: 1.18;
  max-width: 680px;
  color: var(--dark);
  margin-bottom: 28px;
}

.hero-line {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark-secondary);
  max-width: 560px;
  font-weight: 400;
}

.hero-pattern {
  width: 100%;
  height: 280px;
  background-image: url('../images/pattern.webp');
  background-size: cover;
  background-position: center center;
}

/* ---- PATTERN STRIP ---- */
.pattern-strip {
  width: 100%;
  height: 140px;
  margin-top: 72px;
  background-image: url('../images/pattern.webp');
  background-size: cover;
  background-position: center;
}

.pattern-strip--short {
  height: 80px;
  margin-top: 0;
}

/* ---- HOME BLOCKS ---- */
.home-blocks {
  padding: 80px 48px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.home-block {
  max-width: var(--content-width);
  margin-bottom: 56px;
}

.home-block:last-child {
  margin-bottom: 0;
}

.home-block h2 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 100;
  color: var(--dark);
  margin-bottom: 14px;
}

.home-block p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark-secondary);
  font-weight: 400;
}

/* ---- PAGE HEADER ---- */
.page-header {
  padding: 80px 48px 48px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-header h1 {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 100;
  color: var(--dark);
}

/* ---- PROSE SECTIONS ---- */
.prose {
  padding: 0 48px 64px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.prose-inner {
  max-width: var(--content-width);
}

.prose h2 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 100;
  color: var(--dark);
  margin-bottom: 20px;
  margin-top: 64px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--dark-secondary);
  margin-bottom: 18px;
  font-weight: 400;
}

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

.prose .questions {
  font-style: italic;
  color: var(--dark);
  font-weight: 400;
  margin: 24px 0;
}

/* ---- REVEAL CARDS ---- */
.reveals {
  padding: 64px 48px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.reveals h2 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 100;
  color: var(--dark);
  margin-bottom: 40px;
}

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

.reveal-card {
  padding: 36px 32px;
  background: var(--white);
  border: 1px solid var(--orange-border);
  border-top: 3px solid var(--orange);
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.reveal-card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.reveal-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 100;
  margin-bottom: 10px;
  color: var(--dark);
}

.reveal-card .teaser {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--dark-secondary);
  font-style: italic;
  font-weight: 400;
}

.reveal-card .expand-toggle {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--orange);
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
}

.reveal-card .expand-toggle:hover {
  opacity: 0.7;
}

.reveal-card .expand-toggle::after {
  content: ' +';
}

.reveal-card.expanded .expand-toggle::after {
  content: ' −';
}

.reveal-card .detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin-top 0.3s ease;
  margin-top: 0;
}

.reveal-card.expanded .detail {
  max-height: 400px;
  margin-top: 14px;
}

.reveal-card .detail p {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--dark-secondary);
  font-weight: 400;
}

/* ---- SECTION DIVIDER ---- */
.divider {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
}

.divider-line {
  height: 1px;
  background: var(--orange);
  opacity: 0.2;
}

/* ---- WORK PAGE ---- */
.work-item {
  max-width: var(--content-width);
  margin-bottom: 48px;
}

.work-item h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 100;
  color: var(--dark);
  margin-bottom: 12px;
}

.work-item p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark-secondary);
  font-weight: 400;
}

/* ---- INSIGHTS PAGE ---- */
.insight-item {
  max-width: var(--content-width);
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.insight-item:last-child {
  border-bottom: none;
}

.insight-item h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 100;
  color: var(--dark);
  margin-bottom: 10px;
}

.insight-item .date {
  font-size: 0.82rem;
  color: var(--dark-muted);
  margin-bottom: 10px;
  font-weight: 400;
}

.insight-item p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--dark-secondary);
  font-weight: 400;
}

/* ---- CONTACT PAGE ---- */
.contact-details {
  max-width: var(--content-width);
}

.contact-details a {
  color: var(--dark);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  display: block;
  margin-bottom: 6px;
  transition: color 0.2s;
}

.contact-details a:hover {
  color: var(--orange);
}

.contact-form {
  max-width: var(--content-width);
  margin-top: 48px;
}

.contact-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 6px;
  margin-top: 20px;
}

.contact-form label:first-child {
  margin-top: 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--orange);
}

.contact-form textarea {
  height: 140px;
  resize: vertical;
}

.contact-form button {
  margin-top: 24px;
  padding: 12px 36px;
  background: var(--orange);
  color: white;
  border: none;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: opacity 0.2s;
}

.contact-form button:hover {
  opacity: 0.85;
}

/* ---- FOOTER ---- */
.site-footer {
  padding: 32px 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.78rem;
  color: var(--dark-muted);
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.6s ease forwards;
}

.fade-up-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-up-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-up-delay-3 { animation-delay: 0.3s; opacity: 0; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  html { font-size: 16px; }

  .site-nav { padding: 20px 24px; }
  .nav-links { 
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 100;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .hero { padding: 32px 24px 32px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-pattern { height: 160px; }

  .home-blocks { padding: 48px 24px; }
  .page-header { padding: 48px 24px 32px; }
  .page-header h1 { font-size: 2rem; }

  .prose { padding: 0 24px 48px; }
  .reveals { padding: 48px 24px; }
  .reveals-grid { grid-template-columns: 1fr; }

  .divider { padding: 0 24px; }
  .site-footer { padding: 24px; }
  .pattern-strip { height: 80px; }
}
