/* Shared polish is deliberately restricted to theme interaction classes. */
[hidden] { display: none !important; }
.sunrise-arrival { opacity: .85; translate: 0 14px; transition: opacity .65s ease, translate .65s ease; }
.sunrise-arrival.sunrise-arrived,.sunrise-arrival:focus-within { opacity: 1; translate: 0 0; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .story,.location-story,.service-card,.option-grid article,.gallery figure,.gallery-card,.choice { transition: transform .25s ease, box-shadow .25s ease, opacity .65s ease, translate .65s ease; }
  .story:hover,.location-story:hover,.service-card:hover,.option-grid article:hover,.gallery figure:hover,.gallery-card:hover,.choice:hover { transform: translateY(-3px); box-shadow: 0 12px 28px #0002; }
}
.sunrise-drift { position: fixed; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; opacity: 0; mask-repeat: no-repeat; mask-size: 100% 100%; }
.sunrise-drift.sunrise-drift-ready { opacity: 1; }
.sunrise-drift i { position: absolute; width: var(--size); height: var(--size); border-radius: 50%; background: #e9cd8e; box-shadow: 0 0 7px #e9cd8e44; opacity: 0; animation: sunrise-drift var(--duration) linear var(--delay) infinite; }
@keyframes sunrise-drift {
  0% { transform: translate3d(-10px,55px,0); opacity: 0; }
  20%,70% { opacity: .25; }
  100% { transform: translate3d(20px,-95px,0); opacity: 0; }
}
/* Replace source-page sparkles with the single masked field. */
.sparks,.drift-field { display: none !important; }
#simple-form #result { scroll-margin: 100px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .sunrise-drift { display: none !important; }
  .sunrise-arrival { opacity: 1; translate: none; transition: none; }
  .story,.location-story,.service-card,.option-grid article,.gallery figure,.gallery-card,.choice { transform: none !important; transition: none !important; }
}
/* Block-theme wrappers must not add gutters or constrain sticky chrome. */
body .wp-site-blocks { padding: 0; margin: 0; }
body .wp-site-blocks > * { margin-block-start: 0; margin-block-end: 0; }
body .wp-site-blocks > .wp-block-template-part { display: contents; }
body .wp-site-blocks header { position: sticky; top: 0; z-index: 60; box-shadow: 0 6px 20px #0003; }
body.admin-bar .wp-site-blocks header { top: 32px; }
@media (max-width: 800px) {
  body .wp-site-blocks header { position: static; min-height: 0; height: 0; padding: 0; border: 0; }
  body .wp-site-blocks header > .logo,body .wp-site-blocks header > #menu,body .wp-site-blocks header > .btn.small,body .wp-site-blocks header > .phone { display: none; }
  body .wp-site-blocks header nav { position: fixed; top: auto; bottom: calc(76px + env(safe-area-inset-bottom,0px)); left: 0; right: 0; max-height: 60vh; overflow: auto; z-index: 80; box-shadow: 0 -6px 25px #0006; }
}
@media print {
  .sunrise-drift { display: none !important; }
  .sunrise-arrival { opacity: 1; translate: none; }
}


/* Readable supporting-copy measure without changing approved photo layouts. */
.editorial>section{padding:24px 0;max-width:76ch}.editorial p{max-width:76ch}.contextual-links{line-height:2}.sunrise-cost-planning .interior-hero{max-width:1160px;margin:auto;padding:100px 6% 40px}.sunrise-cost-planning .interior-hero h1{max-width:18ch}.sunrise-cost-planning .interior-hero p{max-width:70ch}

/* Separate commercial inquiry form */
#commercial-form{max-width:1100px;margin:auto;padding:0 6% 70px}#commercial-form section{padding:35px 0;border-top:1px solid var(--line)}.quote-intro{padding:60px 6% 40px;max-width:1100px;margin:auto}.quote-intro h1{font-size:clamp(36px,5vw,64px)}.quote-intro p{max-width:750px}


/* Area navigation links directly to dedicated pages. */
#nav .areas-dropdown{position:relative;border:0;margin:0;padding:0;color:inherit}
#nav .areas-dropdown summary{display:flex;align-items:center;gap:8px;padding:0;cursor:pointer;font:inherit;list-style:none}
#nav .areas-dropdown summary::-webkit-details-marker{display:none}
#nav .areas-dropdown summary::after{content:'⌄';font-size:14px}
#nav .areas-dropdown-links{position:absolute;top:calc(100% + 18px);left:0;min-width:210px;display:grid;gap:0;padding:10px;background:#142b35;border:1px solid #49606a;border-radius:7px;box-shadow:0 10px 25px #0006}
#nav .areas-dropdown-links a{display:block;padding:12px;white-space:nowrap}
#nav summary:focus-visible{outline:2px solid #ecd8a5;outline-offset:6px}
@media(max-width:800px){#nav .areas-dropdown summary{padding:14px 0}#nav .areas-dropdown-links{position:static;box-shadow:none;margin:4px 0 12px;min-width:0}}

@media(min-width:801px){header #nav{gap:18px;font-size:14px}header .logo{max-width:200px}}
#nav .areas-dropdown-links{max-height:65vh;overflow:auto} @media(max-width:800px){#nav .areas-dropdown-links a{white-space:normal}.sunrise-commercial .mobile-quote,.sunrise-commercial-katy .mobile-quote,.sunrise-commercial-west-houston .mobile-quote,.sunrise-commercial-quote .mobile-quote{font-size:12px}}

@media(min-width:801px){#nav .residential-areas .areas-dropdown-links{grid-template-columns:repeat(2,minmax(180px,1fr));min-width:420px;max-width:calc(100vw - 40px)}}


/* Match the approved link treatment on both primary menu dropdowns. */
#nav .areas-dropdown summary{position:relative}
#nav .areas-dropdown summary::before{content:'';position:absolute;left:0;right:22px;bottom:-4px;height:1px;background:var(--gold);transform:scaleX(.15);transform-origin:left;transition:transform .3s ease}
#nav .areas-dropdown summary:hover::before,#nav .areas-dropdown summary:focus-visible::before,#nav .areas-dropdown[open]>summary::before{transform:scaleX(1)}
@media(max-width:800px){#nav .areas-dropdown summary::before{bottom:7px}}
@media(prefers-reduced-motion:reduce){#nav .areas-dropdown summary::before{transition:none}}
#nav .residential-areas .areas-dropdown-links a{white-space:normal;min-width:0}

/* Keep Gravity Forms validation and retained-upload states readable on dark pages. */
.gform_wrapper .gfield_fileupload_filename,
.gform_wrapper .gfield_fileupload_percent { color:var(--cream,#f4f0e6)!important; }
.gform_wrapper button.gform_button,
.gform_wrapper input.gform_button { background:var(--gold,#ead8a7)!important;color:#10232c!important;border:1px solid var(--gold,#ead8a7)!important;border-radius:4px;padding:18px 26px;font:inherit;font-weight:600;cursor:pointer; }
.gform_wrapper .gform_button:focus-visible { outline:2px solid #fff;outline-offset:4px; }

/* One scroll surface for the expanded mobile navigation. */
@media(max-width:800px){#nav .areas-dropdown-links{max-height:none;overflow:visible}}

/* Keep the keyboard skip link above the sticky header and admin toolbar. */
body .skip:focus { position: fixed; top: 10px; z-index: 100001; }

/* Keep the two hero links on separate rows while the font loads. */
@media (max-width: 413px) {
  .sunrise-home #top > .hero-copy > .actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Keep the brightest hero media readable where it passes behind the copy. */
.sunrise-home #top > .hero-shade {
  background:
    linear-gradient(90deg,#0c1b23db,#0c1b23bf 32%,#0c1b2366 70%),
    linear-gradient(0deg,#101d24c9,transparent 65%);
}
.sunrise-site #top.cinema::before {
  background:
    linear-gradient(90deg,#101d24e6,#101d24c2 41%,#101d2466 72%),
    linear-gradient(0deg,#101d24aa,transparent 65%);
}
@media (max-width: 800px) {
  .sunrise-home #top > .hero-shade {
    background:
      linear-gradient(180deg,transparent 11%,#0c1b2399 21%,#0c1b2399 47%,#0c1b2366 67%,#0c1b2340 79%,transparent 89%),
      linear-gradient(90deg,#0c1b23db,#0c1b2366 70%),
      linear-gradient(0deg,#101d24c9,transparent 65%);
  }
  .sunrise-site #top.cinema::before {
    background:
      linear-gradient(180deg,transparent 4%,#101d245f 12% 17%,#101d2466 48%,#101d2440 70%,transparent 87%),
      linear-gradient(90deg,#101d24ce,#101d2466),
      linear-gradient(0deg,#101d24c9,transparent);
  }
}

/* Keep the WordPress block-template skip link independent of plugin styles. */
#wp-skip-link.screen-reader-text {
  position: absolute;
  top: -10000em;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  overflow-wrap: normal;
}

#wp-skip-link.screen-reader-text:focus {
  top: 5px;
  left: 5px;
  z-index: 100000;
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 10px);
  padding: 15px 23px 14px;
  border-radius: 3px;
  clip: auto;
  clip-path: none;
  background-color: #eee;
  color: #444;
  box-shadow: 0 0 2px 2px rgb(0 0 0 / 60%);
  font-size: 1em;
  font-weight: 700;
  line-height: normal;
  text-decoration: none;
}

/* The minimum height can transfer through the aspect ratio into an oversized auto width. */
.sunrise-home #top.hero {
  width: 100%;
}

/* Sunrise does not use the old theme's floating shortcut. */
.sunrise-site .trx_addons_scroll_to_top {
  display: none !important;
}

@media (max-width: 800px) {
  /* Keep room for the 69px fixed bar, a focus outline, and the device inset. */
  :root:has(body.sunrise-site .mobile-actions) {
    --sunrise-mobile-clearance: calc(90px + env(safe-area-inset-bottom, 0px));
    scroll-padding-bottom: var(--sunrise-mobile-clearance);
  }

  body.sunrise-site:has(.mobile-actions) {
    padding-bottom: var(--sunrise-mobile-clearance);
  }

  .sunrise-site .mobile-actions {
    grid-template-columns: 44px 68px minmax(0, 1fr) minmax(0, 1fr);
  }

  .sunrise-site :is(.hero .eyebrow, .eyebrow) {
    font-size: max(12px, .75rem);
  }

  .sunrise-site main :is(a.link, a.text-link) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .sunrise-site main a.link::after {
    bottom: 7px;
  }

  .sunrise-site main :is(.filters, .gallery-filters, .map-buttons) button {
    min-width: 44px;
    min-height: 44px;
  }

  .sunrise-site main .faq details {
    padding-block: 10px;
  }

  .sunrise-site main .faq summary {
    align-items: center;
    min-height: 44px;
  }
}

/* Keep selected community dots distinct from the surrounding road labels. */
.sunrise-home .map-illustration circle[data-pin].active {
  r: 10px;
}

@media (max-width: 550px) {
  .sunrise-home .map-illustration::before {
    position: sticky;
    left: 14px;
    width: max-content;
    max-width: 100%;
  }

  .sunrise-site .sunrise-measurement-consent .sunrise-measurement-actions {
    display: grid;
    grid-template-columns: minmax(0, max-content);
  }

  .sunrise-site .sunrise-measurement-actions > :is(button, a) {
    min-height: 44px;
  }

  .sunrise-site .sunrise-measurement-actions > a {
    display: flex;
    align-items: center;
    justify-self: start;
  }
}
