/*
Theme Name: Necklace Shortener Guide
Theme URI: https://necklaceshorteners.com
Author: Necklace Shortener Guide
Description: A complete guide to necklace shorteners - luxury jewelry education theme
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: necklace-shortener-guide
*/

/* ===================================
   CSS VARIABLES
   =================================== */
:root {
  --background: #fbf9f6;
  --foreground: #3d3832;
  --card: #fdfcfa;
  --primary: #c9a961;
  --secondary: #f0ebe3;
  --muted: #f5f2ed;
  --muted-foreground: #7a7268;
  --border: #e8e2d8;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===================================
   RESET & BASE
   =================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--background); color: var(--foreground); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 300; line-height: 1.1; color: var(--foreground); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
p { margin-bottom: 1rem; }
.text-balance { text-wrap: balance; }

/* ===================================
   LAYOUT
   =================================== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 896px; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 1024px) { .container, .container-narrow { padding: 0 3rem; } }
.section { padding: 5rem 0; }
@media (min-width: 768px) { .section { padding: 8rem 0; } }
.section-alt { background: rgba(240, 235, 227, 0.3); }
.section-header { text-align: center; margin-bottom: 3rem; }
@media (min-width: 768px) { .section-header { margin-bottom: 4rem; } }
.section-label { font-family: var(--font-sans); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--primary); margin-bottom: 1rem; display: block; }
.section-header p.desc { color: var(--muted-foreground); max-width: 640px; margin: 1.5rem auto 0; }

/* ===================================
   HEADER
   =================================== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(251, 249, 246, 0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(232, 226, 216, 0.5); }
.header-inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; height: 64px; }
@media (min-width: 768px) { .header-inner { height: 80px; padding: 0 3rem; } }
.site-logo { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-serif); font-size: 1.25rem; color: var(--foreground); }
@media (min-width: 768px) { .site-logo { font-size: 1.5rem; } }
.site-logo svg { width: 20px; height: 20px; color: var(--primary); }
.main-nav { display: none; }
@media (min-width: 768px) { .main-nav { display: flex; align-items: center; gap: 2rem; } }
.main-nav a { font-size: 0.875rem; color: var(--muted-foreground); transition: color 0.2s; }
.main-nav a:hover { color: var(--foreground); }
.mobile-menu-toggle { display: flex; padding: 0.5rem; background: none; border: none; cursor: pointer; color: var(--foreground); }
@media (min-width: 768px) { .mobile-menu-toggle { display: none; } }
.mobile-nav { display: none; padding: 1.5rem; border-top: 1px solid var(--border); flex-direction: column; gap: 1rem; }
.mobile-nav.active { display: flex; }
.mobile-nav a { font-size: 1.125rem; color: var(--foreground); padding: 0.5rem 0; }

/* ===================================
   HERO
   =================================== */
.hero { position: relative; min-height: 90vh; display: flex; align-items: center; padding-top: 64px; }
@media (min-width: 768px) { .hero { padding-top: 80px; } }
.hero-background { position: absolute; inset: 0; z-index: 0; }
.hero-background img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(251, 249, 246, 0.95), rgba(251, 249, 246, 0.7), transparent); }
.hero-content { position: relative; z-index: 10; max-width: 1280px; margin: 0 auto; padding: 6rem 1.5rem; }
@media (min-width: 1024px) { .hero-content { padding: 8rem 3rem; } }
.hero-inner { max-width: 640px; }
.hero-label { font-family: var(--font-sans); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 1.5rem; }
.hero h1 { margin-bottom: 2rem; }
.hero-text { font-size: 1.125rem; color: var(--muted-foreground); line-height: 1.7; margin-bottom: 2.5rem; max-width: 560px; }
@media (min-width: 768px) { .hero-text { font-size: 1.25rem; } }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 1rem 2rem; font-family: var(--font-sans); font-size: 0.875rem; letter-spacing: 0.05em; border: 1px solid rgba(61, 56, 50, 0.3); background: transparent; color: var(--foreground); cursor: pointer; transition: all 0.3s; }
.btn:hover { background: rgba(61, 56, 50, 0.05); }
.btn svg { width: 16px; height: 16px; }

/* ===================================
   TABLE OF CONTENTS
   =================================== */
.toc-section { padding: 4rem 0; background: rgba(240, 235, 227, 0.5); }
@media (min-width: 768px) { .toc-section { padding: 6rem 0; } }
.toc-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 2rem; }
.toc-header svg { width: 20px; height: 20px; color: var(--primary); }
.toc-header h2 { font-size: 1.5rem; }
@media (min-width: 768px) { .toc-header h2 { font-size: 1.75rem; } }
.toc-list li { display: flex; align-items: flex-start; gap: 1rem; padding: 0.75rem 0; color: var(--muted-foreground); }
.toc-number { color: var(--primary); font-weight: 500; font-size: 0.875rem; margin-top: 0.125rem; }

/* ===================================
   FEATURED BLOCKS
   =================================== */
.featured-block { background: var(--card); border: 1px solid var(--border); padding: 2rem; }
@media (min-width: 768px) { .featured-block { padding: 3rem; } }
.featured-label { font-family: var(--font-sans); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--primary); margin-bottom: 1rem; }
.featured-block h2 { margin-bottom: 1.5rem; }
.featured-block > p { font-size: 1.125rem; line-height: 1.7; color: var(--foreground); margin-bottom: 0; }
.benefits-section { margin-top: 4rem; }
.benefits-title { font-family: var(--font-serif); font-size: 1.25rem; color: var(--foreground); margin-bottom: 2rem; }
.benefits-grid { display: flex; flex-direction: column; gap: 1.5rem; }
.benefit-item { display: flex; align-items: center; gap: 1.25rem; padding: 1.25rem; background: rgba(245, 242, 237, 0.5); transition: background 0.3s; }
.benefit-item:hover { background: var(--muted); }
.benefit-icon { flex-shrink: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(201, 169, 97, 0.1); }
.benefit-icon svg { width: 20px; height: 20px; color: var(--primary); }
.methods-divider { border-top: 1px solid var(--border); padding-top: 2rem; margin-top: 2rem; }
.methods-title { font-family: var(--font-sans); font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 1.5rem; }
.method-item { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.method-number { flex-shrink: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: rgba(201, 169, 97, 0.1); font-family: var(--font-serif); font-size: 0.875rem; color: var(--primary); }

/* ===================================
   SHORTENER TYPES
   =================================== */
.shortener-types-list { display: flex; flex-direction: column; gap: 4rem; }
.shortener-card { display: flex; flex-direction: column; gap: 2rem; align-items: stretch; }
@media (min-width: 1024px) { 
  .shortener-card { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; } 
  .shortener-card.reverse .shortener-image { order: 2; } 
  .shortener-card.reverse .shortener-content { order: 1; } 
}
.shortener-image { position: relative; height: 288px; overflow: hidden; order: 1; }
@media (min-width: 768px) { .shortener-image { height: 384px; } }
.shortener-image img { width: 100%; height: 100%; object-fit: cover; }
.shortener-content { order: 2; }
.shortener-tagline { font-family: var(--font-sans); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.75rem; }
.shortener-content h3 { margin-bottom: 1rem; }
.shortener-content .description { color: var(--muted-foreground); line-height: 1.7; margin-bottom: 1.5rem; }
.shortener-list-title { font-family: var(--font-sans); font-size: 0.875rem; color: var(--muted-foreground); margin-bottom: 0.75rem; }
.shortener-list { margin-bottom: 1.5rem; }
.shortener-list li { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.5rem; font-size: 0.875rem; }
.shortener-list svg { flex-shrink: 0; width: 16px; height: 16px; margin-top: 0.25rem; color: var(--primary); }
.shortener-note { font-size: 0.875rem; font-style: italic; color: var(--muted-foreground); margin-bottom: 1.5rem; }
.shortener-note.highlight { color: var(--primary); }
.affiliate-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border: 1px solid rgba(61, 56, 50, 0.3); background: transparent; color: var(--foreground); font-family: var(--font-sans); font-size: 0.875rem; transition: all 0.3s; text-decoration: none; }
.affiliate-btn:hover { background: rgba(61, 56, 50, 0.05); }
.affiliate-btn svg { width: 16px; height: 16px; }

/* ===================================
   THIN CHAINS
   =================================== */
.thin-chains-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .thin-chains-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.thin-chains-image { position: relative; height: 320px; overflow: hidden; order: 2; }
@media (min-width: 1024px) { .thin-chains-image { height: 500px; order: 1; } }
.thin-chains-image img { width: 100%; height: 100%; object-fit: cover; }
.thin-chains-content { order: 1; }
@media (min-width: 1024px) { .thin-chains-content { order: 2; } }
.thin-chains-content .section-label { margin-bottom: 1rem; }
.thin-chains-content h2 { margin-bottom: 1.5rem; }
.alert-box { display: flex; align-items: flex-start; gap: 0.75rem; padding: 1.5rem; background: rgba(201, 169, 97, 0.05); border-left: 2px solid var(--primary); margin-bottom: 2rem; }
.alert-box svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--primary); margin-top: 0.125rem; }
.alert-box p { font-size: 0.875rem; line-height: 1.6; margin: 0; }
.thin-chains-content > p { color: var(--muted-foreground); line-height: 1.7; margin-bottom: 2rem; }
.thin-chains-content .highlight-text { color: var(--foreground); margin-bottom: 1.5rem; }
.thin-chains-content .highlight-text strong { color: var(--primary); }
.reasons-list li { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.reasons-list .icon { flex-shrink: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; background: rgba(201, 169, 97, 0.1); }
.reasons-list svg { width: 16px; height: 16px; color: var(--primary); }

/* ===================================
   CHAIN STYLES GALLERY
   =================================== */
.chain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 640px) { .chain-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .chain-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.chain-card { position: relative; aspect-ratio: 1; overflow: hidden; cursor: pointer; transition: all 0.3s; }
.chain-card:hover, .chain-card.active { box-shadow: 0 0 0 2px var(--primary); }
.chain-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.chain-card:hover img { transform: scale(1.05); }
.chain-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(61, 56, 50, 0.8), rgba(61, 56, 50, 0.2), transparent); }
.chain-card h3 { position: absolute; bottom: 0; left: 0; right: 0; padding: 0.75rem 1rem; font-size: 0.875rem; color: #fff; text-align: left; margin: 0; }
@media (min-width: 768px) { .chain-card h3 { font-size: 1rem; padding: 1rem; } }
.chain-details-panel { margin-top: 2rem; padding: 1.5rem; background: var(--card); border: 1px solid var(--border); display: none; }
@media (min-width: 768px) { .chain-details-panel { padding: 2rem; } }
.chain-details-panel.active { display: block; }
.chain-details-inner { display: grid; gap: 2rem; }
@media (min-width: 768px) { .chain-details-inner { grid-template-columns: 300px 1fr; } }
.chain-details-image { position: relative; height: 200px; overflow: hidden; }
@media (min-width: 768px) { .chain-details-image { height: 256px; } }
.chain-details-image img { width: 100%; height: 100%; object-fit: cover; }
.chain-details-content h3 { font-size: 1.5rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .chain-details-content h3 { font-size: 1.75rem; } }
.chain-details-content .description { color: var(--muted-foreground); line-height: 1.7; margin-bottom: 1.5rem; }
.size-ranges { display: flex; flex-direction: column; gap: 1rem; }
.size-range { border: 1px solid var(--border); padding: 1rem; background: rgba(240, 235, 227, 0.2); }
.size-range-row { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.875rem; }
.size-range-label { color: var(--muted-foreground); }
.size-range-value { color: var(--foreground); font-weight: 500; }
.size-range-divider { border-top: 1px solid var(--border); padding-top: 0.5rem; margin-top: 0.5rem; }
.size-range-shortener-label { font-size: 0.875rem; color: var(--muted-foreground); display: block; margin-bottom: 0.25rem; }
.size-range-shortener { font-size: 0.875rem; color: var(--primary); font-weight: 500; }

/* ===================================
   COMPARISON CHART
   =================================== */
.filter-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 2.5rem; }
.filter-btn { padding: 0.5rem 1rem; font-family: var(--font-sans); font-size: 0.875rem; background: var(--secondary); color: var(--foreground); border: none; cursor: pointer; transition: all 0.2s; }
.filter-btn:hover { background: rgba(240, 235, 227, 0.8); }
.filter-btn.active { background: var(--foreground); color: var(--background); }
.comparison-table-wrapper { display: none; overflow-x: auto; }
@media (min-width: 768px) { .comparison-table-wrapper { display: block; } }
.comparison-table { width: 100%; border-collapse: collapse; }
.comparison-table th { text-align: left; padding: 1rem; font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-foreground); border-bottom: 2px solid var(--foreground); }
.comparison-table td { padding: 1rem; font-size: 0.875rem; border-bottom: 1px solid var(--border); }
.comparison-table tr:hover { background: rgba(240, 235, 227, 0.3); }
.comparison-table td:first-child { font-family: var(--font-serif); font-weight: 500; }
.comparison-cards { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 768px) { .comparison-cards { display: none; } }
.comparison-card { background: var(--card); border: 1px solid var(--border); padding: 1.25rem; }
.comparison-card h4 { font-family: var(--font-serif); font-size: 1.125rem; margin-bottom: 0.75rem; }
.comparison-card-row { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.875rem; }
.comparison-card-label { color: var(--muted-foreground); }
.comparison-card-divider { border-top: 1px solid var(--border); padding-top: 0.5rem; margin-top: 0.5rem; }
.comparison-card-shortener-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-foreground); margin-bottom: 0.25rem; }

/* ===================================
   FAQ
   =================================== */
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: var(--card); border: 1px solid var(--border); transition: border-color 0.3s; }
.faq-item.active { border-color: rgba(201, 169, 97, 0.3); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; background: none; border: none; cursor: pointer; text-align: left; font-family: var(--font-serif); font-size: 1.125rem; color: var(--foreground); }
.faq-question svg { flex-shrink: 0; width: 20px; height: 20px; transition: transform 0.3s; }
.faq-item.active .faq-question svg { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 1.5rem 1.5rem; color: var(--muted-foreground); line-height: 1.7; }
.faq-item.active .faq-answer { display: block; }

/* ===================================
   FINAL CTA
   =================================== */
.final-cta { padding: 6rem 0; background: var(--foreground); color: var(--background); text-align: center; }
@media (min-width: 768px) { .final-cta { padding: 8rem 0; } }
.final-cta .section-label { color: var(--primary); }
.final-cta h2 { color: var(--background); margin-bottom: 2rem; }
.final-cta p { color: rgba(251, 249, 246, 0.7); font-size: 1.125rem; max-width: 640px; margin: 0 auto 3rem; line-height: 1.7; }
.final-cta-buttons { display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
@media (min-width: 640px) { .final-cta-buttons { flex-direction: row; } }
.btn-light { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 1rem 2.5rem; font-family: var(--font-sans); font-size: 0.875rem; letter-spacing: 0.05em; border: 1px solid rgba(251, 249, 246, 0.3); background: transparent; color: var(--background); cursor: pointer; transition: all 0.3s; text-decoration: none; }
.btn-light:hover { background: rgba(251, 249, 246, 0.1); }
.btn-light svg { width: 16px; height: 16px; }

/* ===================================
   FOOTER
   =================================== */
.site-footer { background: var(--card); border-top: 1px solid var(--border); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand { grid-column: span 2; }
@media (min-width: 768px) { .footer-brand { grid-column: span 1; } }
.footer-logo { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-serif); font-size: 1.25rem; color: var(--foreground); margin-bottom: 1rem; }
.footer-logo svg { width: 20px; height: 20px; color: var(--primary); }
.footer-brand p { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; margin: 0; }
.footer-column h4 { font-family: var(--font-sans); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--foreground); margin-bottom: 1rem; font-weight: 600; }
.footer-column li { margin-bottom: 0.75rem; }
.footer-column a { font-size: 0.875rem; color: var(--muted-foreground); transition: color 0.2s; }
.footer-column a:hover { color: var(--foreground); }
.footer-disclosure { padding: 1.5rem 0; border-top: 1px solid var(--border); margin-bottom: 1.5rem; }
.footer-disclosure p { font-size: 0.75rem; color: var(--muted-foreground); line-height: 1.6; margin: 0; }
.footer-disclosure strong { color: var(--foreground); }
.footer-bottom { padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 1rem; align-items: center; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom p { font-size: 0.875rem; color: var(--muted-foreground); margin: 0; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.875rem; color: var(--muted-foreground); transition: color 0.2s; }
.footer-links a:hover { color: var(--foreground); }

/* Admin bar fix */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
