/* ── Pen Forge Collective · style.css ── */

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

/* ── Variables ── */
:root {
  --gold:       #c9a227;
  --gold-light: #e8c84a;
  --navy:       #080d18;
  --navy-mid:   #0c1220;
  --navy-card:  #111827;
  --navy-border:#1e2d45;
  --white:      #ffffff;
  --gray:       #9ca3af;
  --gray-light: #d1d5db;
  --serif:      'Playfair Display', Georgia, serif;
  --sans:       'DM Sans', system-ui, sans-serif;
  --max:        780px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════
   HEADER
═══════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 13, 24, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--navy-border);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.header-name {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-light);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.07); }
.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 6px;
}
.nav-cta:hover { background: var(--gold-light); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-light);
  border-radius: 2px;
  transition: background 0.2s;
}

/* ═══════════════════════════════════
   HERO
═══════════════════════════════════ */
.hero {
  position: relative;
  background-image: url('assets/header-bg.png');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 72px 24px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,13,24,0.55) 0%,
    rgba(8,13,24,0.45) 50%,
    rgba(8,13,24,0.75) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.hero-logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 48px rgba(201,162,39,0.45);
  border: 2px solid rgba(201,162,39,0.3);
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 400;
  font-style: italic;
  color: var(--gold-light);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}

/* ═══════════════════════════════════
   LINKS SECTION
═══════════════════════════════════ */
.links-section {
  padding: 56px 0;
  background: var(--navy-mid);
}
.links-section .container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 10px;
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
  cursor: pointer;
}
.link-card:hover {
  border-color: var(--gold);
  background: #151e32;
  transform: translateY(-2px);
}
.link-card-featured {
  border-color: rgba(201,162,39,0.4);
  background: linear-gradient(135deg, #111827 0%, #0f1a2e 100%);
}
.link-card-featured:hover { border-color: var(--gold-light); }
.link-card-inner { display: flex; flex-direction: column; gap: 3px; }
.link-card-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}
.link-card-featured .link-card-title { color: var(--gold-light); font-size: 1.15rem; }
.link-card-desc {
  font-size: 0.875rem;
  color: var(--gray);
  font-weight: 300;
}
.link-arrow {
  font-size: 1.25rem;
  color: var(--gold);
  opacity: 0.7;
  flex-shrink: 0;
  transition: transform 0.2s, opacity 0.2s;
}
.link-card:hover .link-arrow { transform: translateX(4px); opacity: 1; }

/* ═══════════════════════════════════
   CREDIBILITY SECTION
═══════════════════════════════════ */
.credibility-section {
  padding: 64px 0;
  background: var(--navy);
  border-top: 1px solid var(--navy-border);
}
.section-heading {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 0.01em;
}
.section-heading::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 12px auto 0;
  border-radius: 2px;
}
.cred-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cred-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cred-img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  object-position: left center;
}
.cred-logo-wrap {
  padding: 28px 28px 0;
  display: flex;
  align-items: center;
}
.cred-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--navy-border);
}
.cred-logo-wide {
  width: auto;
  height: 48px;
  border-radius: 0;
  border: none;
  filter: brightness(0) invert(0.85);
}
.cred-content {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cred-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}
.cred-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cred-list li {
  padding-left: 20px;
  position: relative;
  font-size: 0.9rem;
  color: var(--gray-light);
  line-height: 1.6;
}
.cred-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.5rem;
  top: 6px;
}
.cred-list em {
  color: var(--gold);
  font-style: italic;
}
.cred-btn {
  display: inline-block;
  padding: 10px 22px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 6px;
  align-self: flex-start;
  transition: background 0.2s;
}
.cred-btn:hover { background: var(--gold-light); }
.cred-btn-outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}
.cred-btn-outline:hover { background: var(--gold); color: var(--navy); }

/* Library block icon */
.cred-icon-wrap {
  padding: 28px 28px 0;
}
.cred-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-border), #1e2d45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

/* ═══════════════════════════════════
   CONTACT LINE
═══════════════════════════════════ */
.contact-line {
  padding: 40px 0;
  background: var(--navy-mid);
  border-top: 1px solid var(--navy-border);
  text-align: center;
}
.contact-line p {
  font-size: 1rem;
  color: var(--gray-light);
  font-weight: 500;
}
.contact-line a {
  color: var(--gold);
  border-bottom: 1px solid rgba(201,162,39,0.4);
  transition: border-color 0.2s;
}
.contact-line a:hover { border-color: var(--gold); }

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
.site-footer {
  background: var(--navy);
  border-top: 1px solid var(--navy-border);
  padding: 40px 0 24px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--navy-border);
  margin-bottom: 20px;
}
.footer-info p {
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 2;
}
.footer-info a { color: var(--gold); }
.footer-info a:hover { text-decoration: underline; }
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.footer-legal a {
  font-size: 0.8rem;
  color: var(--gray);
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--gold); }
.footer-copy {
  text-align: center;
}
.footer-copy p {
  font-size: 0.75rem;
  color: rgba(156,163,175,0.5);
}

/* ═══════════════════════════════════
   LEGAL PAGE
═══════════════════════════════════ */
.legal-header {
  background: var(--navy-mid);
  border-bottom: 1px solid var(--navy-border);
  padding: 20px 24px;
}
.legal-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.legal-header .header-logo { width: 32px; height: 32px; }
.legal-header .header-name { font-size: 13px; }
.legal-body {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.legal-section { margin-bottom: 56px; }
.legal-section h1 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 8px;
}
.legal-section h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  margin: 28px 0 10px;
}
.legal-section p {
  font-size: 0.9rem;
  color: var(--gray-light);
  margin-bottom: 14px;
  line-height: 1.8;
}
.legal-section ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 14px;
}
.legal-section ul li {
  font-size: 0.9rem;
  color: var(--gray-light);
  margin-bottom: 6px;
  line-height: 1.7;
}
.legal-section a { color: var(--gold); }
.legal-section a:hover { text-decoration: underline; }
.legal-divider {
  border: none;
  border-top: 1px solid var(--navy-border);
  margin: 48px 0;
}
.legal-meta {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 6px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--gold);
  margin-bottom: 40px;
  transition: gap 0.2s;
}
.back-link:hover { gap: 10px; }

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--navy);
    border-bottom: 1px solid var(--navy-border);
    padding: 12px 16px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 10px 12px; font-size: 14px; }
  .nav-cta { text-align: center; margin-top: 4px; }
  .header-name { display: none; }
  .hero { min-height: 320px; padding: 56px 20px; }
  .hero-logo { width: 80px; height: 80px; }
  .footer-inner { flex-direction: column; }
  .footer-legal { align-items: flex-start; }
  .cred-content { padding: 20px; }
  .cred-logo-wrap { padding: 20px 20px 0; }
  .cred-icon-wrap { padding: 20px 20px 0; }
}
