/*
Theme Name: Roq
Theme URI: https://getroq.com
Author: Roq
Author URI: https://getroq.com
Description: Generic marketing theme for Roq product sites (RoqDesk, RoqLead, …) and the getroq.com group site. Branding is per-site (Roq Settings → logo, header buttons, footer tagline; product name from the Site Title). Each landing-page section is an Advanced Custom Fields (ACF PRO) block you insert, reorder and edit from the WordPress block editor. Includes a Text Content block for single pages (Privacy Policy, Terms, etc.) and a Contact block that hosts a Contact Form 7 form. Requires ACF PRO and Contact Form 7.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: roq
*/

/* ==========================================================================
   Design tokens (ported from the original landing page)
   ========================================================================== */
:root {
  --primary: #007bff;
  --primary-dark: #0056b3;
  --primary-darker: #004085;
  --ink: #0b1f33;
  --body: #3c4b5a;
  --muted: #66788a;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --border: #e1e8f0;
  --white: #ffffff;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(11, 31, 51, .08);
  --shadow-md: 0 12px 32px rgba(11, 31, 51, .10);
  --shadow-lg: 0 24px 60px rgba(0, 86, 179, .22);
  --grad-primary: linear-gradient(135deg, #2c93ff 0%, #007bff 45%, #0056b3 100%);
  --grad-hero: linear-gradient(160deg, #eef5ff 0%, #ffffff 60%);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--primary-dark); }

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

/* Accessibility helpers */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--primary-dark); color: #fff; padding: 12px 18px;
  border-radius: 0 0 8px 0; z-index: 1000; font-weight: 600;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid #ffb000; outline-offset: 2px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-size: 1rem; font-weight: 600; text-decoration: none;
  padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  line-height: 1;
}
.btn-primary {
  background: var(--grad-primary); color: #fff;
  box-shadow: 0 10px 24px rgba(0, 123, 255, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(0, 123, 255, .45); }
.btn-ghost {
  background: #fff; color: var(--primary-dark); border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-2px); }
.btn-light {
  background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.5);
}
.btn-light:hover { background: rgba(255,255,255,.26); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.3rem; color: var(--ink); text-decoration: none; letter-spacing: -.03em; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 9px; background: var(--grad-primary);
  display: grid; place-items: center; color: #fff; font-weight: 800; box-shadow: 0 6px 14px rgba(0,123,255,.4);
}
.brand .logo-img { height: 34px; width: auto; display: block; border-radius: 8px; }
.site-footer .brand .logo-img { height: 30px; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--body); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--primary-dark); }
.nav-cta { display: flex; align-items: center; gap: .75rem; }

/* Hero */
.hero { background: var(--grad-hero); padding: clamp(3rem, 7vw, 6rem) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--primary-dark);
  background: rgba(0,123,255,.1); padding: .4rem .8rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.hero p.lead { font-size: 1.2rem; color: var(--body); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }
.hero-note { margin-top: 1.2rem; font-size: .9rem; color: var(--muted); }
.hero-note strong { color: var(--ink); }

/* Hero visual: stylised app card */
.hero-visual {
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); overflow: hidden;
}
.hv-bar { background: var(--grad-primary); padding: .9rem 1.1rem; display: flex; align-items: center; gap: .5rem; }
.hv-dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.6); }
.hv-title { margin-left: auto; color: #fff; font-size: .8rem; font-weight: 600; opacity: .9; }
.hv-body { padding: 1.1rem; }
.hv-task {
  display: flex; align-items: center; gap: .8rem; padding: .8rem .9rem; margin-bottom: .7rem;
  border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft);
}
.hv-task:last-child { margin-bottom: 0; }
.hv-check { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--primary); flex: none; display: grid; place-items: center; color: var(--primary); font-size: .8rem; }
.hv-check.done { background: var(--primary); color: #fff; border-color: var(--primary); }
.hv-task-text { font-size: .9rem; }
.hv-task-text strong { display: block; color: var(--ink); }
.hv-task-text span { color: var(--muted); font-size: .8rem; }
.hv-avatar { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; background: var(--grad-primary); color: #fff; display: grid; place-items: center; font-size: .75rem; font-weight: 700; flex: none; }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Logos / trust strip */
.trust { padding: 2rem 0; border-bottom: 1px solid var(--border); }
.trust p { text-align: center; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; margin: 0; }

/* Onboarding video */
.video-wrap { max-width: 900px; margin: 0 auto; }
.video-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden;
  background: var(--ink); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.video-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
}
@supports not (aspect-ratio: 16 / 9) {
  .video-frame { height: 0; padding-bottom: 56.25%; }
}

/* Features grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; display: flex; flex-direction: column; align-items: center;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; background: rgba(0,123,255,.1);
  color: var(--primary-dark); display: grid; place-items: center; margin-bottom: 1.1rem;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .4rem; }
.card p { margin: 0; color: var(--body); font-size: .96rem; text-align: center; }
.card .btn { margin-top: .4rem; }

/* Benefits split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.benefit-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.benefit-list li { display: flex; gap: .9rem; margin-bottom: 1.2rem; }
.benefit-list .tick {
  flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--grad-primary);
  color: #fff; display: grid; place-items: center; font-size: .85rem; box-shadow: 0 4px 10px rgba(0,123,255,.35);
}
.benefit-list strong { color: var(--ink); display: block; }
.benefit-list span { color: var(--body); }

.panel {
  background: var(--grad-primary); border-radius: 20px; padding: 2.5rem; color: #fff;
  box-shadow: var(--shadow-lg);
}
.panel h3 { color: #fff; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.stat { background: rgba(255,255,255,.12); border-radius: 12px; padding: 1.2rem; }
.stat .num { font-size: 2rem; font-weight: 800; display: block; }
.stat .label { font-size: .9rem; opacity: .9; }

/* Number ticker (count-up) */
.ticker-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem 1.5rem; text-align: center; align-items: start;
}
.ticker-num {
  font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 800; line-height: 1;
  letter-spacing: -.02em; color: var(--primary-dark);
  font-variant-numeric: tabular-nums;
}
.ticker-label { margin-top: .5rem; color: var(--body); font-size: 1rem; font-weight: 500; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step { position: relative; padding-top: 1rem; text-align: center; }
.step .num {
  width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 2px solid var(--primary);
  color: var(--primary-dark); font-weight: 800; display: grid; place-items: center; margin-bottom: 1rem; font-size: 1.1rem; margin-left: auto; margin-right: auto;
}

/* FAQ accordion */
.faq { max-width: 760px; margin: 0 auto; }
.faq-title { text-align: center; margin-bottom: 1.8rem; }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: .8rem; box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.1rem 1.25rem; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--primary-dark); }
.faq-item summary:focus-visible { outline: 3px solid #ffb000; outline-offset: -3px; }
.faq-item .chev { flex: none; width: 22px; height: 22px; color: var(--primary); transition: transform .2s ease; }
.faq-item[open] .chev { transform: rotate(180deg); }
.faq-answer { padding: 0 1.25rem 1.2rem; color: var(--body); }
.faq-answer p { margin: 0; }

/* Testimonial */
.testimonial { background: var(--grad-primary); color: #fff; }
.testimonial .container { max-width: 840px; text-align: center; }
.t-stars { color: #ffd24a; letter-spacing: 3px; font-size: 1.15rem; margin-bottom: 1.2rem; }
.testimonial figure { margin: 0; }
.testimonial blockquote {
  margin: 0; border: 0; padding: 0; position: relative;
  font-size: clamp(1.3rem, 2.6vw, 1.95rem); font-weight: 600; line-height: 1.42; letter-spacing: -.01em;
}
.testimonial figcaption {
  margin-top: 1.8rem; display: flex; align-items: center; justify-content: center; gap: .9rem; text-align: left;
}
.t-avatar {
  width: 54px; height: 54px; border-radius: 50%; flex: none;
  background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.55);
  display: grid; place-items: center; font-weight: 800; font-size: 1.05rem;
}
.testimonial cite { font-style: normal; }
.testimonial cite strong { display: block; color: #fff; font-weight: 700; }
.testimonial cite span { opacity: .85; font-size: .92rem; }

/* Pricing */
.price-wrap { display: flex; justify-content: center; }
.price-card {
  background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 0;
  max-width: 460px; width: 100%; box-shadow: var(--shadow-md); overflow: hidden; text-align: center;
}
.price-top { background: var(--grad-primary); color: #fff; padding: 2rem; }
.price-badge { display: inline-block; background: rgba(255,255,255,.2); padding: .3rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 1rem; }
.price { font-size: 3.2rem; font-weight: 800; line-height: 1; }
.price small { font-size: 1rem; font-weight: 500; opacity: .9; }
.price-sub { opacity: .92; margin: .6rem 0 0; }
.price-body { padding: 2rem; }
.price-features { list-style: none; padding: 0; margin: 0 0 1.6rem; text-align: left; }
.price-features li { display: flex; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--border); }
.price-features li:last-child { border-bottom: 0; }
.price-features .tick { color: var(--primary); font-weight: 800; flex: none; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-md); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: .4rem; font-size: .95rem; }
.req { color: #c0392b; }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem .9rem; border: 1px solid var(--border); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,123,255,.15); outline: none;
}
.field textarea { min-height: 120px; resize: vertical; }
fieldset { border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.1rem; margin: 0 0 1.2rem; }
fieldset legend { font-weight: 600; color: var(--ink); padding: 0 .4rem; font-size: .95rem; }
.radio-row { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.radio-opt { display: flex; align-items: center; gap: .5rem; }
.radio-opt input { width: auto; }
.hint { font-size: .85rem; color: var(--muted); margin: .3rem 0 0; }

.contact-aside h2 { margin-bottom: 1rem; }
.contact-aside .info { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1.2rem; }
.contact-aside .info .icon { flex: none; width: 42px; height: 42px; border-radius: 10px; background: rgba(0,123,255,.1); color: var(--primary-dark); display: grid; place-items: center; }

/* Contact Form 7 — style CF7 output to match the original form.
   Paste the CF7 template from the README so this markup is produced. */
.form-card .wpcf7 .field { margin-bottom: 1.2rem; }
.form-card .wpcf7-form-control-wrap { display: block; }
.form-card .wpcf7 .btn { margin-top: .4rem; }
.form-card .wpcf7-not-valid-tip { color: #b02a1a; font-size: .85rem; margin-top: .3rem; }
.form-card .wpcf7-response-output {
  margin: 1rem 0 0; padding: .9rem 1rem; border-radius: 10px; font-weight: 600; border: 1px solid var(--border);
}
.form-card .wpcf7 form.sent .wpcf7-response-output { background: #e6f4ea; color: #1e7e34; border-color: #b7dfc1; }
.form-card .wpcf7 form.invalid .wpcf7-response-output,
.form-card .wpcf7 form.failed .wpcf7-response-output { background: #fdecea; color: #b02a1a; border-color: #f3c3bd; }

/* Final CTA */
.cta-band { background: var(--grad-primary); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 50ch; margin: 0 auto 1.8rem; font-size: 1.15rem; }

/* Text Content block (Privacy Policy, Terms, single pages) */
.text-page { padding: clamp(3rem, 7vw, 5rem) 0; }
.text-page { padding: 2rem 0; border-bottom: 1px solid var(--border); }
.text-page h1 { margin-bottom: 1rem; }
.text-page h2, .text-page h3 { margin-top: 1.6rem; }
.text-page ul, .text-page ol { padding-left: 1.4rem; }
.text-page li { margin-bottom: .4rem; }

/* ==========================================================================
   Blog — listings (home / archive / search) and single posts
   ========================================================================== */
.blog { padding: clamp(3rem, 7vw, 5rem) 0; }
.blog-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.blog-head h1 { margin-bottom: .5rem; }
.blog-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.blog-empty { text-align: center; color: var(--muted); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.post-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-body { padding: 1.4rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.post-card-cats { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.post-card-cats a { color: var(--primary-dark); text-decoration: none; }
.post-card-cats a:hover { text-decoration: underline; }
.post-card-title { font-size: 1.15rem; margin: 0; }
.post-card-title a { color: var(--ink); text-decoration: none; }
.post-card-title a:hover { color: var(--primary-dark); }
.post-card-excerpt { margin: 0; color: var(--body); font-size: .95rem; }
.post-meta { margin-top: auto; padding-top: .4rem; color: var(--muted); font-size: .85rem; }
.post-meta a { color: var(--muted); text-decoration: none; }
.post-meta .sep { margin: 0 .4rem; }

/* Single post */
.single { padding: clamp(3rem, 7vw, 5rem) 0 0; }
.single-inner { max-width: 760px; margin: 0 auto; }
.single-header { text-align: center; margin-bottom: 1rem; }
.single-header .post-card-cats { margin-bottom: .8rem; }
.single-header .post-meta { justify-content: center; }
.single-title { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: .3rem 0 .9rem; }
.single-media { margin: 2rem 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.single-media img { width: 100%; height: auto; display: block; }
.single-content { font-size: 1.05rem; }
.single-content > * { margin-bottom: 1.1rem; }
.single-content h2, .single-content h3 { margin-top: 1.8rem; }
.single-content img { max-width: 100%; height: auto; border-radius: 10px; }
.single-content a { color: var(--primary-dark); }
.single-content blockquote {
  border-left: 4px solid var(--primary); margin: 1.5rem 0; padding: .3rem 0 .3rem 1.2rem;
  color: var(--ink); font-size: 1.15rem;
}
.single-content ul, .single-content ol { padding-left: 1.4rem; }
.post-tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.post-tags a {
  font-size: .82rem; background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--body); padding: .3rem .7rem; border-radius: 999px; text-decoration: none;
}
.post-tags a:hover { border-color: var(--primary); color: var(--primary-dark); }

.post-nav { max-width: 760px; margin: 2.5rem auto 0; display: flex; justify-content: space-between; gap: 1.5rem; }
.post-nav a { color: var(--primary-dark); text-decoration: none; font-weight: 600; }
.post-nav a:hover { text-decoration: underline; }
.post-nav-next { margin-left: auto; text-align: right; }

/* Pagination (the_posts_pagination / comments) */
.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; }
.pagination .page-numbers {
  display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .7rem;
  border-radius: 10px; border: 1px solid var(--border); background: #fff; color: var(--ink);
  text-decoration: none; font-weight: 600;
}
.pagination .page-numbers:hover:not(.current) { border-color: var(--primary); color: var(--primary-dark); }
.pagination .page-numbers.current { background: var(--grad-primary); color: #fff; border-color: transparent; }

/* Comments */
.comments-area { margin: 3rem auto 0; }
.comments-title, .comment-reply-title { font-size: 1.3rem; margin-bottom: 1.2rem; }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list ol.children { list-style: none; margin: 1rem 0 0 1.5rem; padding: 0; }
.comment-list .comment-body {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.2rem 1.3rem; margin-bottom: 1rem; box-shadow: var(--shadow-sm);
}
.comment-author { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--ink); }
.comment-author .avatar { border-radius: 50%; }
.comment-metadata { font-size: .82rem; color: var(--muted); margin: .2rem 0 .6rem; }
.comment-metadata a { color: var(--muted); text-decoration: none; }
.comment-respond { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-weight: 600; color: var(--ink); margin-bottom: .4rem; font-size: .95rem; }
.comment-form input[type="text"], .comment-form input[type="email"],
.comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: .8rem .9rem; border: 1px solid var(--border); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fff;
}
.comment-form textarea { min-height: 120px; resize: vertical; }

/* 404 */
.error-404 { text-align: center; padding: clamp(3rem, 7vw, 6rem) 0; }
.error-404 .container { max-width: 560px; }
.error-404 p { color: var(--muted); }
.error-404-search { margin: 1.5rem 0; }

/* Core search form */
.search-form { display: flex; gap: .5rem; max-width: 420px; margin: 0 auto; }
.search-form .search-field {
  flex: 1; padding: .8rem .9rem; border: 1px solid var(--border); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fff;
}
.search-form .search-submit {
  border: 0; border-radius: 10px; padding: 0 1.2rem; cursor: pointer; font-weight: 600;
  background: var(--grad-primary); color: #fff;
}

@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .post-grid { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer { background: var(--ink); color: #b9c6d3; padding: 3rem 0 2rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.site-footer .brand { color: #fff; }
.site-footer a { color: #b9c6d3; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-col h4 { color: #fff; font-size: .95rem; margin: 0 0 .8rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-social { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }
.footer-social .social-link {
  width: 38px; height: 38px; border-radius: 9px; flex: none;
  display: grid; place-items: center; color: #b9c6d3;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.footer-social .social-link:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.footer-social .social-link svg { width: 18px; height: 18px; display: block; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .features, .steps { grid-template-columns: 1fr; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border); padding: 1rem 24px 1.5rem; gap: 1rem; box-shadow: var(--shadow-md);
  }
}
@media (max-width: 560px) {
  .features, .steps, .stat-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* Roq Group container — a wrapper around nested Roq section blocks */
.roq-group { width: 100%; }

/* In-editor: outline the empty group so it's easy to find and fill */
.editor-styles-wrapper .roq-group {
  min-height: 60px;
}
.editor-styles-wrapper .roq-group:empty::before,
.editor-styles-wrapper .roq-group > .block-editor-inner-blocks:empty::before {
  content: "Roq Group — add Roq section blocks inside";
  display: block; text-align: center; color: var(--muted);
  padding: 1.5rem; border: 2px dashed var(--border); border-radius: var(--radius);
}

/* In-editor: give blocks breathing room so they're easy to click/select */
.editor-styles-wrapper .section,
.editor-styles-wrapper .hero,
.editor-styles-wrapper .trust { margin: 0; }

/* In-editor: mark blocks flagged "Hide on live site" (front end omits them). */
.editor-styles-wrapper .roq-block-hidden {
  position: relative;
  opacity: .5;
  outline: 2px dashed var(--muted);
  outline-offset: -2px;
}
.editor-styles-wrapper .roq-block-hidden::after {
  content: "Hidden on live site";
  position: absolute; top: 10px; right: 10px; z-index: 5;
  background: var(--ink); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .3rem .55rem; border-radius: 6px; pointer-events: none;
}
