/* ═══════════════════════════════════════════
   PROVO.COM — Design System
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,700;0,800;0,900;1,700&display=swap');

/* ─── Variables ─── */
:root {
  --navy: #0B1D3A;
  --slate: #1E2D4A;
  --sky: #4A90D9;
  --accent: #E8913A;
  --warm: #D4722A;
  --cream: #F7F3EE;
  --sand: #EDE6DA;
  --stone: #C4B9A8;
  --text: #2C2C2C;
  --muted: #6B7280;
  --white: #FFFFFF;
  --forest: #2D6A4F;
  --snow: #E8ECF1;
  --light: #F9FAFB;
  --border: #E5E7EB;

  --font-display: 'Playfair Display', serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-ui: 'DM Sans', sans-serif;

  --max-width: 1200px;
  --content-width: 800px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--warm); }

/* ─── Animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.animate-fade-up { animation: fadeUp 0.8s ease both; }
.animate-fade-in { animation: fadeIn 0.6s ease both; }

/* ─── Navigation ─── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 0 40px; height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(11,29,58,0.85);
  backdrop-filter: blur(20px);
  transition: all 0.4s ease;
}
.site-nav.scrolled {
  background: rgba(11,29,58,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.site-logo {
  display: flex; align-items: center; gap: 6px;
  text-decoration: none;
}
.site-logo-text {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 900;
  color: white; letter-spacing: -1px;
}
.site-logo-dot {
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 600;
  color: var(--accent); letter-spacing: 1px;
  margin-top: 8px;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-link {
  font-family: var(--font-ui);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-decoration: none; padding: 6px 0;
  position: relative; transition: color 0.3s;
}
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-link::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--accent); transition: width 0.3s;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Mobile nav toggle */
.nav-toggle {
  display: none; background: none;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px; color: white;
  padding: 6px 14px; cursor: pointer;
  font-family: var(--font-ui);
  font-size: 12px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
}

/* ─── Hero Sections ─── */
.hero {
  position: relative; min-height: 85vh;
  display: flex; align-items: center;
  overflow: hidden; background: var(--navy);
}
.hero-page {
  min-height: 50vh; align-items: flex-end;
  padding: 80px 40px 60px;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(11,29,58,0.75) 0%, rgba(11,29,58,0.40) 50%, rgba(11,29,58,0.65) 100%);
  z-index: 1;
}
.hero-vignette {
  position: absolute; bottom: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(to top, rgba(11,29,58,0.85), transparent);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: var(--max-width); width: 100%;
  margin: 0 auto; padding: 0 40px;
}
.hero-tag {
  font-family: var(--font-ui);
  font-size: 12px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
  display: inline-block; padding: 4px 12px;
  border: 1px solid rgba(232,145,58,0.4);
  border-radius: 2px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800; color: white;
  line-height: 1.05; margin-bottom: 20px;
}
.hero-subtitle {
  font-family: var(--font-ui);
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.7);
  font-weight: 400; max-width: 550px; line-height: 1.6;
}

/* Search Bar */
.search-bar {
  margin-top: 32px; display: flex;
  max-width: 520px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px; overflow: hidden;
  backdrop-filter: blur(10px); transition: all 0.3s;
}
.search-bar:focus-within {
  background: rgba(255,255,255,0.18);
  border-color: rgba(232,145,58,0.5);
  box-shadow: 0 0 30px rgba(232,145,58,0.15);
}
.search-bar input {
  flex: 1; padding: 16px 20px;
  background: transparent; border: none;
  color: white; font-family: var(--font-ui);
  font-size: 15px; outline: none;
}
.search-bar input::placeholder { color: rgba(255,255,255,0.5); }
.search-bar button {
  padding: 16px 24px; background: var(--accent);
  border: none; color: white;
  font-family: var(--font-ui); font-weight: 600;
  font-size: 14px; cursor: pointer;
  transition: background 0.3s; letter-spacing: 0.5px;
}
.search-bar button:hover { background: var(--warm); }

/* ─── Sections ─── */
.section {
  padding: 80px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-full {
  padding: 80px 40px;
}
.section-label {
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800; color: var(--navy);
  margin-bottom: 12px; line-height: 1.15;
}
.section-desc {
  font-family: var(--font-ui);
  color: var(--muted); font-size: 16px;
  max-width: 550px; line-height: 1.6;
  margin-bottom: 40px;
}

/* ─── Breadcrumb ─── */
.breadcrumb {
  font-family: var(--font-ui);
  font-size: 13px; color: rgba(255,255,255,0.5);
  margin-bottom: 16px; display: flex;
  align-items: center; gap: 8px;
}
.breadcrumb a { color: rgba(255,255,255,0.5); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .current { color: rgba(255,255,255,0.8); }

/* ─── Cards ─── */
.card {
  background: white; border-radius: 14px;
  overflow: hidden; cursor: pointer;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.card-img {
  height: 200px; position: relative;
  overflow: hidden; background: var(--slate);
}
.card-body { padding: 24px; }
.card-category {
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 8px; display: inline-block;
  color: var(--accent);
}
.card-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  color: var(--navy); margin-bottom: 8px;
  line-height: 1.3;
}
.card-title a { color: var(--navy); text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-desc {
  font-family: var(--font-ui);
  color: var(--muted); font-size: 14px;
  line-height: 1.5; margin-bottom: 14px;
}
.card-meta {
  font-family: var(--font-ui);
  font-size: 12px; color: var(--stone); font-weight: 500;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.card-grid-2 { grid-template-columns: 1fr 1fr; gap: 24px; }
.card-grid-3 { grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ─── Article Content ─── */
.article-content {
  max-width: var(--content-width);
  margin: 0 auto; padding: 60px 40px;
}
.article-content h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800; color: var(--navy);
  line-height: 1.1; margin-bottom: 20px;
}
.article-content h2 {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700;
  color: var(--navy); margin: 48px 0 16px;
  line-height: 1.2;
}
.article-content h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  color: var(--navy); margin: 32px 0 12px;
}
.article-content p {
  font-size: 17px; line-height: 1.8;
  color: var(--text); margin-bottom: 20px;
}
.article-content ul, .article-content ol {
  margin: 16px 0 24px 24px;
  font-size: 17px; line-height: 1.8;
}
.article-content li { margin-bottom: 8px; }
.article-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 24px; margin: 24px 0;
  background: rgba(232,145,58,0.05);
  border-radius: 0 8px 8px 0;
  font-style: italic; color: var(--slate);
}
.article-content table {
  width: 100%; border-collapse: collapse;
  margin: 24px 0; font-family: var(--font-ui);
  font-size: 14px;
}
.article-content th {
  background: var(--navy); color: white;
  padding: 12px 16px; text-align: left;
  font-weight: 700; font-size: 12px;
  letter-spacing: 1px; text-transform: uppercase;
}
.article-content td {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.article-content tr:hover td { background: rgba(232,145,58,0.03); }
.article-content hr {
  border: none; height: 1px;
  background: var(--border); margin: 40px 0;
}
.article-content a { color: var(--accent); font-weight: 500; }
.article-content a:hover { color: var(--warm); text-decoration: underline; }

/* Article Meta */
.article-meta {
  font-family: var(--font-ui);
  font-size: 13px; color: var(--muted);
  margin-bottom: 32px; display: flex;
  align-items: center; gap: 16px; flex-wrap: wrap;
}
.article-meta .category {
  color: var(--accent); font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  font-size: 11px;
}

/* ─── Buttons ─── */
.btn {
  font-family: var(--font-ui);
  font-size: 14px; font-weight: 600;
  padding: 14px 32px; border-radius: 8px;
  border: none; cursor: pointer;
  transition: all 0.3s; letter-spacing: 0.3px;
  display: inline-block; text-decoration: none;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--warm); color: white; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: white; }

/* ─── Ad Banners ─── */
.ad-banner {
  background: linear-gradient(135deg, rgba(232,145,58,0.08), rgba(232,145,58,0.03));
  border: 1px dashed rgba(232,145,58,0.3);
  border-radius: 12px; padding: 20px;
  text-align: center; font-family: var(--font-ui);
  color: #9CA3AF; font-size: 12px;
  letter-spacing: 1px; text-transform: uppercase;
  max-width: var(--max-width); margin: 0 auto;
}

/* ─── Newsletter CTA ─── */
.newsletter {
  background: linear-gradient(135deg, var(--navy), var(--slate));
  border-radius: 20px; padding: 60px;
  text-align: center; position: relative; overflow: hidden;
}
.newsletter::before {
  content: ''; position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(232,145,58,0.08);
}
.newsletter-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800; color: white; margin-bottom: 12px;
}
.newsletter-desc {
  font-family: var(--font-ui);
  font-size: 15px; color: rgba(255,255,255,0.55);
  max-width: 460px; margin: 0 auto 28px; line-height: 1.7;
}
.newsletter-form {
  display: flex; gap: 8px;
  max-width: 420px; margin: 0 auto;
}
.newsletter-form input {
  flex: 1; padding: 14px 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px; color: white;
  font-family: var(--font-ui); font-size: 14px;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.3); }

/* ─── Footer ─── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 60px 40px 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px; max-width: var(--max-width); margin: 0 auto;
}
.footer-heading {
  font-family: var(--font-ui);
  font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 16px;
}
.footer-link {
  font-family: var(--font-ui);
  font-size: 14px; color: rgba(255,255,255,0.6);
  display: block; margin-bottom: 10px;
  transition: color 0.3s;
}
.footer-link:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--max-width); margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-ui); font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ─── Utility ─── */
.bg-white { background: var(--white); }
.bg-cream { background: var(--cream); }
.bg-snow { background: var(--snow); }
.bg-light { background: var(--light); }
.text-center { text-align: center; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .card-grid-4 { grid-template-columns: 1fr 1fr; }
  .card-grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero { min-height: 70vh; }
  .hero-content { padding: 0 20px; }
  .section, .section-full { padding: 50px 20px; }
  .article-content { padding: 40px 20px; }
  .card-grid, .card-grid-2, .card-grid-3, .card-grid-4 {
    grid-template-columns: 1fr;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter { padding: 40px 24px; }
  .site-nav { padding: 0 20px; }
}
