/* ==========================================================================
   HubbPDF — style.css  (proudly American PDF software)
   ========================================================================== */

:root {
  --navy: #0a2a66;
  --navy-dark: #071d47;
  --navy-light: #eaf0fb;
  --red: #c8102e;
  --red-dark: #9e0c24;
  --ink: #0b1c34;
  --slate: #48586e;
  --slate-light: #6a7889;
  --line: #dfe6ef;
  --bg: #ffffff;
  --bg-soft: #f4f7fc;
  --white: #ffffff;
  --green: #157347;
  --star: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(10, 42, 102, .10);
  --shadow: 0 14px 34px rgba(10, 42, 102, .12);
  --shadow-lg: 0 26px 60px rgba(10, 42, 102, .20);
  --container: 1180px;
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.18; color: var(--ink); margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; color: var(--slate); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-tight { padding: 56px 0; }

.center { text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  background: #fdeaed;
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.eyebrow::before { content: "★"; color: var(--navy); font-size: .8rem; }
.lead { font-size: 1.16rem; color: var(--slate); max-width: 690px; margin: 0 auto 8px; }
.section-head { max-width: 740px; margin: 0 auto 50px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 1rem;
  padding: 14px 28px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 10px 22px rgba(10,42,102,.28); }
.btn-primary:hover { background: var(--navy-dark); }
.btn-accent { background: var(--red); color: #fff; box-shadow: 0 10px 22px rgba(200,16,46,.28); }
.btn-accent:hover { background: var(--red-dark); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(200,16,46,.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.4rem; color: var(--ink); text-decoration: none; letter-spacing: -.03em; }
.brand:hover { text-decoration: none; }
.brand .logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy) 0 55%, var(--red) 55% 100%);
  display: grid; place-items: center; color: #fff; font-size: .78rem; font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--slate); font-weight: 600; font-size: .95rem; text-decoration: none; }
.nav-links a:hover, .nav-links a.active { color: var(--red); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 400px at 90% -10%, rgba(200,16,46,.08), transparent 60%),
    linear-gradient(180deg, var(--navy-light), #fff);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; padding: 84px 0; }
.hero h1 span { color: var(--red); }
.hero p.lead { margin-left: 0; text-align: left; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-badges { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; color: var(--slate); font-size: .9rem; font-weight: 600; }
.hero-badges span { display: inline-flex; align-items: center; gap: 6px; }
.hero-media { position: relative; }
.hero-media img { border-radius: 22px; box-shadow: var(--shadow-lg); width: 100%; height: 480px; object-fit: cover; border: 4px solid #fff; }
.hero-media::after {
  content: ""; position: absolute; left: -14px; bottom: -14px; width: 120px; height: 84px;
  background: repeating-linear-gradient(180deg, var(--red) 0 7px, #fff 7px 14px);
  border-radius: 10px; opacity: .9; z-index: -1;
}

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--navy); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 44px 0; text-align: center; }
.trust-grid .num { font-size: 2.3rem; font-weight: 800; color: #fff; letter-spacing: -.03em; }
.trust-grid .label { color: #b9c6e0; font-size: .95rem; font-weight: 600; }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
  border-top: 3px solid var(--navy);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-top-color: var(--red); }
.card .ico {
  width: 50px; height: 50px; border-radius: 14px; background: var(--navy-light);
  display: grid; place-items: center; color: var(--navy); margin-bottom: 18px;
}
.card:hover .ico { background: #fdeaed; color: var(--red); }
.card .ico svg { width: 25px; height: 25px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: .96rem; }

/* ---------- Split / alternating ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: 20px; box-shadow: var(--shadow); width: 100%; height: 380px; object-fit: cover; border: 4px solid #fff; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: 13px; color: var(--ink); font-weight: 500; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 21px; height: 21px;
  border-radius: 50%; background: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.price-card.featured { border: 2px solid var(--red); box-shadow: var(--shadow); position: relative; }
.price-card.featured .tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff; font-size: .74rem; font-weight: 700;
  padding: 6px 16px; border-radius: 999px; letter-spacing: .05em;
}
.price-card h3 { font-size: 1.3rem; }
.price { font-size: 2.7rem; font-weight: 800; color: var(--navy); letter-spacing: -.03em; margin: 8px 0 2px; }
.price small { font-size: .95rem; font-weight: 600; color: var(--slate-light); }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 28px; flex: 1; }
.price-card ul li { padding: 9px 0 9px 28px; position: relative; color: var(--slate); font-size: .95rem; border-bottom: 1px solid var(--bg-soft); }
.price-card ul li::before { content: "★"; position: absolute; left: 0; color: var(--red); font-weight: 900; font-size: .8rem; top: 11px; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table.compare { width: 100%; border-collapse: collapse; min-width: 560px; background: #fff; }
table.compare th, table.compare td { padding: 17px 20px; text-align: left; border-bottom: 1px solid var(--line); }
table.compare thead th { background: var(--navy); color: #fff; font-weight: 700; font-size: .95rem; }
table.compare thead th.highlight { background: var(--red); }
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare .highlight { color: var(--red); font-weight: 800; }
table.compare td .yes { color: var(--green); font-weight: 800; }
table.compare td .no { color: var(--slate-light); }

/* ---------- Testimonials ---------- */
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--red); }
.quote-card .stars { color: #e0a400; font-size: 1rem; margin-bottom: 12px; letter-spacing: 2px; }
.quote-card p { color: var(--ink); font-style: italic; }
.quote-author { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.quote-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.quote-author .who { font-weight: 700; font-size: .95rem; color: var(--ink); }
.quote-author .role { font-size: .85rem; color: var(--slate-light); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, #123a86 100%);
  color: #fff; border-radius: 26px; padding: 60px; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background: repeating-linear-gradient(45deg, var(--red) 0 20px, transparent 20px 60px);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 600px; margin: 0 auto 24px; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); border-top: 4px solid var(--red); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff; transition: border .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(10,42,102,.15); }
.field textarea { min-height: 130px; resize: vertical; }
.field .error-msg { color: #dc2626; font-size: .82rem; margin-top: 5px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #dc2626; }
.field.invalid .error-msg { display: block; }
.form-note { font-size: .82rem; color: var(--slate-light); margin-top: 8px; }

/* ---------- Contact info blocks ---------- */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 14px; margin-bottom: 20px; }
.info-list .ii { width: 46px; height: 46px; border-radius: 13px; background: var(--navy-light); color: var(--navy); display: grid; place-items: center; flex: none; }
.info-list .ii svg { width: 22px; height: 22px; }
.info-list strong { display: block; color: var(--ink); }
.info-list span, .info-list a { color: var(--slate); }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 14px; background: #fff; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 21px 22px; font-size: 1.05rem; font-weight: 700; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: inherit; }
.faq-q .plus { flex: none; font-size: 1.4rem; color: var(--red); transition: transform .2s ease; line-height: 1; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 22px; }
.faq-item.open .faq-a { max-height: 420px; padding-bottom: 20px; }
.faq-a p { margin: 0; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul { color: var(--slate); }
.prose li { margin-bottom: 8px; }
.updated { color: var(--slate-light); font-size: .9rem; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  background:
    radial-gradient(900px 300px at 100% 0%, rgba(200,16,46,.08), transparent 60%),
    var(--navy-light);
  padding: 70px 0; text-align: center;
}
.page-hero p { max-width: 620px; margin: 0 auto; }

/* ---------- Thank you ---------- */
.thanks { text-align: center; padding: 100px 0; }
.thanks .badge { width: 94px; height: 94px; border-radius: 50%; background: #e3f3ea; color: var(--green); display: grid; place-items: center; margin: 0 auto 24px; }
.thanks .badge svg { width: 48px; height: 48px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #c3d0e6; padding: 66px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: #c3d0e6; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: #8fa2c4; font-size: .92rem; margin-top: 14px; max-width: 290px; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; color: #c3d0e6; font-size: .95rem; }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--red); }
.footer-bottom { border-top: 1px solid #12305f; margin-top: 46px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #8fa2c4; font-size: .88rem; }
.footer-bottom a { color: #8fa2c4; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media img { height: 320px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse .split-media { order: 0; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; background: #fff; border-bottom: 1px solid var(--line);
    padding: 18px 20px; gap: 16px; box-shadow: var(--shadow);
  }
  .section { padding: 58px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .cta-band { padding: 42px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1; justify-content: center; }
}
