/* ==========================================================================
   Petals of a Love Letter component layer.
   Literal port of the Lovable build (src/styles.css + Tailwind classes in
   src/routes/*.tsx). design/DESIGN.md holds the numbers; breakpoints are
   Tailwind's: sm 640 / md 768 / lg 1024. Class prefix: .pola-
   theme.json owns tokens + block defaults; tokens.css is generated.
   ========================================================================== */

:root {
  /* One-offs from the old palette that are not semantic slots (DESIGN.md). */
  --pola-fg: #121E14;          /* --foreground */
  --pola-primary: #1C3A27;     /* --primary: buttons, featured package */
  --pola-primary-fg: #F8F5EE;  /* --primary-foreground */
  --pola-blush: #F5E4DE;       /* --secondary: CTA band */
  --pola-card: #FDFCF8;        /* --card */
  --pola-ink: var(--pola-contrast);
  --pola-ink-fg: #F3EEE3;      /* --ink-foreground */
  --pola-ease: cubic-bezier(.2, .7, .2, 1);
  --pola-display: var(--wp--preset--font-family--heading);
}

/* --- Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; } /* Tailwind preflight parity (lesson: <a> vs <button> heights) */
body { color: var(--pola-fg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, h4 { font-family: var(--pola-display); font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; }
::selection { background: var(--pola-primary); color: var(--pola-primary-fg); }
:focus-visible { outline: 2px solid var(--pola-primary); outline-offset: 3px; }
.has-contrast-background-color :focus-visible, .pola-hero :focus-visible, .pola-footer :focus-visible, .pola-package.is-featured :focus-visible { outline-color: var(--pola-ink-fg); }
a { text-underline-offset: .2em; text-decoration-thickness: 1px; }
img { max-width: 100%; height: auto; }

/* --- Stacked full-bleed panels ------------------------------------------------
   Kill the block gap between top-level sections — with `margin-block`, NOT
   `margin: 0`, which destroys alignfull's negative side margins. */
.wp-site-blocks > * + * { margin-block-start: 0 !important; }
.wp-block-post-content > * + * { margin-block-start: 0 !important; }
.wp-block-post-content > .pola-panel, .wp-block-post-content > .pola-hero { margin-block: 0 !important; }
/* Component spacing is explicit (Tailwind mt-*), not WP's 24px blockGap. Two classes beat :root :where(). */
.pola-panel.pola-panel > *, .pola-hero.pola-hero > *, .pola-hero-inner.pola-hero-inner > *,
.wp-block-group.pola-box-reset > * { margin-block: 0; }

/* Grid/flex containers built from wp:group (layout default = is-layout-flow) must not get
   WP's 24px margin-block-start on their 2nd+ children: it misaligns grid rows. */
:is(.pola-event-cards, .pola-steps, .pola-packages, .pola-values, .pola-story, .pola-contact-grid,
    .pola-footer-grid, .pola-section-head, .pola-event-row, .pola-form-grid, .pola-testimonials-grid).wp-block-group > *,
:is(.pola-event-cards, .pola-steps, .pola-packages, .pola-values, .pola-story, .pola-contact-grid,
    .pola-footer-grid, .pola-section-head, .pola-event-row) > * { margin-block-start: 0; }

/* Flow-layout fallback: if a page is ever saved in the editor, panels lose `layout`
   and fall back to is-layout-flow. Zero specificity: never crushes a component. */
.wp-block-post-content > .pola-panel.is-layout-flow > :where(*) {
  max-width: 1232px;
  margin-inline: auto;
  box-sizing: border-box;
}

/* --- Type helpers ------------------------------------------------------------- */
.pola-eyebrow, .pola-filter a, .pola-nav .wp-block-navigation-item__content, .pola-textlink {
  font-family: var(--wp--preset--font-family--body);
  font-size: .7rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.5;
}
/* The old rose (#D2918B) is 2.39:1 as text; accent-deep is the same hue at 4.5:1. */
.pola-eyebrow-accent { color: var(--pola-accent-deep); }
.pola-muted { color: var(--pola-muted); }
.pola-small { font-size: .875rem; line-height: 1.43; }

/* --- Buttons (theme.json = primary; outline per old .btn-outline) --------------- */
.wp-block-button__link { transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
.wp-block-buttons.wp-block-buttons { gap: 1rem; }
.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link:not(:hover) {
  background: transparent;
  color: currentColor;
  border: 1px solid currentColor;
  padding: calc(.95rem - 1px) calc(2rem - 1px);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--pola-fg); color: var(--pola-base); border-color: var(--pola-fg); }
.pola-hero .is-style-outline .wp-block-button__link { color: var(--pola-ink-fg); }
.pola-textlink { color: inherit; text-decoration: none; border-bottom: 1px solid var(--pola-fg); padding-bottom: 4px; }

/* --- Header ------------------------------------------------------------------
   sticky top-0 z-50 border-b bg-background/90 backdrop-blur; h-20; max-w-7xl px-6.
   Blur lives on ::before so the nav overlay (a fixed DESCENDANT) is not clipped. */
header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.admin-bar header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 0px); }
.pola-header-bar { position: relative; isolation: isolate; border-bottom: 1px solid var(--pola-line); }
.pola-header-bar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--pola-base) 90%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pola-header { height: 80px; gap: 36px; align-items: center; }
.pola-header > * { margin-block: 0 !important; }
.pola-wordmark { display: inline-flex; align-items: center; gap: 12px; }
.pola-mark { flex: 0 0 auto; width: 44px; height: 44px; display: block; }
/* Trailing postmark waves: tucked against the ring (negative margin = the lines start at the ring's edge, like the logo). */
.pola-mark-waves { flex: 0 0 auto; display: block; width: 34px; height: 32px; margin-left: -10px; }
.pola-footer .pola-mark-waves { width: 44px; height: 40px; margin-left: -12px; }
@media (max-width: 480px) { .pola-mark-waves { display: none !important; } }
.pola-footer .pola-wordmark { display: flex; gap: 16px; --mark-ring: var(--pola-ink-fg); --mark-dots: #F5E4DE; --mark-petal: #F5E4DE; --mark-heart: var(--pola-accent); }
.pola-footer .pola-mark { width: 56px; height: 56px; }
/* Phones: mark + name + "Menu" must share 272–366px. */
@media (max-width: 400px) { .pola-header .pola-mark { width: 32px; height: 32px; } .pola-header .pola-wordmark { gap: 8px; font-size: 1.25rem; } }
.pola-footer .pola-wordmark-name { white-space: normal; }
@media (max-width: 480px) { .pola-footer p.pola-wordmark { font-size: 1.75rem; line-height: 2rem; gap: 12px; } .pola-footer .pola-mark { width: 44px; height: 44px; } }
.pola-wordmark { margin: 0; font-family: var(--pola-display); font-style: italic; font-weight: 500; font-size: 1.5rem; line-height: 2rem; letter-spacing: -0.025em; color: inherit; text-decoration: none; white-space: nowrap; }
.pola-header > .pola-nav { margin-left: auto !important; }
.pola-nav .wp-block-navigation__container { flex-wrap: nowrap; gap: 36px; }
.pola-nav .wp-block-navigation-item__content { color: var(--pola-muted); text-decoration: none; transition: color .3s ease; }
.pola-nav .wp-block-navigation-item__content:hover,
.pola-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--pola-fg); }
.pola-nav .pola-nav-cta { display: none; }
.pola-header-actions { flex: 0 0 auto; }
.pola-cta-header .wp-block-button__link { padding: 12px 24px; min-height: 44px; display: inline-flex; align-items: center; }
/* Mobile toggle = the word "Menu" (hasIcon:false), eyebrow style like the original. */
.pola-header .pola-nav button.wp-block-navigation__responsive-container-open,
.pola-header .pola-nav button.wp-block-navigation__responsive-container-close {
  font-family: var(--wp--preset--font-family--body); font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 600;
  min-height: 44px; min-width: 44px; padding: 0 4px; color: var(--pola-fg); line-height: 1.5; align-items: center;
}

/* Nav collapse (main.js adds html.pola-nav-collapsed when the row would not fit; always under 1024px = lg:hidden). */
html.pola-nav-collapsed .pola-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
html.pola-nav-collapsed .pola-nav .wp-block-navigation__responsive-container-open { display: flex !important; }
html.pola-nav-collapsed .pola-header-actions { display: none; }
@media (max-width: 1023px) {
  .pola-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
  .pola-nav .wp-block-navigation__responsive-container-open { display: flex !important; }
  .pola-header-actions { display: none; }
}
/* Open overlay: cream sheet, eyebrow links stacked with 20px gaps, the quote button last. */
.pola-header .pola-nav .wp-block-navigation__responsive-container.is-menu-open { background-color: var(--pola-base) !important; color: var(--pola-fg) !important; padding: 24px; }
.pola-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 64px; align-items: flex-start; }
.pola-nav .is-menu-open .wp-block-navigation__container { flex-direction: column; align-items: flex-start; gap: 20px; }
.pola-nav .is-menu-open .wp-block-navigation-item__content { font-size: .7rem; color: var(--pola-fg); padding: 6px 0; }
.pola-nav .is-menu-open .pola-nav-cta { display: block; margin-top: 8px; }
.pola-nav .is-menu-open .pola-nav-cta .wp-block-navigation-item__content { display: inline-flex; padding: .95rem 2rem; background: var(--pola-primary); color: var(--pola-primary-fg); letter-spacing: .2em; font-size: .75rem; }

/* --- Hero (home + page) --------------------------------------------------------
   Photo absolute, ink overlay 25% → 75% top to bottom, copy in the 1232 container. */
.pola-hero { position: relative; display: flex; overflow: hidden; color: var(--pola-ink-fg); }
.pola-hero-home { min-height: max(600px, 92vh); align-items: center; }
.pola-hero-page { min-height: max(420px, 60vh); align-items: flex-end; }
.pola-hero-img { position: absolute; inset: 0; width: 100%; height: 100% !important; max-width: none !important; object-fit: cover; margin: 0 !important; }
.pola-hero-overlay { position: absolute; inset: 0; max-width: none !important; margin: 0 !important; background: linear-gradient(180deg, color-mix(in oklab, var(--pola-ink) 25%, transparent), color-mix(in oklab, var(--pola-ink) 75%, transparent)); }
.pola-hero-inner { position: relative; width: 100%; animation: pola-rise 1s var(--pola-ease) both; }
.pola-hero-page .pola-hero-inner { padding-bottom: 64px; }
/* H1 = the page topic in the small tracked caps line; the big brand line is .pola-hero-title (a <p>).
   Same look as the Lovable hero, honest outline (SEO audit 2026-11-22). */
.pola-hero h1.pola-hero-h1 {
  font-family: var(--wp--preset--font-family--body); font-size: .7rem; line-height: 1.5; letter-spacing: .28em;
  text-transform: uppercase; font-weight: 600; color: inherit; opacity: .8; margin: 0; max-width: 768px;
}
.pola-hero-title { font-family: var(--pola-display); font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; max-width: 768px; font-size: 3rem; line-height: 1; margin-top: 1rem !important; }
.pola-hero-home .pola-hero-title { max-width: 896px; font-size: 3.75rem; line-height: .95; margin-top: 1.5rem !important; }
.pola-hero-text { max-width: 576px; opacity: .85; margin-top: 1.25rem !important; }
.pola-hero-home .pola-hero-text { max-width: 512px; font-size: 1.125rem; line-height: 1.556; margin-top: 2rem !important; }
.pola-hero .wp-block-buttons { margin-top: 2.5rem !important; }
@media (min-width: 768px) {
  .pola-hero-title { font-size: 4.5rem; }
  .pola-hero-home .pola-hero-title { font-size: 6rem; }
}
@keyframes pola-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* --- Section heads + shared rhythm -------------------------------------------- */
.pola-panel h2 { font-size: 3rem; line-height: 1; }
.pola-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.pola-section-head > *, .pola-head-text > * { margin: 0; }
.pola-head-text h2, .pola-process h2 { margin-top: .75rem !important; }
.pola-head-link { margin: 0; }

/* Stats band (renders only with owner-confirmed numbers). */
.pola-stats { border-bottom: 1px solid var(--pola-line); }
.pola-stats-grid { max-width: 1280px; margin: 0 auto; padding: 56px 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; text-align: center; }
.pola-stats-grid p { margin: 0; }
.pola-stat-num { font-family: var(--pola-display); font-size: 2.25rem; line-height: 2.5rem; }
.pola-stats .pola-eyebrow { margin-top: .5rem; color: var(--pola-muted); }
@media (min-width: 768px) { .pola-stats-grid { grid-template-columns: repeat(4, 1fr); } }

/* Event cards (home): grid md:3 gap-8, 3:4 crop, whole card clickable. */
.pola-event-cards { display: grid; gap: 32px; margin-top: 56px !important; }
@media (min-width: 768px) { .pola-event-cards { grid-template-columns: repeat(3, 1fr); } }
.pola-event-card { position: relative; }
.pola-event-card > * { margin: 0; }
.pola-card-media { aspect-ratio: 3 / 4; overflow: hidden; }
.pola-card-media img, .pola-event-row > img, .pola-work img, .pola-testimonials-img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--pola-ease); }
.pola-event-card:hover .pola-card-media img, .pola-work:hover img { transform: scale(1.05); }
.pola-event-card h3 { margin-top: 1.5rem !important; font-size: 1.875rem; line-height: 2.25rem; }
.pola-event-card h3 a { color: inherit; text-decoration: none; }
.pola-event-card h3 a::after { content: ""; position: absolute; inset: 0; }
.pola-card-text { margin-top: .5rem !important; font-size: .875rem; line-height: 1.43; color: var(--pola-muted); }
/* Copy-pass additions (SEO audit 2026-11-22): what-to-expect line under the head, the other three occasions after the cards. */
/* Narrow text blocks inside a constrained panel: stay in the 1232px column (margin-inline:auto is the
   column), keep a ~640px measure flush with its left edge via the end padding. Zeroing the inline
   margins instead drops the block to the viewport gutter at wide screens (alignment probe 2026-11-24). */
.pola-occasions-lede, .pola-package-lede, .pola-gallery-empty { max-width: 1232px; margin-inline: auto !important; padding-inline-end: max(0px, calc(min(100%, 1232px) - 640px)); box-sizing: border-box; } /* % is of the full-bleed parent, so cap it at the column */
.pola-occasions-lede { margin-block: 1.5rem 0 !important; color: var(--pola-muted); font-size: 1.125rem; line-height: 1.556; }
.pola-more-occasions { margin-top: 2.5rem !important; color: var(--pola-muted); }
.pola-occasions-lede a, .pola-more-occasions a, .pola-starting a, .pola-terms a, .pola-facts-note a { color: var(--pola-fg); }

/* Process band: ink, four steps with a 20% hairline. */
.pola-process .pola-eyebrow { opacity: .6; }
.pola-steps { display: grid; gap: 48px; margin-top: 64px !important; }
@media (min-width: 768px) { .pola-steps { grid-template-columns: repeat(4, 1fr); } }
.pola-step { border-top: 1px solid color-mix(in srgb, var(--pola-ink-fg) 20%, transparent); padding-top: 24px; }
.pola-step > * { margin: 0; }
.pola-step-num { font-family: var(--pola-display); font-style: italic; font-size: 3rem; line-height: 1; opacity: .5; }
.pola-step h3 { margin-top: 1rem !important; font-size: 1.5rem; line-height: 2rem; color: inherit; }
.pola-step-text { margin-top: .75rem !important; font-size: .875rem; line-height: 1.43; opacity: .7; }
.pola-step-text a { color: inherit; }

/* Testimonials (render only with real client words). */
.pola-testimonials-grid { max-width: 1280px; margin: 0 auto; padding: 112px 24px; display: grid; gap: 64px; align-items: center; }
@media (min-width: 768px) { .pola-testimonials-grid { grid-template-columns: 1fr 1fr; } }
.pola-testimonials-img { aspect-ratio: 4 / 5; height: auto; }
.pola-quote { margin: 3rem 0 0; }
.pola-quote.is-lead { margin-top: 1.5rem; }
.pola-quote blockquote { margin: 0; padding: 0; border: 0; }
.pola-quote blockquote p { margin: 0; font-family: var(--pola-display); font-style: italic; font-size: 1.5rem; line-height: 1.375; color: var(--pola-muted); }
.pola-quote.is-lead blockquote p { font-size: 2.25rem; line-height: 1.25; color: var(--pola-fg); }
.pola-quote figcaption { margin-top: 1rem; color: var(--pola-muted); }
.pola-quote.is-lead figcaption { margin-top: 2rem; }
.pola-testimonials .pola-eyebrow-accent { margin: 0; }

/* CTA band (pattern): blush, centred. */
.pola-cta-band { background: var(--pola-blush); text-align: center; }
.pola-cta-band .pola-eyebrow { color: var(--pola-muted); }
.pola-cta-band h2 { max-width: 672px; margin: 1rem auto 0 !important; font-size: 2.25rem; line-height: 2.5rem; }
.pola-cta-band .wp-block-buttons { margin-top: 2.5rem !important; }
@media (min-width: 768px) { .pola-cta-band h2 { font-size: 3rem; line-height: 1; } }

/* --- Events page: alternating rows ---------------------------------------------- */
.pola-event-list > * + * { margin-top: 112px !important; }
.pola-event-row { display: grid; gap: 48px; align-items: center; scroll-margin-top: calc(var(--pola-header-h, 80px) + 24px); }
.pola-event-row > img { aspect-ratio: 4 / 3; height: auto; }
@media (min-width: 768px) {
  .pola-event-row { grid-template-columns: 1fr 1fr; }
  .pola-event-row.is-flipped > img { order: 2; }
}
.pola-event-text > * { margin: 0; }
.pola-event-text h2 { margin-top: .75rem !important; }
.pola-event-text .pola-muted { margin-top: 1.25rem !important; }
.pola-starting { margin-top: 1.5rem !important; font-size: .875rem; line-height: 1.43; }
.pola-from { font-family: var(--pola-display); font-size: 1.5rem; line-height: 2rem; }
.pola-event-text .wp-block-buttons { margin-top: 2rem !important; }

/* --- Portfolio ------------------------------------------------------------------ */
.pola-portfolio.pola-portfolio { padding-block: 80px !important; }
.pola-filter { display: flex; flex-wrap: wrap; gap: 24px; border-bottom: 1px solid var(--pola-line); padding-bottom: 24px; }
.pola-filter a { color: var(--pola-muted); text-decoration: none; padding-bottom: 4px; border-bottom: 1px solid transparent; min-height: 24px; }
.pola-filter a[aria-current="true"] { color: var(--pola-fg); border-bottom-color: var(--pola-fg); }
.pola-filter a:hover { color: var(--pola-fg); }
.pola-masonry { margin-top: 48px; columns: 1; column-gap: 24px; }
@media (min-width: 640px) { .pola-masonry { columns: 2; } }
@media (min-width: 1024px) { .pola-masonry { columns: 3; } }
.pola-work { margin: 0 0 24px; break-inside: avoid; overflow: hidden; }
.pola-work[hidden] { display: none; }
.pola-work img { height: auto; }
.pola-work figcaption { margin-top: .75rem; display: flex; justify-content: space-between; gap: 16px; font-size: .875rem; line-height: 1.43; }
.pola-work figcaption .pola-eyebrow { color: var(--pola-muted); white-space: nowrap; }
.pola-gallery-empty p { margin: 0 0 2rem; color: var(--pola-muted); font-size: 1.125rem; line-height: 1.556; }

/* --- Packages -------------------------------------------------------------------- */
.pola-package-lede { margin-block: 0 3rem !important; color: var(--pola-muted); font-size: 1.125rem; line-height: 1.556; }
.pola-packages { display: grid; gap: 32px; }
@media (min-width: 768px) { .pola-packages { grid-template-columns: repeat(3, 1fr); } }
.pola-package { display: flex; flex-direction: column; border: 1px solid var(--pola-line); padding: 40px; background: var(--pola-card); }
.pola-package > * { margin: 0; }
.pola-package.is-featured { background: var(--pola-primary); color: var(--pola-primary-fg); border-color: var(--pola-primary); }
.pola-package.is-featured .pola-eyebrow { opacity: .7; margin-bottom: 1rem; }
.pola-package h2 { font-size: 2.25rem; line-height: 2.5rem; color: inherit; }
.pola-price { margin-top: .5rem !important; font-family: var(--pola-display); font-style: italic; font-size: 1.5rem; line-height: 2rem; opacity: .8; }
.pola-package-items { flex: 1; list-style: none; padding: 0; margin-top: 2rem !important; font-size: .875rem; line-height: 1.43; }
.pola-package-items li { border-bottom: 1px solid color-mix(in srgb, currentColor 15%, transparent); padding-bottom: 1rem; }
.pola-package-items li + li { margin-top: 1rem; }
.pola-package .wp-block-buttons { margin-top: 2.5rem !important; }
.pola-package .wp-block-button, .pola-package .wp-block-button__link { width: 100%; justify-content: center; text-align: center; }
.pola-package.is-featured .is-style-outline .wp-block-button__link:hover { background: var(--pola-fg); color: var(--pola-base); border-color: var(--pola-fg); }
.pola-addon-section.pola-addon-section { padding-top: 0 !important; }
.pola-narrow { max-width: 768px; margin-inline: auto !important; }
.pola-narrow > * { margin: 0; }
.pola-narrow h2 { font-size: 2.25rem; line-height: 2.5rem; }
.pola-addons { margin: 2rem 0 0; }
.pola-addons div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--pola-line); padding-block: 1rem; }
.pola-addons dt, .pola-addons dd { margin: 0; }
.pola-addons dd { color: var(--pola-muted); text-align: right; }
.pola-terms { margin-top: 1.5rem !important; font-size: .875rem; line-height: 1.43; color: var(--pola-muted); }

/* --- About ---------------------------------------------------------------------- */
.pola-story { display: grid; gap: 64px; }
@media (min-width: 768px) { .pola-story { grid-template-columns: 1fr 1fr; } }
.pola-story > * { margin: 0; }
.pola-story-head > * { margin: 0; }
.pola-story-h { font-family: var(--wp--preset--font-family--body); font-size: .7rem !important; line-height: 1.5 !important; letter-spacing: .28em; text-transform: uppercase; font-weight: 600; color: var(--pola-accent-deep); }
.pola-story-lead { margin-top: .75rem !important; font-family: var(--pola-display); font-weight: 500; letter-spacing: -0.01em; font-size: 3rem; line-height: 1.25; text-wrap: balance; }
.pola-story-text a { color: inherit; }
.pola-story-text > * { margin: 0; color: var(--pola-muted); }
.pola-story-text > * + * { margin-top: 1.5rem; }
.pola-values { display: grid; gap: 48px; }
@media (min-width: 768px) { .pola-values { grid-template-columns: repeat(3, 1fr); } }
.pola-value > * { margin: 0; }
.pola-value-title { font-size: 1.875rem; line-height: 2.25rem; font-style: italic; }
.pola-value .pola-muted { margin-top: .75rem !important; }

/* --- FAQ (wp:details from bin/faq-sync.py): display-face summary, "+" turns to "×". */
.pola-faq { border-bottom: 1px solid var(--pola-line); padding-block: 24px; margin: 0 !important; }
.pola-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; font-family: var(--pola-display); font-size: 1.5rem; line-height: 2rem; font-weight: 500; }
.pola-faq summary::-webkit-details-marker { display: none; }
.pola-faq summary::after { content: "+"; flex: 0 0 auto; transition: transform .3s var(--pola-ease); }
.pola-faq[open] summary::after { transform: rotate(45deg); }
.pola-faq > :not(summary) { margin: 1rem 0 0; color: var(--pola-muted); }

/* --- Contact ---------------------------------------------------------------------- */
.pola-contact-grid { display: grid; gap: 80px; }
@media (min-width: 768px) { .pola-contact-grid { grid-template-columns: 1fr 2fr; } }
.pola-contact-grid > * { margin: 0; }
.pola-contact-aside > * { margin: 0; }
.pola-facts-note { margin-top: 2.5rem !important; font-size: .875rem; line-height: 1.43; color: var(--pola-muted); }
.pola-facts { font-size: .875rem; }
.pola-facts > div + div { margin-top: 2rem; }
.pola-facts p { margin: 0; }
.pola-facts .pola-eyebrow { color: var(--pola-muted); }
.pola-fact { margin-top: .5rem !important; font-size: 1rem; line-height: 1.5; }
.pola-fact a { color: inherit; }
.pola-form-wrap > * { margin: 0; }
.pola-form-grid { display: grid; gap: 32px; }
@media (min-width: 640px) { .pola-form-grid { grid-template-columns: 1fr 1fr; } .pola-field.is-wide { grid-column: 1 / -1; } }
.pola-field { margin: 0; }
.pola-field label { display: block; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--pola-muted); }
.pola-field br { display: none; }
.pola-field .wpcf7-form-control-wrap { display: block; margin-top: 4px; }
.pola-field input, .pola-field select, .pola-field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--pola-line); border-radius: 0;
  padding: .75rem 0; font: inherit; font-size: 1rem; letter-spacing: normal; text-transform: none; font-weight: 400; color: var(--pola-fg);
  outline: none; transition: border-color .2s, box-shadow .2s, background-color .2s; -webkit-appearance: none; appearance: none;
}
.pola-field select { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 24px; }
.pola-field input:focus, .pola-field select:focus, .pola-field textarea:focus { border-bottom-color: var(--pola-primary); box-shadow: 0 1px 0 0 var(--pola-primary); background-color: color-mix(in srgb, var(--pola-primary) 5%, transparent); }
/* The tint makes focus visible on the whole field, not only its bottom edge (a tall textarea's edge can sit off-screen: WCAG 2.4.7). */
.pola-field textarea { resize: vertical; min-height: 8rem; }
.pola-submit { margin: 32px 0 0; }
.wpcf7 input[type="submit"] {
  min-height: 44px; border: 0; border-radius: 0; cursor: pointer; background: var(--pola-primary); color: var(--pola-primary-fg);
  padding: .95rem 2rem; font: 600 .75rem/1.5 var(--wp--preset--font-family--body); letter-spacing: .2em; text-transform: uppercase; transition: background-color .3s ease;
}
.wpcf7 input[type="submit"]:hover { background: var(--pola-ink); }
.wpcf7-spinner { margin: 0 0 0 16px; }
.wpcf7 form .wpcf7-response-output { margin: 24px 0 0; padding: 12px 16px; border: 1px solid var(--pola-line); }
html.js .wpcf7 form.sent .wpcf7-response-output { display: none; }
.wpcf7-not-valid-tip { color: #A3372F; font-size: .875rem; margin-top: 6px; }
.pola-field [aria-invalid="true"] { border-bottom-color: #A3372F; }
.pola-sent { border: 1px solid var(--pola-line); background: var(--pola-card); padding: 48px; text-align: center; }
.pola-sent[hidden] { display: none; }
.pola-sent h2 { margin: 0; font-size: 2.25rem; line-height: 2.5rem; font-style: italic; }
.pola-sent p { margin: 1rem 0 0; color: var(--pola-muted); }
/* Live character counter under textareas (main.js). */
.pola-count { display: block; margin-top: 6px; font-size: .8125rem; line-height: 1.3; text-align: right; font-variant-numeric: tabular-nums; color: var(--pola-muted); letter-spacing: normal; text-transform: none; font-weight: 400; }
.pola-count.is-short, .pola-count.is-max { color: var(--pola-accent-deep); }

/* --- Footer --------------------------------------------------------------------- */
.pola-footer { color: var(--pola-ink-fg) !important; }
.pola-footer.pola-footer { padding-top: 80px !important; }
.pola-footer-grid { display: grid; gap: 48px; padding-bottom: 80px; }
@media (min-width: 768px) {
  .pola-footer-grid { grid-template-columns: repeat(4, 1fr); }
  .pola-footer-brand { grid-column: span 2; }
}
.pola-footer-grid > * { margin: 0 !important; }
.pola-footer-contact { display: contents; }
.pola-footer-brand > * { margin: 0; }
.pola-footer .pola-wordmark { font-size: 2.25rem; line-height: 2.5rem; letter-spacing: -0.01em; }
.pola-footer-desc { margin-top: 1rem !important; max-width: 384px; font-size: .875rem; line-height: 1.43; opacity: .7; }
.pola-footer-col { font-size: .875rem; line-height: 1.43; }
.pola-footer-col h2 { margin: 0 0 1rem; opacity: .6; }
.pola-footer-col p { margin: 0; opacity: .8; }
.pola-footer-col p + p { margin-top: .5rem; }
.pola-footer-col a { color: inherit; }
.pola-footer { overflow: hidden; }
.pola-footer-legal { position: relative; margin-block: 0 !important; margin-inline: auto !important; padding: 24px 0; } /* stays in the footer's 1232px column */
.pola-footer-legal::before { content: ""; position: absolute; top: 0; left: 50%; width: 100vw; transform: translateX(-50%); border-top: 1px solid color-mix(in srgb, var(--pola-ink-fg) 10%, transparent); }
.pola-copyright { margin: 0; font-size: .75rem !important; line-height: 1rem; opacity: .5; }
.pola-copyright a { color: inherit; font-weight: 600; text-decoration: underline; }

/* --- 404 --------------------------------------------------------------------------- */
.pola-404 { min-height: 50vh; }

/* Reduced motion: no rise, no zoom. */
@media (prefers-reduced-motion: reduce) {
  .pola-hero-inner { animation: none; }
  .pola-card-media img, .pola-event-row > img, .pola-work img, .pola-faq summary::after { transition: none; }
  .pola-event-card:hover .pola-card-media img, .pola-work:hover img { transform: none; }
}

/* --- Tap targets (tests/qa-mobile.js, 44×44 on phones). Underlines move from border-bottom to
   text-decoration so the added padding never pushes the line away from the text. */
.pola-faq summary { min-height: 44px; align-items: center; }
.pola-textlink { border-bottom: 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
@media (max-width: 781px) {
  .pola-textlink { display: inline-block; padding-block: 14px; margin-block: -14px; }
  .pola-filter { gap: 8px 24px; }
  .pola-filter a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding-bottom: 0; }
  .pola-footer-col a, .pola-header a.pola-wordmark, .pola-event-cards h3 a, .pola-fact a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Footer privacy link: own line above the copyright; 44px tap target on phones. */
.pola-legal-link { margin-bottom: 8px !important; }
@media (max-width: 781px) { .pola-legal-link a { display: inline-flex; align-items: center; min-height: 44px; } }

/* --- Privacy page (seed/pages/privacy.html): long-form prose in a 760px column. Three classes
   beat the panel's two-class margin reset above. */
.pola-panel.pola-privacy.pola-privacy > * + * { margin-block-start: 1rem; }
.pola-panel.pola-privacy.pola-privacy > h1 { font-size: clamp(2.5rem, 6vw, 3.75rem); line-height: 1.05; letter-spacing: -0.01em; }
.pola-panel.pola-privacy.pola-privacy > h1 + p { margin-block-start: .75rem; font-size: .875rem; color: var(--pola-muted); }
.pola-panel.pola-privacy.pola-privacy > h2 { margin-block-start: 2.75rem; font-size: 1.875rem; line-height: 1.2; }
.pola-panel.pola-privacy.pola-privacy > p, .pola-panel.pola-privacy.pola-privacy > ul { font-size: 1.0625rem; line-height: 1.7; }
.pola-privacy ul { padding-left: 1.25rem; }
.pola-privacy li + li { margin-top: .625rem; }
.pola-privacy a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
