/* 494glassandmirror.com mobile layer (2026-10-20). Everything layout-related is inside
   @media (max-width: 900px); the desktop layout above 900px is untouched. */

/* Global, invisible on desktop: tel links look exactly like the text they wrap */
a.pd-tel, a.pd-tel:hover, a.pd-tel:visited { color: inherit; text-decoration: none; font: inherit; }
.pd-menu-btn, .pd-sub-btn, .pd-callbar { display: none; }

@media (max-width: 900px) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body { min-width: 0; background: #e9eef1; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  *, *::before, *::after { box-sizing: border-box; }
  img, video, iframe, embed, object { max-width: 100%; }
  img { height: auto; }
  table { max-width: 100%; }
  iframe { width: 100%; }

  /* ---------- Header: logo + menu button, call / estimate row ---------- */
  #header { width: auto; margin: 0; padding: 10px 12px 12px; font-size: 16px; line-height: 1.4;
    background: linear-gradient(180deg, #0f86bd 0%, #0a5f8c 100%); display: flex; flex-wrap: wrap; align-items: center; z-index: 60; }
  #header::after { display: none; }
  #header .logo { float: none; width: 84px; height: 60px; background-size: contain; background-position: 0 0;
    box-shadow: 0 0 10px rgba(0,0,0,.35); flex: 0 0 auto; order: 1; }
  .pd-js .pd-menu-btn { display: inline-flex; order: 2; margin-left: auto; align-items: center; gap: 8px;
    min-height: 44px; min-width: 44px; padding: 0 14px; border: 1px solid rgba(255,255,255,.55); border-radius: 6px;
    background: rgba(255,255,255,.12); color: #fff; font: bold 16px/1 Helvetica, Arial, sans-serif; letter-spacing: .04em; cursor: pointer; }
  .pd-menu-btn:focus-visible { outline: 3px solid #ffd24a; outline-offset: 2px; }
  .pd-menu-btn .pd-bars, .pd-menu-btn .pd-bars::before, .pd-menu-btn .pd-bars::after {
    display: block; width: 20px; height: 2px; background: #fff; border-radius: 1px; position: relative; content: ""; transition: transform .2s; }
  .pd-menu-btn .pd-bars::before { position: absolute; top: -6px; left: 0; }
  .pd-menu-btn .pd-bars::after { position: absolute; top: 6px; left: 0; }
  .pd-nav-open .pd-menu-btn .pd-bars { background: transparent; }
  .pd-nav-open .pd-menu-btn .pd-bars::before { transform: translateY(6px) rotate(45deg); }
  .pd-nav-open .pd-menu-btn .pd-bars::after { transform: translateY(-6px) rotate(-45deg); }

  #header .holder { order: 4; float: none; width: 100%; margin: 12px 0 0; display: flex; gap: 10px; align-items: stretch; }
  #header .holder .call { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; column-gap: .3em;
    margin: 0; padding: 0 8px; min-height: 44px; font-size: 16px; line-height: 20px; color: #fff; background: rgba(0,0,0,.18); border-radius: 6px; text-align: center; }
  #header .holder .call strong { display: inline; font-size: 16px; line-height: 20px; margin: 0; }
  #header .holder .call a.pd-tel { display: inline-block; padding: 12px 0; color: #fff; }
  #header .free { flex: 0 0 auto; display: flex; align-items: center; min-height: 44px; padding: 0 14px; right: 0;
    font-size: 14px; background-size: cover; }

  /* ---------- Navigation (shown as a list without JS; collapsible with JS) ---------- */
  #nav { order: 3; float: none; width: 100%; margin: 10px 0 0; padding: 0; background: #08486b; border-radius: 6px;
    font-size: 16px; line-height: 1.3; position: static; }
  .pd-js #nav { display: none; }
  .pd-js.pd-nav-open #nav { display: block; }
  #nav > ul { margin: 0; padding: 4px 0; list-style: none; }
  #nav > ul > li { float: none; margin: 0; position: relative; display: flex; flex-wrap: wrap; align-items: stretch;
    border-top: 1px solid rgba(255,255,255,.12); }
  #nav > ul > li:first-child { border-top: 0; }
  #nav > ul > li > a { flex: 1 1 auto; display: flex; align-items: center; min-height: 48px; padding: 0 16px; color: #fff;
    text-decoration: none; letter-spacing: .03em; }
  #nav > ul > li > a:hover, #nav > ul > li:hover > a { background: none; color: #fff; }
  #nav > ul > li.active > a, #nav > ul > li.active:hover > a { background: none; color: #ffd24a; }
  .pd-js #nav .pd-sub-btn { display: flex; flex: 0 0 52px; align-items: center; justify-content: center; min-height: 48px;
    border: 0; border-left: 1px solid rgba(255,255,255,.12); background: transparent; color: #fff; cursor: pointer; }
  .pd-sub-btn span { width: 10px; height: 10px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
  .pd-open > .pd-sub-btn span { transform: rotate(-135deg) translate(-2px, -2px); }
  .pd-sub-btn:focus-visible, #nav a:focus-visible { outline: 3px solid #ffd24a; outline-offset: -3px; }
  #nav > ul > li > .block { flex: 0 0 100%; float: none; width: 100% !important; margin: 0 !important; }
  #nav .drop { position: static; display: block; width: auto; padding: 0 0 6px; margin: 0; box-shadow: none; -webkit-box-shadow: none;
    background: rgba(0,0,0,.18); font-size: 16px; line-height: 1.3; }
  #nav .drop .block, #nav .drop .block:first-child { float: none; width: auto; margin: 0; padding: 0; }
  html.pd-js #nav > ul > li .drop { display: none; }
  html.pd-js #nav > ul > li.pd-open .drop { display: block; }
  #nav .drop ul { margin: 0; padding: 0; list-style: none; }
  #nav .drop ul li { margin: 0; }
  #nav .drop ul li, #nav .drop .block:first-child ul li { margin: 0; padding: 0; float: none; width: auto; }
  #nav .drop ul a, #nav .drop .block:first-child ul li a { display: flex; text-transform: none; align-items: center; min-height: 44px; padding: 8px 16px 8px 32px; color: #e6f3fb; background: none; }

  /* ---------- Home slideshow + intro ---------- */
  .slideshow { width: auto; height: auto; top: 0; margin: 0 0 12px; border: 0; box-shadow: none; }
  .slideshow .slideset { width: 100%; height: auto; aspect-ratio: 969 / 431; overflow: hidden; }
  .slideshow .slide { top: 0; left: 0; width: 100%; height: 100%; }
  .slideshow .slide img { width: 100%; height: auto; display: block; }
  .slideshow-shadow { display: none; }
  .slideshow .text-holder { top: auto; bottom: 10px; left: 0; padding: 8px 18px 8px 12px; font-size: 13px; background-size: cover; }
  .slideshow .text-holder h2 { font-size: 18px; line-height: 1.2; margin: 0; }
  .slideshow .text-holder .bullet { display: none; }
  .slideshow .pagination { display: none; }
  .slideshow .btn-prev, .slideshow .btn-next { width: 44px; height: 44px; }
  .area { width: auto; left: 0; padding: 0 16px; font-size: 16px; line-height: 1.55; }
  .area h1 { font-size: 22px !important; line-height: 1.25; }
  .social-wrap { float: none; padding: 0 0 8px; margin: 0; }

  /* ---------- Home boxes (services / showcase / estimate / blog) ---------- */
  #container { margin: 0; padding: 20px 0 0; font-size: 16px; line-height: 1.5; background: none; }
  #container .holder { width: auto; left: 0; padding: 0 16px; }
  #container .box, #container .box.alt { float: none; width: auto; margin: 0 0 24px; }
  #container h2 { font-size: 20px; }
  .showcase-list { width: auto; display: flex; }
  .showcase-list li, .showcase-list li:first-child { float: none; flex: 1 1 50%; width: auto; }
  .showcase-list img { width: 100%; }
  .team { width: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px 0; }
  .team li { float: none; }
  ul.services li { font-size: 16px; }
  ul.services .heading a, a.all { display: inline-block; padding: 6px 0; min-height: 44px; }

  /* ---------- Inner pages ---------- */
  #main { font-size: 16px; line-height: 1.55; padding: 16px 0 0; margin: 0; top: 0; background: #fff; }
  .main-holder { width: auto; left: 0; padding: 0 0 24px; background: none; }
  #content { float: none; width: auto; padding: 0 16px; }
  #content .with-image { width: auto; margin: 0; }
  #content .alignright, #content .alignleft, .post .blog-img-wrap { float: none; display: block; margin: 0 0 12px; }
  #content h1, #content h2 { line-height: 1.25; }
  #sidebar { float: none; width: auto; padding: 0 16px; }
  #sidebar .get-area { width: auto; margin: 0 0 24px; }
  .aside-nav a { width: auto; min-height: 44px; display: flex; align-items: center; }
  .blog-list { width: auto; font-size: 16px; }
  .team-photo { float: none; margin: 0 auto 12px; display: block; }
  #team h2, #team p, .team-bio, #respond-box hr { float: none; width: auto; }
  .port-thumb, .port-thumb-sm { float: none; width: auto; margin: 0 0 16px; }
  .group .halves, .estimate-left, .estimate-right, .estimate-center { float: none; width: auto; }
  .blog-posts .post .alignleft { float: none; margin: 0 0 12px; }
  .callout { display: block; width: auto; }
  #content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* ---------- Forms ---------- */
  .submit-form input[type="text"], .submit-form input[type="email"], .submit-form input[type="tel"],
  #sidebar .submit-form input[type="text"], #sidebar .submit-form input[type="email"], #sidebar .submit-form input[type="tel"],
  .pd-form input[type="text"], .pd-form input[type="email"], .pd-form input[type="tel"], .pd-form select, .pd-form textarea {
    width: 100%; max-width: 100%; min-height: 44px; height: auto; font-size: 16px; line-height: 1.4; padding: 10px 12px; border-radius: 8px; }
  .pd-form textarea { min-height: 140px; height: 180px; }
  .submit-form .text, #sidebar .submit-form .text { width: auto; padding: 0 0 10px; }
  .pd-form input[type="submit"], .submit-form input[type="submit"] { width: 100%; height: auto; min-height: 48px; font-size: 16px; line-height: 1.2; margin: 8px 0 0; }
  .pd-form label { font-size: 16px; display: inline-block; margin: 10px 0 4px; }
  .pd-turnstile { max-width: 100%; margin: 10px 0 4px; }
  .pd-turnstile iframe { max-width: 100%; }

  /* ---------- Bottom bands + footer ---------- */
  .add-nav { width: auto; padding: 16px; font-size: 15px; line-height: 1.8; background-size: 100% auto; }
  .add-nav a { display: inline-block; padding: 6px 4px; min-height: 44px; line-height: 32px; }
  .bottom-area { width: auto; margin: 0 12px; padding: 14px; }
  .bottom-area .heading { float: none; width: auto; margin: 0 0 10px; font-size: 13px; }
  .carousel { float: none; padding: 0; }
  .carousel .mask { width: auto !important; overflow: visible; }
  .carousel ul { height: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: auto !important; left: 0 !important; margin-left: 0 !important; transform: none !important; position: static !important; }
  .carousel li { float: none; margin: 0; }
  .carousel .btn-prev, .carousel .btn-next { display: none; }
  #footer { margin: 16px 0 0; padding: 24px 0 24px; font-size: 16px; line-height: 1.5; }
  .footer-holder { width: auto; }
  #footer .holder { padding: 0 16px 16px; font-size: 15px; line-height: 1.6; }
  #footer .box { position: static; width: auto; margin: 12px 0 0; display: flex; align-items: center; justify-content: space-between; }
  .bottom-section { padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
  .bottom-section .block, .bottom-section .block.first, .bottom-section .block.second, .bottom-section .block.third, .bottom-section .block.fourth { float: none; width: auto; margin: 0; }
  .bottom-section .title { font-size: 15px; }
  .bottom-list li { margin: 0; }
  .bottom-list a { display: flex; align-items: center; padding: 4px 0; min-height: 44px; font-size: 15px; line-height: 1.3; }
  .bottom-section .cards { position: static; grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
  .accredited { margin: 0; }
  #brand-wrap { float: none; width: auto; margin: 8px 0 0; }

  /* ---------- Click-to-call bar ---------- */
  .pd-callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(8, 56, 84, .97); box-shadow: 0 -2px 10px rgba(0,0,0,.25); }
  .pd-callbar a { flex: 1 1 0; white-space: nowrap; padding: 0 8px; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 8px;
    font: bold 16px/1.2 Helvetica, Arial, sans-serif; text-decoration: none; text-align: center; color: #fff; }
  .pd-callbar .pd-callbar-tel { background: #1d9bd7; flex-grow: 1.45; gap: 6px; }
  .pd-callbar .pd-callbar-cta { background: #c46a1d; }
  .pd-callbar svg { width: 18px; height: 18px; fill: currentColor; flex: 0 0 auto; }
  .pd-callbar a:focus-visible { outline: 3px solid #ffd24a; outline-offset: 2px; }
}

@media (max-width: 400px) {
  .pd-callbar a { font-size: 15px; }
  .pd-callbar svg { width: 16px; height: 16px; }
  #header .holder .call { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .pd-menu-btn .pd-bars, .pd-menu-btn .pd-bars::before, .pd-menu-btn .pd-bars::after, .pd-sub-btn span { transition: none; } }
