/*
Theme Name: ICTERP
Theme URI: https://icterp.com
Author: ICT Innovations
Author URI: https://ictinnovations.com
Description: The icterp.com marketing site. Light, fast, no page builder.
Version: 1.2.0
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: icterp
*/

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --blue: #1d4ed8;
  --blue-dark: #1e3a8a;
  --blue-soft: #eff4ff;
  --navy: #0b1530;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f6f8fc;
  --green: #059669;
  --amber: #b45309;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 32px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 30px 60px -20px rgba(11, 21, 48, .35);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; background: #fff; padding: 8px 14px; z-index: 100; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand .logo-svg { height: 40px; width: auto; display: block; }
.site-footer .brand .logo-svg { height: 36px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-size: 9.5px; line-height: 1.05; font-weight: 800; text-align: center; letter-spacing: .02em;
}
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 8px 14px; border-radius: 8px; color: var(--ink); font-weight: 550; font-size: .97rem; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a, .main-nav .current-page-ancestor > a { background: var(--blue-soft); color: var(--blue); text-decoration: none; }
.header-cta { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 13px 22px; border-radius: 10px; font-weight: 650; font-size: 1rem; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(29, 78, 216, .7); }
.btn-primary:hover { background: #1a44c0; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light { background: #fff; color: var(--blue-dark); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-sm { padding: 9px 16px; font-size: .93rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { font-size: 1.1rem; color: var(--muted); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #cbd5e1;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(59, 130, 246, .35), transparent 60%),
              radial-gradient(900px 500px at -10% 110%, rgba(29, 78, 216, .35), transparent 60%), var(--navy);
  padding: 96px 0 0;
}
.hero h1 { color: #fff; max-width: 860px; }
.hero .lead { font-size: 1.22rem; max-width: 680px; color: #cbd5e1; margin-bottom: 32px; }
.hero .eyebrow { color: #93c5fd; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 28px 0 0; font-size: .95rem; color: #a5b4fc; }
.hero-points li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #60a5fa; margin-right: 9px; vertical-align: middle; }
.hero-shot { margin-top: 64px; position: relative; }
.page-hero { background: var(--navy); color: #cbd5e1; padding: 80px 0 72px; }
.page-hero h1 { color: #fff; }
.page-hero p { font-size: 1.18rem; max-width: 720px; margin: 0; }
.page-hero .eyebrow { color: #93c5fd; }

/* Browser frame for screenshots */
.frame { border-radius: 12px; background: #fff; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid rgba(148, 163, 184, .35); }
.frame-bar { height: 34px; background: #eef2f7; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; display: block; }
.frame-bar i:nth-child(1) { background: #f87171; } .frame-bar i:nth-child(2) { background: #fbbf24; } .frame-bar i:nth-child(3) { background: #34d399; }
.frame-bar span { margin-left: 14px; font-size: 12px; color: var(--muted); background: #fff; border-radius: 6px; padding: 3px 12px; }
.hero .frame { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }

/* Trust strip */
.strip { border-bottom: 1px solid var(--line); background: #fff; }
.strip ul { list-style: none; margin: 0; padding: 22px 0; display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: center; font-weight: 600; color: var(--muted); font-size: .95rem; }
.strip strong { color: var(--ink); }

/* Cards and grids */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
a.card { color: inherit; display: block; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card:hover { text-decoration: none; border-color: #bfd0fb; box-shadow: var(--shadow); transform: translateY(-2px); }
a.card .more { color: var(--blue); font-weight: 650; font-size: .95rem; }
.icon { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 24px; height: 24px; }
.app-card { text-align: left; padding: 24px; }
.app-card h3 { font-size: 1.05rem; }
.app-card p { font-size: .95rem; color: var(--muted); }

/* Feature split */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split + .split { margin-top: 110px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231d4ed8'%3E%3Cpath d='M8.1 13.4 4.7 10l-1.2 1.2 4.6 4.6 9-9-1.2-1.2z'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; top: 0; left: 28px;
  width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; display: grid; place-items: center; margin-top: 24px;
}
.step.card { padding-top: 84px; }

/* Pricing */
.price-toggle { display: inline-flex; background: #e8edf7; border-radius: 12px; padding: 5px; margin: 0 auto 40px; }
.price-toggle button { border: 0; background: none; padding: 10px 22px; border-radius: 9px; font: inherit; font-weight: 650; color: var(--muted); cursor: pointer; }
.price-toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.toggle-wrap { text-align: center; }
.plan { display: flex; flex-direction: column; }
.plan .price { font-size: 2.6rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1; margin: 10px 0 4px; }
.plan .price small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .note { color: var(--muted); font-size: .93rem; }
.plan ul { margin: 18px 0 26px; }
.plan .btn { margin-top: auto; }
.plan.featured { border: 2px solid var(--blue); box-shadow: var(--shadow); position: relative; }
.plan .badge { position: absolute; top: -13px; left: 28px; background: var(--blue); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.tiers { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.tiers th, .tiers td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.tiers th { background: var(--bg-alt); color: var(--ink); font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }
.tiers td:last-child, .tiers th:last-child { text-align: right; }
.tiers tr:last-child td { border-bottom: 0; }
.tiers .amt { font-weight: 750; color: var(--ink); font-size: 1.1rem; }
.is-hidden { display: none !important; }
.terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.terms div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.terms strong { display: block; color: var(--ink); font-size: 1.05rem; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 650; color: var(--ink); font-size: 1.07rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.5rem; color: var(--blue); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 18px; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--blue) 0%, #2563eb 50%, #1e40af 100%); color: #dbeafe; border-radius: 22px; padding: 64px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; font-size: 1.1rem; }
.cta-band .btn-row { justify-content: flex-end; }

/* Content pages (guides, posts) */
.content { padding: 64px 0 96px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.6em; }
.prose li { margin-bottom: .45em; }
.prose img, .prose .frame { margin: 28px 0; }
.prose blockquote, .callout { margin: 28px 0; padding: 18px 22px; background: var(--blue-soft); border-left: 4px solid var(--blue); border-radius: 0 10px 10px 0; color: var(--ink); }
.callout p:last-child { margin: 0; }
.prose code { background: #f1f5f9; padding: 2px 6px; border-radius: 5px; font-size: .9em; }
.guide-layout { display: grid; grid-template-columns: 250px 1fr; gap: 56px; align-items: start; }
.guide-nav { position: sticky; top: 96px; font-size: .95rem; max-height: calc(100vh - 120px); overflow-y: auto; }
.guide-nav h4 + ul { margin-bottom: 18px; }
.guide-group { font-size: 1.15rem; margin: 48px 0 18px; scroll-margin-top: 96px; }
.guide-group:first-of-type { margin-top: 0; }
.guide-nav h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.guide-nav ul { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.guide-nav a { display: block; padding: 7px 0 7px 16px; color: var(--text); margin-left: -2px; border-left: 2px solid transparent; }
.guide-nav a:hover { color: var(--blue); text-decoration: none; }
.guide-nav .current a { color: var(--blue); border-left-color: var(--blue); font-weight: 650; }
.breadcrumbs { font-size: .9rem; color: #94a3b8; margin-bottom: 18px; }
.breadcrumbs a { color: #93c5fd; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.pager a { font-weight: 650; }

/* Blog */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; transition: box-shadow .15s, transform .15s; }
.post-card:hover { text-decoration: none; box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; object-position: top; width: 100%; border-bottom: 1px solid var(--line); }
.post-card .body { padding: 24px; }
.post-card h2 { font-size: 1.2rem; margin-bottom: .5em; }
.post-meta { font-size: .9rem; color: var(--muted); }
.page-hero .post-meta { color: #94a3b8; margin-top: 14px; }

/* Footer */
.site-footer { background: var(--navy); color: #94a3b8; padding: 72px 0 32px; font-size: .95rem; margin-top: 0; }
.site-footer a { color: #cbd5e1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.footer-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(148, 163, 184, .2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .87rem; }

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--muted); }

/* Responsive */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > :first-child { order: 0; }
  .cta-band { grid-template-columns: 1fr; padding: 44px; }
  .cta-band .btn-row { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .post-list { grid-template-columns: repeat(2, 1fr); }
  .guide-layout { grid-template-columns: 1fr; gap: 28px; }
  .guide-nav { position: static; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 18px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .header-cta { display: none; }
  .main-nav .mobile-cta { display: block; margin-top: 10px; }
}
@media (min-width: 861px) { .main-nav .mobile-cta { display: none; } }
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 68px 0; }
  .grid-2, .grid-3, .grid-4, .terms, .post-list { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: 1fr 1fr; gap: 14px; }
  .app-card { padding: 18px; }
  .hero { padding-top: 64px; }
  .hero-shot { margin-top: 44px; }
  .cta-band { padding: 32px 24px; border-radius: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .tiers th, .tiers td { padding: 12px 14px; }
  .frame-bar span { display: none; }
}
