/* ═══════════════════════════════════════════════════════════════
   Griffin Ambitions Ltd — Shared Stylesheet
   griffinlink.com
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,600;9..144,700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --primary-mid: #2563eb;
  --secondary: #65a30d;
  --secondary-dark: #4d7c0f;
  --secondary-light: #ecfccb;
  --accent: #0ea5e9;
  --text-dark: #0f172a;
  --text-mid: #334155;
  --text-light: #64748b;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --crisis-red: #dc2626;
  --crisis-dark: #991b1b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.65;
}

/* ─── ACCESSIBILITY ─── */
.skip-link {
  position: absolute; top: -50px; left: 16px;
  background: var(--primary); color: white;
  padding: 10px 20px; border-radius: 0 0 8px 8px;
  z-index: 9999; font-weight: 600; text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ─── CRISIS BANNER ─── */
.crisis-banner {
  background: linear-gradient(90deg, var(--crisis-dark) 0%, var(--crisis-red) 100%);
  color: white; padding: 10px 24px; text-align: center; font-size: 0.875rem;
}
.crisis-banner a { color: white; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ─── HEADER ─── */
header {
  background: rgba(255,255,255,0.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 200;
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  height: 72px; display: flex; align-items: center; justify-content: space-between;
}
.logo-block { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 60%, var(--secondary) 100%);
  display: flex; align-items: center; justify-content: center;
  color: white; font-family: 'Fraunces', serif; font-size: 1.15rem; font-weight: 700; flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-family: 'Fraunces', serif; font-size: 1.05rem; font-weight: 600; color: var(--primary-dark); line-height: 1.2; letter-spacing: -0.01em; }
.logo-tagline { font-size: 0.62rem; color: var(--secondary); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

nav { display: flex; align-items: center; gap: 8px; }
nav a { color: var(--text-mid); text-decoration: none; font-weight: 500; font-size: 0.9rem; padding: 8px 14px; border-radius: 8px; transition: background 0.15s, color 0.15s; }
nav a:hover { background: #f1f5f9; color: var(--primary); }
nav a.active, nav a[aria-current="page"] { color: var(--primary); background: #eff6ff; }
.nav-cta { background: var(--primary) !important; color: white !important; padding: 10px 20px !important; border-radius: 10px !important; font-weight: 600 !important; font-size: 0.875rem !important; transition: background 0.15s !important; }
.nav-cta:hover { background: var(--primary-dark) !important; }

/* ─── PAGE HERO ─── */
.page-hero {
  background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 50%, #1a56a5 100%);
  color: white; padding: 72px 32px 96px; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 15% 85%, rgba(101,163,13,0.2) 0%, transparent 45%), radial-gradient(circle at 85% 15%, rgba(14,165,233,0.15) 0%, transparent 45%);
  pointer-events: none;
}
.page-hero::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 56px; background: var(--bg-page); clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.page-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.95); padding: 6px 16px; border-radius: 100px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em; margin-bottom: 24px;
}
.page-hero h1 {
  font-family: 'Fraunces', serif; font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 16px;
}
.page-hero p { font-size: 1.1rem; color: rgba(255,255,255,0.82); line-height: 1.7; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; font-weight: 600;
  font-size: 0.9rem; text-decoration: none; transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(29,78,216,0.25); }
.btn-green { background: var(--secondary); color: white; }
.btn-green:hover { background: var(--secondary-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-white { background: white; color: var(--primary-dark); }
.btn-white:hover { background: #f0f9ff; }
.btn-lime { background: #a3e635; color: #1a2e05; }
.btn-lime:hover { background: #bef264; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }

/* ─── SECTION SHARED ─── */
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--secondary); margin-bottom: 12px;
}
.section-tag::before { content: ''; width: 20px; height: 2px; background: var(--secondary); display: block; }
h2.section-title {
  font-family: 'Fraunces', serif; font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700; color: var(--text-dark); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 14px;
}
.section-lead { font-size: 1.05rem; color: var(--text-light); max-width: 640px; line-height: 1.75; }
.section-head { margin-bottom: 52px; }
.section-head.centered { text-align: center; }
.section-head.centered .section-tag { justify-content: center; }
.section-head.centered .section-lead { margin: 0 auto; }

/* ─── PROSE PAGES (privacy, terms, cookies, accessibility) ─── */
.prose-page { max-width: 800px; margin: 0 auto; padding: 60px 32px 80px; }
.prose-page h1 { font-family: 'Fraunces', serif; font-size: 2.4rem; color: var(--primary-dark); margin-bottom: 8px; letter-spacing: -0.02em; }
.prose-page .meta { font-size: 0.875rem; color: var(--text-light); margin-bottom: 48px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.prose-page h2 { font-family: 'Fraunces', serif; font-size: 1.5rem; color: var(--primary-dark); margin: 44px 0 16px; letter-spacing: -0.01em; }
.prose-page h3 { font-size: 1.1rem; font-weight: 600; color: var(--text-dark); margin: 28px 0 12px; }
.prose-page p { color: var(--text-light); margin-bottom: 16px; font-size: 0.97rem; line-height: 1.8; }
.prose-page ul { margin: 12px 0 20px 20px; color: var(--text-light); }
.prose-page li { margin-bottom: 8px; font-size: 0.97rem; line-height: 1.7; }
.prose-page strong { color: var(--text-dark); font-weight: 600; }
.prose-page a { color: var(--primary); }
.prose-page a:hover { text-decoration: underline; }
.prose-contact-box {
  background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 16px; padding: 32px; margin-top: 48px;
}
.prose-contact-box h3 { font-family: 'Fraunces', serif; font-size: 1.2rem; color: var(--primary-dark); margin-bottom: 16px; }
.prose-table { width: 100%; border-collapse: collapse; margin: 20px 0; background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.prose-table th { background: var(--primary); color: white; padding: 12px 16px; text-align: left; font-weight: 600; font-size: 0.875rem; }
.prose-table td { padding: 11px 16px; border-bottom: 1px solid var(--border); color: var(--text-light); font-size: 0.875rem; }
.prose-table tr:last-child td { border-bottom: none; }

/* ─── FOOTER ─── */
footer { background: var(--text-dark); color: rgba(255,255,255,0.65); padding: 64px 32px 32px; }
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand .fn { font-family: 'Fraunces', serif; font-size: 1.2rem; color: white; font-weight: 600; margin-bottom: 4px; }
.footer-brand .ft { font-size: 0.7rem; color: #84cc16; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: 16px; }
.footer-brand p { font-size: 0.875rem; line-height: 1.75; max-width: 280px; }
.footer-brand .ein { margin-top: 20px; font-size: 0.78rem; opacity: 0.5; }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: #84cc16; margin-bottom: 18px; }
.footer-col a { display: block; color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.875rem; margin-bottom: 10px; transition: color 0.15s; }
.footer-col a:hover { color: white; }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: 0.8rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; margin: 0 8px; }
.footer-bottom a:hover { color: white; }

/* ─── BACK TO TOP ─── */
#backToTop {
  position: fixed; bottom: 32px; right: 32px;
  width: 46px; height: 46px; background: var(--primary); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 1.25rem; box-shadow: 0 4px 18px rgba(0,0,0,0.2);
  opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.2s;
}
#backToTop.visible { opacity: 1; pointer-events: all; }
#backToTop:hover { transform: translateY(-3px); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  nav a:not(.nav-cta) { display: none; }
  .page-hero { padding: 56px 20px 80px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 0 16px; }
}
