/* Raptor Communications -- styles for site.js additions. Duda's own CSS covers
   everything else. */

/* Gallery lightbox */
.rc-lightbox{position:fixed;inset:0;z-index:100000;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.88)}
.rc-lightbox.open{display:flex}
.rc-lightbox img{max-width:min(92vw,1600px);max-height:86vh;object-fit:contain;box-shadow:0 10px 40px rgba(0,0,0,.5)}
.rc-lightbox button{position:absolute;background:none;border:0;color:#fff;font-size:44px;line-height:1;cursor:pointer;padding:12px 18px;opacity:.85}
.rc-lightbox button:hover,.rc-lightbox button:focus-visible{opacity:1}
.rc-lb-close{top:8px;right:8px}
.rc-lb-prev{left:4px;top:50%;transform:translateY(-50%)}
.rc-lb-next{right:4px;top:50%;transform:translateY(-50%)}

/* Slider arrows, only rendered when a slider has more than one slide */
.rc-slider-nav button{position:absolute;top:50%;transform:translateY(-50%);z-index:5;background:rgba(0,0,0,.35);color:#fff;border:0;font-size:36px;width:44px;height:64px;cursor:pointer}
.rc-slider-nav button:first-child{left:0}
.rc-slider-nav button:last-child{right:0}

/* Accordion: Duda's widget CSS rotates the arrow on .expanded; the panel
   itself is collapsed by max-height, opened here. */
.accordion-item .accordion-title{cursor:pointer}

/* Phone share menu fallback (browsers without the native share sheet) */
.dmShare .popupData.rc-share-open{position:absolute;z-index:50;background:#fff;padding:10px 14px;box-shadow:0 4px 16px rgba(0,0,0,.2);border-radius:6px;text-align:left}
.dmShare .popupData.rc-share-open .dmShareWidget{display:block;margin:6px 0}

/* Honeypot field -- invisible to people, tempting to bots */
.rc-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0;pointer-events:none}

/* ---- header: white logo, compact ------------------------------------------
   The Duda header stacked a 778px logo on a white box above the menu and took
   ~450px (60% of a laptop screen). Smaller logo, less padding. Selectors start
   "#dm #hcontainer" to outrank Duda's own "#dm .p_hfcontainer div.u_..." rules. */
#dm #hcontainer div.u_1850038312 {               /* desktop logo widget */
  width: 300px !important;
  max-width: 80% !important;
  transition: width .2s ease;
}
#dm #hcontainer div.u_1850038312 img { width: 100% !important; height: auto !important; }
#dm #hcontainer.scroll-responder_set div.u_1850038312 { width: 190px !important; }
#dm #hcontainer div.u_1014650356 {               /* desktop logo row */
  padding-top: 20px !important;
  padding-bottom: 4px !important;
}
#dm #hcontainer.scroll-responder_set div.u_1014650356 { padding-top: 10px !important; }
#dm #mobile-hamburger-header div.u_1745330028 {  /* phone logo widget */
  width: 135px !important;
  max-width: 135px !important;
}
#dm #mobile-hamburger-header div.u_1745330028 img { width: 100% !important; height: auto !important; }

/* ---- service, overview and areas pages (tools/pages.py) --------------------
   Brand: navy #04243b, teal #1d768f, orange #f9991c; Exo headings, Cabin text. */
.rc-page { --rc-navy: #04243b; --rc-teal: #1d768f; --rc-orange: #f9991c; --rc-ink: #1d2a33;
  font-family: Cabin, "Cabin Fallback", system-ui, sans-serif; color: var(--rc-ink); background: #fff;
  font-size: 17px; line-height: 1.7; text-align: left; }
.rc-page *, .rc-footer-nav * { box-sizing: border-box; }
.rc-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.rc-narrow { max-width: 820px; }
.rc-page h1, .rc-page h2, .rc-page h3 { font-family: Exo, "Exo Fallback", system-ui, sans-serif; font-weight: 700; line-height: 1.25; }
.rc-page h2 { color: var(--rc-navy); font-size: 30px; margin: 1.6em 0 .5em; }
.rc-page h2:first-child { margin-top: 0; }
.rc-page h3 { color: var(--rc-navy); font-size: 20px; margin: 0 0 .4em; }
.rc-page p, .rc-page li { margin: 0 0 1em; }
.rc-page a { color: var(--rc-teal); }

.rc-hero { position: relative; color: #fff; padding: 72px 0 64px;
  background: linear-gradient(rgba(4,36,59,.86), rgba(4,36,59,.86)), var(--rc-hero) center / cover no-repeat, var(--rc-navy); }
.rc-hero h1 { color: #fff; font-size: 44px; margin: .2em 0 .4em; max-width: 900px; }
.rc-lead { font-size: 20px; max-width: 760px; margin: 0 0 1.6em; color: #e6eef3; }
.rc-crumbs { font-size: 14px; color: #b9cad6; }
.rc-crumbs a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); }
.rc-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.rc-btn { display: inline-block; background: var(--rc-orange); color: var(--rc-navy) !important; font-weight: 700;
  text-decoration: none; padding: 13px 28px; border-radius: 999px; font-family: Roboto, Cabin, sans-serif; }
.rc-btn:hover { filter: brightness(1.06); }
.rc-btn--ghost { background: transparent; color: #fff !important; box-shadow: inset 0 0 0 2px #fff; }

.rc-section { padding: 56px 0; }
.rc-section--alt { background: #f3f6f8; }
.rc-prose { max-width: 860px; }
.rc-prose ul, .rc-prose ol { padding-left: 1.3em; }
.rc-table { border-collapse: collapse; width: 100%; max-width: 640px; margin: 0 0 1em; }
.rc-table th, .rc-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #dbe3e8; }
.rc-table td { font-weight: 700; color: var(--rc-navy); white-space: nowrap; }

.rc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin: 1em 0 0; }
.rc-prose .rc-cards { margin: 1.2em 0 2em; }
.rc-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #dbe3e8; border-radius: 10px;
  padding: 22px; text-decoration: none; color: var(--rc-ink) !important; transition: box-shadow .15s, transform .15s; }
.rc-card:hover { box-shadow: 0 8px 24px rgba(4,36,59,.12); transform: translateY(-2px); }
.rc-card p { font-size: 15px; line-height: 1.55; flex: 1; }
.rc-card--project { padding: 0; overflow: hidden; }
.rc-card--project img { width: 100%; height: 170px; object-fit: cover; display: block; }
.rc-card--project h3, .rc-card--project p, .rc-card--project .rc-more { margin-left: 20px; margin-right: 20px; }
.rc-card--project h3 { margin-top: 16px; }
.rc-card--project .rc-more { margin-bottom: 18px; }
.rc-card--service { border-top: 4px solid var(--rc-orange); }
.rc-more { color: var(--rc-teal); font-weight: 700; font-size: 15px; }
.rc-more::after { content: " \2192"; }

.rc-faq { border-bottom: 1px solid #dbe3e8; }
.rc-faq summary { cursor: pointer; padding: 16px 32px 16px 0; font-weight: 700; color: var(--rc-navy);
  font-family: Exo, "Exo Fallback", sans-serif; font-size: 18px; list-style: none; position: relative; }
.rc-faq summary::-webkit-details-marker { display: none; }
.rc-faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 24px; color: var(--rc-teal); }
.rc-faq[open] summary::after { content: "\2013"; }
.rc-faq > div { padding: 0 0 8px; }

.rc-chips, .rc-list-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.rc-chips a, .rc-list-links a { display: inline-block; padding: 8px 16px; border-radius: 999px; background: #fff;
  border: 1px solid #c9d6de; text-decoration: none; font-weight: 700; color: var(--rc-navy); }
.rc-towns { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px 32px; margin-bottom: 2em; }
.rc-town { scroll-margin-top: 240px; }
.rc-town h2 { font-size: 24px; margin: 0 0 .3em; }

.rc-band { background: var(--rc-navy); color: #fff; padding: 56px 0; text-align: center; }
.rc-band h2 { color: #fff; margin-top: 0; }
.rc-band p { color: #d5e1e8; }
.rc-band .rc-cta { justify-content: center; }

/* footer links (all pages) */
.rc-footer-nav { background: #04243b; color: #cfd8de; padding: 8px 0 28px; font-family: Cabin, "Cabin Fallback", sans-serif;
  font-size: 15px; line-height: 1.7; text-align: left; border-top: 1px solid rgba(255,255,255,.12); }
.rc-footer-nav .rc-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 32px; padding-top: 24px; }
.rc-footer-nav h2 { font-family: Exo, "Exo Fallback", sans-serif; color: #f9991c; font-size: 17px; margin: 0 0 8px; }
.rc-footer-nav ul { list-style: none; margin: 0 0 8px; padding: 0; }
.rc-footer-nav p { margin: 0; }
.rc-footer-nav a { color: #fff; text-decoration: none; }
.rc-footer-nav a:hover { text-decoration: underline; }

@media (max-width: 767px) {
  .rc-hero { padding: 44px 0 40px; }
  .rc-hero h1 { font-size: 32px; }
  .rc-lead { font-size: 18px; }
  .rc-page h2 { font-size: 25px; }
  .rc-section, .rc-band { padding: 40px 0; }
  .rc-town { scroll-margin-top: 100px; }
  .rc-footer-nav { text-align: center; }
}

/* Duda's theme colours headings and links with "#dm ..." selectors; restate
   ours with #dm and !important so they win. */
#dm .rc-page h2, #dm .rc-page h3 { color: #04243b !important; }
#dm .rc-page .rc-hero h1 { color: #fff !important; }
#dm .rc-page .rc-band h2 { color: #fff !important; }
#dm .rc-page a { color: #1d768f; }
#dm .rc-page .rc-crumbs a { color: #fff !important; }
#dm .rc-page .rc-crumbs { color: #b9cad6 !important; }
#dm .rc-page .rc-btn { color: #04243b !important; }
#dm .rc-page .rc-btn--ghost { color: #fff !important; }
#dm .rc-page .rc-card { color: #1d2a33 !important; }
#dm .rc-page .rc-more { color: #1d768f !important; }
#dm .rc-page .rc-chips a, #dm .rc-page .rc-list-links a { color: #04243b !important; }
#dm .rc-footer-nav h2 { color: #f9991c !important; }
#dm .rc-footer-nav a { color: #fff !important; }
#dm .rc-footer-nav, #dm .rc-footer-nav li, #dm .rc-footer-nav p { color: #cfd8de !important; }
#dm .rc-page .rc-band h2 { text-align: center !important; }
#dm .rc-footer-nav h2 { font-size: 17px !important; line-height: 1.4 !important; text-align: inherit !important; margin: 0 0 8px !important; }
#dm .rc-card--project img { height: 180px !important; width: 100% !important; object-fit: cover !important; }
