/* ============================================================
   Where to Buy UK SIM in Pakistan
   Editorial Brutalist — refined, distinctive, memorable
   ============================================================ */

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

/* --- Design Tokens --- */
:root {
  --black: #0d0d0d;
  --ink: #1a1a1a;
  --warm-white: #faf7f2;
  --paper: #f3efe8;
  --border: #e0dbd3;
  --border-light: #eae5de;
  --muted: #8a857e;
  --muted-light: #b5b0a8;
  --accent: #c7510a;
  --accent-glow: rgba(199, 81, 10, 0.08);
  --display: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  --body: 'Source Serif 4', 'Georgia', 'Times New Roman', serif;
  --mono: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
  --radius: 0px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--warm-white);
  font-weight: 380;
  overflow-x: hidden;
}

/* --- Texture Overlay --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

body.nav-locked { overflow: hidden; }

::selection { background: var(--black); color: var(--warm-white); }

/* --- Typography --- */
a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--muted-light), var(--muted-light));
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--transition), color var(--transition);
}

a:hover {
  background-size: 100% 2px;
  background-image: linear-gradient(var(--accent), var(--accent));
  color: var(--accent);
}

a:not([href*="uksimpakistan.store"]):not([href*="nofollow"]):hover::after {
  /* internal links get a subtle arrow */
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 450;
  line-height: 1.12;
  color: var(--black);
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(28px, 4.5vw, 48px);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h3 {
  font-size: clamp(20px, 2.8vw, 28px);
  letter-spacing: -0.01em;
}

h4 {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  position: relative;
}

.eyebrow::after {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--accent);
  margin-top: 10px;
}

.lede {
  font-size: clamp(18px, 2.4vw, 23px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 620px;
  font-weight: 350;
  font-style: italic;
}

.mono { font-family: var(--mono); font-size: 0.88em; }

/* --- Animations — Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.05s; }
.reveal-delay-2 { transition-delay: 0.12s; }
.reveal-delay-3 { transition-delay: 0.19s; }
.reveal-delay-4 { transition-delay: 0.26s; }
.reveal-delay-5 { transition-delay: 0.33s; }

/* --- Layout --- */
.container { width: min(1160px, 90vw); margin: 0 auto; }
.container-narrow { width: min(760px, 90vw); margin: 0 auto; }

.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }
.section-lg { padding: 140px 0; }

/* --- Decorative Section Dividers --- */
.section-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border) 20%, var(--border) 80%, transparent);
  margin: 0;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition), padding var(--transition);
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  transition: height 0.3s;
}

.site-header.scrolled .header-inner { height: 64px; }

.logo {
  font-family: var(--display);
  font-size: 23px;
  font-weight: 600;
  color: var(--black);
  text-decoration: none !important;
  letter-spacing: -0.015em;
  background-image: none !important;
  transition: font-size 0.3s;
}

.site-header.scrolled .logo { font-size: 20px; }

.logo span { font-style: italic; font-weight: 400; }

.logo:hover { color: var(--black); }

/* --- Navigation --- */
.nav-list {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-list a {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 450;
  color: var(--muted);
  text-decoration: none;
  background-image: none;
  letter-spacing: 0.02em;
  padding: 6px 0;
  position: relative;
  transition: color var(--transition);
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-list a:hover,
.nav-list a.active { color: var(--black); }

.nav-list a:hover::after,
.nav-list a.active::after { width: 100%; }

/* --- Mobile Toggle --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  margin: 0;
  border-radius: 1px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero --- */
.hero {
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1px solid var(--border);
  opacity: 0.5;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border) 30%, var(--border) 70%, transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 { margin-bottom: 24px; }

.hero .lede { margin-bottom: 36px; }

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--black);
  color: var(--warm-white);
  font-family: var(--body);
  font-size: 14px;
  font-weight: 550;
  letter-spacing: 0.03em;
  text-decoration: none !important;
  background-image: none !important;
  transition: background var(--transition), transform var(--transition);
  position: relative;
}

.hero-cta:hover {
  background: var(--accent);
  color: var(--warm-white);
  transform: translateY(-2px);
}

.hero-cta::after {
  content: '→';
  font-size: 17px;
  transition: transform var(--transition);
}

.hero-cta:hover::after { transform: translateX(5px); }

.hero-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid var(--border);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image:hover { transform: scale(1.01); }

/* --- Section Headers --- */
.section-header {
  margin-bottom: 56px;
  position: relative;
}

.section-header .eyebrow { margin-bottom: 10px; }

.section-header h2 { margin-bottom: 16px; }

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  border: 1px solid var(--border);
  background: var(--warm-white);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
}

.card:hover {
  border-color: var(--muted-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.3s;
}

.card:hover .card-image { opacity: 0.95; }

.card-body { padding: 26px 26px 0; }

.card-body h3 {
  margin-bottom: 8px;
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.25;
}

.card-body h3 a {
  text-decoration: none;
  background-image: linear-gradient(var(--muted-light), var(--muted-light));
  background-size: 0% 1px;
  transition: background-size 0.3s, color 0.3s;
}

.card-body h3 a:hover {
  background-size: 100% 1px;
  background-image: linear-gradient(var(--accent), var(--accent));
  color: var(--accent);
}

.card-body p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 350;
}

.card-meta {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 10px;
}

.card-footer {
  padding: 18px 26px;
  border-top: 1px solid var(--border);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 550;
}

.card-footer a {
  text-decoration: none;
  background-image: none;
  color: var(--black);
  transition: color var(--transition);
}

.card-footer a:hover { color: var(--accent); }

.card-footer a::after { content: ' →'; }

/* --- Top 5 Rankings --- */
.ranking-list {
  list-style: none;
  counter-reset: rank;
}

.ranking-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: start;
  padding: 36px 32px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
  position: relative;
}

.ranking-item:first-child {
  border-top: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
  background: var(--paper);
}

.ranking-item:hover {
  border-bottom-color: var(--muted-light);
}

.ranking-item:first-child:hover {
  background: #ede8df;
}

.ranking-num {
  font-family: var(--display);
  font-size: 52px;
  font-weight: 600;
  color: var(--border);
  line-height: 0.85;
  min-width: 64px;
  position: relative;
}

.ranking-item:first-child .ranking-num {
  color: var(--accent);
}

.ranking-info h3 {
  font-size: clamp(20px, 2.2vw, 24px);
  margin-bottom: 6px;
}

.ranking-info h3 a {
  text-decoration: none;
  background-image: none;
  color: var(--black);
}

.ranking-info h3 a:hover { color: var(--accent); }

.ranking-info p { color: var(--muted); font-size: 15px; line-height: 1.7; }

.ranking-score {
  font-family: var(--display);
  font-size: 28px;
  color: var(--muted-light);
  text-align: right;
  font-weight: 500;
  min-width: 80px;
}

.ranking-item:first-child .ranking-score { color: var(--black); font-weight: 600; }

.ranking-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--black);
  color: var(--warm-white);
  font-family: var(--body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.ranking-item:first-child .ranking-tag { background: var(--accent); }

/* --- Content Body --- */
.content-body { max-width: 700px; margin: 0 auto; }

.content-body h2 {
  margin: 56px 0 20px;
  padding-top: 52px;
  position: relative;
}

.content-body h2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--accent);
}

.content-body h3 { margin: 36px 0 16px; }

.content-body p {
  margin-bottom: 22px;
  color: var(--ink);
  line-height: 1.8;
  font-weight: 380;
}

.content-body ul, .content-body ol {
  margin: 0 0 28px 22px;
  color: var(--ink);
  line-height: 1.85;
}

.content-body li { margin-bottom: 10px; font-weight: 380; }

.content-body li::marker { color: var(--accent); }

.content-body strong { font-weight: 600; color: var(--black); }

.content-body em { font-style: italic; color: var(--muted); }

.content-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 20px 28px;
  margin: 36px 0;
  background: var(--paper);
  font-family: var(--display);
  font-size: 19px;
  font-style: italic;
  line-height: 1.7;
  color: var(--muted);
  position: relative;
}

.content-body blockquote::before {
  content: '"';
  position: absolute;
  top: -16px;
  left: 16px;
  font-family: var(--display);
  font-size: 72px;
  color: var(--border);
  line-height: 1;
  pointer-events: none;
}

.content-body .note {
  padding: 22px 28px;
  background: var(--paper);
  border: 1px solid var(--border);
  margin: 28px 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 370;
  font-style: italic;
}

.content-body .note strong {
  display: block;
  margin-bottom: 8px;
  font-style: normal;
}

/* --- Tables --- */
.table-wrap { overflow-x: auto; margin: 36px 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 600px;
  border: 1px solid var(--border);
}

thead th {
  text-align: left;
  padding: 15px 20px;
  background: var(--black);
  color: var(--warm-white);
  font-family: var(--body);
  font-weight: 550;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

thead th:first-child { border-right: 1px solid rgba(255,255,255,0.1); }

tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  color: var(--ink);
  font-weight: 370;
}

tbody tr:nth-child(even) td { background: var(--paper); }
tbody tr:hover td { background: var(--accent-glow); }

tbody td:first-child { font-weight: 550; color: var(--black); }

/* --- Summary Box --- */
.summary-box {
  padding: 36px;
  margin: 32px 0 40px;
  border: 1px solid var(--border);
  background: var(--paper);
  position: relative;
}

.summary-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
}

.summary-box strong {
  display: block;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--black);
}

.summary-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-style: italic;
}

/* --- Key Takeaways --- */
.takeaways {
  padding: 36px;
  margin: 44px 0;
  border: 1px solid var(--border);
  background: var(--warm-white);
  position: relative;
}

.takeaways::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: var(--black);
}

.takeaways strong {
  display: block;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 500;
  margin-bottom: 18px;
  color: var(--black);
}

.takeaways ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.takeaways li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--ink);
  line-height: 1.65;
  font-weight: 380;
}

.takeaways li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--accent);
  border-radius: 50%;
}

/* --- Category Pills --- */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.category-pill {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--border);
  background: var(--warm-white);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 450;
  color: var(--muted);
  text-decoration: none !important;
  background-image: none !important;
  transition: all var(--transition);
}

.category-pill:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--warm-white);
}

/* --- Breadcrumb --- */
.breadcrumb {
  font-family: var(--body);
  font-size: 13px;
  color: var(--muted-light);
  padding: 28px 0 0;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.breadcrumb li::after {
  content: '/';
  margin: 0 6px;
  color: var(--border);
}

.breadcrumb li:last-child::after { content: ''; }

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  background-image: none;
}

.breadcrumb a:hover { color: var(--accent); }

/* --- Article Header --- */
.article-header {
  padding: 64px 0 28px;
  margin-bottom: 40px;
  position: relative;
}

.article-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

.article-header .eyebrow { margin-bottom: 20px; }
.article-header .eyebrow::after { margin-top: 12px; }

.article-header h1 { margin-bottom: 20px; }

.article-meta {
  display: flex;
  gap: 28px;
  font-family: var(--body);
  font-size: 13px;
  color: var(--muted-light);
  letter-spacing: 0.03em;
  font-weight: 400;
}

/* --- Related Articles --- */
.related-section {
  padding: 68px 0 80px;
  border-top: 1px solid var(--border);
  margin-top: 68px;
}

.related-section h3 { margin-bottom: 28px; }

/* --- Newsletter --- */
.newsletter {
  padding: 88px 0;
  background: var(--black);
  color: var(--muted-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
}

.newsletter h2 {
  color: var(--warm-white);
  margin-bottom: 14px;
}

.newsletter p {
  color: var(--muted-light);
  margin-bottom: 28px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
  font-size: 16px;
}

.newsletter .eyebrow { color: var(--accent); }
.newsletter .eyebrow::after { background: var(--accent); }

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 16px 20px;
  border: 1px solid #333;
  background: #1a1a1a;
  color: var(--warm-white);
  font-family: var(--body);
  font-size: 15px;
  transition: border-color var(--transition);
}

.newsletter-form input::placeholder { color: #555; }
.newsletter-form input:focus { outline: none; border-color: var(--accent); }

.newsletter-form button {
  padding: 16px 28px;
  background: var(--accent);
  color: var(--warm-white);
  border: none;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background var(--transition), transform var(--transition);
}

.newsletter-form button:hover {
  background: #b34908;
  transform: translateY(-2px);
}

/* --- Footer --- */
.site-footer {
  padding: 80px 0 40px;
  background: var(--black);
  color: var(--muted);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 52px;
}

.footer-col h4 {
  color: var(--warm-white);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 22px;
}

.footer-col p { font-size: 14px; line-height: 1.8; font-weight: 370; }

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 9px; }

.footer-col a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  background-image: none;
  font-weight: 370;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid #222;
  font-size: 13px;
  color: #555;
  display: flex;
  justify-content: space-between;
  font-weight: 350;
}

.footer-logo {
  font-family: var(--display);
  font-size: 25px;
  color: var(--warm-white);
  margin-bottom: 18px;
  font-weight: 550;
}

.footer-logo span { font-style: italic; font-weight: 400; }

/* --- About Page --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--border);
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-form { display: grid; gap: 18px; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--border);
  background: var(--warm-white);
  font-family: var(--body);
  font-size: 15px;
  color: var(--black);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.contact-form textarea { min-height: 150px; resize: vertical; }

.contact-form button {
  padding: 16px 32px;
  background: var(--black);
  color: var(--warm-white);
  border: none;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background var(--transition), transform var(--transition);
  justify-self: start;
}

.contact-form button:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.contact-info { font-size: 15px; line-height: 1.85; }
.contact-info h3 { margin-bottom: 14px; }
.contact-info p { color: var(--muted); margin-bottom: 18px; font-weight: 370; }

/* --- FAQ Items --- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  transition: border-color var(--transition);
}

.faq-item:hover { border-bottom-color: var(--accent); }

.faq-item h3 { font-size: 20px; margin-bottom: 12px; }
.faq-item p { color: var(--muted); line-height: 1.75; font-weight: 370; }

/* --- Price Box --- */
.price-box {
  padding: 44px;
  background: var(--black);
  color: var(--warm-white);
  text-align: center;
  margin: 36px 0;
}

.price-box .price {
  font-family: var(--display);
  font-size: clamp(44px, 6vw, 68px);
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.price-box .price-label {
  font-family: var(--body);
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.06em;
  font-weight: 400;
}

/* --- 404 --- */
.not-found {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
}

.not-found h2 {
  font-size: clamp(72px, 14vw, 140px);
  margin-bottom: 12px;
  color: var(--black);
}

.not-found p { color: var(--muted); margin-bottom: 28px; font-style: italic; }

/* --- Pagination --- */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 52px;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  font-family: var(--body);
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  background-image: none;
  transition: all var(--transition);
}

.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--black); color: var(--warm-white); border-color: var(--black); }

/* --- Blog TOC --- */
.toc {
  padding: 28px 36px;
  border: 1px solid var(--border);
  margin-bottom: 44px;
  background: var(--paper);
}

.toc strong {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  margin-bottom: 14px;
}

.toc ol { margin: 0; padding-left: 22px; }
.toc li { margin-bottom: 8px; font-size: 15px; font-weight: 360; }
.toc a { text-decoration: none; color: var(--muted); background-image: none; }
.toc a:hover { color: var(--accent); }

/* --- Responsive --- */
@media (max-width: 960px) {
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(250, 247, 242, 0.98);
  }

  .hero-grid,
  .about-grid,
  .contact-grid,
  .footer-grid { grid-template-columns: 1fr; gap: 44px; }

  .card-grid { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }

  .section { padding: 64px 0; }
  .section-lg { padding: 80px 0; }

  .hero { padding: 48px 0; }
  .hero h1 { font-size: clamp(34px, 8vw, 52px); }

  .hero::before { display: none; }

  .ranking-item {
    grid-template-columns: auto 1fr;
    gap: 18px;
    padding: 26px 20px;
  }

  .ranking-score { display: none; }
  .ranking-num { font-size: 38px; min-width: 48px; }

  /* Mobile nav */
  .header-inner { flex-wrap: wrap; }
  .nav { width: 0; height: 0; overflow: visible; flex: 0 0 0; }
  .nav-toggle { display: flex; margin-left: auto; }

  .nav-list {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100dvh;
    background: rgba(250, 247, 242, 0.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 100;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .nav-list.nav-open { display: flex; }

  .nav-list a { font-size: 22px; font-family: var(--display); }

  .newsletter-form { flex-direction: column; }

  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 600px) {
  .card-grid-4 { grid-template-columns: 1fr; }
  .ranking-num { font-size: 30px; min-width: 40px; }
  .ranking-item { padding: 20px 16px; gap: 14px; }
  .ranking-info h3 { font-size: 18px; }

  .content-body { font-size: 16px; }
  .content-body h2 { font-size: 24px; margin-top: 40px; padding-top: 36px; }
  .content-body h2::before { width: 36px; }

  .summary-box,
  .takeaways { padding: 24px 20px; }

  .article-header { padding: 40px 0 20px; }
  .article-meta { flex-wrap: wrap; gap: 16px; }
}

/* --- Utility --- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }
.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }

/* --- Page Loader Overlay --- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--warm-white);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.page-loader.active {
  opacity: 1;
  visibility: visible;
}

.loader {
  width: fit-content;
  font-size: 40px;
  line-height: 1.5;
  font-family: var(--body), system-ui, sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  color: #0000;
  -webkit-text-stroke: 1px var(--ink);
  background:
    radial-gradient(1.13em at 50% 1.6em, var(--accent) 99%, #0000 101%) calc(50% - 1.6em) 0/3.2em 100% text,
    radial-gradient(1.13em at 50% -0.8em, #0000 99%, var(--accent) 101%) 50% .8em/3.2em 100% repeat-x  text;
  animation: l9 2s linear infinite;
}
.loader:before {
  content: "Loading";
}
@keyframes l9 {
  to {background-position: calc(50% + 1.6em) 0,calc(50% + 3.2em) .8em}
}

@media (max-width: 480px) {
  .loader { font-size: 28px; }
}

/* --- Testimonials --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 32px 0;
}
@media (min-width: 640px) {
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
}
.testimonial {
  background: var(--paper);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  margin: 0;
  font-style: italic;
  color: var(--ink);
  border-radius: 0 4px 4px 0;
}
.testimonial p {
  margin: 0 0 12px 0;
  line-height: 1.7;
}
.testimonial p:before { content: open-quote; }
.testimonial p:after { content: close-quote; }
.testimonial cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.9rem;
}

/* --- Print --- */
@media print {
  .site-header, .site-footer, .newsletter, body::before { display: none; }
  body { font-size: 14px; color: #000; background: #fff; }
  a { color: #000; }
}