/* Dark theme CSS for MahadevSite - Fixed to match HTML */
:root {
  --bg: #0a0e1a;
  --surface: #1a2632;
  --text: #e8e9eb;
  --muted: #b8bcc4;
  --accent: #25d366;
  --accent-dark: #1ca851;
  --border: #2a3541;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  --radius: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-dark);
}

strong {
  font-weight: 600;
  color: var(--text);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: #000;
  padding: 8px 16px;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header-inner,
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.site-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.header-inner .site-logo {
  width: 70px;
  height: 70px;
}

.hero-brand-row .site-logo {
  width: 120px;
  height: 120px;
}

.small-copy {
  font-size: 0.875rem;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--accent);
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 6px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}


/* Main content */
main {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Hero section */
.hero {
  padding: 4rem 0;
}

.hero-card {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-brand-row {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.hero-brand-row img {
  width: 48px;
  height: 48px;
}

.eyebrow {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

p {
  color: var(--text);
  line-height: 1.8;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
}

.card-copy {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.section-copy {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
}

/* Hero media */
.hero-media {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-art {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.hero-mini-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.mini-stat {
  background: var(--surface);
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mini-stat strong {
  color: var(--accent);
  font-size: 0.95rem;
}

/* Trust row */
.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-top: 2rem;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.trust-item strong {
  color: var(--accent);
  font-size: 1rem;
}

/* CTA Button */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--accent);
  color: #000;
  padding: 1rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
  text-align: center;
}

.cta-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.cta-icon {
  width: 20px;
  height: 20px;
}

.cta-btn.primary {
  width: fit-content;
}

.cta-btn.pulse {
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
}

/* Section */
.section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.section-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.section-intro > div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.badge {
  display: inline-block;
  background: rgba(37, 211, 102, 0.1);
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.section-cta {
  display: flex;
  justify-content: center;
  padding-top: 1rem;
}

/* Feature grid */
.features-grid,
.steps-grid,
.subtle-grid {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.features-grid {
  grid-template-columns: repeat(3, 1fr);
}

.steps-grid {
  grid-template-columns: repeat(3, 1fr);
}

.subtle-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature,
.step,
.subtle-panel {
  background: var(--bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature strong,
.step strong,
.subtle-panel h3 {
  color: var(--accent);
  font-size: 1rem;
}

.subtle-panel {
  background: rgba(37, 211, 102, 0.05);
  border: 1px solid rgba(37, 211, 102, 0.1);
}

.subtle-panel h3 {
  margin-bottom: 0.5rem;
}

/* Content list */
.content-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.blog-card {
  background: var(--bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.2s, transform 0.2s;
}

.blog-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.blog-card .badge {
  font-size: 0.7rem;
}

.blog-card h3 {
  font-size: 1.25rem;
  margin: 0.5rem 0;
}

.blog-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.blog-card a {
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.blog-card a:hover {
  color: var(--accent-dark);
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h3 {
  margin-bottom: 1rem;
  color: var(--text);
}

.footer-col p,
.footer-col a {
  color: var(--muted);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-disclaimer {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

/* Floating button */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  z-index: 50;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.floating-whatsapp:hover {
  background: var(--accent-dark);
  transform: scale(1.1);
}

.floating-whatsapp img {
  width: 32px;
  height: 32px;
}

/* Settings page */
.settings-section {
  max-width: 600px;
  margin: 3rem auto;
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.form-group input[type="text"],
.form-group input[type="tel"] {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group small {
  color: var(--muted);
  margin-top: 0.25rem;
  font-size: 0.85rem;
}

.settings-button,
button[type="submit"] {
  background: var(--accent);
  color: #000;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  font-size: 1rem;
}

.settings-button:hover,
button[type="submit"]:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.form-message {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  border-left: 4px solid;
}

.form-message.success {
  background: rgba(37, 211, 102, 0.1);
  border-left-color: var(--accent);
  color: var(--accent);
}

.form-message.error {
  background: rgba(220, 53, 69, 0.1);
  border-left-color: #dc3545;
  color: #ff6b6b;
}

/* Article pages */
.article-header {
  margin: 2rem 0 3rem;
  padding: 2rem;
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}

.article-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.article-content {
  font-size: 1rem;
  line-height: 1.8;
}

.article-content strong {
  color: var(--accent);
}

.article-content code {
  background: var(--surface);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--accent);
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 900px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .header-inner .site-logo {
    width: 55px;
    height: 55px;
  }

  .hero-brand-row .site-logo {
    width: 85px;
    height: 85px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .features-grid,
  .steps-grid,
  .subtle-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-mini-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-list {
    grid-template-columns: 1fr;
  }

  .section-intro {
    flex-direction: column;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .container {
    padding: 0 1rem;
  }

  .header-inner {
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    padding: 0 1.5rem;
  }

  .brand {
    gap: 0.5rem;
    font-size: 1.1rem;
    flex: 1;
  }

  .hamburger {
    display: flex;
    flex-shrink: 0;
    margin-left: auto;
  }

  .nav {
    position: absolute;
    top: calc(100% + 1rem);
    left: 1.5rem;
    right: 1.5rem;
    flex-direction: column;
    gap: 0;
    width: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 1000;
    box-shadow: var(--shadow);
  }

  .nav.show {
    max-height: 500px;
  }

  .nav a {
    padding: 0.75rem 1rem;
    display: block;
    transition: background 0.2s;
    border-radius: 4px;
  }

  .nav a:hover {
    background: var(--bg);
  }

  .header-inner .site-logo {
    width: 50px;
    height: 50px;
  }

  .hero-brand-row .site-logo {
    width: 90px;
    height: 90px;
  }

  .hero {
    padding: 2rem 0;
  }

  .section {
    padding: 2rem 0;
  }

  .section-card {
    padding: 1.5rem;
  }

  h1 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .features-grid,
  .steps-grid,
  .subtle-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-mini-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .trust-row {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .cta-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }

  .floating-whatsapp {
    width: 50px;
    height: 50px;
    bottom: 1rem;
    right: 1rem;
  }

  .floating-whatsapp img {
    width: 28px;
    height: 28px;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .section-intro {
    gap: 1rem;
  }

  .lead {
    font-size: 1rem;
  }

  .settings-section {
    margin: 1.5rem 0.5rem;
    padding: 1.5rem;
  }

  .article-header {
    padding: 1.5rem;
  }
}
