/* ────────────────────────────────────────────────────────────
   OfficeEnvy — Setups worth stealing
   Modern minimalist + cozy warmth
   ──────────────────────────────────────────────────────────── */

:root {
  --bg: #FAF8F5;
  --bg-warm: #F5F0EB;
  --card-bg: #FFFFFF;
  --border: #E8E2DA;
  --border-light: #F0EBE4;
  --text: #2C2C2C;
  --text-muted: #8B8178;
  --text-light: #A69E95;
  --sage: #7B9A6D;
  --sage-light: #E8F0E4;
  --sage-dark: #5C7A50;
  --oak: #C4A882;
  --oak-light: #EDE4D8;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-lg: 16px;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── Navigation ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}

.nav-logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  color: var(--text);
}

.nav-logo span {
  color: var(--sage);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white) !important;
  background: var(--sage);
  padding: 8px 20px;
  border-radius: 8px;
  transition: background var(--transition), transform var(--transition);
}

.nav-cta:hover {
  background: var(--sage-dark);
  transform: translateY(-1px);
}

/* ─── Hero Section ────────────────────────────────────────── */
.hero {
  padding: 140px 40px 80px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  min-height: 90vh;
}

.hero-text {
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sage-light);
  padding: 6px 16px;
  border-radius: 24px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sage-dark);
  margin-bottom: 28px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--sage);
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  color: var(--text);
}

.hero h1 em {
  font-style: italic;
  color: var(--sage);
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.hero-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  position: relative;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-credit {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

/* ─── Subscribe Form ──────────────────────────────────────── */
.subscribe-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
}

.subscribe-form input {
  flex: 1;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}

.subscribe-form input:focus {
  border-color: var(--sage);
}

.subscribe-form input::placeholder {
  color: var(--text-light);
}

.subscribe-form button {
  padding: 14px 28px;
  background: var(--sage);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}

.subscribe-form button:hover {
  background: var(--sage-dark);
  transform: translateY(-1px);
}

.subscribe-msg {
  margin-top: 12px;
  font-size: 0.85rem;
  min-height: 1.4em;
}

.subscribe-msg.success { color: var(--sage-dark); font-weight: 500; }
.subscribe-msg.error { color: #C0392B; }

/* ─── Section Headers ─────────────────────────────────────── */
.section {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 48px;
  max-width: 600px;
}

/* ─── Setup Cards Grid ────────────────────────────────────── */
.setups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.setup-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  display: block;
}

.setup-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.setup-card-photo {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-warm);
}

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

.setup-card:hover .setup-card-photo img {
  transform: scale(1.04);
}

.setup-card-body {
  padding: 24px;
}

.setup-card-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.style-tag {
  background: var(--sage-light);
  color: var(--sage-dark);
}

.budget-tag {
  background: var(--oak-light);
  color: #8B6F47;
}

.setup-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.setup-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Filter Bar ──────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--sage);
  color: var(--sage-dark);
}

.filter-btn.active {
  background: var(--sage);
  border-color: var(--sage);
  color: white;
}

/* ─── Detail Page ─────────────────────────────────────────── */
.detail-page {
  padding-top: 64px;
}

.detail-hero {
  width: 100%;
  max-height: 560px;
  overflow: hidden;
  background: var(--bg-warm);
}

.detail-photo {
  width: 100%;
  height: 560px;
  object-fit: cover;
}

.detail-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
  transition: color var(--transition);
}

.back-link:hover {
  color: var(--sage);
}

.detail-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.detail-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.detail-description {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.items-section {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.items-heading {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: -0.3px;
}

.items-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.item-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
}

.item-card:hover {
  border-color: var(--sage);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-category {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  font-weight: 600;
}

.item-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.item-price {
  font-size: 0.9rem;
  color: var(--sage-dark);
  font-weight: 600;
}

.item-arrow {
  color: var(--text-light);
  flex-shrink: 0;
  transition: color var(--transition);
}

.item-card:hover .item-arrow {
  color: var(--sage);
}

/* ─── CTA Section ─────────────────────────────────────────── */
.detail-cta,
.cta-section {
  background: var(--bg-warm);
  padding: 80px 40px;
}

.cta-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.cta-inner h2 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.cta-inner p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 1rem;
}

.cta-inner .subscribe-form {
  max-width: 420px;
  margin: 0 auto;
}

/* ─── About Section ───────────────────────────────────────── */
.about-section {
  background: var(--white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.about-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.about-inner h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.about-inner p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ─── Footer ──────────────────────────────────────────────── */
.footer {
  padding: 48px 40px;
  border-top: 1px solid var(--border);
}

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

.footer-brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.5px;
}

.footer-brand span {
  color: var(--sage);
}

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

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ─── Gallery Page ────────────────────────────────────────── */
.gallery-page {
  padding-top: 64px;
}

.gallery-hero {
  padding: 64px 40px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.gallery-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 500px;
}

/* ─── Empty State ─────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.empty-state h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text);
}

/* ─── Loading ─────────────────────────────────────────────── */
.loading {
  display: flex;
  justify-content: center;
  padding: 80px 20px;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--sage);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── 404 ─────────────────────────────────────────────────── */
.page-404 {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.page-404 h1 {
  font-size: 6rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
}

.page-404 p {
  color: var(--text-muted);
  margin: 16px 0 32px;
}

.page-404 a {
  color: var(--sage);
  font-weight: 600;
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: auto;
    padding: 120px 24px 60px;
  }

  .hero-photo {
    aspect-ratio: 16/10;
    max-height: 400px;
  }

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

@media (max-width: 768px) {
  .nav {
    padding: 0 20px;
  }

  .nav-links {
    gap: 16px;
  }

  .section {
    padding: 64px 20px;
  }

  .setups-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .detail-content {
    padding: 32px 20px 60px;
  }

  .detail-photo {
    height: 300px;
  }

  .subscribe-form {
    flex-direction: column;
  }

  .subscribe-form button {
    width: 100%;
  }

  .detail-cta,
  .cta-section {
    padding: 60px 20px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .gallery-hero {
    padding: 48px 20px 0;
  }

  .filter-bar {
    gap: 8px;
  }

  .filter-btn {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .item-card {
    padding: 16px 18px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .setup-card-body {
    padding: 18px;
  }
}
