/* Copied verbatim from themes/shootcal-generatepress/assets/core-layouts.css: the shared section vocabulary structure every look uses. Colours come from style.css. */
/* Shared section vocabulary over ordinary core blocks (Cover, Group, Columns,
   Column, Image, Button). Names come from wordpress/plugins/shootcal-blocks/vocabulary.json:
   block styles are .is-style-sc-*, helpers are plain .sc-* Additional CSS classes.
   This file is STRUCTURE only (layout, spacing, stacking). Colors, glass, type and
   motion styling come from the selected look in assets/looks/. */
:root {
  --sc-card-bg: var(--sc-paper);
  --sc-card-radius: 20px;
  --sc-photo-band-bg: var(--sc-band);
  --sc-photo-band-highlight: rgb(255 255 255 / .7);
}

/* Boxed sections: a centered, wide content area with generous vertical padding. */
:is(.entry-content, .editor-styles-wrapper) :is(.is-style-sc-boxed, .is-style-sc-boxed-full) {
  width: min(var(--sc-wide), calc(100% - 2 * var(--sc-gutter)));
  max-width: var(--sc-wide);
  margin-inline: auto;
  padding-block: clamp(32px, 5vw, 72px);
}
:is(.entry-content, .editor-styles-wrapper) .is-style-sc-tinted {
  padding: clamp(24px, 3vw, 48px);
  border-radius: var(--sc-card-radius);
  background: var(--sc-band);
}
:is(.entry-content, .editor-styles-wrapper) .is-style-sc-location-cards img { border-radius: var(--sc-radius); }
:is(.entry-content, .editor-styles-wrapper) .is-style-sc-location-cards h4 { text-align: center; }
:is(.entry-content, .editor-styles-wrapper) .is-style-sc-location-cards h4 a { display: inline-block; padding: 10px 15px; border: 1px solid var(--sc-accent); color: inherit; text-decoration: none; }
:is(.entry-content, .editor-styles-wrapper) .sc-narrow { max-width: var(--sc-reading); margin-inline: auto; }

/* Page hero: a core Cover that holds the opening heading. */
:is(.entry-content, .editor-styles-wrapper) .is-style-sc-page-hero {
  min-height: max(600px, 80svh);
  padding: 150px var(--sc-gutter) 56px;
  isolation: isolate;
}
:is(.entry-content, .editor-styles-wrapper) .is-style-sc-page-hero.sc-hero-short { min-height: max(500px, 70svh); }
:is(.entry-content, .editor-styles-wrapper) .is-style-sc-page-hero .wp-block-cover__inner-container {
  width: min(var(--sc-wide), 100%);
  max-width: var(--sc-wide);
  margin-inline: auto;
}

/* Glass card: the text panel that sits on a hero photograph. */
:is(.entry-content, .editor-styles-wrapper) .is-style-sc-glass-card {
  width: min(620px, 100%);
  margin-left: auto;
  padding: 36px 40px;
  border-radius: 26px;
  color: var(--sc-text);
  text-align: left;
}
:is(.entry-content, .editor-styles-wrapper) .is-style-sc-glass-card h1 { color: var(--sc-heading); font-size: clamp(36px, 4vw, 60px); line-height: 1.08; text-align: left; }
:is(.entry-content, .editor-styles-wrapper) .is-style-sc-glass-card p { float: none; max-width: none; color: inherit; }
:is(.entry-content, .editor-styles-wrapper) .is-style-sc-glass-card .sc-lead { margin-block: 24px; }
:is(.entry-content, .editor-styles-wrapper) .is-style-sc-glass-card .wp-block-buttons { justify-content: flex-start; }

/* Two-part headline: either whole heading blocks or spans inside one heading. */
:is(.entry-content, .editor-styles-wrapper) .sc-headline-main { display: block; }
:is(.entry-content, .editor-styles-wrapper) .sc-headline-sub { display: block; margin-top: 8px; font-size: clamp(26px, 2.5vw, 38px); }
:is(.entry-content, .editor-styles-wrapper) h2.sc-headline-sub { font-size: clamp(22px, 1.1rem + .5vw, 32px); }
:is(.entry-content, .editor-styles-wrapper) .is-style-sc-glass-card .sc-headline-sub { color: var(--sc-muted); }
:is(.entry-content, .editor-styles-wrapper) .sc-lead { font-size: 1.1rem; }

/* Photo band: a full-width band holding an image-and-text row. Its highlight
   always belongs to the PHOTO column, grows vertically and never covers the text.
   :has() keeps saved core Columns editable and preserves no-script rendering. */
:is(.entry-content, .editor-styles-wrapper) .is-style-sc-photo-band {
  max-width: none;
  width: 100%;
  margin-block: 0;
  padding: clamp(64px, 7.5vw, 112px) var(--sc-gutter);
  background: var(--sc-photo-band-bg);
}
:is(.entry-content, .editor-styles-wrapper) .is-style-sc-photo-band > .wp-block-group { max-width: var(--sc-wide); margin-inline: auto; }
:is(.entry-content, .editor-styles-wrapper) .is-style-sc-photo-band .wp-block-columns:has(> .wp-block-column .is-style-sc-feature-photo) {
  display: grid;
  position: relative;
  isolation: isolate;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 48px;
  margin: 0;
}
:is(.entry-content, .editor-styles-wrapper) .is-style-sc-photo-band .wp-block-columns:has(> .wp-block-column .is-style-sc-feature-photo) > .wp-block-column { grid-row: 1; min-width: 0; }
:is(.entry-content, .editor-styles-wrapper) .is-style-sc-photo-band .wp-block-column:has(.is-style-sc-feature-photo) { margin-top: 50px; }
:is(.entry-content, .editor-styles-wrapper) .is-style-sc-feature-photo img { display: block; width: 100%; height: auto; border-radius: var(--sc-radius); box-shadow: var(--sc-shadow); }
:is(.entry-content, .editor-styles-wrapper) .is-style-sc-photo-band .wp-block-columns:has(> .wp-block-column .is-style-sc-feature-photo)::before {
  content: "";
  position: absolute;
  grid-row: 1;
  grid-column: 1;
  z-index: -1;
  top: -56px;
  bottom: -56px;
  left: -40px;
  right: 28%;
  border-radius: 20px;
  background: var(--sc-photo-band-highlight);
  transform-origin: center;
  pointer-events: none;
}
:is(.entry-content, .editor-styles-wrapper) .is-style-sc-photo-band .wp-block-columns:has(> .wp-block-column:nth-child(2) .is-style-sc-feature-photo)::before { grid-column: 2; left: 28%; right: -40px; }
:is(.entry-content, .editor-styles-wrapper) .is-style-sc-photo-band .wp-block-columns:has(> .wp-block-column .is-style-sc-feature-photo) > .wp-block-column:not(:has(.is-style-sc-feature-photo)) { padding: 40px; border-radius: var(--sc-card-radius); background: var(--sc-card-bg); border: 1px solid var(--sc-line); box-shadow: var(--sc-shadow); }

/* Columns styles. */
:is(.entry-content, .editor-styles-wrapper) .is-style-sc-category-links { gap: 24px; }
:is(.entry-content, .editor-styles-wrapper) .is-style-sc-category-links img { border-radius: var(--sc-radius); box-shadow: var(--sc-shadow); }
:is(.entry-content, .editor-styles-wrapper) .is-style-sc-card { padding: 28px; border: 1px solid var(--sc-line); border-radius: var(--sc-card-radius); background: var(--sc-card-bg); box-shadow: var(--sc-shadow); }
:is(.entry-content, .editor-styles-wrapper) .is-style-sc-price-table { align-items: stretch; gap: 24px; }
:is(.entry-content, .editor-styles-wrapper) .is-style-sc-price-table > .wp-block-column { padding: 28px; border: 1px solid var(--sc-line); border-radius: var(--sc-card-radius); }
:is(.entry-content, .editor-styles-wrapper) .sc-items-center { align-items: center !important; }

/* Image helpers. */
:is(.entry-content, .editor-styles-wrapper) .sc-rounded img { border-radius: var(--sc-radius); }
:is(.entry-content, .editor-styles-wrapper) .sc-no-shadow img { box-shadow: none !important; }

/* Spacing helpers: one small/medium/large scale for every look. */
:is(.entry-content, .editor-styles-wrapper) .sc-mt-0 { margin-top: 0 !important; }
:is(.entry-content, .editor-styles-wrapper) .sc-mt-s { margin-top: var(--sc-space-s) !important; }
:is(.entry-content, .editor-styles-wrapper) .sc-mt-m { margin-top: var(--sc-space-m) !important; }
:is(.entry-content, .editor-styles-wrapper) .sc-mt-l { margin-top: var(--sc-space-l) !important; }
:is(.entry-content, .editor-styles-wrapper) .sc-mb-0 { margin-bottom: 0 !important; }
:is(.entry-content, .editor-styles-wrapper) .sc-mb-s { margin-bottom: var(--sc-space-s) !important; }
:is(.entry-content, .editor-styles-wrapper) .sc-mb-m { margin-bottom: var(--sc-space-m) !important; }
:is(.entry-content, .editor-styles-wrapper) .sc-mb-l { margin-bottom: var(--sc-space-l) !important; }

/* Motion hooks (navigation.js adds these once IntersectionObserver is ready). */
@media (min-width: 1025px) and (prefers-reduced-motion: no-preference) {
  .sc-legacy-motion-ready .sc-legacy-row > .wp-block-column { transition: opacity .8s var(--sc-ease), transform 1s var(--sc-ease); }
  .sc-legacy-motion-ready .sc-legacy-row::before { transition: transform 1.25s var(--sc-ease); }
  .sc-legacy-motion-ready .sc-legacy-row:not(.is-visible) > .wp-block-column { opacity: .85; transform: translateY(24px); }
  .sc-legacy-motion-ready .sc-legacy-row:not(.is-visible)::before { transform: scaleY(.75); }
}
@media (max-width: 1024px) {
  :is(.entry-content, .editor-styles-wrapper) .is-style-sc-photo-band .wp-block-columns:has(> .wp-block-column .is-style-sc-feature-photo) { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  :is(.entry-content, .editor-styles-wrapper) .is-style-sc-photo-band .wp-block-columns:has(> .wp-block-column .is-style-sc-feature-photo)::before { display: none; }
  :is(.entry-content, .editor-styles-wrapper) .is-style-sc-photo-band .wp-block-columns:has(> .wp-block-column .is-style-sc-feature-photo) > .wp-block-column { grid-row: auto; margin: 0; }
  :is(.entry-content, .editor-styles-wrapper) .sc-stack-tablet { flex-wrap: wrap !important; }
  :is(.entry-content, .editor-styles-wrapper) .sc-stack-tablet > .wp-block-column { flex-basis: 100% !important; }
  :is(.entry-content, .editor-styles-wrapper) .sc-two-up-tablet { flex-wrap: wrap !important; }
  :is(.entry-content, .editor-styles-wrapper) .sc-two-up-tablet > .wp-block-column { flex-basis: calc(50% - 12px) !important; flex-grow: 0; }
  :is(.entry-content, .editor-styles-wrapper) .sc-order-1 { order: 1; }
  :is(.entry-content, .editor-styles-wrapper) .sc-order-2 { order: 2; }
}
@media (max-width: 640px) {
  :is(.entry-content, .editor-styles-wrapper) .is-style-sc-page-hero { min-height: 600px; padding: 120px 20px 28px; }
  :is(.entry-content, .editor-styles-wrapper) .is-style-sc-page-hero.sc-hero-short { min-height: 500px; }
  :is(.entry-content, .editor-styles-wrapper) .is-style-sc-glass-card { padding: 26px 24px; border-radius: 20px; }
  :is(.entry-content, .editor-styles-wrapper) .is-style-sc-photo-band .wp-block-columns:has(> .wp-block-column .is-style-sc-feature-photo) > .wp-block-column:not(:has(.is-style-sc-feature-photo)) { padding: 26px; }
  :is(.entry-content, .editor-styles-wrapper) .is-style-sc-category-links { flex-wrap: wrap !important; }
  :is(.entry-content, .editor-styles-wrapper) .is-style-sc-category-links > .wp-block-column { flex-basis: calc(50% - 12px) !important; flex-grow: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-legacy-row, .sc-legacy-row::before, .sc-legacy-row > .wp-block-column { transition: none !important; transform: none !important; opacity: 1 !important; }
}
