/* HomeSolarStudio.com - Main Stylesheet */
:root {
  --navy: #1a365d;
  --navy-light: #2c5282;
  --navy-dark: #0f1f3d;
  --yellow: #f5b042;
  --yellow-light: #fbd38d;
  --yellow-dark: #c68a2b;
  --white: #ffffff;
  --gray-50: #f7fafc;
  --gray-100: #edf2f7;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e0;
  --gray-400: #a0aec0;
  --gray-500: #718096;
  --gray-600: #4a5568;
  --gray-700: #2d3748;
  --gray-800: #1a202c;
  --gray-900: #171923;
  --success: #38a169;
  --danger: #e53e3e;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-md: 0 6px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--gray-700);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--yellow-dark); }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
  background: var(--navy);
  color: white;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-weight: 700;
  font-size: 1.75rem;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nav a {
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--yellow);
  background: rgba(255,255,255,0.08);
}

.nav a.active {
  color: var(--yellow);
  background: rgba(245,176,66,0.15);
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
  display: none !important;
  background: var(--yellow);
  border: 2px solid var(--yellow);
  color: var(--navy-dark);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 6px 12px;
  line-height: 1;
  border-radius: 6px;
  font-weight: bold;
  min-width: 44px;
  min-height: 44px;
  text-align: center;
  z-index: 110;
}

.hamburger:hover {
  background: var(--yellow-light);
  border-color: var(--yellow-light);
}

.nav-wrapper {
  display: flex;
  align-items: center;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer h3 {
  color: var(--yellow);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer a {
  color: rgba(255,255,255,0.6);
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 24px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-align: center;
}

.btn-primary {
  background: var(--yellow);
  color: var(--navy-dark);
}

.btn-primary:hover {
  background: var(--yellow-light);
  color: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  background: rgba(245,176,66,0.1);
}

/* ===== CONTENT SECTIONS ===== */
.section {
  padding: 48px 0;
}

.section-title {
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--gray-500);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  border: 1px solid var(--gray-200);
}

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

.card-body { padding: 24px; }

.card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.4;
}

.card p {
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.6;
}

.card-meta {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--gray-500);
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-link:hover { text-decoration: none; color: inherit; }

/* ===== ARTICLE CONTENT ===== */
.article-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px;
}

.article-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--gray-200);
}

.article-header h1 {
  font-size: 2.2rem;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--gray-500);
}

.article-meta span { display: flex; align-items: center; gap: 6px; }

.article-content {
  background: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-content h2 {
  font-size: 1.6rem;
  color: var(--navy);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--yellow);
}

.article-content h3 {
  font-size: 1.25rem;
  color: var(--navy-light);
  margin: 28px 0 12px;
}

.article-content h4 {
  font-size: 1.1rem;
  color: var(--gray-700);
  margin: 20px 0 10px;
}

.article-content p {
  margin-bottom: 16px;
}

.article-content ul,
.article-content ol {
  margin: 16px 0;
  padding-left: 28px;
}

.article-content li {
  margin-bottom: 8px;
}

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

.article-content a:hover {
  color: var(--yellow-dark);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}

.article-content th {
  background: var(--navy);
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}

.article-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
}

.article-content tr:nth-child(even) {
  background: var(--gray-50);
}

.article-content tr:hover {
  background: var(--gray-100);
}

.article-content blockquote {
  border-left: 4px solid var(--yellow);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--gray-50);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ===== CTA BOX ===== */
.cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: white;
  padding: 32px;
  border-radius: var(--radius-lg);
  margin: 40px 0;
  text-align: center;
}

.cta-box h3 {
  color: var(--yellow);
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.cta-box p { margin-bottom: 16px; opacity: 0.9; }

/* ===== TOOLS PAGE ===== */
.tool-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.tool-card h3 {
  color: var(--navy);
  margin-bottom: 8px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--gray-700);
  font-size: 0.9rem;
}

.form-group input,
.form-group select {
  width: 100%;
  max-width: 400px;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: white;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--navy-light);
}

.result-box {
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 20px;
}

.result-box h4 {
  color: var(--navy);
  margin-bottom: 12px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-200);
}

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

.result-value {
  font-weight: 700;
  color: var(--navy);
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.breadcrumbs a { color: var(--navy-light); }

/* ===== LEGAL PAGES ===== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.legal-content h1 {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 24px;
}

.legal-content h2 {
  font-size: 1.3rem;
  color: var(--navy);
  margin: 32px 0 12px;
}

.legal-content p {
  margin-bottom: 16px;
  line-height: 1.7;
}

/* ===== FAQ ===== */
.faq-item {
  background: white;
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--gray-50);
}

.faq-answer {
  padding: 0 24px 20px;
  display: none;
}

.faq-answer.active { display: block; }

/* ===== RESPONSIVE - TABLET & MOBILE ===== */
@media (max-width: 900px) {
  .hamburger {
    display: block !important;
  }
  .nav-wrapper {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 16px 24px;
    box-shadow: var(--shadow-lg);
    z-index: 99;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-wrapper.open {
    display: block !important;
  }
  .nav {
    flex-direction: column;
    width: 100%;
    gap: 4px;
  }
  .nav a {
    padding: 14px 16px;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: block;
    width: 100%;
  }
  .nav a:last-child { border-bottom: none; }
  .header { position: relative; }
  .hero h1 { font-size: 1.8rem; }
  .hero { padding: 40px 0; }
  .article-content { padding: 24px; }
  .article-content h1 { font-size: 1.6rem; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo { font-size: 1.4rem; }
  .logo img { height: 42px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.4rem; }
  .section { padding: 32px 0; }
  .article-page { padding: 24px 16px; }
}



/* ===== SOCIAL ICONS ===== */
.social-section {
  text-align: center;
  margin: 28px 0;
}

.social-label {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: block;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icons a {
  color: var(--navy);
  font-size: 24px;
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}

.social-icons a:hover {
  color: var(--yellow);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .social-icons a { font-size: 32px; gap: 24px; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-400); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-500); }
