/* Add section classes in Gutenberg > Advanced > Additional CSS class(es).
 * feature-hero: centered intro; feature-eyebrow: small cyan label.
 * feature-section: vertical spacing; feature-card: light rounded panel.
 * feature-checklist: checked List block; feature-accent: cyan text.
 * feature-demo: demo section; feature-grid: feature Columns block.
 * feature-resource: editorial Cover/Group; feature-related: white closing Group.
 * feature-tabs: link navigation styling only (no tab interaction).
 * Combine classes freely. Use Gutenberg colors/spacing to override defaults.
 */

.feature-page { min-height: 100vh; padding-block: 1px; }
.feature-page > * {
  width: calc(100% - var(--feature-gutter) * 2);
  max-width: 1760px;
  margin-inline: auto;
}
.feature-page > .alignwide { max-width: 1760px; }
.feature-page > .alignfull { width: 100%; max-width: none; }

:where(.feature-page, .editor-styles-wrapper) .feature-hero {
  padding-block: clamp(64px, 8vw, 144px);
  text-align: center;
}
:where(.feature-page, .editor-styles-wrapper) .feature-hero p {
  max-width: 780px;
  margin-inline: auto;
  font-size: clamp(18px, 1.7vw, 28px);
  line-height: 1.35;
}
:where(.feature-page, .editor-styles-wrapper) .feature-hero .wp-block-buttons { justify-content: center; }
:where(.feature-page, .editor-styles-wrapper) .feature-eyebrow.feature-eyebrow {
  color: var(--feature-cyan);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
:where(.feature-page, .editor-styles-wrapper) .feature-section { margin-block: clamp(56px, 9vw, 160px); }
:where(.feature-page, .editor-styles-wrapper) .feature-card {
  background: var(--wp--preset--color--paper, #f2eeeb);
  color: var(--feature-ink);
  border-radius: clamp(20px, 2.6vw, 44px);
  padding: clamp(24px, 5vw, 88px);
}
:where(.feature-page, .editor-styles-wrapper) .feature-checklist { padding: 0; list-style: none; }
:where(.feature-page, .editor-styles-wrapper) .feature-checklist > li {
  position: relative;
  padding-inline-start: 2em;
  margin-block: 1em;
}
:where(.feature-page, .editor-styles-wrapper) .feature-checklist > li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.22em;
  width: 1.15em;
  height: 1.15em;
  color: var(--feature-cyan);
  background-color: currentColor;
  -webkit-mask: url('../images/checkbox.svg') center / contain no-repeat;
  mask: url('../images/checkbox.svg') center / contain no-repeat;
}
:where(.feature-page, .editor-styles-wrapper) .feature-card .feature-checklist > li::before { color: var(--feature-ink); }
:where(.feature-page, .editor-styles-wrapper) .feature-accent { color: var(--feature-cyan); }
:where(.feature-page, .editor-styles-wrapper) .feature-demo { padding-block: clamp(40px, 5vw, 88px); }
:where(.feature-page, .editor-styles-wrapper) .feature-grid { gap: clamp(24px, 4vw, 64px); }
:where(.feature-page, .editor-styles-wrapper) .feature-grid .wp-block-image { text-align: center; }
:where(.feature-page, .editor-styles-wrapper) .feature-resource {
  border-radius: clamp(20px, 2.6vw, 44px);
  min-height: clamp(320px, 38vw, 680px);
  padding: clamp(24px, 4vw, 64px);
  overflow: hidden;
}
:where(.feature-page, .editor-styles-wrapper) .feature-related {
  background: #fff;
  color: var(--feature-ink);
  padding: clamp(48px, 7vw, 120px) var(--feature-gutter);
  margin-bottom: 0;
}
:where(.feature-page, .editor-styles-wrapper) .feature-related .feature-card { background: #f2eeeb; }
:where(.feature-page, .editor-styles-wrapper) .feature-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-block: 16px;
  font-size: max(14px, 0.9em);
  font-weight: 700;
}
:where(.feature-page, .editor-styles-wrapper) .feature-tabs a {
  display: inline-block;
  padding-block: 8px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
:where(.feature-page, .editor-styles-wrapper) .feature-tabs a:hover,
:where(.feature-page, .editor-styles-wrapper) .feature-tabs a[aria-current]:not([aria-current="false"]) { border-bottom-color: var(--feature-red); }

@media (max-width: 781px) {
  :where(.feature-page, .editor-styles-wrapper) .feature-section { margin-block: 56px; }
  :where(.feature-page, .editor-styles-wrapper) .feature-hero { padding-block: 56px; }
  :where(.feature-page, .editor-styles-wrapper) .feature-card { padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  :where(.feature-page, .editor-styles-wrapper) .wp-block-button__link { transition: none; }
}

/* Static Scheduling prototype. Scoped to leave free-form Gutenberg content intact. */
.feature-static { overflow: clip; }
.feature-static section[id], .feature-static article[id] { scroll-margin-top: 24px; }
.feature-static p { margin-block: 0 1.5em; }
.feature-static h2 { font-size: clamp(30px, 3.25vw, 58px); }
.feature-static .feature-hero { padding-block: clamp(80px, 8vw, 155px) clamp(80px, 8vw, 150px); }
.feature-static .feature-hero h1 { font-size: clamp(36px, 3.8vw, 70px); }
.feature-static .feature-hero > p:not(.feature-eyebrow) { max-width: 920px; }
.feature-static .feature-top-tabs { justify-content: center; margin-bottom: 16px; }
.feature-static .feature-tabs { gap: 10px 26px; font-size: 16px; color: #b2c0d0; }
.feature-static .feature-top-tabs a:first-child { color: #fff; border-bottom-color: var(--feature-red); }
.feature-static .feature-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  min-height: 820px;
  padding: 100px 0 100px 8%;
}
.feature-overview-copy { padding-right: 45px; max-width: 690px; }
.feature-static .feature-overview-monitor { width: 125%; max-width: none; align-self: end; margin-bottom: -130px; }
.feature-static .feature-checklist { font-size: clamp(16px, 1.2vw, 21px); line-height: 1.45; font-weight: 600; }
.feature-workflow { position: relative; }
.feature-workflow::before { content: ''; position: absolute; left: 43%; top: -100px; bottom: 100px; width: 1px; background: #007a99; transform: rotate(-30deg); pointer-events: none; }
.feature-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 7vw, 120px); }
.feature-static .feature-workflow .feature-section { position: relative; margin-block: 160px; min-height: 650px; }
.feature-illustration { position: relative; }
.feature-illustration img { display: block; width: 100%; }
.feature-automation .feature-illustration { transform: rotate(-6deg); }
.feature-methods .feature-illustration { transform: translateX(5%); }
.feature-static .feature-demo { margin-block: 190px; }
.feature-demo h2 .feature-accent { display: inline-block; font-family: 'aptos', Arial, sans-serif; font-size: 1.24em; line-height: 1.05; margin-bottom: 8px; }
.feature-demo > div > p { max-width: 520px; }
.feature-expert { display: flex; align-items: center; gap: 24px; }
.feature-expert img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; background: #ddd; }
.feature-expert strong { display: block; font-size: 28px; }
.feature-expert span { display: block; font-size: 18px; color: var(--feature-cyan); }
.feature-booking { display: grid; grid-template-columns: 1fr 1fr; margin: 0; min-width: 0; border: 14px solid var(--feature-red); border-radius: 36px; overflow: hidden; background: #fff; box-shadow: 0 14px 45px #0002; }
.feature-booking-calendar { padding: 30px 20px; background: #d50024; text-align: center; }
.feature-booking-calendar > img { height: 40px; width: 110px; object-fit: contain; margin-bottom: 20px; }
.feature-booking-calendar p, .feature-booking-calendar strong { font-size: 16px; }
.feature-calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px 2px; margin-top: 24px; }
.feature-calendar-days span { display: grid; place-items: center; aspect-ratio: 1; font-size: 14px; }
.feature-calendar-days .feature-weekday { opacity: .7; font-size: 14px; }
.feature-calendar-days .is-selected { background: #fff; color: #cf2030; border-radius: 50%; }
.feature-booking-times { padding: 24px 20px; color: var(--feature-ink); font-size: 14px; }
.feature-booking-times strong { display: block; margin-bottom: 12px; }
.feature-booking-times .feature-duration { background: #cfdeea; padding: 6px; text-align: center; }
.feature-booking-times > span { display: block; margin-bottom: 14px; color: #067b94; }
.feature-time { padding: 10px; text-align: center; border: 1px solid #eceef1; color: var(--feature-red); margin-block: 6px; }
.feature-booking-times small { display: block; font-size: 14px; margin-top: 12px; }
.feature-static .feature-more { margin-block: 220px; text-align: center; }
.feature-more > p { font-size: 16px; }
.feature-benefits-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 70px 60px; margin-top: 70px; }
.feature-benefits-grid article > img { width: 100%; height: 190px; object-fit: contain; }
.feature-benefits-grid .feature-checklist { text-align: left; font-size: 17px; }
.feature-static .feature-editorial { position: relative; display: flex; align-items: center; justify-content: flex-end; overflow: visible; margin-top: 290px; margin-bottom: 0; min-height: 800px; isolation: isolate; }
.feature-editorial-background { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; border-radius: inherit; z-index: -1; }
.feature-editorial-card { position: relative; width: 48%; padding: 250px 65px 65px; background: #fff; color: var(--feature-ink); border-radius: 26px; }
.feature-static .feature-editorial-card h2 { font-size: clamp(28px, 2.5vw, 44px); }
.feature-editorial-card p { font-size: 18px; }
.feature-guide-cover { position: absolute; top: -105px; left: 30px; width: 310px; height: 340px !important; object-fit: contain; }
.feature-related-inner { max-width: 1760px; margin-inline: auto; }
.feature-static .feature-related { padding-top: 190px; padding-bottom: 50px; }
.feature-static .feature-related .feature-tabs { color: #66778b; }
.feature-related-track { overflow: hidden; padding-bottom: 20px; }
.feature-related-track .swiper-wrapper { align-items: stretch; }
.feature-related-track:focus-visible { outline: 3px solid var(--feature-cyan); outline-offset: 5px; }
.feature-static .feature-related-card { width: 80%; height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; min-width: 0; min-height: 650px; padding: 60px 0 60px 70px; overflow: hidden; }
.feature-related-card:target { box-shadow: inset 0 0 0 2px #cf2030; }
.feature-related-card > div { min-width: 0; }
.feature-related-card p { font-size: 18px; }
.feature-static .feature-related-card > img { max-width: none; width: 145%; }
.feature-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 1200px) {
 .feature-static .feature-overview { min-height: 600px; padding-block: 60px; }
 .feature-static .feature-overview-monitor { margin-bottom: -90px; }
 .feature-static .feature-workflow .feature-section { min-height: 440px; margin-block: 100px; }
 .feature-static .feature-demo, .feature-static .feature-more { margin-block: 120px; }
 .feature-static .feature-editorial { min-height: 640px; margin-top: 180px; }
 .feature-editorial-card { padding: 200px 36px 40px; }
 .feature-guide-cover { width: 250px; height: 290px !important; }
 .feature-static .feature-related-card { min-height: 480px; padding-left: 40px; }
}
@media (max-width: 781px) {
 .feature-static .feature-hero { padding-block: 65px; }
 .feature-static .feature-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; font-size: 14px; gap: 18px; }
 .feature-static .feature-overview { grid-template-columns: 1fr; padding: 38px 26px 0; min-height: 0; }
 .feature-overview-copy { padding: 0; }
 .feature-static .feature-overview-monitor { width: 105%; margin: 20px 0 -35px; }
 .feature-split { grid-template-columns: 1fr; gap: 36px; }
 .feature-static .feature-workflow .feature-section { margin-block: 75px; min-height: 0; }
 .feature-workflow::before { display: none; }
 .feature-automation .feature-illustration { order: 2; transform: none; }
 .feature-methods .feature-illustration { transform: none; }
 .feature-illustration { max-width: 500px; margin-inline: auto; }
 .feature-static .feature-demo, .feature-static .feature-more { margin-block: 85px; }
 .feature-expert img { width: 85px; height: 85px; }
 .feature-expert strong { font-size: 22px; }
 .feature-booking { border-width: 8px; border-radius: 24px; max-width: 570px; width: 100%; margin-inline: auto; }
 .feature-booking-calendar, .feature-booking-times { padding: 20px 12px; }
 .feature-benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 22px; margin-top: 35px; }
 .feature-benefits-grid article > img { height: 125px; }
 .feature-benefits-grid .feature-checklist { font-size: 14px; }
 .feature-static .feature-editorial { margin-top: 100px; padding: 220px 18px 18px; min-height: 0; }
 .feature-editorial-card { width: 100%; padding: 170px 24px 30px; }
 .feature-guide-cover { width: 220px; height: 240px !important; top: -85px; left: 10px; }
 .feature-static .feature-related { padding-top: 80px; }
 .feature-static .feature-related-card { width: 92%; grid-template-columns: 1fr; padding: 30px 24px 0; min-height: 0; }
 .feature-static .feature-related-card > img { width: 110%; max-height: 350px; object-fit: contain; }
}
@media (max-width: 380px) {
 .feature-benefits-grid { grid-template-columns: 1fr; }
}
