/* ═══════════════════════════════════════════
   CORNERSTONE DIGITAL — Shared Styles
   ═══════════════════════════════════════════ */

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

:root {
  --bg: #0A0A0B;
  --bg-elevated: #111113;
  --bg-card: #161619;
  --bg-card-hover: #1C1C20;
  --border: #2A2A30;
  --border-light: #1E1E24;
  --text: #EEEEF0;
  --text-secondary: #9494A0;
  --text-muted: #64646E;
  --accent: #C8A46E;
  --accent-dim: #A0844E;
  --accent-glow: rgba(200, 164, 110, 0.08);
  --accent-glow-strong: rgba(200, 164, 110, 0.15);
  --green: #4ADE80;
  --red: #F87171;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', -apple-system, sans-serif;
  --max-w: 1140px;
  --max-w-narrow: 760px;
  --radius: 12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--bg); }

a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.85; }

img { max-width: 100%; display: block; }

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

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}
nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: var(--sans); font-weight: 700; font-size: 18px;
  color: var(--text); letter-spacing: -0.3px;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 14px; color: var(--text-secondary); font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); opacity: 1; }
.nav-links a.active { color: var(--accent); }
.nav-cta {
  background: var(--accent) !important; color: var(--bg) !important;
  padding: 8px 20px; border-radius: 100px; font-weight: 600;
  font-size: 13px !important; letter-spacing: 0.2px;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(200,164,110,0.3); opacity: 1 !important; }
.mobile-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 8px; }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--bg); padding: 14px 28px;
  border-radius: 100px; font-weight: 600; font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.2px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(200,164,110,0.25); opacity: 1; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text-secondary);
  padding: 14px 28px; border-radius: 100px;
  border: 1px solid var(--border); font-weight: 500; font-size: 15px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--text-muted); color: var(--text); opacity: 1; }

/* ─── PAGE HEADER ─── */
.page-header {
  padding: 140px 0 80px;
  position: relative;
}
.page-header::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.page-header .section-label { margin-bottom: 16px; }
.page-header h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1; letter-spacing: -1px;
  margin-bottom: 20px; max-width: 700px;
}
.page-header h1 em { font-style: italic; color: var(--accent); }
.page-header .page-sub {
  font-size: 18px; color: var(--text-secondary); max-width: 560px;
  line-height: 1.7; margin-bottom: 36px;
}

/* ─── SECTIONS ─── */
section { padding: 100px 0; }
.section-label {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--accent); margin-bottom: 16px;
}
.section-title {
  font-family: var(--serif); font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12; letter-spacing: -0.8px; margin-bottom: 20px;
}
.section-sub {
  font-size: 17px; color: var(--text-secondary); max-width: 560px;
  line-height: 1.7;
}
.section-elevated {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

/* ─── CARDS ─── */
.card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 32px;
  transition: border-color 0.3s, background 0.3s;
}
.card:hover { border-color: var(--accent-dim); background: var(--bg-card-hover); }
.card-icon { font-size: 24px; margin-bottom: 16px; }
.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ─── GRIDS ─── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ─── PROSE (for blog posts) ─── */
.prose { max-width: var(--max-w-narrow); margin: 0 auto; }
.prose h2 {
  font-family: var(--serif); font-size: 28px; margin: 48px 0 16px;
  letter-spacing: -0.3px; line-height: 1.2;
}
.prose h3 {
  font-size: 20px; font-weight: 600; margin: 36px 0 12px;
}
.prose p {
  color: var(--text-secondary); line-height: 1.8; margin-bottom: 20px;
  font-size: 16px;
}
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol {
  color: var(--text-secondary); margin: 16px 0 24px 24px;
  line-height: 1.8;
}
.prose li { margin-bottom: 8px; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px; margin: 32px 0;
  background: var(--accent-glow);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose blockquote p { color: var(--text); margin: 0; font-style: italic; }
.prose .highlight-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 28px; margin: 32px 0;
}
.prose .highlight-box h4 {
  color: var(--accent); font-size: 14px; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 8px;
}
.prose table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  font-size: 14px;
}
.prose th {
  background: var(--bg-card); color: var(--text); font-weight: 600;
  text-align: left; padding: 12px 16px;
  border-bottom: 2px solid var(--accent-dim);
}
.prose td {
  padding: 12px 16px; color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}
.prose tr:hover td { background: var(--accent-glow); }

/* ─── PRICING CARDS ─── */
.price-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 36px 28px;
  position: relative; transition: border-color 0.3s;
}
.price-card:hover { border-color: var(--border); }
.price-card.featured {
  border-color: var(--accent-dim);
  background: linear-gradient(180deg, var(--accent-glow) 0%, var(--bg-card) 40%);
}
.price-badge {
  position: absolute; top: -12px; left: 28px;
  background: var(--accent); color: var(--bg);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; padding: 4px 12px; border-radius: 100px;
}
.price-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.price-amount {
  font-family: var(--serif); font-size: 32px; color: var(--text); margin-bottom: 4px;
}
.price-timeline { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.price-desc {
  font-size: 14px; color: var(--text-secondary); line-height: 1.6;
  margin-bottom: 24px; padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}
.price-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.price-features li {
  font-size: 14px; color: var(--text-secondary);
  display: flex; align-items: flex-start; gap: 10px;
}
.price-features li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.price-btn {
  display: block; text-align: center; padding: 12px;
  border-radius: 100px; font-weight: 600; font-size: 14px;
  transition: transform 0.2s; border: 1px solid var(--border); color: var(--text);
}
.price-btn:hover { transform: translateY(-1px); opacity: 1; }
.price-card.featured .price-btn {
  background: var(--accent); color: var(--bg); border-color: var(--accent);
}

/* ─── PROCESS STEPS ─── */
.step-num {
  font-family: var(--serif); font-size: 48px; color: var(--accent);
  opacity: 0.3; line-height: 1; margin-bottom: 16px;
}
.step h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.step-time {
  display: inline-block; margin-top: 12px;
  font-size: 12px; color: var(--accent-dim); font-weight: 600;
  background: var(--accent-glow); padding: 4px 10px; border-radius: 100px;
}

/* ─── BLOG CARDS ─── */
.blog-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 28px;
  transition: border-color 0.3s, transform 0.2s;
  display: flex; flex-direction: column;
}
.blog-card:hover { border-color: var(--accent-dim); transform: translateY(-2px); }
.blog-card .tag {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; color: var(--accent); margin-bottom: 12px;
}
.blog-card h3 {
  font-size: 18px; font-weight: 600; margin-bottom: 8px;
  line-height: 1.3; color: var(--text);
}
.blog-card h3 a { color: var(--text); }
.blog-card h3 a:hover { color: var(--accent); opacity: 1; }
.blog-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; flex: 1; }
.blog-card .meta {
  font-size: 12px; color: var(--text-muted); margin-top: 16px;
  padding-top: 16px; border-top: 1px solid var(--border-light);
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
  font-size: 13px; color: var(--text-muted); margin-bottom: 24px;
  padding-top: 88px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 8px; }

/* ─── CTA SECTION ─── */
.cta { text-align: center; padding: 120px 0; }
.cta h2 {
  font-family: var(--serif); font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1; letter-spacing: -1px; margin-bottom: 16px;
}
.cta h2 em { font-style: italic; color: var(--accent); }
.cta p {
  font-size: 17px; color: var(--text-secondary); max-width: 480px;
  margin: 0 auto 36px; line-height: 1.7;
}
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border-light);
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 40px;
}
.footer-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-top: 8px; }
.footer-col h4 {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text); margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 14px; color: var(--text-muted);
  margin-bottom: 10px; transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); opacity: 1; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border-light);
  font-size: 13px; color: var(--text-muted);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; } 50% { opacity: 0.4; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 24px; gap: 16px;
  }
  .mobile-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .page-header { padding: 120px 0 60px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
