/* Brand pieces from the December 2026 design brief: the ivory hero, section
 * heads, service tabs and cards, team circles, the editorial band, the Say
 * Hello contact layout, inner page headers and "+" accordion rows.
 * Tokens only; each new token falls back to an older one, so a skin that
 * predates the brief still renders. */

/* ---- motion: a gentle rise for the hero, once ---- */
@keyframes ivy-rise { from { opacity: 0; transform: translateY(var(--ivy-space-sm)); } }
@keyframes ivy-fade { from { opacity: 0; } }

/* ---- hero: text-led on ivory, framed by two fine arches ---- */
.ivy-brand-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center; text-align: center;
  min-height: var(--ivy-brand-hero-min-height, auto);
  background: var(--ivy-brand-hero-bg, var(--ivy-c-bg));
}
.ivy-brand-hero::before, .ivy-brand-hero::after {
  content: ""; position: absolute; left: 50%; translate: -50% 0; z-index: -1;
  border: var(--ivy-border-width) solid var(--ivy-card-border, var(--ivy-c-border));
  border-bottom: 0; border-radius: var(--ivy-radius-pill) var(--ivy-radius-pill) 0 0;
  pointer-events: none;
}
.ivy-brand-hero::before { top: 6%; bottom: -10%; width: min(38rem, 84vw); }
.ivy-brand-hero::after  { top: 9%; bottom: -10%; width: min(35rem, 76vw); }
.ivy-brand-hero__inner { padding-block: var(--ivy-space-xl) var(--ivy-space-2xl); max-width: var(--ivy-width-content); }
.ivy-brand-hero__crest { width: var(--ivy-crest-hero-width, 11rem); height: auto; margin: 0 auto var(--ivy-space-lg); animation: ivy-rise var(--ivy-duration-slow, var(--ivy-duration)) var(--ivy-ease) both; }
.ivy-main .ivy-brand-hero__title {
  font-size: var(--ivy-text-display, var(--ivy-text-3xl));
  font-weight: var(--ivy-weight-display, var(--ivy-weight-heading));
  line-height: var(--ivy-leading-tight); margin-bottom: var(--ivy-space-sm);
  animation: ivy-rise var(--ivy-duration-slow, var(--ivy-duration)) var(--ivy-ease) 80ms both;
}
.ivy-brand-hero__sub {
  margin-inline: auto; font-family: var(--ivy-font-heading); font-style: italic; line-height: var(--ivy-leading-snug);
  font-size: var(--ivy-text-lg); color: var(--ivy-c-muted);
  animation: ivy-rise var(--ivy-duration-slow, var(--ivy-duration)) var(--ivy-ease) 160ms both;
}
.ivy-brand-hero__cta { margin: var(--ivy-space-lg) auto 0; animation: ivy-rise var(--ivy-duration-slow, var(--ivy-duration)) var(--ivy-ease) 240ms both; }

/* ---- section heads: eyebrow over a spaced serif capital title ---- */
.ivy-section-head { text-align: center; margin-bottom: var(--ivy-space-xl); }
.ivy-section-head .ivy-eyebrow { margin-inline: auto; }
.ivy-main .ivy-section-title {
  font-weight: var(--ivy-weight-body); text-transform: uppercase;
  letter-spacing: var(--ivy-tracking-caps, var(--ivy-tracking-wide));
  font-size: var(--ivy-text-2xl); margin-bottom: 0;
}
.ivy-section--alt { background: var(--ivy-section-alt-bg, var(--ivy-c-surface)); }
/* Spaced capitals run wide: on a phone "OUR SERVICES" must stay one line. */
@media (max-width: 30rem) {
  .ivy-main .ivy-section-title { font-size: var(--ivy-text-xl); }
  .ivy-tabs__list { gap: 0 var(--ivy-space-md); }
  .ivy-tabs__tab { padding-block: var(--ivy-space-2xs); }
}

/* ---- tabs ---- */
.ivy-tabs__list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--ivy-space-lg);
  border-bottom: var(--ivy-border-width) solid var(--ivy-tab-rule, var(--ivy-c-border));
  margin-bottom: var(--ivy-space-xl);
}
.ivy-tabs__list[hidden] { display: none; }
.ivy-tabs__tab {
  position: relative; background: none; border: 0; cursor: pointer;
  padding: var(--ivy-space-sm) 0; font: inherit; font-size: var(--ivy-text-xs);
  font-weight: var(--ivy-weight-medium); letter-spacing: var(--ivy-tracking-caps, var(--ivy-tracking-wide));
  text-transform: uppercase; color: var(--ivy-tab-fg, var(--ivy-c-muted));
  transition: color var(--ivy-duration) var(--ivy-ease);
}
.ivy-tabs__tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(-1 * var(--ivy-border-width));
  height: calc(2 * var(--ivy-border-width)); background: var(--ivy-tab-active-rule, var(--ivy-c-brand));
  transform: scaleX(0); transition: transform var(--ivy-duration) var(--ivy-ease);
}
.ivy-tabs__tab:hover { color: var(--ivy-tab-active-fg, var(--ivy-c-ink)); }
.ivy-tabs__tab[aria-selected="true"] { color: var(--ivy-tab-active-fg, var(--ivy-c-ink)); }
.ivy-tabs__tab[aria-selected="true"]::after { transform: scaleX(1); }
.ivy-tabs__panel[hidden] { display: none; }
.ivy-tabs__panel { animation: ivy-fade var(--ivy-duration-slow, var(--ivy-duration)) var(--ivy-ease); }
.ivy-tabs__panel:focus-visible { outline: var(--ivy-focus-width) solid var(--ivy-c-focus); outline-offset: var(--ivy-space-xs); border-radius: var(--ivy-radius-md); }
.ivy-main .ivy-tabs__panel-title {
  text-align: center; font-size: var(--ivy-text-lg); font-weight: var(--ivy-weight-medium);
  letter-spacing: var(--ivy-tracking-caps, var(--ivy-tracking-wide)); text-transform: uppercase;
  margin: var(--ivy-space-xl) 0 var(--ivy-space-md);
}
.ivy-tabs[data-tabs-ready] .ivy-tabs__panel-title {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- service cards: layered, a hairline that draws across on hover ---- */
.ivy-service-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--ivy-space-md);
  grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr));
}
.ivy-service-card {
  position: relative; display: flex; flex-direction: column; gap: var(--ivy-space-2xs); margin: 0;
  padding: var(--ivy-space-lg) var(--ivy-space-md) var(--ivy-space-md);
  background: var(--ivy-card-bg, var(--ivy-c-surface));
  border: var(--ivy-border-width) solid var(--ivy-card-border, var(--ivy-c-border));
  border-radius: var(--ivy-radius-lg);
  box-shadow: var(--ivy-card-shadow, var(--ivy-shadow-sm));
  transition: box-shadow var(--ivy-duration) var(--ivy-ease), transform var(--ivy-duration) var(--ivy-ease);
}
.ivy-service-card::before {
  content: ""; position: absolute; top: var(--ivy-space-md); left: var(--ivy-space-md);
  width: var(--ivy-space-lg); height: var(--ivy-border-width);
  background: var(--ivy-card-accent, var(--ivy-c-brand));
  transition: width var(--ivy-duration-slow, var(--ivy-duration)) var(--ivy-ease);
}
.ivy-service-card:hover { transform: translateY(var(--ivy-card-lift, 0)); box-shadow: var(--ivy-card-shadow-hover, var(--ivy-shadow-md)); }
.ivy-service-card:hover::before { width: calc(100% - 2 * var(--ivy-space-md)); }
.ivy-service-card__title {
  margin: var(--ivy-space-xs) 0 0; font-size: var(--ivy-text-lg); font-weight: var(--ivy-weight-medium);
  letter-spacing: var(--ivy-tracking-caps, var(--ivy-tracking-wide)); text-transform: uppercase;
  line-height: var(--ivy-leading-snug);
}
.ivy-service-card__desc { margin: 0; flex: 1; font-size: var(--ivy-text-sm); }
.ivy-service-card--soon .ivy-service-card__desc { font-family: var(--ivy-font-heading); font-style: italic; font-size: var(--ivy-text-lg); color: var(--ivy-c-muted); }
.ivy-service-card__more { align-self: flex-start; margin-top: var(--ivy-space-sm); }

/* ---- editorial band (the home page's own text) ---- */
.ivy-editorial .ivy-eyebrow { margin-bottom: var(--ivy-space-3xs); }
.ivy-editorial .ivy-eyebrow:not(:first-child) {
  margin-top: var(--ivy-space-xl); padding-top: var(--ivy-space-xl);
  border-top: var(--ivy-border-width) solid var(--ivy-c-border);
}
.ivy-editorial .ivy-eyebrow + h2 { margin-top: 0; }
.ivy-main .ivy-editorial h2 { font-size: var(--ivy-text-2xl); }

/* ---- team circles ---- */
.ivy-team__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--ivy-space-lg) var(--ivy-space-xl);
}
.ivy-team__member { display: flex; flex-direction: column; align-items: center; text-align: center; width: var(--ivy-team-size, 9rem); margin: 0; }
.ivy-team__link { display: flex; flex-direction: column; align-items: center; gap: var(--ivy-space-sm); text-decoration: none; color: inherit; }
.ivy-team .ivy-avatar {
  width: var(--ivy-team-size, 9rem); max-width: none;
  background: var(--ivy-team-placeholder-bg, var(--ivy-c-brand-tint));
  color: var(--ivy-c-brand-strong); font-size: var(--ivy-text-2xl); font-weight: var(--ivy-weight-display, var(--ivy-weight-heading));
  box-shadow: 0 0 0 calc(5 * var(--ivy-border-width)) var(--ivy-c-bg), 0 0 0 calc(6 * var(--ivy-border-width)) var(--ivy-team-ring, var(--ivy-c-border));
  transition: transform var(--ivy-duration) var(--ivy-ease);
}
.ivy-team__link:hover .ivy-avatar { transform: scale(1.03); }
.ivy-team__name { font-family: var(--ivy-font-heading); font-size: var(--ivy-text-lg); line-height: var(--ivy-leading-snug); color: var(--ivy-heading-color); }
.ivy-team__link:hover .ivy-team__name { text-decoration: underline; text-decoration-thickness: var(--ivy-underline-thickness); text-underline-offset: var(--ivy-underline-offset); }
.ivy-team__role { margin-top: var(--ivy-space-3xs); font-size: var(--ivy-text-xs); letter-spacing: var(--ivy-tracking-wide); text-transform: uppercase; color: var(--ivy-c-muted); }

/* ---- inner page header: the hero's ivory wash, smaller ---- */
.ivy-page-header { background: var(--ivy-brand-hero-bg, var(--ivy-c-bg)); padding-block: var(--ivy-space-xl) var(--ivy-space-lg); }
.ivy-main .ivy-page-header h1 { font-size: var(--ivy-text-3xl); font-weight: var(--ivy-weight-display, var(--ivy-weight-heading)); }

/* ---- contact: Say Hello ---- */
.ivy-contact__grid { display: grid; gap: var(--ivy-space-xl); grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 52rem) { .ivy-contact__grid { grid-template-columns: 1fr; } }
.ivy-panel {
  background: var(--ivy-card-bg, var(--ivy-c-surface));
  border: var(--ivy-border-width) solid var(--ivy-card-border, var(--ivy-c-border));
  border-radius: var(--ivy-radius-lg); box-shadow: var(--ivy-card-shadow, var(--ivy-shadow-sm));
  padding: var(--ivy-space-lg);
}
.ivy-panel .ivy-form { max-width: none; }
.ivy-panel .ivy-form-wrap { margin-block: var(--ivy-space-md) 0; }
.ivy-contact__details { display: grid; gap: var(--ivy-space-md); padding-top: var(--ivy-space-sm); }
.ivy-contact__block { padding-bottom: var(--ivy-space-md); border-bottom: var(--ivy-border-width) solid var(--ivy-c-border); }
.ivy-contact__block:last-child { border-bottom: 0; }
.ivy-contact__block p { margin-bottom: var(--ivy-space-2xs); }
.ivy-contact address { font-style: normal; margin-bottom: var(--ivy-space-2xs); }
.ivy-main .ivy-contact__title {
  font-family: var(--ivy-font-body); font-size: var(--ivy-text-xs); font-weight: var(--ivy-weight-medium);
  letter-spacing: var(--ivy-tracking-caps, var(--ivy-tracking-wide)); text-transform: uppercase;
  color: var(--ivy-eyebrow-color); margin-bottom: var(--ivy-space-2xs);
}

/* ---- form fields, softened to match the cards ---- */
.ivy-field input, .ivy-field select, .ivy-field textarea { border-radius: var(--ivy-radius-md); background: var(--ivy-c-bg); transition: border-color var(--ivy-duration) var(--ivy-ease); }
.ivy-field input:hover, .ivy-field select:hover, .ivy-field textarea:hover { border-color: var(--ivy-c-brand); }

/* ---- expandable rows: "+" turning to "×", as in Reference B ---- */
.ivy-accordion__item { border-radius: var(--ivy-radius-md); background: var(--ivy-card-bg, var(--ivy-c-surface)); border-color: var(--ivy-card-border, var(--ivy-c-border)); }
.ivy-accordion__chev { display: none; }
.ivy-accordion__head::after {
  content: "+"; flex: none; font-family: var(--ivy-font-heading); font-size: var(--ivy-text-xl);
  font-weight: var(--ivy-weight-body); line-height: 1; color: var(--ivy-accent-color, var(--ivy-c-brand));
  transition: transform var(--ivy-duration) var(--ivy-ease);
}
.ivy-accordion__item[open] > .ivy-accordion__head::after { transform: rotate(45deg); }

/* ---- the Meet The Team page: circles with role and a short bio ---- */
.ivy-team__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--ivy-space-xl) var(--ivy-space-lg);
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
}
.ivy-team__card { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 0; }
.ivy-team__bio { margin: var(--ivy-space-xs) auto 0; font-size: var(--ivy-text-sm); max-width: 22rem; }
.ivy-team__more { text-align: center; max-width: none; margin: var(--ivy-space-xl) 0 0; }

/* ---- hero slideshow (Reference B): photos cross-fading behind the type ---- */
.ivy-brand-hero--slides { background: var(--ivy-photo-hero-bg, var(--ivy-hero-fallback-bg)); color: var(--ivy-photo-hero-fg, var(--ivy-hero-fg)); }
.ivy-brand-hero--slides::before, .ivy-brand-hero--slides::after { border-color: var(--ivy-photo-hero-rule, var(--ivy-rule-on-brand)); z-index: 0; }
.ivy-slides { position: absolute; inset: 0; z-index: -1; }
.ivy-slides::after { content: ""; position: absolute; inset: 0; background: var(--ivy-photo-hero-overlay, var(--ivy-hero-overlay)); }
.ivy-slides__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity var(--ivy-slide-fade, var(--ivy-duration-slow)) var(--ivy-ease);
}
.ivy-slides__img[data-active="true"] { opacity: 1; }
.ivy-brand-hero--slides .ivy-brand-hero__inner { position: relative; z-index: 1; }
.ivy-main .ivy-brand-hero--slides .ivy-brand-hero__title { color: var(--ivy-photo-hero-fg, var(--ivy-hero-fg)); }
.ivy-main .ivy-brand-hero--slides .ivy-brand-hero__title em { color: var(--ivy-photo-hero-accent, var(--ivy-hero-fg)); }
.ivy-brand-hero--slides .ivy-brand-hero__sub { color: var(--ivy-photo-hero-fg, var(--ivy-hero-fg)); }
.ivy-brand-hero--slides .ivy-btn { background: var(--ivy-header-cta-bg, var(--ivy-cta-bg)); color: var(--ivy-header-cta-fg, var(--ivy-cta-fg)); }
.ivy-brand-hero--slides .ivy-btn:hover { background: var(--ivy-header-cta-bg-hover, var(--ivy-cta-bg-hover)); color: var(--ivy-header-cta-fg, var(--ivy-cta-fg)); }
.ivy-slides__controls {
  position: absolute; z-index: 2; inset-inline: 0; bottom: var(--ivy-space-md);
  display: flex; justify-content: center; gap: var(--ivy-space-2xs);
}
.ivy-slides__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; padding: 0; cursor: pointer;
  background: transparent; color: var(--ivy-photo-hero-fg, var(--ivy-hero-fg));
  border: var(--ivy-border-width) solid var(--ivy-photo-hero-rule, var(--ivy-rule-on-brand)); border-radius: var(--ivy-radius-pill);
  transition: background var(--ivy-duration) var(--ivy-ease), border-color var(--ivy-duration) var(--ivy-ease);
}
.ivy-slides__btn:hover { background: var(--ivy-photo-hero-rule, var(--ivy-rule-on-brand)); border-color: var(--ivy-photo-hero-fg, var(--ivy-hero-fg)); }
.ivy-slides__btn svg { width: 0.75rem; height: 0.75rem; }
.ivy-slides__btn .ivy-slides__play { display: none; }
.ivy-slides__btn[aria-pressed="true"] .ivy-slides__play { display: inline; }
.ivy-slides__btn[aria-pressed="true"] .ivy-slides__pause { display: none; }

/* ---- quotes and testimonials: large serif, sentence case, centred ---- */
.ivy-main blockquote, .ivy-main .wp-block-quote {
  margin: var(--ivy-space-xl) auto; padding: var(--ivy-space-md) 0 0; border: 0;
  max-width: var(--ivy-width-content); text-align: center;
  font-family: var(--ivy-font-heading); font-weight: var(--ivy-weight-body);
  font-size: var(--ivy-quote-size, var(--ivy-text-xl)); line-height: var(--ivy-leading-snug);
  color: var(--ivy-heading-color);
}
.ivy-main blockquote::before {
  content: "\201C"; display: block; line-height: 0.6; margin-bottom: var(--ivy-space-xs);
  font-size: var(--ivy-text-3xl); color: var(--ivy-accent-color, var(--ivy-c-brand));
}
.ivy-main blockquote p { max-width: none; margin-inline: auto; }
.ivy-main blockquote cite, .ivy-main blockquote footer {
  display: block; margin-top: var(--ivy-space-sm);
  font-family: var(--ivy-font-body); font-style: normal; font-size: var(--ivy-text-xs);
  letter-spacing: var(--ivy-tracking-caps, var(--ivy-tracking-wide)); text-transform: uppercase; color: var(--ivy-c-muted);
}

/* ---- teal colour blocks: the booking bands ("Speak with our team") ----
   The brief asks for ivory and teal blocks in place of the mockup's cool
   greys; the band that asks for a booking is the natural teal one. */
.ivy-main .ivy-section--tinted { background: var(--ivy-section-teal-bg, var(--ivy-c-brand-tint)); color: var(--ivy-section-teal-fg, var(--ivy-c-body)); }
.ivy-main .ivy-section--tinted h2, .ivy-main .ivy-section--tinted h3 { color: var(--ivy-section-teal-fg, var(--ivy-heading-color)); }
.ivy-main .ivy-section--tinted a:not(.ivy-btn) { color: var(--ivy-section-teal-fg, var(--ivy-link-color)); }
.ivy-main .ivy-section--tinted .ivy-btn { background: var(--ivy-header-cta-bg, var(--ivy-cta-bg)); color: var(--ivy-header-cta-fg, var(--ivy-cta-fg)); }
.ivy-main .ivy-section--tinted .ivy-btn:hover { background: var(--ivy-header-cta-bg-hover, var(--ivy-cta-bg-hover)); color: var(--ivy-header-cta-fg, var(--ivy-cta-fg)); }
.ivy-main .ivy-section--tinted .ivy-wrap--content { text-align: center; }
.ivy-main .ivy-section--tinted p { margin-inline: auto; }

/* Headshots are portrait photos; a centred square crop would frame the chest.
   Anchor the crop near the top so the face sits in the circle. */
.ivy-avatar img { object-position: 50% 18%; }

/* On a phone the header's three parts share about 340 px: a full-width pill
   ran into the centred crest. Tighter pill, same label. */
@media (max-width: 30rem) {
  .ivy-header .ivy-btn--header { padding: var(--ivy-space-3xs) var(--ivy-space-xs); letter-spacing: var(--ivy-tracking-wide); }
  .ivy-header .ivy-menu-btn { padding: var(--ivy-space-3xs) var(--ivy-space-2xs); }
}
