/* ECS Website Builder — template structural layer (Phase 1 business websites) */

/* ===== CORPORATE ===== */
body.ecs-sk-corporate .gm-header { background: color-mix(in srgb, var(--gm-blue) 92%, #000); }
body.ecs-sk-corporate .gm-hero--trust_wide { min-height: 70vh; }
body.ecs-sk-corporate .gm-hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: center; }
body.ecs-sk-corporate .gm-sec-stats .gm-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; }
body.ecs-sk-corporate .gm-stats__item { background: #fff; border: 1px solid color-mix(in srgb, var(--gm-blue) 18%, #e2e8f0); border-radius: .75rem; padding: 1rem; text-align: center; }
body.ecs-sk-corporate .gm-stats__item strong { display: block; font-size: 1.5rem; color: var(--gm-blue); }
body.ecs-sk-corporate .gm-footer { background: #0f172a; }

/* ===== RESTAURANT ===== */
body.ecs-sk-restaurant .gm-header {
  position: absolute; left: 0; right: 0; z-index: 20;
  background: transparent; border: 0; color: #fff;
}
body.ecs-sk-restaurant .gm-header .gm-logo,
body.ecs-sk-restaurant .gm-header .gm-nav a { color: #fff; }
body.ecs-sk-restaurant .gm-hero--food_fullscreen {
  min-height: 92vh; display: grid; align-items: end;
}
body.ecs-sk-restaurant .gm-hero--food_fullscreen .gm-hero__inner {
  background: rgba(15,23,42,.55); backdrop-filter: blur(6px);
  border-radius: 1rem; padding: 1.75rem; margin-bottom: 2rem; max-width: 34rem;
}
body.ecs-sk-restaurant .gm-sec-menu .gm-menu-list { display: grid; gap: .35rem; }
body.ecs-sk-restaurant .gm-menu-list__row {
  display: flex; justify-content: space-between; gap: 1rem;
  border-bottom: 1px dashed color-mix(in srgb, var(--gm-blue) 35%, #fdba74); padding: .65rem 0;
}
body.ecs-sk-restaurant .gm-reservation {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  background: #fff; border: 1px solid #fed7aa; border-radius: 1rem; padding: 1.5rem;
}
body.ecs-sk-restaurant .gm-reservation__form { display: grid; gap: .55rem; }
body.ecs-sk-restaurant .gm-reservation__form input,
body.ecs-sk-restaurant .gm-reservation__form textarea {
  border: 1px solid #fdba74; border-radius: .5rem; padding: .65rem .75rem; font: inherit;
}
body.ecs-sk-restaurant .gm-daily {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.25rem;
  background: #431407; color: #ffedd5; border-radius: 1rem; padding: 1.5rem;
}
body.ecs-sk-restaurant .gm-daily__panel {
  min-height: 10rem; border-radius: .75rem;
  background: color-mix(in srgb, #c2410c 40%, #431407);
}
body.ecs-sk-restaurant .gm-gallery--mosaic {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-auto-rows: 8rem; gap: .5rem;
}
body.ecs-sk-restaurant .gm-gallery__item:first-child { grid-row: span 2; }
body.ecs-sk-restaurant .gm-gallery__ph,
body.ecs-sk-restaurant .gm-gallery__item img {
  width: 100%; height: 100%; object-fit: cover; border-radius: .5rem; display: grid; place-items: center;
  background: color-mix(in srgb, var(--gm-blue) 20%, #fed7aa); margin: 0;
}
body.ecs-sk-restaurant .gm-hours { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
body.ecs-sk-restaurant .gm-map {
  min-height: 8rem; border-radius: .75rem; display: grid; place-items: center;
  background: #ffedd5; border: 1px dashed #fdba74; font-weight: 600;
}
body.ecs-sk-restaurant .gm-footer { text-align: center; }
body.ecs-sk-restaurant .gm-section { padding: 4.25rem 0; }

/* ===== HOTEL ===== */
body.ecs-sk-hotel .gm-header__inner { flex-direction: column; gap: .75rem; text-align: center; }
body.ecs-sk-hotel .gm-nav { justify-content: center; }
body.ecs-sk-hotel .gm-hero--booking_split .gm-hero__inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 1.5rem; align-items: stretch;
}
body.ecs-sk-hotel .gm-booking {
  background: rgba(255,255,255,.95); border: 1px solid #99f6e4; border-radius: 1rem;
  padding: 1rem; display: grid; gap: .55rem;
}
body.ecs-sk-hotel .gm-booking label { display: grid; gap: .25rem; font-size: .75rem; }
body.ecs-sk-hotel .gm-booking input { border: 1px solid #99f6e4; border-radius: .5rem; padding: .55rem; font: inherit; }
body.ecs-sk-hotel .gm-room { background: #fff; border: 1px solid #ccfbf1; border-radius: .85rem; overflow: hidden; }
body.ecs-sk-hotel .gm-room__media { height: 7rem; background: color-mix(in srgb, var(--gm-blue) 25%, #ccfbf1); }
body.ecs-sk-hotel .gm-room { padding-bottom: .85rem; }
body.ecs-sk-hotel .gm-room h3, body.ecs-sk-hotel .gm-room p, body.ecs-sk-hotel .gm-room__price { padding: 0 .85rem; }
body.ecs-sk-hotel .gm-pricing { display: grid; gap: .45rem; }
body.ecs-sk-hotel .gm-pricing__row {
  display: flex; justify-content: space-between; gap: 1rem;
  background: #fff; border: 1px solid #ccfbf1; border-radius: .65rem; padding: .75rem 1rem;
}
body.ecs-sk-hotel .gm-wellness { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.25rem; align-items: center; }
body.ecs-sk-hotel .gm-wellness__media {
  min-height: 12rem; border-radius: 1rem;
  background: color-mix(in srgb, var(--gm-blue) 30%, #99f6e4);
}
body.ecs-sk-hotel .gm-gallery--strip { display: grid; grid-template-columns: repeat(4,1fr); gap: .4rem; }
body.ecs-sk-hotel .gm-shell { max-width: 980px; }
body.ecs-sk-hotel .gm-map {
  min-height: 8rem; border-radius: .75rem; display: grid; place-items: center;
  background: #ccfbf1; border: 1px dashed #5eead4; font-weight: 600;
}

/* ===== AGENCY ===== */
body.ecs-sk-agency .gm-hero--creative_minimal {
  min-height: 58vh; background: #0f172a; color: #fff;
}
body.ecs-sk-agency .gm-hero--creative_minimal .gm-hero__text { color: #cbd5e1; }
body.ecs-sk-agency .gm-portfolio {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; grid-auto-rows: minmax(8rem, auto); gap: .65rem;
}
body.ecs-sk-agency .gm-portfolio__item {
  background: #111827; color: #fff; border-radius: .5rem; padding: 1rem; display: grid; align-content: end;
}
body.ecs-sk-agency .gm-portfolio__item.is-large { grid-row: span 2; min-height: 16rem; }
body.ecs-sk-agency .gm-cases { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
body.ecs-sk-agency .gm-cases article { background: #fff; border: 1px solid #e5e7eb; border-radius: .75rem; padding: 1rem; }
body.ecs-sk-agency .gm-team { display: grid; grid-template-columns: repeat(4,1fr); gap: .65rem; }
body.ecs-sk-agency .gm-team__photo {
  height: 7rem; border-radius: .5rem; margin-bottom: .5rem;
  background: color-mix(in srgb, var(--gm-blue) 35%, #e2e8f0);
}
body.ecs-sk-agency .gm-process { display: grid; grid-template-columns: repeat(4,1fr); gap: .55rem; }
body.ecs-sk-agency .gm-process__step { border-top: 3px solid var(--gm-blue); background: #fff; padding: .85rem; }
body.ecs-sk-agency .gm-process__num { display: block; font-weight: 800; color: var(--gm-blue); margin-bottom: .35rem; }
body.ecs-sk-agency .gm-sec-cta--split .gm-shell {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; align-items: center;
}
body.ecs-sk-agency .gm-section { padding: 2.5rem 0; }

/* ===== AUTOMOTIVE ===== */
body.ecs-sk-automotive .gm-header { background: #0b0f14; border-bottom: 2px solid var(--gm-blue); }
body.ecs-sk-automotive .gm-hero--car_bleed {
  min-height: 78vh; clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}
body.ecs-sk-automotive .gm-model { background: #151a21; color: #e5e7eb; border-left: 3px solid var(--gm-blue); }
body.ecs-sk-automotive .gm-model__media {
  height: 7rem; background: color-mix(in srgb, var(--gm-blue) 25%, #1f2937);
}
body.ecs-sk-automotive .gm-model h3, body.ecs-sk-automotive .gm-model p { padding: .55rem .75rem; margin: 0; }
body.ecs-sk-automotive .gm-configurator {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.25rem; align-items: center;
  background: #151a21; color: #e5e7eb; border: 1px solid #1f2937; padding: 1.25rem; border-radius: .25rem;
}
body.ecs-sk-automotive .gm-configurator__panel {
  min-height: 9rem; background: color-mix(in srgb, var(--gm-blue) 30%, #0b0f14);
}
body.ecs-sk-automotive .gm-specs { display: grid; grid-template-columns: repeat(4,1fr); gap: .5rem; }
body.ecs-sk-automotive .gm-specs__item {
  background: #151a21; color: #e5e7eb; text-align: center; padding: .85rem; border-top: 2px solid var(--gm-blue);
}
body.ecs-sk-automotive .gm-specs__item strong { display: block; font-size: 1.15rem; }
body.ecs-sk-automotive .gm-offers { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
body.ecs-sk-automotive .gm-offers__card { background: #1f2937; color: #fff; padding: 1.1rem; border-radius: .25rem; }
body.ecs-sk-automotive .gm-offers__card.is-accent { background: var(--gm-blue); }
body.ecs-sk-automotive .gm-btn { border-radius: .2rem; text-transform: uppercase; letter-spacing: .04em; }
body.ecs-sk-automotive .gm-section { padding: 2.5rem 0; }
body.ecs-sk-automotive .gm-map {
  min-height: 7rem; display: grid; place-items: center; background: #151a21; color: #e5e7eb; border: 1px solid #1f2937;
}

/* ——— Layout Skeleton Catalog (chrome / structure only) ——— */
body.ecs-sk-side_rail .gm-shell { max-width: 1180px; }
@media (min-width: 1100px) {
  body.ecs-sk-side_rail { padding-left: 15.5rem; }
  body.ecs-sk-side_rail .gm-header {
    position: fixed; inset: 0 auto 0 0; width: 15.5rem; height: 100vh; height: 100dvh;
    border-bottom: 0; border-right: 1px solid color-mix(in srgb, var(--gm-blue, #1A6BFF) 35%, #1e293b);
    overflow: auto; z-index: 40;
  }
  body.ecs-sk-side_rail .gm-header__inner { flex-direction: column; align-items: stretch; gap: 1rem; min-height: 100%; }
  body.ecs-sk-side_rail .gm-nav,
  body.ecs-sk-side_rail .gm-nav__list--root { flex-direction: column; align-items: stretch; width: 100%; }
  body.ecs-sk-side_rail .gm-nav__cta { width: 100%; justify-content: center; margin-top: auto; }
  body.ecs-sk-side_rail .gm-lang { margin-top: auto; border-top: 1px solid rgba(255,255,255,.12); padding-top: .85rem; }
}

body.ecs-sk-top_bar_trust .gm-header { border-bottom: 1px solid color-mix(in srgb, var(--gm-blue, #1A6BFF) 22%, #e2e8f0); }
body.ecs-sk-top_bar_trust .gm-hero--trust_wide { min-height: 68vh; }
body.ecs-sk-top_bar_trust .gm-hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
body.ecs-sk-top_bar_trust .gm-nav__cta { margin-left: auto; }

body.ecs-sk-automotive_bleed .gm-header { background: #0b0f14; border-bottom: 2px solid var(--gm-blue, #1A6BFF); }
body.ecs-sk-automotive_bleed .gm-hero--car_bleed,
body.ecs-sk-automotive_bleed .gm-hero { min-height: 78vh; }
body.ecs-sk-automotive_bleed .gm-btn { border-radius: .2rem; text-transform: uppercase; letter-spacing: .04em; }
body.ecs-sk-automotive_bleed .gm-section { padding: 2.5rem 0; }
body.ecs-sk-automotive_bleed .gm-shell { max-width: 1240px; }

body.ecs-sk-agency_minimal .gm-header { background: transparent; border-bottom: 0; }
body.ecs-sk-agency_minimal .gm-hero--creative_minimal,
body.ecs-sk-agency_minimal .gm-hero { min-height: 62vh; }
body.ecs-sk-agency_minimal .gm-hero__text { max-width: 36rem; }
body.ecs-sk-agency_minimal .gm-shell { max-width: 920px; }
body.ecs-sk-agency_minimal .gm-section { padding: 2.75rem 0; }
body.ecs-sk-agency_minimal .gm-nav__cta { background: transparent; border: 1px solid currentColor; }

body.ecs-sk-split_hero .gm-hero--booking_split .gm-hero__inner,
body.ecs-sk-split_hero .gm-hero__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: center; min-height: 62vh;
}
body.ecs-sk-split_hero .gm-hero__actions { display: flex; flex-wrap: wrap; gap: .65rem; }

body.ecs-sk-landing_center .gm-header__inner { justify-content: center; }
body.ecs-sk-landing_center .gm-nav { justify-content: center; }
body.ecs-sk-landing_center .gm-hero__inner,
body.ecs-sk-landing_center .gm-hero { text-align: center; }
body.ecs-sk-landing_center .gm-hero__text { margin-inline: auto; max-width: 40rem; }
body.ecs-sk-landing_center .gm-hero__actions { justify-content: center; }
body.ecs-sk-landing_center .gm-shell { max-width: 920px; }

body.ecs-sk-services_cards .gm-sec-services,
body.ecs-sk-services_cards [data-block="services"] { order: 2; }
body.ecs-sk-services_cards .gm-shell { max-width: 1240px; }
body.ecs-sk-services_cards .gm-cards,
body.ecs-sk-services_cards .gm-services {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
}

body.ecs-sk-editorial .gm-shell { max-width: 860px; }
body.ecs-sk-editorial .gm-header { font-size: .95rem; }
body.ecs-sk-editorial .gm-hero__inner { max-width: 40rem; }
body.ecs-sk-editorial .gm-section { padding-top: 4.5rem; padding-bottom: 4.5rem; }
body.ecs-sk-editorial .gm-nav__cta { font-weight: 500; opacity: .9; }

body.ecs-sk-commerce_ready .gm-header__inner { gap: .75rem; }
body.ecs-sk-commerce_ready .gm-nav { margin-left: auto; }
body.ecs-sk-commerce_ready .gm-nav__cta { order: 99; margin-left: .5rem; }
body.ecs-sk-commerce_ready .gm-shell { max-width: 1240px; }
body.ecs-sk-commerce_ready .gm-section { padding-top: 2.25rem; padding-bottom: 2.25rem; }

body.ecs-sk-portfolio_gallery .gm-hero { min-height: 54vh; }
body.ecs-sk-portfolio_gallery .gm-shell { max-width: 1240px; }
body.ecs-sk-portfolio_gallery .gm-gallery,
body.ecs-sk-portfolio_gallery .gm-references,
body.ecs-sk-portfolio_gallery .gm-portfolio {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem;
}
body.ecs-sk-portfolio_gallery .gm-nav__cta { opacity: .85; font-weight: 500; }

body.ecs-sk-hotel_booking .gm-header__inner { flex-direction: column; gap: .75rem; text-align: center; }
body.ecs-sk-hotel_booking .gm-nav { justify-content: center; }
body.ecs-sk-hotel_booking .gm-hero--booking_split .gm-hero__inner,
body.ecs-sk-hotel_booking .gm-hero__inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.25rem; align-items: center;
}
body.ecs-sk-hotel_booking .gm-shell { max-width: 980px; }

body.ecs-sk-restaurant_immersive .gm-header {
  position: absolute; inset: 0 0 auto 0; background: transparent; border: 0; z-index: 5;
}
body.ecs-sk-restaurant_immersive .gm-header .gm-logo,
body.ecs-sk-restaurant_immersive .gm-header .gm-nav a { color: #fff; }
body.ecs-sk-restaurant_immersive .gm-hero--food_fullscreen,
body.ecs-sk-restaurant_immersive .gm-hero {
  min-height: 92vh; display: grid; place-items: center; text-align: center;
}
body.ecs-sk-restaurant_immersive .gm-footer { text-align: center; }
body.ecs-sk-restaurant_immersive .gm-section { padding: 4.25rem 0; }

/* Spacing / width modifiers */
body[data-sk-spacing="airy"] .gm-section { padding-top: 4.75rem; padding-bottom: 4.75rem; }
body[data-sk-spacing="compact"] .gm-section { padding-top: 2.25rem; padding-bottom: 2.25rem; }
body[data-sk-grid="wide"] .gm-shell { max-width: 1240px; }
body[data-sk-grid="narrow"] .gm-shell { max-width: 920px; }

@media (max-width: 900px) {
  body.ecs-sk-corporate .gm-hero__inner,
  body.ecs-sk-restaurant .gm-reservation,
  body.ecs-sk-restaurant .gm-daily,
  body.ecs-sk-restaurant .gm-hours,
  body.ecs-sk-hotel .gm-hero--booking_split .gm-hero__inner,
  body.ecs-sk-hotel .gm-wellness,
  body.ecs-sk-agency .gm-cases,
  body.ecs-sk-agency .gm-sec-cta--split .gm-shell,
  body.ecs-sk-automotive .gm-configurator,
  body.ecs-sk-automotive .gm-offers,
  body.ecs-sk-top_bar_trust .gm-hero__inner,
  body.ecs-sk-split_hero .gm-hero__inner,
  body.ecs-sk-split_hero .gm-hero--booking_split .gm-hero__inner,
  body.ecs-sk-hotel_booking .gm-hero__inner,
  body.ecs-sk-hotel_booking .gm-hero--booking_split .gm-hero__inner,
  body.ecs-sk-services_cards .gm-cards,
  body.ecs-sk-services_cards .gm-services,
  body.ecs-sk-portfolio_gallery .gm-gallery,
  body.ecs-sk-portfolio_gallery .gm-references,
  body.ecs-sk-portfolio_gallery .gm-portfolio { grid-template-columns: 1fr; }
  body.ecs-sk-side_rail { padding-left: 0; }
  body.ecs-sk-side_rail .gm-header { position: relative; inset: auto; width: auto; height: auto; overflow: visible; }
  body.ecs-sk-corporate .gm-sec-stats .gm-stats,
  body.ecs-sk-agency .gm-team,
  body.ecs-sk-agency .gm-process,
  body.ecs-sk-automotive .gm-specs,
  body.ecs-sk-hotel .gm-gallery--strip,
  body.ecs-sk-restaurant .gm-gallery--mosaic,
  body.ecs-sk-agency .gm-portfolio { grid-template-columns: 1fr 1fr; }
  body.ecs-sk-restaurant .gm-gallery__item:first-child,
  body.ecs-sk-agency .gm-portfolio__item.is-large { grid-row: auto; }
}
@media (max-width: 640px) {
  body.ecs-sk-corporate .gm-sec-stats .gm-stats,
  body.ecs-sk-agency .gm-team,
  body.ecs-sk-agency .gm-process,
  body.ecs-sk-automotive .gm-specs,
  body.ecs-sk-hotel .gm-gallery--strip,
  body.ecs-sk-restaurant .gm-gallery--mosaic,
  body.ecs-sk-agency .gm-portfolio { grid-template-columns: 1fr; }
}
