/* Redbank Digital — shared styles */

:root {
  --brick: #A3342B;
  --brick-dark: #862920;
  --brick-tint: #F0B3AC;
  --charcoal: #2B2B2B;
  --off-white: #FAF8F5;
  --warm-gray: #E8E4DF;
  --white: #FFFFFF;
  --muted: #5C5752;
  --on-dark-muted: #CFCAC4;

  --font-head: "Sora", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 40px;
  --s6: 48px;
  --s8: 64px;
  --s12: 96px;

  --radius: 8px;
  --max: 1200px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--off-white);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2.375rem, 7vw, 4.75rem); line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.015em; }

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--brick); text-underline-offset: 3px; }
a:hover { color: var(--brick-dark); }

:focus-visible { outline: 3px solid var(--brick); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible,
.on-brick :focus-visible { outline-color: var(--white); }

[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: var(--s2); top: -100px; z-index: 100;
  padding: var(--s1) var(--s2); background: var(--charcoal); color: var(--white);
}
.skip:focus { top: var(--s2); color: var(--white); }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--s3)); margin-inline: auto; padding-inline: var(--s3); }

.section { padding-block: var(--s8); }
.section--white { background: var(--white); }
.section--line { border-top: 1px solid var(--warm-gray); }
.section__head { max-width: 760px; margin-bottom: var(--s6); }
.section__head p:not(.eyebrow) { margin-top: var(--s2); color: var(--muted); font-size: 1.125rem; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: var(--s2);
  color: var(--brick);
  font-family: var(--font-head);
  font-size: 0.8125rem; font-weight: 600; line-height: 1.4;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.eyebrow::before { content: ""; flex: none; width: 32px; height: 2px; background: currentColor; }
.on-dark .eyebrow { color: var(--brick-tint); }
.on-brick .eyebrow { color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  min-height: 52px; padding: 14px 26px;
  border: 2px solid transparent; border-radius: 6px;
  font-family: var(--font-head); font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brick); color: var(--white); }
.btn--primary:hover { background: var(--brick-dark); color: var(--white); }
.btn--outline { border-color: var(--charcoal); color: var(--charcoal); background: transparent; }
.btn--outline:hover { background: var(--charcoal); color: var(--white); }
.btn--light { background: var(--white); color: var(--brick); }
.btn--light:hover { background: var(--off-white); color: var(--brick-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 600; text-decoration: none;
  border-bottom: 2px solid currentColor; padding-bottom: 2px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--off-white);
  border-bottom: 1px solid var(--warm-gray);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 72px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; flex: 0 1 auto; min-width: 0; padding-block: var(--s1); }
.logo img { height: 32px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }

.nav-toggle {
  display: none; flex: none; align-items: center; gap: var(--s1);
  min-height: 44px; padding: 8px 14px;
  background: transparent; color: var(--charcoal);
  border: 2px solid var(--charcoal); border-radius: 6px;
  font-family: var(--font-head); font-size: 0.9375rem; font-weight: 600; cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 18px; height: 2px; background: currentColor; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.site-nav { width: 100%; padding-bottom: var(--s2); }
.site-nav ul { display: flex; flex-direction: column; }
.site-nav a:not(.btn) {
  display: block; padding: 12px 0;
  color: var(--charcoal); font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--warm-gray);
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"]:not(.btn) { color: var(--brick); }
.site-nav .btn { width: 100%; margin-top: var(--s2); }

.js .nav-toggle { display: inline-flex; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }

@media (min-width: 960px) {
  .js .nav-toggle { display: none; }
  .logo img { height: 40px; }
  .site-nav, .js .site-nav { display: block; width: auto; padding: 0; }
  .site-nav ul { flex-direction: row; align-items: center; gap: var(--s4); }
  .site-nav a:not(.btn) { padding: 8px 0; border-bottom: 2px solid transparent; font-size: 0.9375rem; }
  .site-nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--brick); }
  .site-nav .btn { width: auto; margin: 0; min-height: 44px; padding: 10px 20px; font-size: 0.9375rem; }
}

/* Hero */
.hero { padding-block: var(--s8) var(--s8); border-bottom: 1px solid var(--warm-gray); }
.hero__inner { max-width: 920px; }
.hero__sub { margin-top: var(--s3); max-width: 720px; color: var(--muted); font-size: clamp(1.125rem, 2vw, 1.3125rem); line-height: 1.55; }
.hero--page h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); }

.meta-row { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--warm-gray); font-size: 0.9375rem; }
.meta-row dt { color: var(--muted); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.meta-row dd { margin: 4px 0 0; font-weight: 500; }
.meta-row__link { align-self: flex-end; }

/* Grids and cards */
.grid { display: grid; gap: var(--s3); }
.card {
  display: block; padding: var(--s4);
  background: var(--white); border: 1px solid var(--warm-gray); border-radius: var(--radius);
}
.card h3 + p { margin-top: 12px; color: var(--muted); }
a.card { color: inherit; text-decoration: none; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
a.card:hover { border-color: var(--brick); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(43, 43, 43, .08); }
a.card h3 { display: flex; justify-content: space-between; gap: var(--s2); }
a.card h3::after { content: "\2192"; color: var(--brick); font-weight: 400; }

.card__icon { width: 44px; height: 44px; margin-bottom: var(--s3); padding: 10px; border-radius: 6px; background: var(--off-white); border: 1px solid var(--warm-gray); color: var(--brick); }

/* Numbered grid */
.num-grid { display: grid; gap: var(--s4) var(--s4); }
.num-grid li { padding-top: var(--s3); border-top: 2px solid var(--charcoal); }
.num { display: block; margin-bottom: var(--s2); color: var(--brick); font-family: var(--font-head); font-size: 2rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.num-grid p { margin-top: 12px; color: var(--muted); }
.on-dark .num-grid li { border-top-color: rgba(255, 255, 255, .3); }

/* Stats strip */
.stats { background: var(--white); border-block: 1px solid var(--warm-gray); }
.stats__grid { display: grid; grid-template-columns: 1fr 1fr; }
.stat { padding: var(--s4) var(--s2) var(--s4) 0; }
.stat dd { margin: 0; font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--brick); white-space: nowrap; }
.stat dt { margin-top: 12px; color: var(--muted); font-size: 0.9375rem; line-height: 1.4; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; }

/* Bands */
.band { padding-block: var(--s8); }
.band--brick { background: var(--brick); color: var(--white); }
.band--charcoal { background: var(--charcoal); color: var(--white); }
.band--brick a:not(.btn), .band--charcoal a:not(.btn) { color: var(--white); }
.band__grid { display: grid; gap: var(--s4); align-items: center; }
.band p:not(.eyebrow) { font-size: 1.125rem; }
.band--charcoal p:not(.eyebrow) { color: var(--on-dark-muted); }
.cta { text-align: left; }
.cta h2 { max-width: 820px; }
.cta p { margin-top: var(--s2); }

/* Split (image + text) */
.split { display: grid; gap: var(--s5); align-items: center; }
.split p:not(.eyebrow) { margin-top: var(--s2); color: var(--muted); }
.split__links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin-top: var(--s4); }
.frame { border: 1px solid var(--warm-gray); border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: 0 24px 48px rgba(43, 43, 43, .12); }
.frame img { width: 100%; }

/* Pricing */
.pricing { display: grid; gap: var(--s3); align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: var(--s4); background: var(--white); border: 1px solid var(--warm-gray); border-radius: var(--radius); }
.price-card--featured { border: 2px solid var(--brick); box-shadow: 0 24px 48px rgba(163, 52, 43, .14); }
.badge { align-self: flex-start; margin-bottom: var(--s2); padding: 6px 12px; background: var(--brick); color: var(--white); border-radius: 999px; font-family: var(--font-head); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.price { margin-top: var(--s2); padding-bottom: var(--s3); border-bottom: 1px solid var(--warm-gray); color: var(--muted); }
.price strong { color: var(--charcoal); font-family: var(--font-head); font-size: 2.5rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; }
.checklist { display: grid; gap: 12px; margin-top: var(--s3); }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 0.45em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--brick); border-bottom: 2.5px solid var(--brick); transform: rotate(-45deg);
}
.on-brick .checklist li::before { border-color: var(--white); }

/* Feature cards */
.feature { display: grid; gap: var(--s3); padding: var(--s5) var(--s4); border-radius: var(--radius); margin-top: var(--s3); align-items: center; }
.feature p:not(.eyebrow) { margin-top: var(--s2); }
.feature .btn { justify-self: start; }
.feature--outline { background: var(--off-white); border: 2px solid var(--brick); }
.feature--outline p:not(.eyebrow) { color: var(--muted); }
.feature--brick { background: var(--brick); color: var(--white); }
.feature--charcoal { background: var(--charcoal); color: var(--white); }
.feature--charcoal p:not(.eyebrow) { color: var(--on-dark-muted); }
.feature h2, .feature h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.feature__note { font-weight: 600; }

.callout { margin-top: var(--s5); padding: var(--s3) var(--s4); background: var(--white); border-left: 4px solid var(--brick); border-radius: 0 var(--radius) var(--radius) 0; }
.callout p + p { margin-top: var(--s1); color: var(--muted); }

/* Timeline */
.timeline { display: grid; gap: var(--s4); counter-reset: none; }
.timeline li { position: relative; padding-top: var(--s3); border-top: 2px solid var(--charcoal); }
.timeline li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--brick); }
.timeline p { margin-top: 12px; color: var(--muted); }

/* FAQ */
.faq { max-width: 840px; border-top: 1px solid var(--warm-gray); }
.faq details { border-bottom: 1px solid var(--warm-gray); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s3);
  padding: var(--s3) 0; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-size: 1.125rem; font-weight: 600; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--brick); font-size: 1.75rem; font-weight: 400; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--brick); }
.faq details p { padding: 0 var(--s5) var(--s3) 0; color: var(--muted); }

/* Work */
.project-grid { display: grid; gap: var(--s4); }
.project { display: grid; background: var(--white); border: 1px solid var(--warm-gray); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.project:hover { color: inherit; border-color: var(--brick); transform: translateY(-2px); box-shadow: 0 24px 48px rgba(43, 43, 43, .1); }
.project__img { background: var(--charcoal); }
.project__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.project__body { padding: var(--s4); align-self: center; }
.project__body p:not(.eyebrow) { margin-top: 12px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s3); }
.tags li { padding: 4px 12px; border: 1px solid var(--warm-gray); border-radius: 999px; background: var(--off-white); font-size: 0.8125rem; font-weight: 500; }
.project__more { display: inline-block; margin-top: var(--s3); color: var(--brick); font-family: var(--font-head); font-weight: 600; }

.icon-list { display: grid; gap: var(--s2); }
.icon-list li { display: flex; gap: var(--s2); align-items: flex-start; padding: var(--s3); background: var(--white); border: 1px solid var(--warm-gray); border-radius: var(--radius); }
.icon-list svg { flex: none; width: 24px; height: 24px; margin-top: 2px; color: var(--brick); }

.shots { display: grid; gap: var(--s3); align-items: start; }
.shots figure { margin: 0; }
.shots figcaption { margin-top: 12px; color: var(--muted); font-size: 0.875rem; }
.shots__phone { max-width: 280px; }

.prose { max-width: 720px; }
.prose p + p { margin-top: var(--s3); }
.prose p:first-child { font-family: var(--font-head); font-size: 1.375rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; }
.two-col { display: grid; gap: var(--s5); }
.two-col h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.two-col p { margin-top: var(--s2); color: var(--muted); }

.headshot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--warm-gray); max-width: 480px; }
.headshot img { width: 100%; }

/* Founder strip (homepage) */
.founder { display: grid; gap: var(--s3); align-items: center; max-width: 840px; margin-top: var(--s6); padding: var(--s4); background: var(--white); border: 1px solid var(--warm-gray); border-radius: var(--radius); }
.founder img { width: 96px; height: 120px; object-fit: cover; border-radius: 6px; }
.founder p { color: var(--muted); }
.founder .text-link { margin-top: var(--s2); }

.section__note { margin-top: var(--s4); color: var(--muted); }
.section__note a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.section__note a:hover { text-decoration: underline; }

/* Light feature row (Services: Redbank App) */
.feature--light { background: var(--white); border: 1px solid var(--warm-gray); }
.feature--light p:not(.eyebrow) { color: var(--muted); }
.feature--light .feature__note { color: var(--charcoal); font-size: 0.9375rem; font-weight: 500; }

.creds { display: grid; gap: var(--s2) var(--s5); }
.creds li { padding-left: var(--s2); border-left: 3px solid var(--brick); font-family: var(--font-head); font-weight: 600; line-height: 1.4; }

.lead { font-size: clamp(1.25rem, 2.4vw, 1.5rem); line-height: 1.45; font-family: var(--font-head); font-weight: 600; letter-spacing: -0.015em; }

/* Pricing single card */
.single-price { max-width: 560px; margin-inline: auto; padding: var(--s6) var(--s4); background: var(--white); border: 2px solid var(--brick); border-radius: var(--radius); text-align: center; }
.single-price__amount { font-family: var(--font-head); font-size: clamp(3.5rem, 9vw, 5rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.single-price__term { margin-top: var(--s1); color: var(--muted); }
.single-price .checklist { display: inline-grid; text-align: left; margin-block: var(--s4); }

/* Forms */
.contact-grid { display: grid; gap: var(--s6); align-items: start; }
.form { display: grid; gap: var(--s3); padding: var(--s4); background: var(--white); border: 1px solid var(--warm-gray); border-radius: var(--radius); }
.form__row { display: grid; gap: var(--s3); }
.field label { display: block; margin-bottom: 6px; font-size: 0.9375rem; font-weight: 600; }
.field .req { color: var(--brick); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  background: var(--off-white); color: var(--charcoal);
  border: 1px solid #8C857E; border-radius: 6px;
  font: inherit;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--brick); outline-offset: 1px; border-color: var(--brick); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }

.panel { display: grid; gap: var(--s3); }
.panel > div { padding-top: var(--s3); border-top: 2px solid var(--charcoal); }
.panel h2 { font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.panel p { margin-top: var(--s1); }
.panel a { font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: var(--charcoal); color: var(--on-dark-muted); border-top: 1px solid rgba(255, 255, 255, .14); padding-block: var(--s6) var(--s4); font-size: 0.9375rem; }
.site-footer__grid { display: grid; gap: var(--s5); }
.site-footer .logo img { height: 40px; }
.site-footer h2 { margin-bottom: var(--s2); color: var(--white); font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.site-footer li + li { margin-top: var(--s1); }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__bottom { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid rgba(255, 255, 255, .14); }

/* Breakpoints */
@media (min-width: 640px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr 1fr; }
  .num-grid { grid-template-columns: 1fr 1fr; }
  .form__row { grid-template-columns: 1fr 1fr; }
  .icon-list { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: 1fr 1fr; }
  .shots__phone { grid-column: 1 / -1; }
  .founder { grid-template-columns: 120px 1fr; gap: var(--s4); }
  .founder img { width: 120px; height: 150px; }
}

@media (min-width: 960px) {
  .container { padding-inline: var(--s4); max-width: calc(var(--max) + 2 * var(--s4)); }
  .section, .band { padding-block: var(--s12); }
  .hero { padding-block: 112px 104px; }
  .hero--page { padding-block: var(--s12) 80px; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .num-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .num-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .stat { padding: var(--s6) var(--s3); border-left: 1px solid var(--warm-gray); }
  .stat:first-child { padding-left: 0; border-left: 0; }
  .band__grid { grid-template-columns: 1fr 1fr; gap: var(--s8); }
  .split { grid-template-columns: 1.15fr 1fr; gap: var(--s8); }
  .split--about { grid-template-columns: 0.8fr 1fr; align-items: start; }
  .pricing { grid-template-columns: repeat(3, 1fr); }
  .feature { grid-template-columns: 1.6fr auto; gap: var(--s6); padding: var(--s6); }
  .feature--single { grid-template-columns: 1fr; }
  .custom-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--s8); align-items: start; }
  .custom-grid .section__head { position: sticky; top: 112px; margin-bottom: 0; }
  .timeline { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .timeline li { padding-right: var(--s5); }
  .two-col { grid-template-columns: 1fr 1fr; gap: var(--s8); }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .project--featured { grid-column: 1 / -1; grid-template-columns: 1.3fr 1fr; }
  .project--featured .project__body { padding: var(--s6); }
  .shots { grid-template-columns: 1fr 1fr 0.42fr; }
  .shots__phone { grid-column: auto; max-width: none; }
  .creds { grid-template-columns: repeat(3, auto); justify-content: start; }
  .contact-grid { grid-template-columns: 1.4fr 1fr; gap: var(--s8); }
  .form { padding: var(--s5); }
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}

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