/*
Theme Name: IndependentInfo Corporate Knowledge Theme
Theme URI: https://independentinfo.online/
Author: OpenAI
Author URI: https://openai.com/
Description: A professional WordPress theme for an independent UK telecom information website covering SIM guidance, eSIM, broadband, phone services, top ups, and new service topics.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: independentinfo
*/

:root {
  --bg: #0c1320;
  --bg-soft: #10192b;
  --surface: #121d31;
  --surface-2: #17253c;
  --surface-3: #1e2f4b;
  --paper: #f7f9fc;
  --line: rgba(170, 189, 214, 0.14);
  --line-strong: rgba(170, 189, 214, 0.26);
  --text: #eef4ff;
  --muted: #b2bfd4;
  --muted-2: #89a0c2;
  --primary: #8fd3ff;
  --primary-strong: #4cb2f0;
  --accent: #d8e7ff;
  --success: #74c69d;
  --danger: #ff8f8f;
  --shadow: 0 20px 60px rgba(3, 10, 22, 0.44);
  --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.22);
  --radius: 26px;
  --radius-sm: 18px;
  --radius-xs: 14px;
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(76,178,240,0.16), transparent 26%),
    radial-gradient(circle at top right, rgba(143,211,255,0.14), transparent 24%),
    linear-gradient(180deg, #0a1120 0%, #0d1524 48%, #10192c 100%);
  color: var(--text);
  line-height: 1.72;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: #dff3ff; }
img { max-width: 100%; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .8rem;
  color: #ffffff;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

p { margin: 0 0 1rem; }

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.notice-bar {
  background: linear-gradient(90deg, #0b1628 0%, #12203a 100%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.notice-bar .container {
  padding: .9rem 0;
  color: #dce8fb;
  font-size: .92rem;
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(8, 14, 25, 0.72);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  background: rgba(9, 16, 28, 0.92);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}
.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .95rem;
  color: #fff;
}
.brand:hover { color: #fff; }
.brand-accent {
  width: 16px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-strong) 100%);
  box-shadow: 0 10px 22px rgba(76,178,240,.28);
}
.brand-text { display: flex; flex-direction: column; }
.brand-text strong {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.06rem;
  letter-spacing: -.02em;
}
.brand-text small {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: .82rem .98rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .35rem;
}
.site-nav a {
  color: var(--muted);
  padding: .72rem .92rem;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 700;
  transition: background .22s ease, color .22s ease, transform .22s ease;
}
.site-nav a:hover,
.site-nav a.current {
  background: rgba(143, 211, 255, 0.10);
  color: #fff;
  transform: translateY(-1px);
}

.site-main section { position: relative; }
.section-spacing,
.page-hero,
.hero,
.masthead { padding: 4.5rem 0 0; }
.last-section { padding-bottom: 4.8rem; }

.masthead-grid,
.grid-2,
.grid-3,
.grid-4,
.contact-grid,
.hero-grid,
.framework-grid,
.trust-layout {
  display: grid;
  gap: 1.25rem;
}
.masthead-grid { grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr); align-items: stretch; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.contact-grid { grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); }
.framework-grid,
.trust-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); }

.masthead-copy,
.masthead-panel,
.hero-panel,
.side-panel,
.card,
.article,
.policy-card,
.contact-panel,
.table-wrap,
.cta-strip,
.framework-card,
.framework-side,
.insight-panel,
.closing-banner,
.directory-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.masthead-copy,
.masthead-panel,
.hero-panel,
.side-panel,
.article,
.policy-card,
.contact-panel,
.cta-strip,
.framework-card,
.framework-side,
.insight-panel,
.closing-banner {
  padding: 2rem;
}
.card,
.directory-card { padding: 1.6rem; }
.table-wrap { padding: 1rem; overflow: auto; }

.masthead-copy {
  min-height: 100%;
  background:
    linear-gradient(135deg, rgba(143,211,255,0.08), rgba(255,255,255,0.02)),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    var(--surface);
}
.masthead-panel,
.framework-side {
  background:
    radial-gradient(circle at top right, rgba(76,178,240,0.13), transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    var(--surface-2);
}
.page-hero .hero-panel,
.hero .hero-panel {
  background:
    linear-gradient(135deg, rgba(143,211,255,0.07), rgba(255,255,255,0.02)),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    var(--surface);
}

.eyebrow,
.kicker,
.panel-label,
.footer-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1rem;
  color: var(--primary);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow::before,
.kicker::before,
.panel-label::before,
.footer-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: .85;
}

h1 { font-size: clamp(2.7rem, 6vw, 4.8rem); max-width: 14ch; }
h2 { font-size: clamp(1.85rem, 3vw, 2.9rem); }
h3 { font-size: 1.15rem; }
.lead,
.masthead-lead {
  max-width: 65ch;
  font-size: 1.06rem;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 1.7rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .92rem 1.2rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 800;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary-strong), var(--primary));
  color: #08111e;
  box-shadow: 0 14px 28px rgba(76,178,240,.2);
}
.btn-primary:hover { color: #08111e; }
.btn-secondary {
  background: rgba(255,255,255,0.04);
  color: #fff;
  border: 1px solid var(--line-strong);
}
.btn-secondary:hover { color: #fff; background: rgba(255,255,255,0.08); }

.compliance-pill,
.disclaimer-box,
.muted-box,
.quote-box {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(143,211,255,0.16);
  background: rgba(143,211,255,0.07);
  color: #dbeafc;
}
.quote-box { font-weight: 600; }

.standards-list,
.list-clean,
.check-list,
.footer-links,
.insight-list,
.framework-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}
.standards-list li,
.check-list li,
.insight-list > div,
.framework-steps > div,
.list-clean li {
  position: relative;
}
.standards-list li {
  padding: 0 0 1rem 1.05rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.standards-list li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.standards-list li::before,
.check-list li::before,
.list-clean li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65rem;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--primary);
}
.standards-list strong,
.check-list li,
.list-clean li { display: block; color: #fff; }
.standards-list span,
.list-clean li,
.check-list li { color: var(--muted); }
.mini-links {
  display: grid;
  gap: .6rem;
  margin-top: 1.4rem;
}
.mini-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .88rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  color: #fff;
}
.mini-links a::after { content: "↗"; opacity: .72; }

.topic-band { padding-top: 1.35rem; }
.topic-band-inner {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .9rem;
}
.topic-band-inner span {
  padding: .95rem 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  color: #dce8fa;
  text-align: center;
  font-weight: 700;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 1.4rem;
}
.section-intro p:last-child { color: var(--muted); }

.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.directory-card {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  min-height: 100%;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.directory-card:hover,
.card:hover,
.article:hover,
.policy-card:hover,
.contact-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(143,211,255,0.24);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)), var(--surface-2);
}
.directory-card p,
.article p,
.card p,
.policy-card p,
.contact-panel p,
.cta-strip p,
.footer-intro p,
.footer-note p { color: var(--muted); }
.directory-card a {
  margin-top: auto;
  font-weight: 800;
  color: #fff;
}
.directory-card a::after { content: " →"; color: var(--primary); }

.framework-card,
.framework-side,
.insight-panel,
.closing-banner,
.cta-strip { min-height: 100%; }
.framework-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
  margin-top: 1.2rem;
}
.framework-steps > div {
  padding: 1.15rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.framework-steps span,
.card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  border-radius: 999px;
  background: rgba(143,211,255,0.1);
  color: var(--primary);
  font-size: .9rem;
  font-weight: 800;
  margin-bottom: .9rem;
}
.check-list li,
.list-clean li {
  padding-left: 1rem;
  margin-bottom: .72rem;
}
.insight-list {
  display: grid;
  gap: .9rem;
}
.insight-list > div {
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: .9rem;
  margin-top: 1.3rem;
}
.stat {
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.stat strong { display: block; margin-bottom: .35rem; color: #fff; }
.stat span { color: var(--muted); font-size: .94rem; }

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 1rem;
}
.badge {
  display: inline-flex;
  padding: .65rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: #dce8fb;
  font-size: .88rem;
  font-weight: 700;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.section-head p { max-width: 520px; color: var(--muted); }

.copy > *:last-child,
.directory-card > *:last-child,
.footer-intro > *:last-child,
.footer-note > *:last-child { margin-bottom: 0; }

.table-wrap table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
}
.table-wrap thead th {
  text-align: left;
  padding: 1rem;
  background: rgba(143,211,255,0.08);
  color: #fff;
  font-size: .9rem;
}
.table-wrap tbody td {
  padding: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.table-wrap tbody tr:hover td { background: rgba(255,255,255,0.02); }

label {
  display: block;
  margin: 0 0 .5rem;
  font-weight: 700;
  color: #fff;
}
input,
textarea {
  width: 100%;
  padding: .95rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.03);
  color: #fff;
  font: inherit;
  margin-bottom: 1rem;
}
textarea { min-height: 160px; resize: vertical; }
input::placeholder,
textarea::placeholder { color: #92a7c5; }
input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(143,211,255,0.42);
  box-shadow: 0 0 0 4px rgba(143,211,255,0.09);
}
.form-status {
  margin-bottom: 1rem;
  padding: .95rem 1rem;
  border-radius: 14px;
  font-weight: 700;
}
.form-status.success { background: rgba(116,198,157,.12); color: #d5f9e6; border: 1px solid rgba(116,198,157,.24); }
.form-status.error { background: rgba(255,143,143,.10); color: #ffe5e5; border: 1px solid rgba(255,143,143,.22); }

.site-footer {
  margin-top: 4.5rem;
  padding: 0 0 2rem;
}
.footer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, .8fr) minmax(0, 1fr);
  gap: 1.3rem;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)), #0e1727;
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
}
.footer-links {
  display: grid;
  gap: .55rem;
}
.footer-links li { list-style: none; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem .1rem 0;
  color: var(--muted-2);
  font-size: .9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .masthead-grid,
  .hero-grid,
  .framework-grid,
  .trust-layout,
  .contact-grid,
  .grid-3,
  .directory-grid,
  .footer-shell,
  .topic-band-inner,
  .framework-steps,
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
  .framework-steps { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .header-wrap { align-items: flex-start; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: .25rem;
    padding-top: .5rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; }

  .masthead-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .contact-grid,
  .hero-grid,
  .framework-grid,
  .trust-layout,
  .directory-grid,
  .topic-band-inner,
  .footer-shell,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .section-spacing,
  .page-hero,
  .hero,
  .masthead { padding-top: 3.8rem; }
  h1 { max-width: 100%; }
  .footer-bottom { flex-direction: column; }
}
