/*
Theme Name: Redbird Direct
Description: One-page theme for Redbird Direct LLC, converted from the hand-made static site. Business info, hero text, photos and the form recipient are editable in Appearance → Customize → Redbird Direct. Privacy Policy, Terms of Use and Accessibility pages are created on activation; the contact form emails requests with wp_mail().
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tz-landing
*/

/* Redbird Direct — cardinal red, charcoal, warm white; data dots that gather into a target list */
:root {
  --red: #c1121f;
  --red-bright: #d62839;
  --red-dark: #9d1b28;
  --char: #1f2328;
  --char-2: #2b3036;
  --char-3: #3a4048;
  --warm: #faf8f5;
  --sand: #f1ece4;
  --ink: #16181b;
  --muted: #4d535a;
  --white: #fff;
  --display: "DM Serif Display", Georgia, serif;
  --body: "DM Sans", system-ui, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--warm); color: var(--ink); font-family: var(--body); font-size: 1.1875rem; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--red); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; }
p { margin: 0; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--red-bright); outline-offset: 3px; box-shadow: 0 0 0 6px var(--white); border-radius: 6px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--red); color: var(--white); padding: 12px 18px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #ff8a93; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 14px 0 0 -2px currentColor, 26px 0 0 -3px currentColor; margin-right: 26px; }
.eyebrow--red, .hero .eyebrow { color: var(--red); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 26px; border-radius: 999px; font: 700 1.0625rem/1.2 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform 0.2s, background-color 0.2s, color 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn--lg { min-height: 60px; padding: 14px 30px; font-size: 1.125rem; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); }
.btn--line { border-color: var(--char); color: var(--char); background: transparent; }
.btn--line:hover { background: var(--char); color: var(--white); }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 245, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid #e7e1d8; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 50px; height: 50px; flex: none; }
.brand__text { font-family: var(--display); font-size: 1.875rem; line-height: 1; }
.brand__text span { color: var(--red); margin-left: 6px; font-style: italic; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1.0625rem; padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; }
.nav a:not(.btn):hover { background: var(--sand); }
.nav .btn { margin-left: 10px; }

/* Hero */
.hero { padding: clamp(56px, 7vw, 100px) 0; overflow-x: clip; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(3rem, 6.4vw, 5.5rem); margin-bottom: 24px; }
.hero h1 em { display: block; color: var(--red); }
.hero__lead { font-size: clamp(1.1875rem, 1.6vw, 1.3125rem); color: var(--muted); max-width: 33em; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__bird { position: relative; justify-self: center; width: min(100%, 460px); }
.hero__bird img { position: relative; z-index: 1; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 40px 70px -40px rgba(31, 35, 40, 0.7); }
.hero__dots { position: absolute; inset: -12% -16% -12% -8%; background-image: radial-gradient(var(--red-bright) 2.5px, transparent 3px); background-size: 22px 22px; -webkit-mask: radial-gradient(circle at 70% 40%, #000 20%, transparent 62%); mask: radial-gradient(circle at 70% 40%, #000 20%, transparent 62%); opacity: 0.5; }

/* Heads */
.head { max-width: 760px; margin-bottom: 44px; }
.head h2 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); }

/* Services */
.services { padding: clamp(80px, 9vw, 120px) 0; background: var(--white); }
.services__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.svc { border-radius: 24px; padding: 32px 28px; background: var(--sand); }
.svc--dark { background: var(--char); color: var(--white); }
.svc__n { font-family: var(--display); font-size: 3rem; line-height: 1; color: var(--red); margin-bottom: 14px; }
.svc--dark .svc__n { color: #ff8a93; }
.svc h3 { font-size: 1.875rem; margin-bottom: 10px; }
.svc > p:not(.svc__n) { color: var(--muted); margin-bottom: 18px; }
.svc--dark > p:not(.svc__n) { color: #d5d9de; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 0.9375rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--white); color: var(--char); }
.svc--dark .tags li { background: var(--char-3); color: var(--white); }

/* Targeting */
.targeting { background: var(--char); color: var(--white); padding: clamp(80px, 9vw, 120px) 0; }
.targeting__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.targeting h2 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); margin-bottom: 16px; }
.targeting p:not(.eyebrow) { color: #d5d9de; margin-bottom: 28px; }
.controls { display: grid; gap: 18px; }
.seg { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.seg legend { width: 100%; font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.12em; text-transform: uppercase; color: #ff8a93; margin-bottom: 8px; padding: 0; }
.seg label { position: relative; display: block; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 18px; border-radius: 999px; border: 2px solid var(--char-3); font-weight: 700; font-size: 1rem; transition: background-color 0.2s, border-color 0.2s; }
.seg input:checked + span { background: var(--red); border-color: var(--red); }
.seg input:focus-visible + span { outline: 3px solid var(--white); outline-offset: 3px; }
.field-wrap { display: grid; gap: 12px; }
.field { position: relative; aspect-ratio: 4 / 3; border-radius: 22px; background: var(--char-2); background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px); background-size: 28px 28px; overflow: hidden; border: 1px solid var(--char-3); }
.field__zone { position: absolute; left: 68%; top: 50%; width: 38%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 2px dashed rgba(214, 40, 57, 0.7); display: grid; place-items: start center; padding-top: 6%; font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.12em; text-transform: uppercase; color: #ff8a93; }
.dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #6b7280; transition: left 0.9s cubic-bezier(0.3, 0.7, 0.2, 1), top 0.9s cubic-bezier(0.3, 0.7, 0.2, 1), background-color 0.4s, box-shadow 0.4s, opacity 0.4s; opacity: 0.7; }
.dot.is-match { background: var(--red-bright); box-shadow: 0 0 0 3px rgba(214, 40, 57, 0.25); opacity: 1; }
.field-wrap figcaption { font-size: 1rem; color: #b9bfc6; }

/* Partners */
.partners { padding: clamp(80px, 9vw, 120px) 0; }
.partners__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.partners__photo img { width: 100%; aspect-ratio: 9 / 6.4; object-fit: cover; border-radius: 24px; }
.partners h2 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); margin-bottom: 16px; }
.partners p:not(.eyebrow) { color: var(--muted); margin-bottom: 20px; }
.link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--red); text-decoration: none; }
.link::after { content: "→"; transition: transform 0.2s; }
.link:hover { text-decoration: underline; }
.link:hover::after { transform: translateX(4px); }

/* Process */
.process { padding: 0 0 clamp(80px, 9vw, 120px); }
.process__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: p; }
.process__list li { background: var(--white); border-radius: 22px; padding: 26px 24px 28px; border: 1px solid #e7e1d8; }
.process__list span { display: inline-block; font-family: var(--display); font-size: 2.25rem; line-height: 1; color: var(--red); margin-bottom: 12px; }
.process h3 { font-size: 1.625rem; margin-bottom: 6px; }
.process li p { color: var(--muted); font-size: 1.0625rem; }

/* FAQ */
.faq { padding: clamp(80px, 9vw, 120px) 0; background: var(--sand); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq__list { display: grid; gap: 12px; }
.faq__list details { background: var(--white); border-radius: 18px; }
.faq__list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 22px; font-weight: 700; font-size: 1.1875rem; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(193, 18, 31, 0.18); transition: transform 0.25s; }
.faq__list details[open] summary::after { transform: scale(1.35); }
.faq__list details p { padding: 0 22px 22px; color: var(--muted); }

/* Contact */
.contact { background: var(--char); color: var(--white); padding: clamp(80px, 9vw, 120px) 0; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact h2 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); margin-bottom: 14px; }
.contact__info > p:not(.eyebrow) { color: #d5d9de; margin-bottom: 26px; }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact__list li { display: grid; gap: 2px; }
.contact__list span { font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #ff8a93; }
.contact__list a { color: var(--white); font-weight: 700; justify-self: start; display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.contact__list address { font-style: normal; }
.form { background: var(--warm); color: var(--ink); border-radius: 26px; padding: clamp(22px, 4vw, 36px); display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 1rem; }
.opt { font-weight: 400; color: var(--muted); }
.form input:not([type="checkbox"]), .form textarea { width: 100%; min-height: 54px; padding: 12px 14px; border: 1.5px solid #d8d0c4; border-radius: 12px; background: var(--white); color: var(--ink); font: 400 1.125rem/1.4 var(--body); }
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(193, 18, 31, 0.18); }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-weight: 700; font-size: 1rem; padding: 0; margin-bottom: 8px; }
.chips label { display: block; position: relative; }
.chips input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid #d8d0c4; background: var(--white); font-weight: 700; font-size: 1rem; }
.chips input:checked + span { background: var(--char); border-color: var(--char); color: var(--white); }
.chips input:focus-visible + span { outline: 3px solid var(--red-bright); outline-offset: 3px; }
.form .btn { justify-self: start; }
.form__status { font-size: 1.0625rem; min-height: 1.5em; }
.form[data-state="success"] .form__status { color: #15803d; font-weight: 700; }
.form[data-state="error"] .form__status { color: var(--red); font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.footer { background: #15181b; color: #c3c8ce; padding: 44px 0 24px; font-size: 1.0625rem; }
.footer a { color: var(--white); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--char-3); }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand strong { color: var(--white); font-family: var(--display); font-weight: 400; font-size: 1.375rem; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; font-size: 0.9375rem; color: #a2a9b1; }

.mobile-bar { display: none; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 1040px) {
  .nav a:not(.btn) { display: none; }
  .services__grid { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .targeting__grid, .partners__grid, .faq__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .process__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-wrap, .partners__photo { max-width: 640px; }
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__bird { justify-self: start; width: min(100%, 360px); }
}

@media (max-width: 767px) {
  .header__inner { min-height: 68px; }
  .brand__mark { width: 44px; height: 44px; }
  .brand__text { font-size: 1.5rem; }
  .nav .btn { display: none; }
  .dot { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; }
  .process__list { grid-template-columns: minmax(0, 1fr); }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .form .btn { justify-self: stretch; }
  .footer__bottom { flex-direction: column; }
  body { padding-bottom: 84px; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(250, 248, 245, 0.97); border-top: 1px solid #e7e1d8; }
  .mobile-bar .btn { min-height: 54px; padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Legal links & form consent */
.legal-links { line-height: 2; }
.legal-links a { white-space: nowrap; }
.form-legal { margin: 0; font-size: 0.9375rem; line-height: 1.5; }
.form-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Optional-field labels: keep "(optional)" on the label line so inputs in a row line up */
.form label:has(> .opt) { grid-template-columns: max-content minmax(0, 1fr); column-gap: 6px; align-items: baseline; }
.form label:has(> .opt) > :is(input, select, textarea) { grid-column: 1 / -1; }

/* ---------- WordPress additions ---------- */

/* Colours and type for WordPress pages (same as the site's legal pages) */
:root {
  --lg-bg: #faf8f5;
  --lg-surface: #f2f0ed;
  --lg-ink: #16181b;
  --lg-muted: #5a5b5c;
  --lg-head: #16181b;
  --lg-accent: #c1121f;
  --lg-line: #d1d0ce;
  --lg-display: "DM Serif Display", Georgia, serif;
  --lg-body: "DM Sans", system-ui, sans-serif;
}

/* Sticky header below the admin bar for signed-in users */
.admin-bar .header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .header { top: 46px; } }
@media screen and (max-width: 600px) { .admin-bar .header { top: 0; } }

/* WordPress core helpers */
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { background: #fff; clip: auto !important; clip-path: none; color: #111; display: block; height: auto; left: 8px; padding: 12px 18px; top: 8px; width: auto; z-index: 100000; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }

/* Pages: Privacy Policy, Terms of Use, Accessibility Statement and any other page */
.page-doc { background: var(--lg-bg); color: var(--lg-ink); font-family: var(--lg-body); }
.page-doc__wrap { width: min(100% - 32px, 880px); margin-inline: auto; padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.page-doc .page-doc__title { font-family: var(--lg-display); font-weight: 400; color: var(--lg-head); font-size: clamp(2.25rem, 5vw, 3.25rem); line-height: 1.1; letter-spacing: normal; text-transform: none; margin: 0 0 14px; }
.page-doc__content { font-size: 1.1875rem; line-height: 1.7; }
.page-doc .page-doc__content h2 { font-family: var(--lg-display); font-weight: 400; color: var(--lg-head); font-size: clamp(1.5rem, 3vw, 1.875rem); line-height: 1.2; letter-spacing: normal; text-transform: none; margin: 2.2em 0 0.5em; }
.page-doc .page-doc__content h3 { font-family: var(--lg-body); font-weight: 700; color: var(--lg-ink); font-size: 1.1875rem; line-height: 1.3; letter-spacing: normal; text-transform: none; margin: 1.4em 0 0.3em; }
.page-doc .page-doc__content p, .page-doc .page-doc__content ul, .page-doc .page-doc__content ol { margin: 0 0 1em; max-width: 70ch; }
.page-doc .page-doc__content ul, .page-doc .page-doc__content ol { padding-left: 1.3em; list-style: revert; }
.page-doc .page-doc__content li { margin-bottom: 0.4em; }
.page-doc a { color: var(--lg-accent); overflow-wrap: anywhere; text-underline-offset: 3px; }
.page-doc .page-doc__content img { height: auto; }
.page-doc .page-date { color: var(--lg-muted); font-size: 1rem; }
.page-doc .page-contact { font-style: normal; padding: 18px 22px; border-left: 4px solid var(--lg-accent); background: var(--lg-surface); max-width: 70ch; margin: 0 0 1em; }
.page-doc .page-doc__back { margin-top: 40px; font-weight: 700; }
.page-doc .page-doc__back a { display: inline-flex; align-items: center; min-height: 44px; }
.page-doc .page-doc__item { padding: 22px 0; border-bottom: 1px solid var(--lg-line); }
.page-doc .page-doc__item h2 { font-family: var(--lg-display); font-weight: 400; font-size: 2rem; margin: 0 0 8px; }
.page-doc .page-doc__item h2 a { color: var(--lg-head); text-decoration: none; }
.page-doc .nav-links { display: flex; gap: 10px; margin-top: 28px; }
.page-doc .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 2px solid var(--lg-ink); color: var(--lg-ink); text-decoration: none; font-weight: 700; }
.page-doc .page-numbers.current { background: var(--lg-ink); color: var(--lg-bg); }
