/* ==========================================================================
   Qwikfolio Marketing Site — shared styles
   ========================================================================== */
:root {
  --blue: #1656d6;
  --blue-dark: #0e3fa6;
  --blue-deep: #0a2c73;
  --ink: #13203b;
  --slate: #4b5871;
  --mist: #f4f7fd;
  --aqua: #9df0ec;
  --peri: #a7aaf2;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(19, 32, 59, 0.10);
  --shadow-sm: 0 4px 14px rgba(19, 32, 59, 0.08);
  --font-head: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.container { width: min(1140px, 92%); margin: 0 auto; }
.section { padding: 4.5rem 0; }
.section-alt { background: var(--mist); }
.section-gradient { background: linear-gradient(120deg, var(--aqua) 0%, #cfe3ff 45%, var(--peri) 100%); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head p { color: var(--slate); margin-top: 0.75rem; font-size: 1.06rem; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue); background: rgba(22, 86, 214, 0.08);
  padding: 0.3rem 0.85rem; border-radius: 999px; margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  padding: 0.78rem 1.7rem; border-radius: 999px; font-size: 0.98rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer; border: 2px solid transparent; text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-solid { background: var(--blue); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-solid:hover { background: var(--blue-dark); box-shadow: var(--shadow); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }
.btn-ghost { border-color: var(--blue); color: var(--blue); }
.btn-ghost:hover { background: rgba(22, 86, 214, 0.07); }
.btn-lg { padding: 0.95rem 2.3rem; font-size: 1.08rem; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--blue); color: var(--white);
  box-shadow: 0 2px 12px rgba(10, 44, 115, 0.25);
}
.nav-wrap { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand {
  display: flex; align-items: center; gap: 0.55rem; color: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: 1.35rem;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; margin-left: auto; }
.site-nav > a { color: var(--white); font-weight: 500; font-size: 0.98rem; }
.site-nav > a:hover { text-decoration: none; opacity: 0.85; }
.site-nav .btn { padding: 0.55rem 1.4rem; }

.dropdown { position: relative; }
.dropdown-btn {
  background: none; border: none; color: var(--white); font: inherit;
  font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 0.35rem;
}
.dropdown-btn::after { content: "▾"; font-size: 0.7rem; }
.dropdown-menu {
  position: absolute; top: calc(100% + 0.9rem); left: 50%; transform: translateX(-50%);
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 0.6rem; min-width: 240px; display: none;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block; padding: 0.55rem 0.9rem; border-radius: 8px;
  color: var(--ink); font-weight: 500; font-size: 0.95rem;
}
.dropdown-menu a:hover { background: var(--mist); text-decoration: none; color: var(--blue); }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 10px; width: 24px; height: 2.5px;
  background: var(--white); border-radius: 2px; transition: transform 0.2s ease;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -8px; left: 0; }
.nav-toggle span::after { top: 8px; left: 0; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--blue-dark); flex-direction: column; align-items: stretch;
    padding: 1rem 1.4rem 1.4rem; gap: 0.4rem;
  }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: 0.65rem 0.25rem; }
  .dropdown-btn { padding: 0.65rem 0.25rem; width: 100%; }
  .dropdown-menu { position: static; transform: none; min-width: 0; margin-top: 0.3rem; }
  .site-nav .btn { margin-top: 0.5rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; color: var(--white); overflow: hidden;
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 55%, #4f7bea 100%);
  padding: 6rem 0 6.5rem;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 320px at 85% 20%, rgba(157, 240, 236, 0.22), transparent 70%),
    radial-gradient(500px 300px at 10% 90%, rgba(167, 170, 242, 0.25), transparent 70%);
}
.hero-inner { position: relative; z-index: 1; max-width: 680px; }
.hero h1 { margin-bottom: 1.2rem; }
.hero h1 .accent { color: var(--aqua); }
.hero p.lead { font-size: 1.15rem; opacity: 0.92; margin-bottom: 2.2rem; max-width: 560px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-page { padding: 5rem 0; text-align: center; }
.hero-photo { background-size: cover; background-position: center; }
.hero-photo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10, 44, 115, 0.85), rgba(22, 86, 214, 0.72));
}

/* Split intro (industry pages: copy beside photo) */
.split-intro {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem;
  align-items: center; margin-bottom: 2.8rem;
}
.split-intro h2 { margin-bottom: 0.9rem; }
.split-intro p { color: var(--slate); margin-bottom: 0.9rem; }
.split-intro p:last-child { margin-bottom: 0; }
.split-intro .eyebrow { margin-bottom: 0.8rem; }
.split-intro img {
  width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow);
}
@media (max-width: 820px) { .split-intro { grid-template-columns: 1fr; gap: 1.6rem; } }

/* Feature chips (how-it-works step 2) */
.chip {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--white); border-radius: var(--radius); padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(19, 32, 59, 0.06);
}
.chip .icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--aqua), var(--peri));
}
.chip .icon svg { width: 20px; height: 20px; fill: var(--blue-deep); }
.chip h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.chip p { color: var(--slate); font-size: 0.9rem; }
.hero-page .hero-inner { max-width: 760px; margin: 0 auto; }
.hero-page p.lead { margin-left: auto; margin-right: auto; }
.hero-page .hero-actions { justify-content: center; }

/* ==========================================================================
   Cards & grids
   ========================================================================== */
.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border-radius: var(--radius); padding: 1.8rem;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(19, 32, 59, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--slate); font-size: 0.97rem; }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; margin-bottom: 1.1rem;
  background: linear-gradient(135deg, var(--aqua), var(--peri));
  font-size: 1.4rem;
}
.card .icon svg { width: 24px; height: 24px; fill: var(--blue-deep); }
a.card { display: block; color: inherit; }
a.card:hover { text-decoration: none; }
a.card .link-hint { color: var(--blue); font-weight: 600; font-size: 0.92rem; margin-top: 0.9rem; }

/* Split rows (text + panel) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 1.6rem; } }
.split h2 { margin-bottom: 0.9rem; }
.split p { color: var(--slate); margin-bottom: 1rem; }
.panel {
  border-radius: var(--radius); padding: 2.4rem; color: var(--white);
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  box-shadow: var(--shadow);
}
.panel h3 { margin-bottom: 0.7rem; }
.panel p { color: rgba(255, 255, 255, 0.88); }

/* Steps (how it works) */
.step { display: grid; grid-template-columns: 84px 1fr; gap: 1.6rem; margin-bottom: 2.6rem; }
.step:last-child { margin-bottom: 0; }
.step-num {
  width: 84px; height: 84px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-family: var(--font-head); font-size: 1.9rem; font-weight: 700;
  color: var(--white); background: linear-gradient(135deg, var(--blue), var(--peri));
  box-shadow: var(--shadow-sm); flex-shrink: 0;
}
.step h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.step p { color: var(--slate); margin-bottom: 0.7rem; }
@media (max-width: 620px) {
  .step { grid-template-columns: 56px 1fr; gap: 1rem; }
  .step-num { width: 56px; height: 56px; font-size: 1.3rem; }
}

/* FAQ accordion */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  border: 1px solid rgba(19, 32, 59, 0.06); margin-bottom: 1rem; overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 1.5rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--blue); flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 1.5rem 1.3rem; color: var(--slate); }
.faq .faq-body p { margin-bottom: 0.8rem; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* Testimonials */
.quote { text-align: center; }
.quote .stars { color: #f5b301; font-size: 1.2rem; letter-spacing: 0.15em; margin-bottom: 0.8rem; }
.quote blockquote { font-size: 1.05rem; color: var(--ink); margin-bottom: 0.9rem; font-style: italic; }
.quote cite { font-style: normal; font-weight: 600; color: var(--slate); }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--blue-deep), var(--blue));
  color: var(--white); text-align: center; padding: 4rem 0; border-radius: 0;
}
.cta-band h2 { margin-bottom: 0.8rem; }
.cta-band p { opacity: 0.9; margin-bottom: 1.8rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 2.4rem; max-width: 640px; margin: 0 auto;
}
.form-row { margin-bottom: 1.2rem; }
.form-row label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.4rem; }
.form-row input, .form-row textarea {
  width: 100%; padding: 0.8rem 1rem; border: 1.5px solid #d4dcec; border-radius: 10px;
  font: inherit; color: var(--ink); background: var(--mist);
  transition: border-color 0.15s ease;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none; border-color: var(--blue); background: var(--white);
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-status { margin-top: 1rem; font-weight: 600; display: none; }
.form-status.ok { display: block; color: #1a7f4b; }
.form-status.err { display: block; color: #c0392b; }
.contact-meta { text-align: center; margin-top: 1.6rem; color: var(--slate); }
.contact-meta a { font-weight: 600; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: #c6cfdf; padding: 3.5rem 0 0; font-size: 0.94rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 2.5rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; margin-bottom: 0.9rem; }
.footer-brand svg { width: 28px; height: 28px; }
.site-footer h4 {
  color: var(--white); font-size: 0.82rem; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: #c6cfdf; }
.site-footer a:hover { color: var(--white); }
.newsletter-form { display: flex; gap: 0.5rem; margin-top: 0.4rem; }
.newsletter-form input {
  flex: 1; padding: 0.65rem 0.9rem; border-radius: 999px; border: 1.5px solid #3a4a68;
  background: #1d2c4c; color: var(--white); font: inherit; font-size: 0.9rem; min-width: 0;
}
.newsletter-form input::placeholder { color: #8794ab; }
.newsletter-form input:focus { outline: none; border-color: var(--aqua); }
.newsletter-form .btn { padding: 0.6rem 1.3rem; font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid #27395e; padding: 1.4rem 0; text-align: center;
  font-size: 0.86rem; color: #8794ab;
}
.footer-bottom a { color: #aab6c9; }

/* ==========================================================================
   Legal / prose pages
   ========================================================================== */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { font-size: 1.4rem; margin: 2.2rem 0 0.8rem; }
.prose p, .prose li { color: var(--slate); margin-bottom: 0.9rem; }
.prose ul { padding-left: 1.4rem; margin-bottom: 1rem; }
.prose strong { color: var(--ink); }
.prose .effective { font-weight: 600; color: var(--ink); }

/* 404 */
.notfound { text-align: center; padding: 7rem 0; }
.notfound h1 { font-size: 5rem; color: var(--blue); }
.notfound p { color: var(--slate); margin: 1rem 0 2rem; }
