/* ==============================================================
   Inventory Management System — Editorial redesign
   Warm editorial white / clay / terracotta — Cormorant + Manrope
   All class names + structure preserved from the original.
   ============================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Manrope:wght@300;400;500;600;700&display=swap');

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

html, body {
  background: #FFFFFF;
  color: #1F1F1F;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: #1F1F1F;
}

/* Accent alias used across pages */
.orange { color: #B85C38; font-style: italic; font-weight: 500; }

a { color: inherit; text-decoration: none; }

/* --------- NAVBAR --------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(24px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #EAE6DF;
}
.nav-logo { display: flex; align-items: center; gap: 14px; }
.logo-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 1px solid #D6D0C4;
  font-family: 'Cormorant Garamond', serif; font-size: 0.95rem;
  color: #B85C38; background: #FFFFFF;
}
.logo-main {
  display: block; font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-weight: 500; color: #1F1F1F; line-height: 1;
}
.logo-sub {
  display: block; font-size: 0.62rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: #8A867C; margin-top: 4px;
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 0.85rem; font-weight: 500; color: #4A4740;
  transition: color 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: #B85C38; }
.nav-links a.active { position: relative; }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: #B85C38;
}
.nav-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; font-size: 0.82rem; font-weight: 500;
  border: 1px solid #1F1F1F; color: #1F1F1F; background: transparent;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.nav-btn:hover { background: #1F1F1F; color: #FFFFFF; }

/* --------- BREADCRUMB --------- */
.breadcrumb {
  max-width: 1240px; margin: 0 auto;
  padding: 28px clamp(24px, 5vw, 56px) 12px;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: #8A867C;
}
.breadcrumb span { color: #8A867C; }
.breadcrumb .orange { color: #B85C38; font-style: normal; }

/* --------- MAIN LAYOUT --------- */
.main-layout {
  display: grid; grid-template-columns: 1.35fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  max-width: 1240px;
  margin: 24px auto 0;
  padding: 0 clamp(24px, 5vw, 56px);
}
.left-content { min-width: 0; }
.right-sidebar { position: sticky; top: 100px; align-self: start; }

/* --------- HERO --------- */
.project-hero { padding: 40px 0 32px; border-top: 1px solid #D6D0C4; }
.project-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 500; line-height: 1.02; letter-spacing: -0.015em;
  margin-bottom: 24px;
}
.project-hero p {
  max-width: 620px; font-size: 1.02rem; line-height: 1.7;
  color: #4A4740;
}
.tech-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.tech-tags span {
  display: inline-flex; align-items: center;
  padding: 8px 14px; font-size: 0.74rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: #6B4629;
  background: #F5EBDD; border: 1px solid #EADFCB;
}

/* --------- DIVIDER --------- */
.divider { border: 0; border-top: 1px solid #EAE6DF; margin: 40px 0; }

/* --------- CONTENT SECTION --------- */
.content-section { padding: 8px 0; }
.content-section h2 {
  display: flex; align-items: baseline; gap: 16px;
  font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 500;
  margin-bottom: 20px;
}
.section-icon {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 10px;
  font-family: 'Cormorant Garamond', serif; font-size: 1rem; font-style: italic;
  color: #B85C38; border: 1px solid #EADFCB; background: #F5EBDD;
}
.content-section p {
  max-width: 780px; font-size: 1rem; line-height: 1.75; color: #4A4740;
}

/* --------- FEATURES GRID --------- */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0; border-top: 1px solid #EAE6DF; margin-top: 24px;
}
.feature-card {
  padding: 24px 24px 24px 0;
  border-bottom: 1px solid #EAE6DF;
  border-right: 1px solid #EAE6DF;
  opacity: 1; transform: none;
  transition: background 0.3s ease;
}
.feature-card:last-child { border-right: 1px solid #EAE6DF; }
.feature-card:hover { background: #F7F5F2; }
.f-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin: 0 0 12px 24px;
  font-size: 0.9rem; color: #B85C38;
  border: 1px solid #EADFCB; background: #F5EBDD;
}
.feature-card h3 {
  font-size: 1.25rem; font-weight: 500; margin: 0 0 6px 24px;
}
.feature-card p {
  font-size: 0.9rem; line-height: 1.6; color: #4A4740; margin-left: 24px;
}

/* --------- TECH LIST --------- */
.tech-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tech-badge {
  padding: 8px 14px; font-size: 0.74rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: #1F1F1F;
  background: #FFFFFF; border: 1px solid #D6D0C4;
}

/* --------- BENEFITS --------- */
.benefits-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 20px;
}
.benefit-col { display: flex; flex-direction: column; gap: 10px; }
.benefit {
  padding: 12px 0 12px 24px; position: relative;
  border-bottom: 1px dotted #D6D0C4;
  font-size: 0.95rem; color: #1F1F1F;
}
.benefit::before {
  content: '—'; position: absolute; left: 0; top: 12px;
  color: #B85C38; font-weight: 500;
}

/* --------- SIDEBAR --------- */
.screenshots-box {
  border: 1px solid #EAE6DF; background: #FFFFFF;
  padding: 24px;
}
.screenshots-box h3 {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: #8A867C; margin-bottom: 20px; font-family: 'Manrope', sans-serif;
  font-weight: 600;
}
.main-screenshot {
  position: relative; overflow: hidden;
  background: #F5EBDD; border: 1px solid #EADFCB;
  margin-bottom: 16px;
}
.main-ss-image {
  display: block; width: 100%; height: auto; object-fit: cover;
}
.ss-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; background: #FFFFFF; border-top: 1px solid #EAE6DF;
}
.ss-nav button {
  width: 32px; height: 32px; border: 1px solid #D6D0C4;
  background: #FFFFFF; color: #1F1F1F; font-size: 0.75rem;
  cursor: pointer; transition: all 0.3s ease;
}
.ss-nav button:hover { background: #1F1F1F; color: #FFFFFF; border-color: #1F1F1F; }
.ss-count {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #4A4740; text-align: center; flex: 1;
}
.ss-list {
  max-height: 320px; overflow-y: auto;
  border-top: 1px solid #EAE6DF; padding-top: 8px;
}
.ss-list::-webkit-scrollbar { width: 6px; }
.ss-list::-webkit-scrollbar-track { background: #F7F5F2; }
.ss-list::-webkit-scrollbar-thumb { background: #D6D0C4; }
.ss-item {
  display: grid; grid-template-columns: 28px 44px 1fr; align-items: center;
  gap: 12px; padding: 10px 8px; cursor: pointer;
  border-bottom: 1px solid #EAE6DF;
  transition: background 0.2s ease;
  font-size: 0.85rem; color: #4A4740;
}
.ss-item:hover { background: #F7F5F2; }
.ss-item.active { background: #F5EBDD; color: #1F1F1F; }
.ss-num {
  font-family: 'Cormorant Garamond', serif; font-size: 1rem; color: #B85C38;
  text-align: center;
}
.ss-thumb {
  width: 44px; height: 30px; object-fit: cover;
  border: 1px solid #EAE6DF;
}
.view-all-btn {
  display: block; text-align: center; margin-top: 16px;
  padding: 12px 16px; font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid #1F1F1F; color: #1F1F1F;
  transition: background 0.3s ease, color 0.3s ease;
}
.view-all-btn:hover { background: #1F1F1F; color: #FFFFFF; }

/* --------- CTA --------- */
.cta-section {
  margin-top: 80px;
  background: #B85C38;
  padding: 72px clamp(24px, 5vw, 56px);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(1000px 320px at 20% 0%, #6B4629 0%, transparent 60%),
              radial-gradient(700px 260px at 100% 100%, #4A2C18 0%, transparent 55%);
  opacity: 0.18; pointer-events: none;
}
.cta-inner {
  position: relative; max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 32px; align-items: center;
}
.cta-icon {
  width: 68px; height: 68px; display: inline-flex; align-items: center;
  justify-content: center; font-size: 1.6rem;
  background: rgba(255, 255, 255, 0.08); color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.cta-text h2 {
  color: #FFFFFF; font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500; margin-bottom: 8px;
}
.cta-text p {
  color: rgba(255, 255, 255, 0.85); font-size: 0.98rem; line-height: 1.7;
  max-width: 640px;
}
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; font-size: 0.85rem; font-weight: 500;
  background: #FFFFFF; color: #1F1F1F;
  transition: background 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}
.cta-btn:hover { background: #1F1F1F; color: #FFFFFF; }

/* --------- RESPONSIVE --------- */
@media (max-width: 1000px) {
  .main-layout { grid-template-columns: 1fr; }
  .right-sidebar { position: static; }
  .benefits-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .cta-text p { margin: 0 auto; }
}
@media (max-width: 720px) {
  .navbar { flex-wrap: wrap; gap: 12px; }
  .nav-links { order: 3; width: 100%; gap: 18px; overflow-x: auto; padding-bottom: 4px; }
  .nav-btn { display: none; }
  .content-section h2 { font-size: 1.4rem; }
  .feature-card { padding: 20px; border-right: none; }
  .f-icon, .feature-card h3, .feature-card p { margin-left: 0; }
  .f-icon { margin-bottom: 12px; }
}
