/*
Theme Name: NYC Dental
Theme URI: https://example.com/nyc-dental
Author: Sample Studio
Description: A lightweight, plugin-free WordPress block theme for a modern dental practice, featuring an animated video hero and editable core-block patterns.
Version: 1.3.4
Requires at least: 6.8
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nyc-dental
Tags: block-patterns, full-site-editing, custom-colors, custom-logo, featured-images, wide-blocks
*/

:root {
  --nyc-ink: #061e2c;
  --nyc-ink-soft: #35505f;
  --nyc-blue: #1876e8;
  --nyc-blue-deep: #0a5bc7;
  --nyc-sky: #dceeff;
  --nyc-sky-soft: #edf6fe;
  --nyc-canvas: #f7fbff;
  --nyc-white: #fff;
  --nyc-line: rgba(6, 30, 44, 0.12);
  --nyc-shadow: 0 24px 70px rgba(13, 75, 117, 0.14);
  --nyc-radius-xl: 34px;
  --nyc-radius-lg: 25px;
  --nyc-radius-md: 18px;
  --nyc-header-height: 88px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

.wp-site-blocks { overflow-x: clip; }

img {
  max-width: 100%;
  height: auto;
}

h1,
h2 { text-wrap: balance; }

a,
button,
.wp-element-button { transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }

a:focus-visible,
button:focus-visible,
.wp-element-button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(24, 118, 232, 0.48);
  outline-offset: 4px;
}

.wp-block-button__link:hover {
  transform: translateY(-2px);
  background: #103649;
  box-shadow: 0 18px 34px rgba(6, 30, 44, 0.23);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
  color: var(--nyc-ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--nyc-line);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: white; }

/* Header */
.nyc-site-header {
  position: absolute;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  margin: 0;
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.nyc-site-header.is-stuck {
  position: fixed;
  top: 0;
  background: rgba(247, 251, 255, 0.9);
  box-shadow: 0 8px 30px rgba(6, 30, 44, 0.08);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.admin-bar .nyc-site-header.is-stuck { top: 32px; }
.nyc-site-header.is-stuck .nyc-utility { display: none; }

.nyc-utility {
  min-height: 38px;
  color: rgba(255, 255, 255, 0.9);
  background: var(--nyc-ink);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.nyc-utility__inner {
  min-height: 38px;
  padding: 0 20px;
}

.nyc-utility p { margin: 0; }
.nyc-utility a { color: inherit; }
.nyc-utility a:hover { color: white; }

.nyc-open-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nyc-open-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6ce3b4;
  box-shadow: 0 0 0 5px rgba(108, 227, 180, 0.12);
}

.nyc-nav-shell { min-height: var(--nyc-header-height); }

.nyc-nav {
  min-height: var(--nyc-header-height);
  padding: 0 20px;
  gap: 24px;
}

.nyc-brand {
  flex: 0 0 auto;
  margin: 0;
  font-size: 1.14rem;
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1;
}

.nyc-brand a {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding-left: 49px;
}

.nyc-brand a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 37px;
  height: 37px;
  border-radius: 12px 18px 12px 18px;
  background: linear-gradient(145deg, var(--nyc-ink), #164e70);
  box-shadow: inset -8px -8px 18px rgba(69, 151, 211, 0.38);
  transform: translateY(-50%) rotate(-8deg);
}

.nyc-brand a::after {
  content: "Ⅱ";
  position: absolute;
  left: 9px;
  top: 50%;
  color: #bce0ff;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -8px;
  transform: translateY(-51%) rotate(24deg);
}

div.nyc-primary-nav,
nav.nyc-primary-nav {
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 35px rgba(44, 104, 149, 0.1);
  backdrop-filter: blur(14px);
}

div.nyc-primary-nav > nav.wp-block-navigation {
  padding: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none;
  backdrop-filter: none;
}

/* WordPress repeats a Navigation block's custom class on its inner list.
   Keep the glass capsule on the outer nav only. */
.nyc-primary-nav .wp-block-navigation__container,
.nyc-primary-nav .wp-block-navigation-item {
  padding: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none;
  backdrop-filter: none;
}

.nyc-primary-nav .wp-block-navigation-item__content {
  padding: 8px 12px;
  border-radius: 999px;
  color: #294451;
}

.nyc-primary-nav .wp-block-navigation-item__content:hover {
  color: var(--nyc-ink);
  background: white;
}

.nyc-header-actions { flex-wrap: nowrap; }
.nyc-header-actions .wp-element-button { min-height: 46px; padding: 0.9rem 1.25rem; white-space: nowrap; }
.nyc-header-call .wp-element-button { border-color: transparent !important; background: transparent !important; box-shadow: none; }

/* Shared section styling */
.nyc-section { padding: 108px 20px; }
.nyc-section--soft { background: var(--nyc-sky-soft); }

.nyc-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: #174562;
  font-size: 0.73rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nyc-eyebrow::before {
  content: "";
  width: 23px;
  height: 1px;
  flex: 0 0 23px;
  background: currentColor;
}

.nyc-section-head,
.nyc-benefits__head {
  gap: 60px;
  margin-bottom: 48px;
}

.nyc-section-head > .wp-block-group,
.nyc-benefits__head > .wp-block-group { flex: 1 1 64%; }

.nyc-section-head h2,
.nyc-benefits__head h2,
.nyc-reviews__head h2,
.nyc-cta h2 { margin: 0; max-width: 760px; }

.nyc-section-intro {
  max-width: 390px;
  margin: 0 0 5px;
  color: var(--nyc-ink-soft);
}

/* Animated hero */
.wp-block-cover.nyc-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: min(890px, 100svh) !important;
  padding: 0;
  border-radius: 0 0 42px 42px;
  background: var(--nyc-sky) url("assets/images/hero-3d.webp") center / cover no-repeat;
}

.nyc-hero .wp-block-cover__video-background {
  z-index: 0;
  object-position: center;
  transform: scale(1.035) translate3d(calc(var(--px, 0) * -7px), calc(var(--py, 0) * -5px), 0);
  will-change: transform;
}

.nyc-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(242, 249, 255, 0.98) 0%, rgba(239, 248, 255, 0.94) 29%, rgba(235, 246, 255, 0.48) 49%, rgba(220, 238, 255, 0.04) 75%);
  pointer-events: none;
}

.nyc-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: -8%;
  bottom: -18%;
  width: 58%;
  aspect-ratio: 1.4;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  filter: blur(50px);
  pointer-events: none;
}

.nyc-hero .wp-block-cover__background { display: none; }
.nyc-hero .wp-block-cover__inner-container { position: relative; z-index: 2; width: 100%; color: var(--nyc-ink); }

.nyc-hero__layout {
  position: relative;
  width: min(1240px, 100%) !important;
  min-height: min(890px, 100svh);
  margin-inline: auto !important;
  padding: calc(var(--nyc-header-height) + 113px) 20px 86px;
}

.nyc-hero__copy { max-width: 590px; margin: 0; }
.nyc-hero__title { margin: 0 0 24px; line-height: 0.96 !important; letter-spacing: -0.068em !important; text-wrap: balance; }
.nyc-hero__lead { max-width: 495px; margin: 0 0 30px; color: #274a5c; line-height: 1.55; }
.nyc-hero__actions { gap: 11px; }

.nyc-hero__proof {
  gap: 14px;
  margin-top: 35px;
  color: #36586a;
  font-size: 0.79rem;
}

.nyc-proof-avatars { display: flex; margin: 0 0 0 8px; }
.nyc-proof-avatars span {
  display: grid;
  width: 34px;
  height: 34px;
  margin-left: -8px;
  place-items: center;
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, #164565, #7cb9e8);
  font-size: 0.63rem;
  font-weight: 800;
}

.nyc-proof-rating p { margin: 0; }
.nyc-stars { margin: 0; color: var(--wp--preset--color--gold, #d89000); letter-spacing: 0.08em; }

.nyc-hero__card {
  position: absolute;
  z-index: 3;
  right: 20px;
  bottom: 38px;
  width: min(340px, calc(100% - 48px));
  gap: 15px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.73);
  box-shadow: 0 24px 55px rgba(30, 99, 148, 0.16);
  backdrop-filter: blur(18px) saturate(140%);
  transform: translate3d(calc(var(--px, 0) * 5px), calc(var(--py, 0) * 4px), 0);
}

.nyc-hero__card p { margin: 0; }
.nyc-hero__card > .wp-block-group p:last-child { margin-top: 4px; color: #47606d; font-size: 0.73rem; line-height: 1.35; }
.nyc-hero__card-icon {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  border-radius: 17px;
  color: white;
  background: linear-gradient(145deg, #0d3852, #268be7);
  font-size: 1.45rem;
}

/* Statistics */
.nyc-stats-wrap { padding: 0 20px 34px; }
.nyc-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--nyc-line);
  border-radius: 0 0 28px 28px;
  background: var(--nyc-line);
  box-shadow: 0 18px 50px rgba(28, 82, 117, 0.06);
}

.nyc-stat { min-height: 128px; padding: 25px 27px; background: white; }
.nyc-stat h3 { margin: 0 0 8px; font-size: clamp(1.35rem, 2.5vw, 2rem); letter-spacing: -0.045em; }
.nyc-stat p { margin: 0; color: #58707c; font-size: 0.78rem; }

/* Services */
.nyc-services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(230px, auto);
  gap: 15px;
}

.nyc-service-card {
  position: relative;
  display: flex;
  min-height: 255px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 27px;
  border: 1px solid var(--nyc-line);
  border-radius: var(--nyc-radius-lg);
  background: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.nyc-service-card:hover { transform: translateY(-6px); border-color: rgba(24, 118, 232, 0.26); box-shadow: var(--nyc-shadow); }
.nyc-service-card--large { grid-column: span 6; grid-row: span 2; min-height: 520px; color: white; background: var(--nyc-ink); border-color: transparent; }
.nyc-service-card--small { grid-column: span 3; }
.nyc-service-card--wide { grid-column: span 6; }

.nyc-service-card--large::before {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  right: -125px;
  bottom: -135px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 25%, rgba(129, 205, 255, 0.95), rgba(40, 135, 204, 0.42) 45%, rgba(5, 29, 43, 0) 70%);
  box-shadow: inset -40px -40px 80px rgba(1, 25, 40, 0.36);
}

.nyc-card-top,
.nyc-card-bottom { position: relative; z-index: 2; }
.nyc-card-top { width: 100%; }
.nyc-service-icon,
.nyc-card-arrow { display: grid; margin: 0; place-items: center; }
.nyc-service-icon { width: 48px; height: 48px; border-radius: 15px; color: #145f96; background: #e7f4ff; font-size: 1.22rem; }
.nyc-service-card--large .nyc-service-icon { color: white; background: rgba(255, 255, 255, 0.11); border: 1px solid rgba(255, 255, 255, 0.14); }
.nyc-card-arrow { width: 41px; height: 41px; border: 1px solid var(--nyc-line); border-radius: 50%; }
.nyc-card-arrow a { display: grid; width: 100%; height: 100%; place-items: center; }
.nyc-service-card:hover .nyc-card-arrow { transform: rotate(45deg); color: white; background: var(--nyc-blue); border-color: var(--nyc-blue); }
.nyc-service-card:hover .nyc-card-arrow a { color: white; }
.nyc-service-card--large .nyc-card-arrow { border-color: rgba(255, 255, 255, 0.25); }
.nyc-service-card--large .nyc-card-arrow a { color: white; }
.nyc-card-tag { margin: 0 0 16px; color: #6c8491; font-size: 0.68rem; font-weight: 760; letter-spacing: 0.11em; text-transform: uppercase; }
.nyc-service-card--large .nyc-card-tag { color: #9fd4f9; }
.nyc-service-card h3 { margin: 0 0 9px; font-size: clamp(1.35rem, 2.2vw, 2rem); }
.nyc-service-card .nyc-card-bottom > p:last-child { max-width: 390px; margin: 0; color: #637985; font-size: 0.86rem; }
.nyc-service-card--large .nyc-card-bottom > p:last-child { color: rgba(255, 255, 255, 0.68); }

/* Story */
.nyc-story__columns { gap: clamp(50px, 8vw, 100px); }
.nyc-story__media { position: relative; }
.nyc-story__image { overflow: hidden; margin: 0; border-radius: var(--nyc-radius-xl); box-shadow: 0 30px 80px rgba(15, 77, 118, 0.16); }
.nyc-story__image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.nyc-story__media:hover img { transform: scale(1.025); }
.nyc-story__badge {
  position: absolute;
  right: -34px;
  bottom: 32px;
  display: grid;
  width: 155px;
  height: 155px;
  padding: 23px;
  place-items: center;
  border: 8px solid var(--nyc-sky-soft);
  border-radius: 50%;
  color: white;
  background: var(--nyc-blue);
  text-align: center;
  box-shadow: 0 18px 38px rgba(24, 118, 232, 0.25);
  transform: rotate(-7deg);
}
.nyc-story__badge h3 { margin: 0; font-size: 1.75rem; }
.nyc-story__badge p { margin: 7px 0 0; font-size: 0.67rem; line-height: 1.2; }
.nyc-story__copy h2 { margin: 0 0 25px; }
.nyc-story__copy > p { color: var(--nyc-ink-soft); }
.nyc-checks { display: grid; gap: 13px; margin: 28px 0 34px; padding: 0; list-style: none; }
.nyc-checks li { display: flex; align-items: center; gap: 12px; font-size: 0.91rem; font-weight: 620; }
.nyc-checks li::before { content: "✓"; display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; border-radius: 50%; color: white; background: var(--nyc-blue); font-size: 0.72rem; }

/* Benefits */
.nyc-benefits { color: white; background: var(--nyc-ink); }
.nyc-benefits .nyc-eyebrow { color: #9ed6ff; }
.nyc-benefits .nyc-section-intro { color: rgba(255, 255, 255, 0.62); }
.nyc-value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.nyc-value-card { min-height: 285px; padding: 25px; border: 1px solid rgba(255, 255, 255, 0.11); border-radius: var(--nyc-radius-lg); background: rgba(255, 255, 255, 0.035); transition: transform 0.25s ease, background 0.25s ease; }
.nyc-value-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.07); }
.nyc-value-number { margin: 0 0 68px; color: #8bcaf7; font-size: 0.7rem; letter-spacing: 0.12em; }
.nyc-value-card h3 { margin: 0 0 10px; font-size: 1.25rem; }
.nyc-value-card > p:last-child { margin: 0; color: rgba(255, 255, 255, 0.58); font-size: 0.82rem; }

/* Reviews */
.nyc-reviews__head { gap: 50px; margin-bottom: 42px; }
.nyc-rating-badge { flex: 0 0 auto; margin: 0; padding: 13px 18px; border: 1px solid var(--nyc-line); border-radius: 999px; background: white; font-size: 0.78rem; }
.nyc-rating-badge strong { font-size: 1.05rem; }
.nyc-review-grid { gap: 15px; }
.nyc-review-card { min-height: 315px; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--nyc-line); border-radius: var(--nyc-radius-lg); background: white; }
.nyc-review-card blockquote { margin: 35px 0 30px; padding: 0; border: 0; color: #233f4e; font-size: clamp(1rem, 1.45vw, 1.15rem); line-height: 1.55; }
.nyc-review-card blockquote p { margin: 0; }
.nyc-review-footer { margin-top: auto; color: #738691; font-size: 0.74rem; }
.nyc-review-footer p { margin: 0; }
.nyc-review-footer strong { color: var(--nyc-ink); font-size: 0.82rem; }

/* FAQs */
.nyc-faq__columns { gap: clamp(55px, 9vw, 120px); }
.nyc-faq__intro { position: sticky; top: 125px; align-self: flex-start; }
.nyc-faq__intro h2 { margin: 0 0 24px; }
.nyc-faq__intro > p:last-child { color: var(--nyc-ink-soft); }
.nyc-faq__list details { margin: 0; border-top: 1px solid var(--nyc-line); }
.nyc-faq__list details:last-child { border-bottom: 1px solid var(--nyc-line); }
.nyc-faq__list summary { position: relative; padding: 26px 52px 26px 0; list-style: none; cursor: pointer; font-size: 1.08rem; font-weight: 650; letter-spacing: -0.018em; }
.nyc-faq__list summary::-webkit-details-marker { display: none; }
.nyc-faq__list summary::after { content: "+"; position: absolute; right: 3px; top: 50%; display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--nyc-line); border-radius: 50%; transform: translateY(-50%); transition: transform 0.25s ease, background 0.25s ease; }
.nyc-faq__list details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: white; background: var(--nyc-blue); border-color: var(--nyc-blue); }
.nyc-faq__list details > p { max-width: 650px; margin: 0; padding: 0 54px 25px 0; color: var(--nyc-ink-soft); font-size: 0.9rem; }

/* CTA */
.nyc-cta-wrap { padding: 0 20px 30px; }
.nyc-cta {
  position: relative;
  min-height: 420px;
  gap: 40px;
  align-content: flex-end;
  overflow: hidden;
  padding: clamp(45px, 7vw, 86px);
  border-radius: var(--nyc-radius-xl);
  color: white;
  background: linear-gradient(130deg, #0a5fc8 0%, #218ce8 55%, #75bff3 100%);
  box-shadow: 0 32px 80px rgba(24, 118, 232, 0.22);
}
.nyc-cta::before,
.nyc-cta::after { content: ""; position: absolute; border: 1px solid rgba(255, 255, 255, 0.26); border-radius: 50%; pointer-events: none; }
.nyc-cta::before { width: 520px; height: 520px; right: -170px; top: -260px; box-shadow: inset 0 0 90px rgba(255, 255, 255, 0.12); }
.nyc-cta::after { width: 230px; height: 230px; right: 70px; top: -70px; }
.nyc-cta__copy,
.nyc-cta__action { position: relative; z-index: 2; }
.nyc-cta__copy { flex: 1 1 650px; }
.nyc-cta .nyc-eyebrow { color: #dff2ff; }
.nyc-cta__action { flex: 0 1 250px; text-align: right; }
.nyc-cta__action .wp-block-buttons { justify-content: flex-end; }
.nyc-cta__action p { margin: 12px 0 0; color: rgba(255, 255, 255, 0.76); font-size: 0.78rem; }

/* Footer */
.nyc-footer { padding: 70px 20px 42px; color: #d8e9f3; background: var(--nyc-ink); }
.nyc-footer__grid { gap: 60px; margin-bottom: 0; padding-bottom: 55px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.nyc-brand--footer a { color: white; }
.nyc-brand--footer a::before { background: white; box-shadow: none; }
.nyc-brand--footer a::after { color: var(--nyc-blue); }
.nyc-footer__about > p { max-width: 325px; margin: 22px 0 0; color: rgba(255, 255, 255, 0.55); font-size: 0.81rem; }
.nyc-footer h3 { margin: 0 0 18px; color: white; font-size: 0.78rem; letter-spacing: 0.09em; text-transform: uppercase; }
.nyc-footer .wp-block-column > p,
.nyc-footer__links { color: rgba(255, 255, 255, 0.61); font-size: 0.8rem; }
.nyc-footer a { color: inherit; }
.nyc-footer a:hover { color: white; }
.nyc-footer__links { margin: 0; padding: 0; list-style: none; }
.nyc-footer__links li { margin-bottom: 10px; }
.nyc-footer__bottom { gap: 30px; padding-top: 28px; color: rgba(255, 255, 255, 0.42); font-size: 0.7rem; }
.nyc-footer__bottom p { max-width: 760px; margin: 0; }

/* Blog archive */
.nyc-blog-archive,
.nyc-article {
  min-height: 70vh;
  background: var(--nyc-canvas);
}

.nyc-blog-hero,
.nyc-article-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nyc-header-height) + 126px) 20px 96px;
  border-radius: 0 0 42px 42px;
  background:
    radial-gradient(circle at 83% 28%, rgba(255, 255, 255, 0.88) 0 8%, transparent 8.4%),
    linear-gradient(135deg, #e8f5ff 0%, #dceeff 52%, #cce7fb 100%);
}

.nyc-blog-hero::before,
.nyc-article-hero::before {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -250px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(24, 118, 232, 0.16);
  border-radius: 50%;
  box-shadow: inset 0 0 90px rgba(255, 255, 255, 0.42), 0 0 0 70px rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.nyc-blog-hero__inner,
.nyc-article-header { position: relative; z-index: 2; }
.nyc-blog-hero__inner { max-width: 880px; margin: 0; }
.nyc-blog-hero__title { max-width: 840px; margin: 0; font-size: clamp(3.4rem, 7vw, 6.8rem); letter-spacing: -0.072em; line-height: 0.94; }
.nyc-blog-hero__lead { max-width: 650px; margin: 28px 0 0; color: #355767; font-size: clamp(1rem, 1.7vw, 1.25rem); line-height: 1.6; }
.nyc-blog-archive--taxonomy .nyc-blog-hero__title { font-size: clamp(3.1rem, 6vw, 5.8rem); }
.nyc-blog-archive--taxonomy .nyc-blog-hero__lead:empty { display: none; }

.nyc-blog-feed { padding: 96px 20px 110px; }
.nyc-blog-feed__head { gap: 30px; margin-bottom: 38px; }
.nyc-blog-feed__head h2 { margin: 0; font-size: clamp(2.2rem, 4vw, 3.9rem); }
.nyc-blog-feed__head p { max-width: 360px; margin: 0 0 5px; color: var(--nyc-ink-soft); }

.nyc-blog-grid {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nyc-blog-grid > li { grid-column: span 4; margin: 0; }
.nyc-blog-grid > li:only-child { grid-column: span 8; }
.nyc-blog-grid > li:first-child:nth-last-child(2),
.nyc-blog-grid > li:first-child:nth-last-child(2) ~ li { grid-column: span 6; }

.nyc-blog-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--nyc-line);
  border-radius: 28px;
  background: white;
  box-shadow: 0 15px 45px rgba(21, 75, 110, 0.06);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nyc-blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(24, 118, 232, 0.24);
  box-shadow: 0 26px 65px rgba(21, 75, 110, 0.14);
}

.nyc-blog-card__media {
  position: relative;
  min-height: 225px;
  overflow: hidden;
  background: linear-gradient(145deg, #d9eeff, #edf7ff 50%, #b9ddf8);
}

.nyc-blog-card__media::before,
.nyc-blog-card__media::after {
  content: "";
  position: absolute;
  border-radius: 48% 52% 44% 56%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(126, 190, 236, 0.45));
  box-shadow: inset -20px -24px 40px rgba(40, 125, 190, 0.2), 0 20px 45px rgba(37, 110, 164, 0.15);
  transform: rotate(24deg);
}

.nyc-blog-card__media::before { top: 38px; left: 18%; width: 118px; height: 154px; }
.nyc-blog-card__media::after { right: 13%; bottom: -30px; width: 164px; height: 205px; transform: rotate(-29deg); opacity: 0.7; }
.nyc-blog-card__media .wp-block-post-featured-image { position: absolute; z-index: 2; inset: 0; margin: 0; }
.nyc-blog-card__media .wp-block-post-featured-image a { display: block; height: 100%; }
.nyc-blog-card__media .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.nyc-blog-card:hover .wp-block-post-featured-image img { transform: scale(1.035); }

.nyc-blog-card__content { display: flex; min-height: 285px; flex: 1; flex-direction: column; padding: 27px; }
.nyc-blog-card__meta { gap: 10px; margin-bottom: 19px; color: #6b818d; font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; }
.nyc-blog-card__meta > * { margin: 0; }
.nyc-blog-card__meta > * + *::before { content: "•"; margin-right: 10px; color: #9fb0b8; }
.nyc-blog-card__category a { color: var(--nyc-blue-deep); }
.nyc-blog-card__title { margin: 0 0 14px; font-size: clamp(1.35rem, 2vw, 1.78rem); line-height: 1.08; }
.nyc-blog-card__title a:hover { color: var(--nyc-blue-deep); }
.nyc-blog-card__excerpt { margin: 0; color: #506a77; font-size: 0.88rem; line-height: 1.6; }
.nyc-blog-card__excerpt p { margin: 0; }
.nyc-blog-card__read { display: inline-flex; min-height: 44px; align-items: center; align-self: flex-start; margin-top: auto; padding-top: 22px; color: var(--nyc-blue-deep); font-size: 0.8rem; font-weight: 760; }

.nyc-blog-pagination { gap: 20px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--nyc-line); }
.nyc-blog-pagination a,
.nyc-blog-pagination .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 13px; border: 1px solid var(--nyc-line); border-radius: 999px; background: white; }
.nyc-blog-pagination .current { color: white; background: var(--nyc-ink); border-color: var(--nyc-ink); }
.nyc-blog-empty { padding: 60px 28px; border: 1px dashed rgba(24, 118, 232, 0.3); border-radius: 26px; background: var(--nyc-sky-soft); text-align: center; }
.nyc-blog-empty h3 { margin: 0 0 10px; }
.nyc-blog-empty p { margin: 0; color: var(--nyc-ink-soft); }

.nyc-blog-cta,
.nyc-article-cta {
  gap: 35px;
  margin-bottom: 38px;
  padding: 48px 54px;
  border-radius: 30px;
  color: white;
  background: linear-gradient(130deg, #07324a, #0a5fc8 62%, #54a9e7);
  box-shadow: 0 28px 70px rgba(18, 86, 135, 0.18);
}

.nyc-blog-cta .nyc-eyebrow,
.nyc-article-cta .nyc-eyebrow { color: #cfeaff; }
.nyc-blog-cta h2,
.nyc-article-cta h2 { max-width: 680px; margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); }
.nyc-blog-cta .wp-element-button,
.nyc-article-cta .wp-element-button { color: var(--nyc-ink); background: white; }

/* Single article */
.nyc-article-hero { padding-bottom: 84px; text-align: center; }
.nyc-article-header { max-width: 970px; margin-inline: auto; }
.nyc-article-kicker { margin: 0 0 18px; font-size: 0.72rem; font-weight: 780; letter-spacing: 0.12em; text-transform: uppercase; }
.nyc-article-kicker a { color: var(--nyc-blue-deep); }
.nyc-article-category { margin: 0 0 18px; color: #2b566d; font-size: 0.76rem; }
.nyc-article-category a { display: inline-flex; min-height: 34px; align-items: center; padding: 0 13px; border: 1px solid rgba(24, 118, 232, 0.18); border-radius: 999px; background: rgba(255, 255, 255, 0.56); }
.nyc-article-title { max-width: 950px; margin: 0 auto; font-size: clamp(3.2rem, 7vw, 6.9rem); letter-spacing: -0.074em; line-height: 0.94; }
.nyc-article-deck { max-width: 720px; margin: 26px auto 0; color: #365866; font-size: clamp(1rem, 1.7vw, 1.2rem); line-height: 1.6; }
.nyc-article-deck p { margin: 0; }
.nyc-article-meta { gap: 13px; justify-content: center; margin-top: 28px; color: #58717d; font-size: 0.76rem; }
.nyc-article-meta > * { margin: 0; }
.nyc-article-meta > * + *::before { content: "•"; margin-right: 13px; color: #8ba0aa; }
.nyc-article-featured { position: relative; z-index: 3; overflow: hidden; margin: -36px auto 0 !important; border: 8px solid var(--nyc-canvas); border-radius: 34px; box-shadow: 0 30px 75px rgba(17, 76, 114, 0.16); }
.nyc-article-featured img { width: 100%; max-height: 690px; object-fit: cover; }

.nyc-article-content-shell { padding: 86px 20px 70px; }
.nyc-article-content { color: #233f4e; font-size: 1.04rem; line-height: 1.78; }
.nyc-article-content > * { margin-top: 0; margin-bottom: 1.45em; }
.nyc-article-content > p:first-child { color: #14394d; font-size: 1.22rem; line-height: 1.7; }
.nyc-article-content h2 { margin-top: 1.65em; margin-bottom: 0.6em; font-size: clamp(2rem, 4vw, 3rem); }
.nyc-article-content h3 { margin-top: 1.6em; margin-bottom: 0.55em; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.nyc-article-content a { color: var(--nyc-blue-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.nyc-article-content ul,
.nyc-article-content ol { padding-left: 1.35em; }
.nyc-article-content li { margin-bottom: 0.55em; padding-left: 0.25em; }
.nyc-article-content blockquote { margin: 2.2em 0; padding: 26px 30px; border-left: 4px solid var(--nyc-blue); border-radius: 0 22px 22px 0; background: var(--nyc-sky-soft); font-size: 1.15rem; }
.nyc-article-content figure { margin-top: 2.2em; margin-bottom: 2.2em; }
.nyc-article-content img { border-radius: 24px; }
.nyc-article-content figcaption { color: #6b818d; font-size: 0.72rem; }

.nyc-article-footer { margin-top: 52px; padding: 26px 0; border-top: 1px solid var(--nyc-line); border-bottom: 1px solid var(--nyc-line); }
.nyc-article-footer p { margin: 0 0 13px; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.09em; }
.nyc-article-footer__terms { display: flex; flex-wrap: wrap; gap: 8px; }
.nyc-article-footer__terms a { display: inline-flex; min-height: 40px; align-items: center; padding: 0 14px; border-radius: 999px; color: #174c6b; background: var(--nyc-sky-soft); font-size: 0.78rem; }
.nyc-article-footer__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; color: #617985; font-size: 0.7rem; font-weight: 760; letter-spacing: 0.09em; text-transform: uppercase; }
.nyc-article-footer__tags a { display: inline-flex; min-height: 38px; align-items: center; padding: 0 13px; border: 1px solid rgba(24, 118, 232, 0.13); border-radius: 999px; color: var(--nyc-blue-deep); background: white; font-size: 0.76rem; font-weight: 680; letter-spacing: 0; text-transform: none; }
.nyc-article-footer__tags a:hover { color: white; background: var(--nyc-blue-deep); border-color: var(--nyc-blue-deep); }
.nyc-article-navigation { gap: 25px; margin-top: 28px; }
.nyc-article-navigation a { display: inline-flex; min-height: 48px; align-items: center; color: var(--nyc-blue-deep); font-size: 0.84rem; font-weight: 720; }
.nyc-article-navigation > *:last-child { text-align: right; }

.nyc-article-comments { max-width: 850px; margin: 0 auto 90px; padding: 42px; border: 1px solid var(--nyc-line); border-radius: 30px; background: white; box-shadow: 0 22px 60px rgba(21, 75, 110, 0.08); }
.nyc-article-comments > .wp-block-comments-title { margin: 0 0 28px; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.nyc-comment { margin-bottom: 18px; padding: 24px; border-radius: 20px; background: var(--nyc-sky-soft); }
.nyc-comment__meta { gap: 12px; color: #6a808c; font-size: 0.76rem; }
.nyc-comment__meta > * { margin: 0; }
.nyc-comment .wp-block-comment-content { margin: 15px 0; color: #35515f; }
.nyc-comment .wp-block-comment-content p { margin: 0 0 10px; }
.nyc-comment .wp-block-comment-reply-link { font-size: 0.76rem; font-weight: 720; }
.nyc-article-comments .comment-reply-title { margin-top: 38px; font-size: 1.6rem; }
.nyc-article-comments .comment-notes { color: #6b818d; font-size: 0.8rem; }
.nyc-article-comments label { display: block; margin-bottom: 7px; font-size: 0.76rem; font-weight: 700; }
.nyc-article-comments input:not([type="submit"]),
.nyc-article-comments textarea { width: 100%; padding: 13px 15px; border: 1px solid rgba(6, 30, 44, 0.17); border-radius: 14px; color: var(--nyc-ink); background: #fbfdff; font: inherit; }
.nyc-article-comments input:not([type="submit"]):focus,
.nyc-article-comments textarea:focus { outline: 3px solid rgba(24, 118, 232, 0.18); border-color: var(--nyc-blue); }
.nyc-article-comments input[type="submit"] { min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; color: white; background: var(--nyc-ink); font-weight: 720; cursor: pointer; }
.nyc-article-cta { margin-top: 0; }

/* Standard pages */
.nyc-page {
  min-height: 70vh;
  background: var(--nyc-canvas);
}

.nyc-page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nyc-header-height) + 122px) 20px 112px;
  border-radius: 0 0 42px 42px;
  background:
    radial-gradient(circle at 82% 26%, rgba(255, 255, 255, 0.9) 0 7.5%, transparent 7.9%),
    radial-gradient(circle at 68% 72%, rgba(255, 255, 255, 0.52) 0 4%, transparent 4.4%),
    linear-gradient(135deg, #eaf6ff 0%, #ddecfb 52%, #c8e5fb 100%);
}

.nyc-page-hero::before,
.nyc-page-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.nyc-page-hero::before {
  right: -95px;
  bottom: -265px;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(24, 118, 232, 0.17);
  border-radius: 50%;
  box-shadow: inset 0 0 100px rgba(255, 255, 255, 0.46), 0 0 0 72px rgba(255, 255, 255, 0.1);
}

.nyc-page-hero::after {
  top: 35%;
  right: 21%;
  width: 74px;
  height: 96px;
  border: 1px solid rgba(24, 118, 232, 0.14);
  border-radius: 48% 52% 44% 56%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(136, 200, 241, 0.26));
  box-shadow: 0 20px 45px rgba(37, 110, 164, 0.1);
  transform: rotate(26deg);
}

.nyc-page-hero__inner {
  position: relative;
  z-index: 2;
  margin: 0;
}

.nyc-page-kicker,
.nyc-page-help__eyebrow {
  margin: 0 0 20px;
  color: var(--nyc-blue-deep);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.nyc-page-kicker span { margin: 0 0.45em; color: #8ba6b6; }
.nyc-page-title { max-width: 980px; margin: 0; font-size: clamp(3.7rem, 7vw, 6.8rem); letter-spacing: -0.073em; line-height: 0.94; }
.nyc-page-intro { max-width: 620px; margin: 27px 0 0; color: #355767; font-size: clamp(1rem, 1.7vw, 1.2rem); line-height: 1.62; }

.nyc-page-featured {
  position: relative;
  z-index: 3;
  overflow: hidden;
  margin: -52px auto 0 !important;
  border: 8px solid var(--nyc-canvas);
  border-radius: 34px;
  background: var(--nyc-sky);
  box-shadow: 0 30px 75px rgba(17, 76, 114, 0.16);
}

.nyc-page-featured img { width: 100%; height: 100%; object-fit: cover; }

.nyc-page-shell {
  position: relative;
  z-index: 3;
  margin-top: -48px;
  padding: 0 20px 108px;
}

.nyc-page-featured + .nyc-page-shell { margin-top: 42px; }

.nyc-page-reading {
  max-width: 920px;
  margin-inline: auto;
  padding: clamp(38px, 6vw, 74px);
  border: 1px solid rgba(6, 30, 44, 0.09);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 80px rgba(21, 75, 110, 0.11);
}

.nyc-page-content {
  color: #294755;
  font-size: 1.03rem;
  line-height: 1.8;
}

.nyc-page-content > * { margin-top: 0; margin-bottom: 1.35em; }
.nyc-page-content > *:last-child { margin-bottom: 0; }
.nyc-page-content > p:first-child { color: #173c50; font-size: 1.17rem; line-height: 1.72; }

.nyc-page-content h2 {
  margin-top: 1.85em;
  margin-bottom: 0.62em;
  padding-top: 1.05em;
  border-top: 1px solid var(--nyc-line);
  font-size: clamp(1.9rem, 3.7vw, 2.8rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.nyc-page-content > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.nyc-page-content h3 { margin-top: 1.65em; margin-bottom: 0.58em; font-size: clamp(1.45rem, 2.8vw, 2rem); line-height: 1.15; }
.nyc-page-content h4 { margin-top: 1.55em; margin-bottom: 0.55em; font-size: 1.15rem; }
.nyc-page-content a { color: var(--nyc-blue-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.nyc-page-content a:hover { color: var(--nyc-ink); }
.nyc-page-content ul,
.nyc-page-content ol { padding-left: 1.4em; }
.nyc-page-content li { margin-bottom: 0.55em; padding-left: 0.2em; }
.nyc-page-content blockquote { margin: 2.2em 0; padding: 25px 29px; border-left: 4px solid var(--nyc-blue); border-radius: 0 20px 20px 0; background: var(--nyc-sky-soft); font-size: 1.1rem; }
.nyc-page-content blockquote p:last-child { margin-bottom: 0; }
.nyc-page-content figure { margin-top: 2.1em; margin-bottom: 2.1em; }
.nyc-page-content img { border-radius: 23px; }
.nyc-page-content figcaption { color: #6b818d; font-size: 0.74rem; }
.nyc-page-content hr { margin: 2.6em 0; border: 0; border-top: 1px solid var(--nyc-line); }
.nyc-page-content .wp-block-table { overflow-x: auto; border-radius: 16px; }
.nyc-page-content table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.nyc-page-content th,
.nyc-page-content td { padding: 14px 16px; border: 1px solid var(--nyc-line); text-align: left; vertical-align: top; }
.nyc-page-content th { color: var(--nyc-ink); background: var(--nyc-sky-soft); }
.nyc-page-content label { display: block; margin-bottom: 7px; color: var(--nyc-ink); font-size: 0.78rem; font-weight: 720; }
.nyc-page-content input:not([type="submit"]),
.nyc-page-content textarea,
.nyc-page-content select { box-sizing: border-box; width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid rgba(6, 30, 44, 0.18); border-radius: 13px; color: var(--nyc-ink); background: #fbfdff; font: inherit; }
.nyc-page-content textarea { min-height: 150px; resize: vertical; }
.nyc-page-content input:not([type="submit"]):focus,
.nyc-page-content textarea:focus,
.nyc-page-content select:focus { outline: 3px solid rgba(24, 118, 232, 0.18); border-color: var(--nyc-blue); }
.nyc-page-content input[type="submit"] { min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; color: white; background: var(--nyc-ink); font: inherit; font-weight: 720; cursor: pointer; }

.nyc-page-help {
  max-width: 920px;
  gap: 34px;
  margin: 25px auto 0;
  padding: 38px 42px;
  border: 1px solid rgba(24, 118, 232, 0.14);
  border-radius: 28px;
  background: linear-gradient(135deg, #e9f6ff, #dceeff);
}

.nyc-page-help__copy { max-width: 490px; margin: 0; }
.nyc-page-help__eyebrow { margin-bottom: 11px; }
.nyc-page-help h2 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.6rem); }
.nyc-page-help__copy > p:last-child { margin: 10px 0 0; color: #4a6573; font-size: 0.86rem; }
.nyc-page-help__actions { flex: 0 0 auto; }
.nyc-page-help__actions .wp-element-button { min-height: 48px; display: inline-flex; align-items: center; }

/* Standard WordPress content templates */
.nyc-content-page { min-height: 65vh; padding: 190px 20px 100px; }
.nyc-content-page > h1 { margin-bottom: 35px; }
.nyc-post-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.nyc-post-card { overflow: hidden; padding: 18px; border: 1px solid var(--nyc-line); border-radius: var(--nyc-radius-lg); background: white; }
.nyc-post-card .wp-block-post-featured-image { margin: -18px -18px 22px; }
.nyc-post-card .wp-block-post-date { color: var(--nyc-ink-soft); font-size: 0.75rem; }
.nyc-404 { display: flex; flex-direction: column; justify-content: center; }

/* Front-end reveal enhancements */
.nyc-reveal { opacity: 1; transform: none; transition: opacity 0.72s ease, transform 0.72s cubic-bezier(0.2, 0.75, 0.25, 1); }
.nyc-reveal.is-pending { opacity: 0; transform: translateY(24px); }
.nyc-reveal.is-visible { opacity: 1; transform: none; }

/* Site Editor parity */
.editor-styles-wrapper .nyc-site-header { position: relative; }
.editor-styles-wrapper .nyc-reveal { opacity: 1; transform: none; }
.editor-styles-wrapper .nyc-hero .wp-block-cover__video-background { pointer-events: none; }

@media (max-width: 1060px) {
  .nyc-header-actions { display: none !important; }
  .nyc-section-head,
  .nyc-benefits__head { gap: 40px; }
  .nyc-service-card--small { grid-column: span 6; }
  .nyc-service-card--wide { grid-column: span 12; }
  .nyc-value-grid { grid-template-columns: repeat(2, 1fr); }
  .nyc-footer__grid { flex-wrap: wrap !important; }
  .nyc-footer__about { flex-basis: 100% !important; }

  .nyc-primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
  .nyc-primary-nav .wp-block-navigation__responsive-container-open { display: flex; }
  div.nyc-primary-nav,
  nav.nyc-primary-nav { padding: 0; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
  .nyc-primary-nav .wp-block-navigation__responsive-container-open { width: 45px; height: 45px; align-items: center; justify-content: center; border-radius: 50%; color: white; background: var(--nyc-ink); }
  .nyc-primary-nav .wp-block-navigation__responsive-container.is-menu-open {
    position: fixed !important;
    z-index: 100000 !important;
    inset: 0 !important;
    box-sizing: border-box;
    width: 100vw !important;
    max-width: none !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: calc(96px + env(safe-area-inset-top)) max(26px, env(safe-area-inset-right)) calc(35px + env(safe-area-inset-bottom)) max(26px, env(safe-area-inset-left));
    color: var(--nyc-ink);
    background: rgba(238, 247, 255, 0.99) !important;
  }
  .nyc-primary-nav .wp-block-navigation__responsive-container-close { top: calc(20px + env(safe-area-inset-top)); right: max(20px, env(safe-area-inset-right)); }
  .nyc-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { display: flex; min-height: 48px; align-items: center; font-size: clamp(1.5rem, 7vw, 2rem); font-weight: 650; letter-spacing: -0.04em; }

  /* backdrop-filter creates a containing block for fixed descendants on mobile.
     Disable it only while the full-screen WordPress menu is open. */
  body.menu-open .nyc-site-header.is-stuck,
  html.has-modal-open .nyc-site-header.is-stuck {
    z-index: 100000;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (min-width: 1061px) {
  .nyc-primary-nav .wp-block-navigation__responsive-container-open { display: none; }
  .nyc-primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: block; position: relative; width: auto; }

  /* Core Navigation wrappers inherit the nav background by default. Keep the
     single rounded capsule on the outer NAV instead of painting inner boxes. */
  .nyc-primary-nav .wp-block-navigation__responsive-container,
  .nyc-primary-nav .wp-block-navigation__responsive-close,
  .nyc-primary-nav .wp-block-navigation__responsive-dialog,
  .nyc-primary-nav .wp-block-navigation__responsive-container-content,
  .nyc-primary-nav .wp-block-navigation__container,
  .nyc-primary-nav .wp-block-navigation-item {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
}

@media (max-width: 782px) {
  :root { --nyc-header-height: 72px; --nyc-radius-xl: 25px; }
  .admin-bar .nyc-site-header.is-stuck { top: 46px; }
  .admin-bar.menu-open .nyc-primary-nav .wp-block-navigation__responsive-container.is-menu-open { top: 46px !important; height: calc(100dvh - 46px) !important; min-height: calc(100vh - 46px); }
  .nyc-utility { min-height: 34px; }
  .nyc-utility__inner { min-height: 34px; justify-content: center !important; padding: 0 14px; }
  .nyc-utility__contact { display: none; }
  .nyc-nav { min-height: var(--nyc-header-height); padding: 0 14px; }
  .nyc-brand { font-size: 1rem; }
  .nyc-brand a { min-height: 44px; padding-left: 44px; }
  .nyc-brand a::before { width: 33px; height: 33px; }
  .nyc-brand a::after { left: 8px; font-size: 22px; }

  .wp-block-cover.nyc-hero {
    min-height: 900px !important;
    border-radius: 0 0 28px 28px;
    background-image: url("assets/images/hero-3d-mobile.webp");
    background-position: center 35%;
  }
  .nyc-hero .wp-block-cover__video-background { top: 42%; height: 58%; object-position: 67% center; transform: none; will-change: auto; }
  .nyc-hero::before { background: linear-gradient(180deg, rgba(243, 249, 255, 0.99) 0%, rgba(240, 248, 255, 0.98) 45%, rgba(231, 244, 255, 0.62) 63%, rgba(220, 238, 255, 0.03) 100%); }
  .nyc-hero__layout { min-height: 900px; padding: calc(var(--nyc-header-height) + 88px) 14px 330px; }
  .nyc-hero__title { font-size: clamp(2.85rem, 12.7vw, 4.25rem) !important; }
  .nyc-hero__lead { margin-bottom: 24px; font-size: 0.96rem !important; }
  .nyc-hero__proof { margin-top: 27px; }
  .nyc-hero__card { right: 14px; bottom: 14px; left: 14px; width: auto; transform: none; }
  .nyc-hero__actions .wp-element-button { display: flex; min-height: 48px; align-items: center; justify-content: center; }

  .nyc-stats-wrap { padding: 0 14px 10px; }
  .nyc-stats-grid { grid-template-columns: repeat(2, 1fr); border-radius: 0 0 22px 22px; }
  .nyc-stat { min-height: 113px; padding: 21px; }

  .nyc-section { padding: 78px 14px; }
  .nyc-section-head,
  .nyc-benefits__head { align-items: flex-start !important; flex-direction: column; gap: 20px; margin-bottom: 35px; }
  .nyc-section-intro { max-width: 560px; }

  .nyc-services-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .nyc-service-card,
  .nyc-service-card--large,
  .nyc-service-card--wide,
  .nyc-service-card--small { grid-column: 1; grid-row: auto; min-height: 260px; }
  .nyc-service-card--large { min-height: 410px; }
  .nyc-card-arrow { width: 44px; height: 44px; }

  .nyc-story__columns { gap: 65px; }
  .nyc-story__image img { aspect-ratio: 4 / 5; object-position: 58% center; }
  .nyc-story__badge { width: 126px; height: 126px; right: -4px; bottom: -34px; border-width: 6px; }
  .nyc-story__badge h3 { font-size: 1.4rem; }

  .nyc-value-grid { grid-template-columns: 1fr; }
  .nyc-value-card { min-height: auto; }
  .nyc-value-number { margin-bottom: 42px; }

  .nyc-reviews__head { align-items: flex-start !important; flex-direction: column; gap: 24px; }
  .nyc-review-grid { flex-direction: column; }
  .nyc-review-card { min-height: 270px; }

  .nyc-faq__columns { gap: 38px; }
  .nyc-faq__intro { position: static; }

  .nyc-cta-wrap { padding: 0 14px 30px; }
  .nyc-cta { min-height: 490px; padding: 38px 26px; align-items: flex-end !important; }
  .nyc-cta__action { flex-basis: 100%; text-align: center; }
  .nyc-cta__action .wp-block-buttons { justify-content: stretch; }
  .nyc-cta__action .wp-block-button,
  .nyc-cta__action .wp-element-button { width: 100%; }

  .nyc-footer { padding: 70px 14px 42px; }
  .nyc-footer__grid { gap: 40px 25px; }
  .nyc-footer__grid > .wp-block-column { flex-basis: calc(50% - 14px) !important; }
  .nyc-footer__about { flex-basis: 100% !important; }
  .nyc-footer__bottom { align-items: flex-start !important; flex-direction: column; }
  .nyc-footer__links a,
  .nyc-footer .wp-block-column > p a { display: inline-flex; min-height: 44px; align-items: center; }

  .nyc-page-hero { padding: calc(var(--nyc-header-height) + 90px) 14px 76px; border-radius: 0 0 28px 28px; }
  .nyc-page-hero::before { right: -225px; bottom: -320px; }
  .nyc-page-hero::after { top: 38%; right: 8%; width: 52px; height: 68px; }
  .nyc-page-kicker { margin-bottom: 17px; }
  .nyc-page-title { font-size: clamp(3rem, 13.2vw, 5rem); }
  .nyc-page-intro { margin-top: 21px; font-size: 0.97rem; }
  .nyc-page-featured { margin-top: -30px !important; border-width: 5px; border-radius: 24px; }
  .nyc-page-shell { margin-top: -28px; padding: 0 14px 76px; }
  .nyc-page-featured + .nyc-page-shell { margin-top: 30px; }
  .nyc-page-reading { padding: 34px 23px; border-radius: 25px; }
  .nyc-page-content { font-size: 1rem; line-height: 1.74; }
  .nyc-page-content > p:first-child { font-size: 1.08rem; line-height: 1.68; }
  .nyc-page-content h2 { margin-top: 1.65em; padding-top: 0.95em; font-size: clamp(1.75rem, 8.3vw, 2.35rem); }
  .nyc-page-content h3 { font-size: clamp(1.4rem, 6.4vw, 1.8rem); }
  .nyc-page-content blockquote { padding: 22px; }
  .nyc-page-help { align-items: flex-start !important; flex-direction: column; margin-top: 18px; padding: 30px 23px; border-radius: 24px; }
  .nyc-page-help__actions,
  .nyc-page-help__actions .wp-block-button,
  .nyc-page-help__actions .wp-element-button { width: 100%; }
  .nyc-page-help__actions .wp-element-button { justify-content: center; }

  .nyc-content-page { padding: 160px 14px 78px; }
  .nyc-post-grid { grid-template-columns: 1fr; }
}

@media (min-width: 681px) and (max-width: 782px) {
  .nyc-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nyc-service-card,
  .nyc-service-card--small { grid-column: auto; min-height: 280px; }
  .nyc-service-card--large,
  .nyc-service-card--wide { grid-column: 1 / -1; }
  .nyc-service-card--large { min-height: 420px; }
}

@media (max-width: 440px) {
  .nyc-hero__actions { display: grid !important; grid-template-columns: 1fr 1fr; }
  .nyc-hero__actions .wp-block-button,
  .nyc-hero__actions .wp-element-button { width: 100%; }
  .nyc-hero__actions .wp-element-button { padding-inline: 0.75rem; font-size: 0.78rem; }
  .nyc-proof-rating { font-size: 0.72rem; }
  .nyc-stat { padding: 19px 17px; }
  .nyc-footer__grid > .wp-block-column { flex-basis: 100% !important; }
}

@media (max-width: 360px) {
  .nyc-hero__actions { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .nyc-blog-grid > li { grid-column: span 6; }
  .nyc-blog-grid > li:only-child { grid-column: span 9; }
  .nyc-blog-grid > li:first-child:nth-last-child(2),
  .nyc-blog-grid > li:first-child:nth-last-child(2) ~ li { grid-column: span 6; }
}

@media (max-width: 782px) {
  .nyc-blog-hero,
  .nyc-article-hero { padding: calc(var(--nyc-header-height) + 92px) 14px 70px; border-radius: 0 0 28px 28px; }
  .nyc-blog-hero::before,
  .nyc-article-hero::before { right: -210px; bottom: -300px; }
  .nyc-blog-hero__title { font-size: clamp(3rem, 13.5vw, 5.2rem); }
  .nyc-blog-hero__lead { margin-top: 22px; font-size: 0.98rem; }
  .nyc-blog-feed { padding: 68px 14px 78px; }
  .nyc-blog-feed__head { align-items: flex-start !important; flex-direction: column; gap: 13px; margin-bottom: 28px; }
  .nyc-blog-card__content { min-height: 270px; padding: 24px; }
  .nyc-blog-pagination { align-items: center; flex-wrap: wrap; }
  .nyc-blog-cta,
  .nyc-article-cta { margin-right: 14px; margin-left: 14px; padding: 36px 28px; }
  .nyc-blog-cta .wp-block-buttons,
  .nyc-blog-cta .wp-block-button,
  .nyc-blog-cta .wp-element-button,
  .nyc-article-cta .wp-block-buttons,
  .nyc-article-cta .wp-block-button,
  .nyc-article-cta .wp-element-button { width: 100%; }

  .nyc-article-header { max-width: 680px; }
  .nyc-article-title { font-size: clamp(2.85rem, 12.7vw, 5.1rem); }
  .nyc-article-deck { margin-top: 21px; font-size: 0.98rem; }
  .nyc-article-meta { margin-top: 23px; }
  .nyc-article-featured { margin-top: -24px !important; border-width: 5px; border-radius: 24px; }
  .nyc-article-content-shell { padding: 62px 14px 55px; }
  .nyc-article-content { font-size: 1rem; line-height: 1.72; }
  .nyc-article-content > p:first-child { font-size: 1.12rem; }
  .nyc-article-navigation { align-items: flex-start !important; flex-direction: column; }
  .nyc-article-navigation > *:last-child { text-align: left; }
  .nyc-article-comments { margin: 0 14px 72px; padding: 28px 22px; border-radius: 24px; }
  .nyc-comment { padding: 20px; }
}

@media (max-width: 620px) {
  .nyc-blog-grid { grid-template-columns: 1fr; }
  .nyc-blog-grid > li,
  .nyc-blog-grid > li:only-child,
  .nyc-blog-grid > li:first-child:nth-last-child(2),
  .nyc-blog-grid > li:first-child:nth-last-child(2) ~ li { grid-column: 1; }
  .nyc-blog-card__media { min-height: 205px; }
  .nyc-blog-card__content { min-height: 255px; }
  .nyc-article-meta { gap: 9px; }
  .nyc-article-meta > * + *::before { margin-right: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .nyc-reveal,
  .nyc-reveal.is-pending { opacity: 1; transform: none; }
  .nyc-hero .wp-block-cover__video-background { display: none; }
}
