/* ==========================================================================
   Simply Jems - Modern Editorial & Gemstone Journal Design System
   ========================================================================== */

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

:root {
  /* Color Palette - Warm Luxury Editorial */
  --bg-primary: #FAF8F5;
  --bg-secondary: #F3EFEA;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FCFBF9;
  
  --text-main: #1C1917;
  --text-muted: #57534E;
  --text-light: #8E8A85;
  
  --border-subtle: #E7E2DA;
  --border-accent: #D4C9BA;
  
  --accent-gold: #B88E44;
  --accent-gold-hover: #9E7430;
  --accent-gold-soft: #F9F5EC;
  --accent-sapphire: #1B365D;
  --accent-emerald: #1F4737;
  
  --shadow-sm: 0 2px 8px rgba(28, 25, 23, 0.04);
  --shadow-md: 0 8px 24px rgba(28, 25, 23, 0.06);
  --shadow-lg: 0 16px 40px rgba(28, 25, 23, 0.09);
  
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  --max-w: 1200px;
  --content-w: 780px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
}

body {
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
  display: inline-block;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-main);
  line-height: 1;
}

.brand-tagline {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: var(--accent-gold);
  transition: width 0.25s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

/* Layout Utilities */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.content-narrow {
  max-width: var(--content-w);
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-title {
  margin-bottom: 0.75rem;
}

/* Hero Section */
.hero {
  padding: 4rem 0 5rem;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(243, 239, 234, 0.5) 0%, rgba(250, 248, 245, 1) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  max-width: 580px;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--text-main);
  color: #FFFFFF;
  border: 1px solid var(--text-main);
}

.btn-primary:hover {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-accent);
}

.btn-outline:hover {
  border-color: var(--text-main);
  background: #FFFFFF;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.01);
}

.hero-badge {
  position: absolute;
  bottom: -15px;
  left: -15px;
  background: var(--bg-card);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent-gold);
}

.badge-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Heritage Banner */
.heritage-bar {
  background-color: var(--accent-gold-soft);
  border-top: 1px solid #EBE2CF;
  border-bottom: 1px solid #EBE2CF;
  padding: 1rem 0;
  text-align: center;
}

.heritage-bar p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--accent-gold-hover);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Article Cards & Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.25rem;
}

.article-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-accent);
}

.card-img-link {
  display: block;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/10;
}

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

.article-card:hover .card-img {
  transform: scale(1.05);
}

.card-category-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-main);
  border-radius: 2px;
}

.card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.6rem;
  display: flex;
  gap: 0.75rem;
}

.card-title {
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.card-title a:hover {
  color: var(--accent-gold);
}

.card-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.card-footer span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent-gold);
  transition: gap 0.2s ease;
}

.article-card:hover .card-footer span {
  gap: 0.6rem;
}

/* Feature Spotlight Section */
.spotlight {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  border: 1px solid var(--border-subtle);
}

.spotlight-image {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Newsletter / Evergreen Capture */
.newsletter-section {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 3.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  max-width: 800px;
  margin: 0 auto;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 1.5rem auto 0;
  gap: 0.5rem;
}

.newsletter-input {
  flex-grow: 1;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  background: var(--bg-primary);
}

.newsletter-input:focus {
  border-color: var(--accent-gold);
  background: #FFFFFF;
}

/* Article Page Specifics */
.article-header {
  padding: 4rem 0 2.5rem;
  text-align: center;
}

.article-main-title {
  margin-bottom: 1.25rem;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.article-hero-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 3rem;
}

.article-content {
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--text-main);
}

.article-content h2 {
  margin-top: 2.75rem;
  margin-bottom: 1.25rem;
}

.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.85rem;
}

.article-content ul, .article-content ol {
  margin: 1.25rem 0 1.75rem 1.75rem;
  color: var(--text-muted);
}

.article-content li {
  margin-bottom: 0.6rem;
}

.article-content blockquote {
  border-left: 3px solid var(--accent-gold);
  padding: 1rem 1.75rem;
  margin: 2rem 0;
  background-color: var(--accent-gold-soft);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--text-main);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.comparison-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}

.comparison-table th, .comparison-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  background-color: var(--bg-secondary);
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--text-main);
}

.table-badge-yes {
  color: var(--accent-emerald);
  font-weight: 600;
}

.table-badge-no {
  color: #A33A3A;
  font-weight: 600;
}

.faq-box {
  margin-top: 3.5rem;
  padding: 2rem;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem 0;
}

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

.faq-question {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background-color: #161514;
  color: #FAF8F5;
  padding: 4.5rem 0 2.5rem;
  border-top: 1px solid #2B2927;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: #A8A29E;
  font-size: 0.92rem;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #D6D3D1;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #292524;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #78716C;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .spotlight {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
}
