/* ✦ Retrograde: sleek, mystic refinement (added 2026-12-03) ✦
   Lives in Appearance → Customize → Additional CSS.
   Palette taken from the Retrograde logo. */
:root {
  --rg-plum: #403050;
  --rg-peach: #E89060;
  --rg-ink: #2E2538;
  --rg-night: #1B1525;
  --rg-parchment: #F6F1EA;
  --rg-mist: #E7DEEA;
  --rg-hair: rgba(64, 48, 80, .18);
}

/* ---------- Cormorant Garamond throughout (icons and admin bar excluded) ---------- */
body,
body :is(h1, h2, h3, h4, h5, h6, p, a, li, span, div, button, input, textarea, select, label, blockquote, figcaption, td, th, strong, em, small):not(#wpadminbar *):not([class*="eicon"]):not([class*="fa-"]):not(.dashicons) {
  font-family: "Cormorant Garamond", "Times New Roman", Times, serif !important;
}
body { color: var(--rg-ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--rg-plum); color: var(--rg-parchment); }

/* ---------- Night-sky texture: a faint scatter of stars on the parchment ---------- */
body.elementor-default {
  background-color: var(--rg-parchment);
  background-image:
    radial-gradient(1.2px 1.2px at 8% 12%, rgba(64,48,80,.22) 50%, transparent 52%),
    radial-gradient(1px 1px at 27% 64%, rgba(232,144,96,.35) 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 46% 28%, rgba(64,48,80,.16) 50%, transparent 52%),
    radial-gradient(1px 1px at 63% 82%, rgba(64,48,80,.2) 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 78% 40%, rgba(232,144,96,.3) 50%, transparent 52%),
    radial-gradient(1px 1px at 92% 8%, rgba(64,48,80,.18) 50%, transparent 52%);
  background-size: 520px 520px;
}

/* ---------- Header: frosted, sticky, logo + spaced small-caps menu ---------- */
#site-header {
  position: sticky; top: 0; z-index: 999;
  padding-block: 14px;
  background: rgba(246, 241, 234, .84);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}
#site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--rg-hair) 30%, rgba(232,144,96,.55) 50%, var(--rg-hair) 70%, transparent);
}
.admin-bar #site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar #site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar #site-header { top: 0; } } /* admin bar scrolls away on phones */

/* Align the header with the page content: pages use a 1280px content box
   with 24px side padding on desktop and 16px on tablet/phone */
#site-header { padding-inline: 0 !important; }
#site-header .header-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: calc(1280px + 48px) !important;
  margin-inline: auto;
  padding-inline: 24px;
}
@media (max-width: 1024px) {
  #site-header .header-inner { max-width: none !important; padding-inline: 16px; }
}
#site-header .site-navigation ul.menu > li:last-child > a { padding-inline-end: 0; }
#site-header .site-navigation-toggle-holder { padding-inline-end: 0; }

#site-header .site-logo img,
#site-header .custom-logo { box-shadow: none !important; transition: opacity .4s ease; }
#site-header .site-logo a:hover img { opacity: .8; }

#site-header .site-navigation ul.menu li a,
#site-header .site-navigation-dropdown ul.menu li a {
  color: var(--rg-plum);
  transition: color .3s ease;
}
#site-header .site-navigation ul.menu li a:hover,
#site-header .site-navigation-dropdown ul.menu li a:hover {
  color: var(--rg-peach);
}
#site-header .site-navigation ul.menu li.current-menu-item > a::before {
  content: "✦"; margin-inline-end: .5em; color: var(--rg-peach); font-size: .85em;
}
#site-header .site-navigation-dropdown ul.menu { background: var(--rg-parchment); }
#site-header .site-navigation-dropdown ul.menu li a {
  background: var(--rg-parchment) !important; color: var(--rg-plum) !important;
  border-bottom: 1px solid var(--rg-hair); box-shadow: none !important;
  font-size: 14px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; padding: 18px 16px;
}
#site-header .site-navigation-dropdown ul.menu li.current-menu-item > a { background: var(--rg-mist) !important; }
#site-header .site-navigation-dropdown ul.menu li.current-menu-item > a::before { content: "✦"; margin-inline-end: .6em; color: var(--rg-peach); }
#site-header .site-navigation-toggle { background: transparent; border: 1px solid var(--rg-hair); border-radius: 0; color: var(--rg-plum); }

/* ---------- Headings: lighter, airier, with a star ornament under section titles ---------- */
h1, h2, h3, h4, h5, h6, .elementor-heading-title { font-weight: 500 !important; }
.elementor-widget-heading h2.elementor-heading-title::after {
  content: "✦"; display: block; margin-top: .55em;
  font-size: 14px; letter-spacing: 0; color: var(--rg-peach);
}

/* ---------- Buttons: squared, spaced, with a soft glow on hover ---------- */
.elementor-button {
  border-radius: 0 !important;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease, transform .35s ease !important;
}
.elementor-button:hover {
  box-shadow: 0 10px 30px -12px rgba(232, 144, 96, .7);
  transform: translateY(-1px);
}

/* ---------- Images: soft plum shadow, gentle settle on hover ---------- */
.elementor-widget-image img {
  border-radius: 2px;
  transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .8s ease;
}
.elementor-widget-image:hover img { transform: translateY(-3px); filter: saturate(1.06); }

/* ---------- Links in body copy ---------- */
.elementor-widget-text-editor a {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  text-decoration-color: rgba(232, 144, 96, .6);
}

/* ---------- Forms: hairline fields ---------- */
.elementor-field-group input:not([type=checkbox]):not([type=radio]),
.elementor-field-group textarea,
.elementor-field-group select,
.contact-form input:not([type=checkbox]):not([type=radio]):not([type=submit]),
.contact-form textarea {
  border: 1px solid var(--rg-hair) !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, .55) !important;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.elementor-field-group :is(input, textarea, select):focus,
.contact-form :is(input, textarea):focus {
  outline: none; border-color: var(--rg-peach) !important;
  box-shadow: 0 0 0 3px rgba(232, 144, 96, .15);
}

/* ---------- Footer stays at the bottom of the screen on short pages ---------- */
body {
  display: flex; flex-direction: column;
  min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
}
body > #content, body > main { flex: 1 0 auto; }
#site-footer { flex-shrink: 0; }

/* ---------- Footer: midnight band with a constellation divider ---------- */
#site-footer {
  position: relative;
  padding-block: 56px 40px;
  background: var(--rg-night);
  box-shadow: 0 0 0 100vmax var(--rg-night);
  clip-path: inset(0 -100vmax);
  color: rgba(246, 241, 234, .72);
}
#site-footer::before {
  content: "✦   ✧   ✦"; display: block; text-align: center; white-space: pre;
  color: var(--rg-peach); font-size: 12px; letter-spacing: .4em; margin-bottom: 28px;
}
#site-footer, #site-footer * { color: rgba(246, 241, 234, .72); }
#site-footer a:hover { color: var(--rg-peach); }
#site-footer .copyright p { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; }
#site-footer .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 18px; }
#site-footer .site-branding { align-items: center; }
#site-footer .copyright { text-align: center; }
/* Footer logo: no shadow, recoloured to glow light on the midnight band */
#site-footer .site-logo img,
#site-footer .custom-logo {
  box-shadow: none !important; max-width: 200px !important; height: auto;
  filter: invert(1) hue-rotate(180deg) brightness(1.05); opacity: .92;
  display: block; margin-inline: auto;
}

@media (prefers-reduced-motion: reduce) {
  .elementor-button, .elementor-widget-image img { transition: none !important; }
  .elementor-button:hover, .elementor-widget-image:hover img { transform: none; }
}

/* ---------- Lists: the peach ✦ (as under the headings) as the bullet everywhere ---------- */
/* Icon List widgets: replace whatever icon was chosen with the star */
.elementor-widget-icon-list .elementor-icon-list-icon {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 14px;
  align-self: flex-start; height: 1lh; /* sit on the first line when an item wraps */
}
.elementor-widget-icon-list .elementor-icon-list-icon > svg,
.elementor-widget-icon-list .elementor-icon-list-icon > i { display: none !important; }
.elementor-widget-icon-list .elementor-icon-list-icon::before {
  content: "✦"; color: var(--rg-peach); font-size: 14px; line-height: 1;
}
/* Icon Box steps that used a star icon: show the same peach star */
.elementor-widget-icon-box .elementor-icon:has(> svg.e-fas-star) > svg { display: none !important; }
.elementor-widget-icon-box .elementor-icon:has(> svg.e-fas-star)::before {
  content: "✦"; display: inline-block; width: 1em; text-align: center;
  color: var(--rg-peach); line-height: 1;
}
/* Plain bulleted lists written in a Text Editor widget */
.elementor-widget-text-editor ul { list-style: none; padding-inline-start: 1.5em; }
.elementor-widget-text-editor ul > li { position: relative; }
.elementor-widget-text-editor ul > li::before {
  content: "✦"; position: absolute; inset-inline-start: -1.5em; top: .1em;
  color: var(--rg-peach); font-size: .8em;
}

/* ---------- All-caps titles: add the CSS class "rg-caps" to an Icon Box (Advanced → CSS Classes) ---------- */
.rg-caps .elementor-icon-box-title { text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Contact page: no shadow under the logo image ---------- */
.page-id-14 .elementor-element-98dd696 img { box-shadow: none; }

/* ---------- Logos: add the CSS class "rg-no-shadow" to an Image widget for no shadow and no hover lift ---------- */
.rg-no-shadow img { box-shadow: none !important; }
.rg-no-shadow:hover img { transform: none; filter: none; }

/* ---------- Heading stars: half the space above and below the ✦ ---------- */
@property --rg-hlh { syntax: "<length>"; inherits: true; initial-value: 0px; }
.elementor-widget-heading h2.elementor-heading-title { --rg-hlh: 1lh; }
.elementor-widget-heading h2.elementor-heading-title::after {
  line-height: 14px;
  margin-top: calc((7.7px + (var(--rg-hlh) - 14px) / 2) / 2);
  /* pull the next element up by half the old gap; small headings (line height under 30px) are left alone */
  margin-bottom: min(0px, max(calc((30px - var(--rg-hlh)) * 1000), calc(((var(--rg-hlh) - 14px) / 2 - var(--row-gap, 20px) - 8px) / 2)));
}
