/* ============================
   BASE / RESET
   ============================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

body.giftguide-theme {
  background: #fdf7f0; /* soft warm off-white */
  color: #1f2933;
  font-family: "Atkinson Hyperlegible", "Roboto", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Links */

.giftguide-theme a {
  color: #ea580c;
  text-decoration: none;
}

.giftguide-theme a:hover {
  text-decoration: underline;
}

/* Headings & text */

.giftguide-theme h1,
.giftguide-theme h2,
.giftguide-theme h3 {
  margin: 0;
  color: #111827;
}

.giftguide-theme p {
  margin: 0;
}

/* ============================
   SIMPLE CASE STUDY HEADER
   ============================ */

.giftguide-theme .project-simple-header {
  width: 100%;
  padding: 1.1rem 1.75rem;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.giftguide-theme .project-simple-header .back-link {
  font-size: 0.95rem;
  color: #111827;
  text-decoration: none;
  font-weight: 500;
}

.giftguide-theme .project-simple-header .back-link:hover {
  color: #ea580c;
}

/* ============================
   LAYOUT
   ============================ */

.giftguide-theme main.project-detail {
  max-width: 880px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}

/* ============================
   HERO
   ============================ */

.giftguide-theme .eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9a7b55;
  margin-bottom: 0.5rem;
}

.giftguide-theme .project-hero {
  margin-bottom: 2.75rem;
}

.giftguide-theme .project-hero h1 {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 3vw, 2.7rem);
  margin-bottom: 0.85rem;
}

.giftguide-theme .project-subtitle {
  max-width: 38rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 1.5rem;
}

/* Hero image */

.giftguide-theme .project-hero-image {
  margin-top: 2rem;
}

.giftguide-theme .project-hero-image img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid #f2e8dd;
  background: #fff;
  box-shadow: 0 18px 45px rgba(148, 120, 88, 0.25);
}

/* ============================
   META GRID
   ============================ */

.giftguide-theme .project-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.giftguide-theme .project-meta-grid > div {
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  background: #fff;
  border: 1px solid #f2e8dd;
  box-shadow: 0 6px 16px rgba(148, 120, 88, 0.12);
}

.giftguide-theme .project-meta-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.15rem;
}

.giftguide-theme .project-meta-grid p {
  font-size: 0.9rem;
  color: #374151;
}

/* ============================
   BUTTONS
   ============================ */

.giftguide-theme .project-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.giftguide-theme .button {
  font-size: 0.9rem;
  padding: 0.5rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease,
    box-shadow 120ms ease,
    transform 120ms ease;
}

/* Primary */

.giftguide-theme .button-primary {
  background: #111827;
  color: #f9fafb;
  border-color: #111827;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
}

.giftguide-theme .button-primary:hover {
  background: #0b1220;
  border-color: #0b1220;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.25);
}

/* Secondary */

.giftguide-theme .button-secondary {
  background: transparent;
  color: #111827;
  border-color: #e5e7eb;
}

.giftguide-theme .button-secondary:hover {
  background: #f3f4f6;
}

/* ============================
   SECTIONS – GENERAL
   ============================ */

.giftguide-theme .project-section {
  margin-top: 2.4rem;
  padding: 1.9rem 1.7rem;
  border-radius: 18px;
  border: 1px solid #f2e8dd;
  background: #fffdf9;
  box-shadow: 0 12px 30px rgba(148, 120, 88, 0.12);
}

.giftguide-theme .section-header {
  margin-bottom: 1rem;
}

.giftguide-theme .project-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

.giftguide-theme .project-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.15rem;
}

.giftguide-theme .project-section p {
  font-size: 0.97rem;
  line-height: 1.8;
  color: #374151;
  margin-top: 0.45rem;
}

/* Warm underline accent */

.giftguide-theme .section-underline {
  width: 56px;
  height: 2px;
  border-radius: 999px;
  margin-top: 0.4rem;
  background: linear-gradient(90deg, #ea580c, #f59e0b);
}

/* ============================
   OVERVIEW LAYOUT
   ============================ */

.giftguide-theme .overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: flex-start;
}

.giftguide-theme .overview-context p + p {
  margin-top: 0.6rem;
}

.giftguide-theme .goal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.giftguide-theme .goal-chip {
  background: #fff7ed;
  border-radius: 12px;
  border: 1px solid #fed7aa;
  padding: 0.8rem 0.9rem;
}

.giftguide-theme .goal-chip h4 {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #7c2d12;
}

.giftguide-theme .goal-chip p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================
   FLOWS – STEP CARDS
   ============================ */

.giftguide-theme .flows .section-intro {
  margin-top: 0.35rem;
}

.giftguide-theme .flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.giftguide-theme .flow-card {
  position: relative;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #f2e8dd;
  padding: 1.4rem 1.3rem 1.3rem;
  box-shadow: 0 10px 26px rgba(148, 120, 88, 0.12);
}

.giftguide-theme .flow-step-badge {
  position: absolute;
  top: -0.75rem;
  left: 1.3rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: #ea580c;
  color: #fef3c7;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(234, 88, 12, 0.45);
}

.giftguide-theme .flow-card h3 {
  margin-top: 0.6rem;
}

.giftguide-theme .flow-card ul {
  margin-top: 0.5rem;
  padding-left: 1.1rem;
}

.giftguide-theme .flow-card li {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.3rem;
}

.giftguide-theme .flow-footnote {
  font-size: 0.86rem;
  color: #6b7280;
  margin-top: 0.6rem;
}

/* ============================
   DESIGN PILLARS
   ============================ */

.giftguide-theme .pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.giftguide-theme .pillar-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #f2e8dd;
  padding: 1.2rem 1.1rem;
}

/* ============================
   ARCHITECTURE
   ============================ */

.giftguide-theme .architecture-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 1.75rem;
  align-items: flex-start;
}

.giftguide-theme .architecture-column ul {
  margin-top: 0.4rem;
  padding-left: 1.1rem;
}

.giftguide-theme .architecture-column li {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

/* ============================
   NEXT STEPS
   ============================ */

.giftguide-theme .next-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.giftguide-theme .next-card {
  background: #fff7ed;
  border-radius: 16px;
  border: 1px solid #fed7aa;
  padding: 1.1rem 1rem;
}

/* ============================
   NAV SECTION
   ============================ */

.giftguide-theme .project-nav {
  text-align: center;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 720px) {
  .giftguide-theme .project-simple-header {
    padding-inline: 1.25rem;
  }

  .giftguide-theme main.project-detail {
    padding-inline: 1.25rem;
  }

  .giftguide-theme .project-section {
    padding-inline: 1.4rem;
  }

  .giftguide-theme .overview-layout,
  .giftguide-theme .architecture-layout {
    grid-template-columns: 1fr;
  }
}
