/* Airlines Group Travel — Codeberg promo site */
:root {
  --navy: #0b3d91;
  --navy-dark: #072a66;
  --sky: #e8f1ff;
  --accent: #ffb400;
  --accent-dark: #e09e00;
  --text: #1c2433;
  --muted: #566176;
  --line: #dde3ee;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --ok: #137333;
  --err: #b3261e;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(11, 61, 145, .10);
  --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
h1, h2, h3 { line-height: 1.25; color: var(--navy-dark); margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #000; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Top bar + header */
.topbar { background: var(--navy-dark); color: #fff; font-size: .9rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-dark); font-weight: 800; font-size: 1.1rem; }
.brand svg { width: 38px; height: 38px; flex: none; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.nav a { display: block; padding: 8px 12px; text-decoration: none; color: var(--text); border-radius: 8px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--sky); color: var(--navy); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .site-header .header-cta { display: none; }
  .topbar .tagline { display: none; }
  .topbar .wrap { justify-content: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; line-height: 1.2; }
.btn-primary { background: var(--accent); color: #1a1300; }
.btn-primary:hover { background: var(--accent-dark); color: #1a1300; }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); color: #fff; }

/* Breadcrumbs */
.breadcrumbs { background: var(--bg-alt); border-bottom: 1px solid var(--line); font-size: .9rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 10px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs [aria-current] { color: var(--muted); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy-dark), var(--navy) 60%, #1565c0); color: #fff; padding: 56px 0 64px; }
.hero h1, .hero h2 { color: #fff; }
.hero .lead { font-size: 1.15rem; opacity: .95; max-width: 40em; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.hero-points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.hero-points li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 8px; }
.page-hero { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); color: #fff; padding: 40px 0; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { margin: 0; opacity: .95; max-width: 46em; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Sections */
section.block { padding: 56px 0; }
section.alt { background: var(--bg-alt); }
.section-intro { max-width: 46em; color: var(--muted); margin-bottom: 28px; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.icon { font-size: 1.6rem; line-height: 1; margin-bottom: 10px; display: block; }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 70px; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; }
.pill-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .95rem; }
.prose { max-width: 46em; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.note { font-size: .9rem; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--accent); padding: 36px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; color: #1a1300; }
.cta-band p { margin: 4px 0 0; color: #3a2e00; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--navy-dark); list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 12px; font-size: 1.4rem; color: var(--navy); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 20px 16px; }

/* Quote form */
.quote-card { background: #fff; color: var(--text); border-radius: var(--radius); padding: 24px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.quote-card h2, .hero .quote-card h2 { font-size: 1.35rem; margin-bottom: .2em; color: var(--navy-dark); }
.quote-card .sub { color: var(--muted); margin-bottom: 16px; font-size: .95rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 4px; color: var(--text); }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid #c3cbd9; border-radius: 8px; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(11,61,145,.25); border-color: var(--navy); }
textarea { min-height: 90px; resize: vertical; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: .85rem; color: var(--muted); }
.check input { width: auto; margin-top: 4px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 12px; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
.quote-card .btn { width: 100%; margin-top: 8px; }

/* Contact blocks */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list strong { display: block; color: var(--navy-dark); }
.contact-list.card { padding: 22px; }

/* Footer */
.site-footer { background: #0a1a36; color: #c9d3e6; padding: 48px 0 20px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; }
.site-footer h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.social a { border: 1px solid #33466b; border-radius: 999px; padding: 4px 12px; font-size: .85rem; }
.disclaimer { border-top: 1px solid #22345a; margin-top: 32px; padding-top: 16px; font-size: .82rem; color: #93a2bf; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Floating call button (mobile) */
.float-call { display: none; }
@media (max-width: 700px) {
  .float-call { display: flex; position: fixed; bottom: 14px; left: 16px; right: 16px; z-index: 60; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
  body { padding-bottom: 76px; }
}

/* Admin */
.admin-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 16px 0; }
.admin-bar > div { min-width: 160px; }
.stats { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0 20px; }
.stat { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; min-width: 110px; }
.stat b { display: block; font-size: 1.4rem; color: var(--navy-dark); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table.leads { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 980px; }
table.leads th, table.leads td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.leads th { background: var(--bg-alt); position: sticky; top: 0; }
table.leads select, table.leads input { font-size: .85rem; padding: 6px 8px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--sky); color: var(--navy); }
.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Blog */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap.narrow { max-width: 800px; }
.post-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-card-img { display: block; aspect-ratio: 1200 / 630; background: var(--sky); overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-ph { display: grid; place-items: center; height: 100%; font-size: 2.4rem; }
.post-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.post-card-body h2, .post-card-body h3 { font-size: 1.15rem; margin-bottom: .4em; }
.post-card-body h2 a, .post-card-body h3 a { text-decoration: none; color: var(--navy-dark); }
.post-card-body h2 a:hover, .post-card-body h3 a:hover { text-decoration: underline; }
.post-card-body p { color: var(--muted); font-size: .95rem; }
.read-more { margin-top: auto; font-weight: 700; text-decoration: none; }
.post-meta { font-size: .9rem; opacity: .9; margin: 0 0 .4em; }
.post-card .post-meta { color: var(--muted); opacity: 1; }
.post-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--accent); margin: 0 0 .5em; }
.post-wrap { padding-top: 32px; padding-bottom: 48px; }
.post-cover { margin: 0 0 28px; }
.post-cover img { width: 100%; border-radius: var(--radius); display: block; }
.post-body { max-width: none; font-size: 1.06rem; }
.post-body h2 { margin-top: 1.6em; }
.post-body h3 { margin-top: 1.3em; }
.post-body img { border-radius: 10px; margin: 8px 0; }
.post-body blockquote { margin: 1.2em 0; padding: 12px 20px; border-left: 4px solid var(--accent); background: var(--bg-alt); border-radius: 0 8px 8px 0; }
.post-body pre { background: #0f1b33; color: #e6edf7; padding: 14px 16px; border-radius: 8px; overflow-x: auto; font-size: .9rem; }
.post-body iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 10px; }
.post-body table { border-collapse: collapse; width: 100%; }
.post-body td, .post-body th { border: 1px solid var(--line); padding: 8px; }
.ql-align-center { text-align: center; }
.ql-align-right { text-align: right; }
.ql-align-justify { text-align: justify; }
.tag-list { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { background: var(--sky); color: var(--navy); border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-weight: 600; }
.post-cta { margin-top: 32px; background: var(--sky); border-color: #c9dcff; box-shadow: none; }
.post-cta h2 { font-size: 1.3rem; }
.post-cta .btn { margin: 4px 6px 4px 0; }
.empty { color: var(--muted); font-size: 1.1rem; }

/* Admin extras */
.tabs { display: flex; gap: 8px; margin: 18px 0 4px; border-bottom: 1px solid var(--line); }
.tab { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 16px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; }
.tab.active { color: var(--navy); border-bottom-color: var(--navy); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-danger { background: #fff; border-color: #f1c4c0; color: var(--err); }
.btn-danger:hover { background: #fdecea; }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.btn:disabled { opacity: .55; cursor: progress; }
.badge.draft { background: #fff4d6; color: #7a5600; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; margin-top: 12px; }
@media (max-width: 960px) { .editor-grid { grid-template-columns: 1fr; } }
.editor-grid > div > label { margin-top: 12px; }
#p-title { font-size: 1.3rem; font-weight: 700; }
#p-editor { min-height: 480px; font-size: 1.05rem; background: #fff; }
.ql-toolbar.ql-snow { border-radius: 8px 8px 0 0; border-color: #c3cbd9; background: var(--bg-alt); position: sticky; top: 0; z-index: 5; }
.ql-container.ql-snow { border-radius: 0 0 8px 8px; border-color: #c3cbd9; }
.ql-editor { min-height: 480px; line-height: 1.7; }
.ql-editor img { max-width: 100%; }
.editor-side .card { padding: 16px; margin-bottom: 14px; }
.cover-preview { margin-top: 8px; border-radius: 8px; width: 100%; }
.seo-check ul { list-style: none; padding: 0; margin: 8px 0; font-size: .9rem; }
.seo-check li.ok { color: var(--ok); }
.seo-check li.todo { color: var(--muted); }
.editor-actions { display: grid; gap: 8px; }
