/* xmodnow.cc - SEO-optimized, mobile-first styles */
:root {
  --header-bg: #1a3d4a;
  --hero-bg: #2d7a4a;
  --section-dark: #1a3d4a;
  --section-light: #f5f6f7;
  --accent: #e85d04;
  --accent-hover: #d54d02;
  --gold: #e9b824;
  --text-dark: #1a1a1a;
  --text-light: #ffffff;
  --text-muted: #4a5568;
  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --container: min(1200px, 100% - 2rem);
  --nav-height: 4rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--section-light);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; margin: 0; padding: 0; }

/* Skip link for accessibility & SEO */
.skip-link {
  position: absolute;
  top: -3rem;
  left: 0;
  background: var(--accent);
  color: var(--text-light);
  padding: 0.5rem 1rem;
  z-index: 100;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* Header */
.site-header {
  background: var(--header-bg);
  color: var(--text-light);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height);
  gap: 1rem;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--text-light);
}
.logo-link:hover { text-decoration: none; opacity: 0.95; }
.logo-link img {
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gold) 0%, #2d7a4a 100%);
  border-radius: 8px;
  flex-shrink: 0;
}
.nav-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.nav-menu a {
  color: var(--text-light);
  font-weight: 500;
  padding: 0.25rem 0.5rem;
}
.nav-menu a:hover { text-decoration: underline; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--text-light);
  color: var(--text-light);
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 4px;
}

/* Main content */
main { min-height: 60vh; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2rem 1rem;
}
.container--narrow { max-width: 720px; }

/* Hero */
.hero {
  background: var(--hero-bg);
  color: var(--text-light);
  text-align: center;
  padding: 3rem 1rem 4rem;
}
.hero-logo {
  width: min(240px, 60vw);
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
}
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
}
.hero p {
  margin: 0 auto 1.5rem;
  max-width: 600px;
  opacity: 0.95;
  font-size: 1.05rem;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--text-light);
  padding: 0.875rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.cta:hover { background: var(--accent-hover); text-decoration: none; }
.cta::after { content: ''; width: 0.5rem; height: 0.5rem; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); }

/* Sections */
.section {
  padding: 3rem 1rem;
}
.section--dark {
  background: var(--section-dark);
  color: var(--text-light);
}
.section--light { background: var(--section-light); color: var(--text-dark); }
.section h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  font-weight: 700;
}
.section--dark h2 { color: var(--text-light); }
.section--light h2 { color: var(--header-bg); }
.section p {
  margin: 0 auto 1rem;
  max-width: 640px;
  text-align: center;
}
.section p:last-child { margin-bottom: 0; }

/* Three-column features */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}
.feature {
  background: var(--section-light);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
}
.section--dark .feature {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}
.feature-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.feature h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
}
.feature p { text-align: left; margin: 0 0 0.5rem; }
.feature p:last-child { margin-bottom: 0; }

/* Page titles */
.page-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--header-bg);
}
.subtitle { margin: 0 0 2rem; color: var(--text-muted); font-size: 1.05rem; }

/* Cards / links */
.card-list { display: flex; flex-direction: column; gap: 1rem; }
.card-link {
  display: block;
  padding: 1.25rem;
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.08);
  color: var(--text-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card-link:hover { border-color: var(--accent); box-shadow: 0 4px 12px rgba(232,93,4,0.15); text-decoration: none; }
.card-link h3 { margin: 0 0 0.25rem; font-size: 1.1rem; }
.card-link p { margin: 0; font-size: 0.9rem; color: var(--text-muted); text-align: left; }

/* Footer */
.site-footer {
  background: var(--header-bg);
  color: var(--text-light);
  padding: 2rem 1rem;
  margin-top: 3rem;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a { color: var(--text-light); }
.footer-nav a:hover { text-decoration: underline; }

/* Breadcrumb */
.breadcrumb {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: rgba(0,0,0,0.03);
}
.breadcrumb a { color: var(--header-bg); }
.breadcrumb span { margin: 0 0.35rem; }

/* Blog listing */
.article-meta { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.category-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.category-tags a {
  background: var(--section-dark);
  color: var(--text-light);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
}
.category-tags a:hover { text-decoration: none; opacity: 0.9; }

/* Tablet and up */
@media (min-width: 768px) {
  .features { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 4rem 1rem 5rem; }
  .section { padding: 4rem 1rem; }
}

/* Mobile nav */
@media (max-width: 767px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--header-bg);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  }
  .nav-menu.is-open { display: flex; }
  .nav-toggle { display: block; }
  .header-inner { flex-wrap: wrap; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta, .card-link { transition: none; }
}
