/* Shared components used by more than one section (WEB-6). Each becomes an Astro component at WEB-3. */

/* ---------- Label: small uppercase mono text (short labels only, never sentences) ---------- */
.label {
  font: 500 var(--text-xs)/1.4 var(--mono);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.label-accent { color: var(--spark-deep); }

/* ---------- Buttons: round corners (since 2026-11-02, Krishna; were sharp), colour change on hover, nothing lifts ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--tap); padding: .75rem 1.625rem;
  border: 1.5px solid transparent; border-radius: var(--radius-control);   /* was until 2026-11-02 (Krishna: round every button): var(--radius) */
  font: 600 var(--text-md)/1.2 var(--body); letter-spacing: .01em; text-decoration: none;
  transition: background-color var(--fast), color var(--fast), border-color var(--fast);
}
.btn .arrow { transition: transform var(--fast); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-deep); }

.btn-ghost { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-ghost:hover { background: var(--primary); color: var(--on-primary); }

/* Text link with a hairline underline */
.btn-link {
  display: inline-flex; align-items: center; gap: .375rem; min-height: var(--tap);
  font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - .75rem) / 100% 1px no-repeat;
  transition: background-size var(--fast);
}
.btn-link:hover { background-size: 40% 1px; }

.btn-sm { min-height: 2.5rem; padding: .5rem 1.125rem; font-size: var(--text-sm); }

/* ---------- Section shell: every section on every page uses it ---------- */
.section { padding-block: var(--section); }
.section-alt { background: var(--soft); }
/* Two sand sections in a row read as one band: no double gap between them (2026-11-02, Krishna: more premium) */
.section-alt + .section-alt { padding-top: 0; }

.section-head { display: grid; gap: 1rem; max-width: 48rem; margin-bottom: var(--space-md); }
.section-title {
  font: 600 var(--text-h2)/1 var(--display);
  letter-spacing: var(--tracking-title);
  font-variation-settings: "opsz" 144;
}
.section-intro { max-width: var(--measure); font-size: var(--text-intro); color: var(--muted); }

/* One CTA closes every section (WEB-7.10) */
.section-cta { margin-top: var(--space-md); }

/* ---------- Page intro: the top of every inner page (H1 + lead + actions) ---------- */
.page-intro { padding-block: var(--space-lg) var(--space-md); border-bottom: var(--rule-strong); }
.page-title {
  max-width: 18ch; margin-top: 1rem;
  font: 600 var(--text-page)/.98 var(--display);
  letter-spacing: var(--tracking-display);
  font-variation-settings: "opsz" 144;
}
.page-lead { max-width: var(--measure); margin-top: 1.5rem; font-size: var(--text-intro); color: var(--muted); }
/* was until 2026-10-14 (button removed, Krishna): .page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; } */
/* was until 2026-10-14 (button removed, Krishna): .page-note { flex-basis: 100%; font-size: var(--text-sm); color: var(--muted); } */

/* ---------- Feature list with small champagne squares (Home services, Services packages) ---------- */
.service-features { display: grid; gap: .5rem; align-content: start; }
.service-features li { display: flex; align-items: baseline; gap: .75rem; }
.service-features li::before { content: ""; flex: none; width: .3125rem; height: .3125rem; background: var(--spark); transform: translateY(-.2em); }

/* ---------- Text block: heading left, short text right (Services, About) ---------- */
.text-block { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); align-items: end; }
.text-block .section-head { margin-bottom: 0; }
.text-block p { max-width: var(--measure); color: var(--muted); }
@media (max-width: 55rem) {
  .text-block { grid-template-columns: 1fr; }
}

/* ---------- Quote: large italic serif ---------- */
.quote {
  font: italic 500 var(--text-quote)/1.2 var(--display);
  letter-spacing: -.02em;
}

/* ---------- Blank media: stands in for a real screenshot or photo ---------- */
.media-blank {
  background:
    linear-gradient(135deg, transparent 49.8%, var(--line) 50%, transparent 50.2%),
    var(--soft);
}

/* Marks placeholder content in the prototype; nothing with this class may ship (WEB-17.8) */
.placeholder { outline: 1px dashed var(--spark); outline-offset: 4px; }

/* ---------- Form field ---------- */
.field { display: grid; gap: .375rem; }
.field-label { font-size: var(--text-sm); font-weight: 600; }
.field-input {
  min-height: var(--tap); padding: .75rem 1rem;
  border: 1px solid var(--muted); border-radius: var(--radius-control);   /* was until 2026-11-02 (Krishna: round every form field): var(--radius) */
  background: var(--surface); color: var(--ink); font: inherit;
}

/* Dropdowns (2026-11-02): our own small chevron, set in from the round edge, instead of the browser's arrow that sat on the curve.
   Drawn with two token coloured gradients, so no colour lives outside tokens.css. */
.field-select {
  appearance: none; -webkit-appearance: none; padding-right: 2.75rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 1.55rem) 55%, calc(100% - 1.2rem) 55%;
  background-size: .35rem .35rem; background-repeat: no-repeat;
}

/* Email field and button on one line, wrapping on phones (guide and newsletter forms) */
.form-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.form-row .field-input { flex: 1 1 12rem; }

/* Framed screenshot: a quiet browser window with softly rounded corners, used on Work and the case studies (2026-10-18, Krishna) */
.shot-frame { overflow: hidden; background: var(--window-bar); border: 1px solid var(--window-edge); border-radius: var(--radius-frame); }
.shot-frame::before { content: ""; display: block; height: 1.75rem; border-bottom: 1px solid var(--window-edge); background: radial-gradient(circle, var(--window-close) .34rem, transparent .38rem) .5rem 50% / .875rem .875rem no-repeat, radial-gradient(circle, var(--window-min) .34rem, transparent .38rem) 1.75rem 50% / .875rem .875rem no-repeat, radial-gradient(circle, var(--window-max) .34rem, transparent .38rem) 3rem 50% / .875rem .875rem no-repeat; }   /* red, yellow and green window dots */
.shot-frame img { display: block; width: 100%; height: auto; }
/* was until 2026-10-18 (Krishna: match a desktop app window): .shot-frame { padding: 0 .625rem .625rem; background: var(--surface); border: var(--rule); border-radius: var(--radius-frame); }
.shot-frame::before { content: ""; display: block; height: 2rem; background: radial-gradient(circle, var(--line) .25rem, transparent .3rem) 0 50% / .875rem .875rem no-repeat, radial-gradient(circle, var(--line) .25rem, transparent .3rem) 1.125rem 50% / .875rem .875rem no-repeat, radial-gradient(circle, var(--line) .25rem, transparent .3rem) 2.25rem 50% / .875rem .875rem no-repeat; }   ( three quiet dots )
.shot-frame img { display: block; width: 100%; height: auto; border: var(--rule); border-radius: var(--radius-frame-in); } */

/* Offset champagne hairline behind a photo, set down and to the right like a second edge (2026-10-30, Krishna: trial on the two About photos) */
.photo-offset { position: relative; isolation: isolate; }
.photo-offset::after { content: ""; position: absolute; inset: 0; z-index: -1; translate: .875rem .875rem; border: 1px solid var(--spark); border-radius: var(--radius); pointer-events: none; }
/* 2026-10-30 (Krishna: animate when the section comes into view): once the photo has faded in, the line slides out from behind it and settles. Plays once, never loops. */
/* was until 2026-10-30 (Krishna: smoother): .js .reveal-scroll .photo-offset::after { translate: 0 0; opacity: 0; transition: translate var(--fade) var(--ease), opacity var(--fade) var(--ease); transition-delay: calc(var(--stagger) * 4); } */
.js .reveal-scroll .photo-offset::after { translate: 0 0; opacity: 0; transition: translate var(--enter) var(--ease-soft), opacity var(--enter) var(--ease-soft); transition-delay: calc(var(--stagger) * 3); } /* was calc(var(--stagger) * 6) until 2026-10-30: the photo now arrives first, so the line follows sooner */
.js .reveal-scroll.is-visible .photo-offset::after { translate: .875rem .875rem; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal-scroll .photo-offset::after { translate: .875rem .875rem; opacity: 1; }
}

/* Main heading accent: the italic half in deep champagne gold (2026-10-18, Krishna: some colour in each page's main heading; passes 4.5:1 on stone) */
.page-title em { font-style: italic; font-weight: 500; color: var(--spark-deep); }

/* Trial (2026-10-18, Krishna: a subtle colour in the heading section): a soft champagne wash with a hint of pale teal, fading into stone. On Work and the case studies only for now. */
/* was until 2026-10-18 (Krishna: black): .intro-glow { background: var(--band); }   ( solid pale teal ) */
/* was until 2026-10-18 (Krishna: try a different solid colour): .intro-glow { background: var(--glow); }   ( solid champagne; gold text, muted text and teal all pass 4.5:1 on it ) */
/* was until 2026-10-18 (Krishna: a solid colour, not a soft glow): .intro-glow { background: radial-gradient(85% 140% at 85% 0%, var(--glow), transparent 75%), var(--bg); }   ( champagne gold from the top right ) */
/* was until 2026-10-18 (Krishna: remove the blue and pink, gold only): .intro-glow { background: radial-gradient(85% 140% at 85% 0%, var(--glow), transparent 75%), radial-gradient(55% 90% at 10% 0%, var(--mist), transparent 75%), var(--bg); }   ( champagne gold from the top right, a little pale teal from the top left ) */
/* was until 2026-10-18 (Krishna: bluish rather than pink): .intro-glow { background: radial-gradient(85% 140% at 85% 0%, var(--glow), transparent 75%), radial-gradient(55% 90% at 10% 0%, var(--blush), transparent 75%), var(--bg); }   ( champagne gold from the top right, a little blush from the top left (mirrors the call to action) ) */
/* was until 2026-10-18 (Krishna: mix the blush in the heading too): .intro-glow { background: radial-gradient(85% 140% at 85% 0%, var(--glow), transparent 75%), var(--bg); } */
/* was until 2026-10-18 (Krishna: a little more): .intro-glow { background: radial-gradient(70% 110% at 85% 0%, var(--glow), transparent 70%), var(--bg); } */   /* one colour: champagne, to match the gold italic */
/* was until 2026-10-18 (Krishna: one colour only): .intro-glow { background: radial-gradient(60% 90% at 88% 10%, var(--tint), transparent 70%), radial-gradient(55% 80% at 8% 100%, var(--glow), transparent 70%), var(--bg); } */

/* Trial (2026-10-18, Krishna: use the coral in a background): a soft blush wash behind the final call to action, rising from the bottom left. Work and the case studies only for now. */
/* was until 2026-10-18 (Krishna: black): .cta-glow { background: var(--band); }   ( solid pale teal, matching the heading ) */
/* was until 2026-10-18 (Krishna: try a different solid colour): .cta-glow { background: var(--glow); }   ( solid champagne, matching the heading ) */
/* was until 2026-10-18 (Krishna: a solid colour, not a soft glow): .cta-glow { background: radial-gradient(85% 140% at 15% 100%, var(--glow), transparent 75%), var(--bg); }   ( champagne gold from the bottom left, mirroring the heading ) */
/* was until 2026-10-18 (Krishna: remove the blue and pink, gold only): .cta-glow { background: radial-gradient(60% 90% at 85% 100%, var(--glow), transparent 75%), radial-gradient(85% 140% at 15% 100%, var(--blush), transparent 75%), var(--bg); }   ( blush from the bottom left, a little champagne gold from the bottom right ) */
/* was until 2026-10-18 (Krishna: mix in a little gold): .cta-glow { background: radial-gradient(85% 140% at 15% 100%, var(--blush), transparent 75%), var(--bg); } */

/* Black band behind the page heading and the final call to action (2026-10-18, Krishna chose black). Light text on ink, champagne accents;
   every pair passes 4.5:1 (stone 14.7, muted 7.5, champagne 5.3). Teal fails on ink, so the button turns stone here. */
.intro-glow, .cta-glow { background: var(--black); color: var(--on-dark); }
/* was until 2026-10-18 (Krishna: true black): .intro-glow, .cta-glow { background: var(--ink); color: var(--on-dark); } */
.cta-glow { border-bottom: 1px solid var(--line-dark); }   /* keeps it apart from the dark footer */
.intro-glow .label, .cta-glow .label, .intro-glow .page-title em { color: var(--spark); }
.intro-glow .page-lead, .intro-glow .story-dek, .cta-glow .cta-body { color: var(--on-dark-muted); }
/* was until 2026-10-21 (Home hero has a button too): .cta-glow .btn-primary { background: var(--on-dark); color: var(--black); } .cta-glow .btn-primary:hover { background: var(--spark); } */
.intro-glow .btn-primary, .cta-glow .btn-primary { background: var(--on-dark); color: var(--black); }
.intro-glow .btn-primary:hover, .cta-glow .btn-primary:hover { background: var(--spark); }
.intro-glow :focus-visible, .cta-glow :focus-visible { outline-color: var(--spark); }

/* Solid pink band (2026-10-18, Krishna: Work page heading and final call to action in solid pink). Dark text stays as on stone. */
/* was until 2026-10-18 (Krishna: Work page black too): .band-blush { background: var(--blush); } */

/* Form status line under a form sent by Web3Forms (Contact, Home newsletter; moved from contact.css 2026-11-09) */
.form-status:empty { display: none; }
.form-status { margin-top: var(--space-sm); font-size: var(--text-sm); font-weight: 600; color: var(--ink); }
.form-status.is-error { color: var(--wax); }

/* Thank you pop up after a newsletter sign up (2026-11-09, Krishna: a pop up, not one line). One dialog, added by site.js. */
.thanks-pop { width: min(30rem, calc(100% - 2 * var(--gutter))); padding: 0; border: 1px solid var(--line); border-radius: var(--radius-card);
  background: var(--surface); color: var(--ink); }
.thanks-pop::backdrop { background: var(--veil); }
.thanks-pop-body { display: grid; gap: var(--space-sm); padding: clamp(1.75rem, 5vw, 2.5rem); text-align: center; }
.thanks-pop-body .btn { margin-top: var(--space-sm); }
.thanks-pop-mark { justify-self: center; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--glow); color: var(--spark-deep); font-family: var(--display); font-size: var(--text-h3); }
.thanks-pop-title { margin: 0; font-family: var(--display); font-size: var(--text-h3); line-height: 1.15; }
.thanks-pop-title em { font-style: italic; font-weight: 500; color: var(--spark-deep); }
.thanks-pop-text { margin: 0; color: var(--muted-deep); }
.thanks-pop-line { margin: 0; font-size: var(--text-sm); font-weight: 600; color: var(--spark-deep); }
.thanks-pop .btn { justify-self: center; }
@media (prefers-reduced-motion: no-preference) {
  .thanks-pop[open] { animation: thanks-in .5s var(--ease-soft); }
  .thanks-pop[open]::backdrop { animation: thanks-fade .5s var(--ease-soft); }
}
@keyframes thanks-in { from { opacity: 0; transform: translateY(1rem) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes thanks-fade { from { opacity: 0; } to { opacity: 1; } }
