/*
Theme Name: CYLNDR - SEO Content Plus
Theme URI: https://cylndr.scalz.ai
Author: CYLNDR Platform
Author URI: https://cylndr.scalz.ai
Description: Custom theme for SEO Content Plus - St Augustine Digital Marketing Agency
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cylndr-seocontentplus
*/

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1B3A5C;
  --primary-light: #2A5A8C;
  --accent: #3AAFA9;
  --accent-light: #4CD4CE;
  --dark: #0F1923;
  --text: #1a1a2e;
  --text-light: #4a5568;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --border: #e2e8f0;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.12);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --content-width: 800px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-light); }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
  margin-bottom: 0.5em;
}
h1 { font-size: 2.5rem; letter-spacing: -0.025em; }
h2 { font-size: 1.875rem; letter-spacing: -0.02em; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
p { margin-bottom: 1.25em; color: var(--text-light); }
ul, ol { margin-bottom: 1.25em; padding-left: 1.5em; color: var(--text-light); }
li { margin-bottom: 0.35em; }
strong { color: var(--text); }

/* ── Layout ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.content-wrap { max-width: var(--content-width); margin: 0 auto; }

/* ── Header ── */
.site-header {
  background: var(--dark);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.site-logo:hover { color: var(--accent-light); }
.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  color: #fff;
}

/* ── Navigation ── */
.main-nav ul { list-style: none; display: flex; gap: 0.25rem; padding: 0; margin: 0; }
.main-nav a {
  color: rgba(255,255,255,0.75);
  padding: 0.5rem 0.875rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.main-nav .current-menu-item a,
.main-nav .current_page_item a { color: var(--accent-light); background: rgba(58,175,169,0.1); }

.mobile-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 0.5rem; }

/* ── Hero ── */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(58,175,169,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.page-hero h1 {
  color: #fff;
  font-size: 2.75rem;
  max-width: 720px;
  margin: 0 auto 1rem;
  position: relative;
}
.page-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  text-decoration: none;
}
.hero-cta:hover { background: var(--accent-light); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-lg); }

/* ── Content Sections ── */
.page-content {
  padding: 4rem 1.5rem;
}
.page-content .container > h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.page-content .container > h2:first-child { margin-top: 0; }
.page-content .container > h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }

/* ── FAQ Section ── */
.faq-section { background: var(--bg-alt); padding: 4rem 1.5rem; }
.faq-section h2 { text-align: center; margin-bottom: 2rem; }
.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.faq-item h3, .faq-item h4 {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.faq-item p { margin-bottom: 0; font-size: 0.9375rem; }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  padding: 4rem 1.5rem;
  text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; }

/* ── Footer ── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand h3 { color: #fff; margin-bottom: 0.75rem; font-size: 1.125rem; }
.footer-brand p { font-size: 0.875rem; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 0.875rem; }
.footer-col a:hover { color: var(--accent-light); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

/* ── Sidebar & Widgets ── */
.content-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; }
.sidebar .widget { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.sidebar .widget h3 { font-size: 1rem; margin-bottom: 1rem; }

/* ── Blog ── */
.post-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.post-card-body { padding: 1.5rem; }
.post-card h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.post-card h2 a { color: var(--dark); }
.post-card h2 a:hover { color: var(--accent); }
.post-meta { font-size: 0.8125rem; color: var(--text-light); margin-bottom: 0.75rem; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-light); color: #fff; }
.btn-outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }

/* ── Responsive ── */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .page-hero { padding: 3rem 1rem 2.5rem; }
  .page-hero h1 { font-size: 2rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .content-sidebar { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .main-nav.active { display: block; position: absolute; top: 72px; left: 0; right: 0; background: var(--dark); padding: 1rem; }
  .main-nav.active ul { flex-direction: column; }
  .main-nav.active a { display: block; padding: 0.75rem 1rem; }
  .mobile-toggle { display: block; }
  .post-grid { grid-template-columns: 1fr; }
}
