/* ============================================
   SOLAIRE MAGAZINE — Premium Energy Design
   Font: Plus Jakarta Sans | Accent: Solar Orange
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --font: 'Plus Jakarta Sans', -apple-system, sans-serif;
  
  --black: #0A0A0A;
  --white: #FFFFFF;
  --gray-50: #FAFAFA;
  --gray-100: #F4F4F5;
  --gray-200: #E4E4E7;
  --gray-300: #D4D4D8;
  --gray-400: #A1A1AA;
  --gray-500: #71717A;
  --gray-600: #52525B;
  --gray-700: #3F3F46;
  --gray-800: #27272A;
  --gray-900: #18181B;
  
  --accent: #F97316;
  --accent-dark: #EA580C;
  --accent-light: #FFF7ED;
  --accent-gradient: linear-gradient(135deg, #F97316 0%, #FBBF24 100%);
  
  --green: #22C55E;
  --green-light: #DCFCE7;
  
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--gray-700); background: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--gray-900); letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1.25rem; }
a { color: inherit; text-decoration: none; transition: var(--transition); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* ============ HEADER ============ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-100);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
  display: flex;
  align-items: center;
}

.logo-text {
  letter-spacing: -0.03em;
}

.logo-accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { font-size: 0.9rem; font-weight: 500; color: var(--gray-600); }
.nav a:hover { color: var(--accent); }

.nav-cta {
  background: var(--accent-gradient);
  color: white !important;
  padding: 0.625rem 1.25rem;
  border-radius: 100px;
  font-weight: 600;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(249,115,22,0.4); }

@media (max-width: 768px) {
  .nav { display: none; }
}

/* ============ HERO ============ */
.hero {
  padding: 120px 0 60px;
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--white) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green-light);
  color: var(--green);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero h1 { margin-bottom: 1.5rem; }
.hero h1 span { 
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(249,115,22,0.35); }

.btn-secondary {
  background: var(--white);
  color: var(--gray-700);
  border: 2px solid var(--gray-200);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.hero-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

.stat { text-align: center; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 0.85rem; color: var(--gray-500); }

@media (max-width: 968px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image { max-width: 500px; margin: 0 auto; }
}

/* ============ SECTIONS ============ */
section { padding: 5rem 0; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-500);
}
.section-link:hover { color: var(--accent); }

/* ============ ARTICLE CARDS ============ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 968px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .articles-grid { grid-template-columns: 1fr; } }

.article-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}

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

.article-card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.article-card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--white);
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-card-content {
  padding: 1.5rem;
}

.article-card-title {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

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

.article-card-excerpt {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.article-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* ============ FEATURED ============ */
.featured-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
}

.featured-main .article-card-image { aspect-ratio: 16/9; }
.featured-main .article-card-title { font-size: 1.375rem; }

.featured-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.featured-side .article-card {
  display: flex;
  flex-direction: row;
}

.featured-side .article-card-image {
  width: 140px;
  flex-shrink: 0;
  aspect-ratio: 1;
}

.featured-side .article-card-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-side .article-card-title { font-size: 0.95rem; margin-bottom: 0.5rem; }
.featured-side .article-card-excerpt { display: none; }

@media (max-width: 968px) {
  .featured-grid { grid-template-columns: 1fr; }
}

/* ============ CTA BOX ============ */
.cta-box {
  background: var(--accent-gradient);
  color: white;
  padding: 3rem;
  border-radius: var(--radius-xl);
  text-align: center;
}

.cta-box h2 { color: white; margin-bottom: 1rem; }
.cta-box p { opacity: 0.9; margin-bottom: 1.5rem; font-size: 1.1rem; }
.cta-box .btn {
  background: white;
  color: var(--accent-dark);
}
.cta-box .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* ============ NEWSLETTER ============ */
.newsletter {
  background: var(--gray-900);
  color: white;
  padding: 4rem 0;
}

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

.newsletter h2 { color: white; margin-bottom: 0.75rem; }
.newsletter p { color: var(--gray-400); margin-bottom: 1.5rem; }

.newsletter-form {
  display: flex;
  gap: 0.75rem;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem 1.25rem;
  border: 1px solid var(--gray-700);
  border-radius: 100px;
  background: var(--gray-800);
  color: white;
  font-size: 0.95rem;
}

.newsletter-form input::placeholder { color: var(--gray-500); }
.newsletter-form input:focus { outline: none; border-color: var(--accent); }

.newsletter-form button {
  background: var(--accent-gradient);
  color: white;
  border: none;
  padding: 1rem 1.75rem;
  border-radius: 100px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; }
}

/* ============ FOOTER ============ */
.footer {
  background: var(--gray-50);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--gray-200);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p { color: var(--gray-500); font-size: 0.9rem; margin-top: 1rem; max-width: 280px; }

.footer h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-bottom: 1.25rem;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.625rem; }
.footer-links a { color: var(--gray-600); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
  font-size: 0.85rem;
  color: var(--gray-500);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; gap: 1rem; }
}

/* ============ UTILITIES ============ */
.bg-light { background: var(--gray-50); }
.text-center { text-align: center; }

/* ============ ARTICLE PAGE ============ */
.article-page { padding: 100px 0 60px; }

.article-header {
  max-width: 800px;
  margin-bottom: 3rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}

.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--accent); }

.article-header h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.article-meta {
  font-size: 0.9rem;
  color: var(--gray-500);
}

.article-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .article-grid { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
}

/* Article Content */
.article-content {
  max-width: 800px;
}

.article-intro {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--gray-600);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--gray-200);
}

.article-content h2 {
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-100);
}

.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--gray-800);
}

.article-content p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content a:hover {
  text-decoration-thickness: 2px;
}

/* TOC */
.toc {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.toc h2 {
  font-size: 1rem;
  margin: 0 0 1rem 0;
  padding: 0;
  border: none;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.toc li {
  margin-bottom: 0.5rem;
}

.toc a {
  color: var(--gray-600);
  text-decoration: none;
  font-size: 0.9rem;
}

.toc a:hover {
  color: var(--accent);
}

/* Info Boxes */
.info-box {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}

.info-box h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.info-box p {
  margin: 0;
  color: var(--gray-700);
}

.info-box-warning {
  background: #FEF3C7;
  border-color: #F59E0B;
}

/* Comparison Tables */
.comparison-table {
  overflow-x: auto;
  margin: 2rem 0;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

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

.comparison-table th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-700);
}

.comparison-table tr:hover {
  background: var(--gray-50);
}

/* CTA Box in article */
.article-content .cta-box {
  margin: 2.5rem 0;
}

.article-content .cta-box h4 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.article-content .cta-box p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
}

.cta-box-large {
  padding: 3rem;
}

.cta-box-large h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.cta-small {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* Article Conclusion */
.article-conclusion {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--gray-200);
}

.article-conclusion h2 {
  border: none;
  padding: 0;
  margin-top: 0;
}

/* Sidebar */
.sidebar-sticky {
  position: sticky;
  top: 100px;
}

.sidebar-box {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-box h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.sidebar-box p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-links li {
  margin-bottom: 0.5rem;
}

.sidebar-links a {
  font-size: 0.9rem;
  color: var(--gray-600);
  text-decoration: none;
}

.sidebar-links a:hover {
  color: var(--accent);
}

/* Footer adjustments */
.footer-logo {
  font-size: 1.25rem;
  font-weight: 800;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  margin-bottom: 0.5rem;
}

.footer a {
  color: var(--gray-600);
  font-size: 0.9rem;
}

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

/* Nav active state */
.nav a.active {
  color: var(--accent);
}
