/* fix3nov.css: round 4 (Vandana's mobile feedback, 3 Nov). Loaded last on every page. */

/* ---------- header: Company and Services open a small drop-down on desktop ---------- */
.hdr__nav{align-items:center}
.dd{position:relative;display:flex;align-items:center}
.dd>a{display:inline-flex;align-items:center;gap:5px}
.dd__chev{width:14px;height:14px;opacity:.6;transition:transform .2s}
.dd__menu{position:absolute;top:100%;left:-18px;min-width:250px;padding:10px;margin-top:10px;background:#ffffff;border:1px solid var(--line);
  border-radius:14px;box-shadow:0 22px 44px -20px rgba(9,68,65,.35);display:flex;flex-direction:column;
  opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .18s,transform .18s,visibility 0s .18s;z-index:70}
.dd__menu::before{content:"";position:absolute;left:0;right:0;top:-14px;height:14px}
.dd:hover .dd__menu,.dd:focus-within .dd__menu{opacity:1;visibility:visible;transform:none;transition:opacity .18s,transform .18s}
.dd:hover .dd__chev,.dd:focus-within .dd__chev{transform:rotate(180deg)}
.hdr__nav .dd__menu a{padding:10px 12px;border:0;border-radius:9px;font-weight:500;font-size:15px;color:var(--navy);opacity:1;white-space:nowrap}
.hdr__nav .dd__menu a:hover,.hdr__nav .dd__menu a[aria-current]{background:#F1FCFA;color:var(--blue)}

/* ---------- breadcrumb: all parts on one line, links and the current page on the same baseline ---------- */
.crumbs{flex-wrap:wrap;align-items:center;row-gap:2px}
.crumbs a,.crumbs span{display:inline-flex;align-items:center;min-height:36px;padding:0;line-height:1.2}
.crumbs a:hover{color:#ffffff}
@media (max-width:860px){.crumbs a{display:inline-flex;padding:0}}

/* ---------- phone menu: tighter rows, Company has its pages under it, and the page bar hides while the menu is open ---------- */
@media (max-width:860px){
  html.mnav-lock .subnav{display:none}
  .mnav__list{padding:4px 20px 0}
  .mnav__list>li>a{padding:12px 2px;font-size:16px}
  .mnav__sub{padding:2px 0 8px 14px}
  .mnav__sub a{padding:7px 2px;font-size:15px}
  .mnav__foot{padding:14px 20px 20px;gap:8px}
}

/* ---------- home, phone: the 3D hub sits behind the text, under a dark veil so the text stays easy to read ---------- */
@media (max-width:860px){
  .hero__text{padding:56px 0 64px}
  .hero__canvas,.hero__still{top:0;bottom:0;height:100%;-webkit-mask-image:none;mask-image:none}
  .hero::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
    background:linear-gradient(180deg,rgba(9,68,65,.78) 0%,rgba(9,68,65,.62) 55%,rgba(9,68,65,.8) 100%)}
  .hero__in{z-index:2}
  .hero__text::before{display:none}
}

/* ---------- home, phone: more air between the intro and the services, and between the services ---------- */
@media (max-width:860px){
  .sec__head{margin-bottom:56px}
  #services .sub-h{margin-bottom:30px}
  .svc{row-gap:44px}
}

/* ---------- testimonials: stars, quote and arrows closer together (the card is as tall as its longest quote) ---------- */
@media (max-width:860px){
  .tst__stars{margin:12px 0 4px}
  /* the box keeps the height of the longest quote, so nothing jumps when the quotes change; a shorter quote sits in
     the middle of it, so the spare room is split above and below instead of piling up over the arrows */
  .tst__track{display:grid;min-height:0;position:relative}
  .tst__item{position:relative;inset:auto;grid-area:1/1;justify-content:center;gap:16px;padding-top:6px}
  .tst__nav{margin-top:20px}
}

/* ---------- industries, phone: closer rows and a slightly smaller font ---------- */
@media (max-width:860px){
  .ind2__grid{gap:14px 16px}
  .ind2__grid li{font-size:15.5px;gap:10px}
  .ind2__grid svg{width:24px;height:24px}
}
@media (max-width:440px){.ind2__grid li{font-size:14.5px;gap:8px}.ind2__grid svg{width:22px;height:22px}}

/* ---------- footer, phone: Services and Company side by side, then logo + text + social, then Contact;
   bottom line: copyright on the left, Privacy Policy on the right ---------- */
@media (max-width:860px){
  .ftr__grid{grid-template-columns:1fr 1fr;grid-template-areas:"svc co" "brand brand" "contact contact";gap:34px 20px}
  .ftr__grid>div:nth-child(1){grid-area:brand}
  .ftr__grid>div:nth-child(2){grid-area:svc}
  .ftr__grid>div:nth-child(3){grid-area:co}
  .ftr__grid>div:nth-child(4){grid-area:contact}
  .ftr__bottom{flex-direction:row;align-items:center;justify-content:space-between;gap:12px;font-size:13px}
  .ftr__bottom span{max-width:62%}
}

/* ---------- Company pages ---------- */
.cpage{padding-top:64px;padding-bottom:96px}
.cpage__intro{max-width:62em;font-size:19px;line-height:1.7;color:#335F54;margin:0 0 48px}
.cpage__two{display:grid;grid-template-columns:1fr 1fr;gap:48px;margin-bottom:64px}
.cpage__two h2,.cpage h2{font-size:28px;color:var(--blue);margin:0 0 14px}
.cpage p{color:#335F54;font-size:16.5px;line-height:1.75}
.cpage p+p{margin-top:14px}
.cpage__cards{grid-template-columns:repeat(3,1fr)!important;gap:40px}
.cpage__cards .svc__item{grid-column:auto!important}
.cpage--prose{max-width:860px}
.cpage--prose ul{margin:14px 0 18px;padding-left:22px;color:#335F54;font-size:16.5px;line-height:1.75}
.team{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:28px 40px}
.team li{display:grid;grid-template-columns:52px 1fr;gap:16px;align-items:start;padding:24px;border-radius:18px;background:#F4FDFC}
.team .tst__av{width:52px;height:52px}
.team h3{font-size:20px;color:var(--navy);margin:2px 0 6px}
.team p{font-size:15.5px;line-height:1.65}
.tgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.tcard{margin:0;padding:30px;border-radius:20px;background:#EEFCF9;display:flex;flex-direction:column;gap:16px}
.tcard .tst__stars{margin:0}
.tcard blockquote{margin:0;font:500 18px/1.55 var(--text);color:var(--ink)}
.tcard figcaption{margin-top:auto;display:flex;align-items:center;gap:12px;font-size:14px;color:var(--slate)}
.tcard figcaption b{display:block;color:var(--ink);font-size:16px}
@media (max-width:960px){.cpage__cards,.tgrid{grid-template-columns:1fr!important}.team{grid-template-columns:1fr}}
@media (max-width:860px){
  .cpage{padding-top:36px;padding-bottom:60px}
  .cpage__intro{font-size:17px;margin-bottom:32px}
  .cpage__two{grid-template-columns:1fr;gap:32px;margin-bottom:44px}
  .cpage__two h2,.cpage h2{font-size:24px}
  .team li{padding:20px}
  .tcard{padding:24px 20px}
}

/* ---------- Contact: the live site's photo, the form without a box, Get in touch without a border, a map after ---------- */
/* framed like the live site: anchored at the top, tall enough to show the dial phone and the "Contact us!" note */
.phero{height:clamp(240px,37vw,720px);background:#094441 50% 0%/cover no-repeat}
.pt--plain{background:#ffffff;color:var(--navy);padding:44px 0 0}
.pt--plain .crumbs{color:#6B978D}
.pt--plain .crumbs a:hover{color:var(--blue)}
.pt--plain h1{color:var(--navy)}
.cpg{padding:28px 0 72px}
.cpg__grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:64px;align-items:start}
.cpg__lead{font-size:19px;color:#335F54;margin:0 0 26px}
.cpg__touch{padding-top:6px}
.cpg__touch h2{font-size:24px;color:var(--navy);margin:0 0 20px}
.cmap{height:420px;background:#E6FAF6}
.cmap iframe{display:block;width:100%;height:100%;border:0}
@media (max-width:960px){.cpg__grid{grid-template-columns:1fr;gap:0}}
@media (max-width:860px){
  .pt--plain{padding-top:28px}
  .cpg{padding:20px 0 48px}
  .cpg__lead{font-size:17px}
  .cpg__touch{margin-top:36px;padding-top:32px;border-top:1px solid var(--line)}
  .cmap{height:320px}
}

/* ---------- Request a quote: the form over the live site's photo ---------- */
.qpg{background:#094441 center/cover no-repeat;padding:64px 0 88px;min-height:720px}
.qpg__card{max-width:640px;padding:36px 38px;border-radius:22px;background:rgba(255,255,255,.94);box-shadow:0 30px 60px -30px rgba(9,68,65,.45);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.qpg__card .crumbs{color:#6B978D;margin-bottom:10px}
.qpg__card .crumbs a:hover{color:var(--blue)}
.qpg__card h1{font-size:clamp(32px,3.4vw,44px);color:var(--navy)}
.qpg__lead{font-size:17px;color:#335F54;margin:10px 0 26px}
@media (max-width:860px){
  .qpg{padding:24px 0 40px;min-height:0;background-position:70% center}
  .qpg__card{padding:26px 20px}
}

