/*
Theme Name: Ice & Field Productions
Theme URI: https://iceandfield.com/
Author: Ice & Field
Description: A cinematic WordPress theme for Ice & Field skating productions, participant resources, ticketing, sponsors, and production archives.
Version: 1.6.4
Text Domain: ice-field-productions
*/
:root{--navy:#003b5c;--blue:#004976;--sky:#33b6ff;--orange:#ff8033;--gold:#ffc600;--cream:#fffaf2;--ink:#182433;--muted:#687587;--white:#fff;--border:rgba(0,59,92,.14);--shadow:0 18px 50px rgba(0,42,69,.12);--radius:24px;--max:1180px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f7f8fb;color:var(--ink);font-family:Arial,Helvetica,sans-serif;line-height:1.6}img{max-width:100%;height:auto}a{color:var(--blue)}a:hover{color:var(--orange)}.site-wrap{overflow:hidden}.container{width:min(calc(100% - 40px),var(--max));margin-inline:auto}.section{padding:78px 0}.eyebrow{color:var(--orange);font-size:.78rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase}.section-title{color:var(--navy);font-size:clamp(2rem,4vw,3.4rem);line-height:1.08;margin:.35rem 0 1rem}.section-intro{color:var(--muted);font-size:1.08rem;max-width:720px}
.site-header{background:rgba(0,59,92,.97);color:#fff;position:sticky;top:0;z-index:50;box-shadow:0 6px 24px rgba(0,0,0,.12)}.header-inner{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:28px}.site-branding a{color:#fff;text-decoration:none}.site-title{font-size:1.15rem;font-weight:800}.site-description{color:rgba(255,255,255,.7);font-size:.78rem}.main-navigation ul{display:flex;gap:22px;list-style:none;margin:0;padding:0;align-items:center}.main-navigation li{position:relative}.main-navigation a{color:#fff;text-decoration:none;font-weight:700;font-size:.95rem}.main-navigation .sub-menu{display:none;position:absolute;top:100%;left:-16px;min-width:220px;background:#fff;padding:12px;border-radius:14px;box-shadow:var(--shadow)}.main-navigation li:hover>.sub-menu{display:grid}.main-navigation .sub-menu a{color:var(--navy);display:block;padding:9px 10px;border-radius:8px}.main-navigation .sub-menu a:hover{background:#f2f7fa}.menu-toggle{display:none;background:none;border:1px solid rgba(255,255,255,.4);color:#fff;border-radius:9px;padding:8px 12px}.button--nav{background:var(--orange);color:#fff!important;padding:10px 18px;border-radius:999px}
.hero{min-height:720px;display:grid;align-items:end;color:#fff;background:linear-gradient(180deg,rgba(0,34,55,.18),rgba(0,34,55,.88)),var(--hero-image,linear-gradient(135deg,#003b5c,#6d3c78));background-size:cover;background-position:center;position:relative}.hero-content{padding:130px 0 90px;max-width:800px}.hero-kicker{color:var(--gold);font-weight:800;letter-spacing:.14em;text-transform:uppercase}.hero h1{font-size:clamp(3.2rem,9vw,7.5rem);line-height:.9;margin:14px 0 20px;text-wrap:balance}.hero-copy{font-size:clamp(1.1rem,2vw,1.35rem);max-width:650px;color:rgba(255,255,255,.9)}.button-row{display:flex;flex-wrap:wrap;gap:14px;margin-top:30px}.button{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:12px 22px;border-radius:999px;text-decoration:none;font-weight:800;transition:transform .2s ease,background .2s ease}.button:hover{transform:translateY(-2px)}.button--primary{background:var(--orange);color:#fff}.button--secondary{background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.35);backdrop-filter:blur(8px)}
.countdown{margin-top:-40px;position:relative;z-index:5}.countdown-inner{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:24px;display:grid;grid-template-columns:1.3fr repeat(4,1fr);gap:16px;align-items:center}.countdown-label strong{display:block;color:var(--navy);font-size:1.15rem}.count-cell{background:#f3f7fa;border-radius:16px;text-align:center;padding:12px}.count-number{color:var(--navy);display:block;font-size:1.8rem;font-weight:900;line-height:1}.count-unit{color:var(--muted);font-size:.72rem;text-transform:uppercase;letter-spacing:.1em}
.path-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.path-card{min-height:330px;border-radius:var(--radius);padding:30px;display:flex;flex-direction:column;justify-content:end;color:#fff;background:linear-gradient(180deg,transparent,rgba(0,37,61,.88)),#4c6b7c;box-shadow:var(--shadow)}.path-card:nth-child(2){background-color:#6f4f72}.path-card:nth-child(3){background-color:#91612b}.path-card h3{font-size:2rem;margin:0 0 8px}.path-card p{color:rgba(255,255,255,.85)}.path-card a{color:#fff;font-weight:800;text-decoration:none}
.story-grid,.hub-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:center}.story-art{min-height:520px;border-radius:32px;background:linear-gradient(135deg,var(--blue),#8b4d7e);box-shadow:var(--shadow)}.story-copy,.hub-panel{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:36px;box-shadow:var(--shadow)}.timeline{display:grid;gap:14px;margin-top:28px}.timeline-item{display:grid;grid-template-columns:110px 1fr;gap:20px;align-items:start;padding:18px 0;border-top:1px solid var(--border)}.timeline-date{color:var(--orange);font-weight:900}.timeline-item h4{margin:0 0 4px;color:var(--navy)}.quick-links{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-top:24px}.quick-link{padding:18px;background:#f4f8fb;border-radius:16px;text-decoration:none;font-weight:800;color:var(--navy)}
.production-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.production-card{background:#fff;border-radius:22px;overflow:hidden;border:1px solid var(--border);box-shadow:0 12px 34px rgba(0,42,69,.08)}.production-thumb{aspect-ratio:4/3;background:linear-gradient(135deg,var(--blue),#815276);overflow:hidden}.production-thumb img{width:100%;height:100%;object-fit:cover}.production-body{padding:22px}.production-card h3{color:var(--navy);margin:0 0 8px}.production-card a{text-decoration:none;color:inherit}
.site-footer{background:var(--navy);color:#fff;padding:60px 0 24px}.footer-grid{display:grid;grid-template-columns:1.3fr repeat(4,1fr);gap:30px}.site-footer h3,.site-footer h4{color:var(--gold)}.site-footer ul{list-style:none;padding:0;margin:0;display:grid;gap:8px}.site-footer a{color:rgba(255,255,255,.82);text-decoration:none}.footer-bottom{border-top:1px solid rgba(255,255,255,.16);margin-top:40px;padding-top:20px;color:rgba(255,255,255,.65);font-size:.85rem}.content-area{padding:70px 0}.entry-card{background:#fff;padding:36px;border-radius:24px;box-shadow:var(--shadow)}.entry-title{color:var(--navy);font-size:clamp(2rem,4vw,3.4rem)}
@media(max-width:900px){.menu-toggle{display:block}.main-navigation{display:none;width:100%;padding-bottom:16px}.main-navigation.is-open{display:block}.header-inner{flex-wrap:wrap}.main-navigation ul{display:grid;gap:12px}.main-navigation .sub-menu{position:static;display:grid;box-shadow:none;margin-top:8px}.hero{min-height:620px}.countdown-inner{grid-template-columns:repeat(4,1fr)}.countdown-label{grid-column:1/-1}.path-grid,.production-grid{grid-template-columns:1fr}.story-grid,.hub-grid,.footer-grid{grid-template-columns:1fr}}
@media(max-width:560px){.container{width:min(calc(100% - 28px),var(--max))}.section{padding:56px 0}.hero-content{padding:100px 0 72px}.countdown-inner{grid-template-columns:repeat(2,1fr)}.quick-links{grid-template-columns:1fr}.timeline-item{grid-template-columns:1fr;gap:4px}}


/* Editable header and footer additions */
.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-logo img {
  display: block;
  width: auto;
  height: auto;
}
.header-cta {
  white-space: nowrap;
}
.header-utility {
  border-top: 1px solid rgba(255,255,255,.13);
  background: rgba(0,0,0,.1);
  color: white;
  padding: 10px 0;
}
.header-utility p {
  margin: 0;
}
.footer-widget ul,
.site-footer .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-legal-menu {
  display: flex !important;
  flex-wrap: wrap;
  gap: 16px !important;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 900px) {
  .header-cta {
    order: 3;
    margin-left: auto;
  }
}


/* Gutenberg homepage blocks */
.wp-site-blocks,
.entry-content {
  overflow: hidden;
}
.entry-content > .alignwide {
  width: min(calc(100% - 40px), var(--ifp-max));
  margin-left: auto;
  margin-right: auto;
}
.entry-content > .alignfull {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.ifp-block-section {
  padding: 78px 0;
}
.ifp-block-container {
  width: min(calc(100% - 40px), var(--ifp-max));
  margin-inline: auto;
}
.ifp-hero-block {
  min-height: 680px;
  display: flex;
  align-items: end;
  color: white;
  background-size: cover;
  background-position: center;
  position: relative;
}
.ifp-hero-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,34,55,.18), rgba(0,34,55,.88));
}
.ifp-hero-block > .wp-block-cover__inner-container,
.ifp-hero-block > .ifp-block-container {
  position: relative;
  z-index: 1;
  padding-top: 130px;
  padding-bottom: 90px;
}
.ifp-hero-block h1 {
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  line-height: .9;
  margin: 14px 0 20px;
}
.ifp-path-card,
.ifp-content-card {
  border-radius: var(--ifp-radius);
  box-shadow: var(--ifp-shadow);
  overflow: hidden;
}
.ifp-path-card {
  min-height: 330px;
  display: flex;
  align-items: end;
  color: white;
}
.ifp-path-card .wp-block-cover__inner-container {
  padding: 30px;
}
.ifp-path-card h3 {
  font-size: 2rem;
  margin-bottom: 8px;
}
.ifp-content-card {
  background: white;
  border: 1px solid var(--ifp-border);
  padding: 32px;
}
.ifp-quick-links .wp-block-button__link {
  border-radius: 16px;
  background: #f4f8fb;
  color: var(--ifp-navy);
  font-weight: 800;
  padding: 18px;
}
.ifp-sponsor-strip img {
  max-height: 72px;
  width: auto;
  object-fit: contain;
}
.home .content-area {
  padding: 0;
}
.home .entry-card {
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.home .entry-title {
  display: none;
}
@media (max-width: 700px) {
  .ifp-block-section { padding: 56px 0; }
  .ifp-block-container,
  .entry-content > .alignwide { width: min(calc(100% - 28px), var(--ifp-max)); }
}


/* v1.4.0 dynamic footer */
.site-footer {
  padding-top: 64px;
}

.footer-grid {
  grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(150px, 1fr));
  gap: 38px;
}

.footer-branding .custom-logo {
  width: auto;
  max-width: 230px;
  max-height: 90px;
  margin-bottom: 18px;
}

.footer-branding p {
  max-width: 34rem;
  color: rgba(255,255,255,.78);
  line-height: 1.65;
}

.footer-column h4 {
  margin: 0 0 14px;
  font-size: .86rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.footer-link-list a {
  display: inline-flex;
  color: rgba(255,255,255,.84);
}

.footer-link-list a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-branding {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-branding {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* v1.5.0 branding controls */
.site-header .custom-logo-link,
.site-header .ifp-header-logo-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-header .custom-logo,
.site-header .ifp-header-logo {
  display: block;
  width: var(--ifp-header-logo-width, 230px) !important;
  max-width: 100%;
  height: auto !important;
  max-height: var(--ifp-header-logo-max-height, 90px) !important;
  object-fit: contain;
}

.site-footer .ifp-footer-logo,
.site-footer .footer-branding .custom-logo {
  display: block;
  width: var(--ifp-footer-logo-width, 230px) !important;
  max-width: 100%;
  height: auto !important;
  max-height: var(--ifp-footer-logo-max-height, 100px) !important;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 18px;
}

@media (max-width: 700px) {
  .site-header .custom-logo,
  .site-header .ifp-header-logo {
    width: var(--ifp-header-logo-mobile-width, 180px) !important;
  }
}


/* v1.5.1 logo sizing reliability */
.site-branding,
.site-logo,
.ifp-header-logo-link {
  min-width: 0;
}

.site-logo {
  display: flex;
  align-items: center;
}

.ifp-header-logo,
.ifp-footer-logo {
  object-fit: contain;
}


/* v1.5.7 — remove extra space between Productions homepage and footer */
body.ifp-productions-homepage .site-content,
body.ifp-productions-homepage .content-area,
body.ifp-productions-homepage .site-main,
body.ifp-productions-homepage main,
body.ifp-productions-homepage .entry-content {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

body.ifp-productions-homepage .entry-content > .ifp-homepage:last-child,
body.ifp-productions-homepage .site-main > .ifp-homepage:last-child,
body.ifp-productions-homepage main > .ifp-homepage:last-child {
  margin-bottom: 0 !important;
}

body.ifp-productions-homepage .site-footer {
  margin-top: 0 !important;
}


/* v1.5.8 — remove only the bottom half of .content-area padding on the homepage */
body.front-page .content-area,
body.home .content-area,
body.ifp-productions-homepage .content-area {
  padding-top: 70px;
  padding-bottom: 0 !important;
}

/* The plugin homepage already controls its own internal section spacing. */
body.front-page .content-area:has(.ifp-homepage),
body.home .content-area:has(.ifp-homepage),
body.ifp-productions-homepage .content-area {
  padding-top: 0 !important;
}


/* =========================================================
   v1.6.0 Productions Page Layout
   ========================================================= */

/* Production shortcodes provide their own page-level heading and surfaces. */
body.ifp-production-page .entry-title {
  display: none !important;
}

/* Remove the generic white card so full-width plugin modules are not boxed. */
body.ifp-production-page .ifp-page-entry,
body.ifp-production-page article.entry-card {
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* The plugin controls its own vertical section spacing. */
body.ifp-production-page .content-area {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Allow plugin layouts to use the intended wide canvas. */
body.ifp-production-page .content-area > .container {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

/* Do not allow theme paragraph margins to create a footer gap. */
body.ifp-production-page .ifp-page-entry > :last-child,
body.ifp-production-page .ifp-page-entry .ifp-homepage:last-child,
body.ifp-production-page .ifp-page-entry .ifp-participant-hub:last-child {
  margin-bottom: 0 !important;
}

/* Manual Standard Page Layout restores the ordinary page presentation. */
body.ifp-standard-page .entry-title {
  display: block;
}


/* =========================================================
   v1.6.1 Productions page title and spacing correction
   ========================================================= */

/* Hide the actual WordPress page title on Productions Layout pages. */
body.ifp-production-page .ifp-page-title,
body.ifp-production-page .page-title,
body.ifp-production-page article > h1:first-child,
body.ifp-production-page .entry-header > h1 {
  display: none !important;
}

/*
 * Restore ordinary theme spacing for production pages such as
 * Participant Hub. Only the plugin homepage should be flush.
 */
body.ifp-production-page:not(.ifp-productions-homepage) .content-area {
  padding-top: 70px !important;
  padding-bottom: 70px !important;
}

body.ifp-production-page:not(.ifp-productions-homepage) .content-area > .container {
  width: min(1180px, calc(100% - 40px)) !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Keep the homepage controlled entirely by the plugin. */
body.ifp-productions-homepage .content-area {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.ifp-productions-homepage .content-area > .container {
  width: 100% !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}


/* =========================================================
   v1.6.2 Logged-in homepage/footer gap correction
   ========================================================= */

/*
 * WordPress adds the admin-bar class while a signed-in user views the
 * public site. Keep the plugin homepage flush even when front-end admin
 * or editing overlays add more specific content-wrapper rules.
 */
html body.admin-bar.ifp-productions-homepage .content-area,
html body.logged-in.ifp-productions-homepage .content-area,
html body.admin-bar.ifp-productions-homepage main.content-area,
html body.logged-in.ifp-productions-homepage main.content-area {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

html body.admin-bar.ifp-productions-homepage .content-area > .container,
html body.logged-in.ifp-productions-homepage .content-area > .container {
  width: 100% !important;
  max-width: none !important;
  margin-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
}

html body.admin-bar.ifp-productions-homepage .ifp-page-entry,
html body.logged-in.ifp-productions-homepage .ifp-page-entry,
html body.admin-bar.ifp-productions-homepage .entry-content,
html body.logged-in.ifp-productions-homepage .entry-content {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

html body.admin-bar.ifp-productions-homepage .ifp-homepage,
html body.logged-in.ifp-productions-homepage .ifp-homepage,
html body.admin-bar.ifp-productions-homepage .ifp-homepage > :last-child,
html body.logged-in.ifp-productions-homepage .ifp-homepage > :last-child {
  margin-bottom: 0 !important;
}

html body.admin-bar.ifp-productions-homepage .site-footer,
html body.logged-in.ifp-productions-homepage .site-footer {
  margin-top: 0 !important;
}

/* Prevent empty editor-generated paragraphs after the shortcode from
   becoming visible only to logged-in users. */
body.ifp-productions-homepage .ifp-page-entry > p:empty:last-child,
body.ifp-productions-homepage .entry-content > p:empty:last-child {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}


/* =========================================================
   v1.6.3 direct Productions page rendering
   ========================================================= */

.ifp-page-entry--productions {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Non-homepage production pages retain their normal breathing room. */
body:not(.ifp-productions-homepage) .ifp-page-entry--productions {
  margin: 0;
}

/* Homepage remains fully flush. */
body.ifp-productions-homepage .ifp-page-entry--productions {
  margin: 0;
  padding: 0;
}
