/* Webrique custom styles
   Add to the child theme stylesheet (style.css) or Elementor > Site Settings > Custom CSS.
   Colours and fonts are also set as Elementor global colours and fonts; these rules cover what Elementor cannot. */

:root {
  --wb-navy: #1A3A6B;
  --wb-blue: #2E55A3;
  --wb-charcoal: #1F2430;
  --wb-slate: #5B6577;
  --wb-panel: #F4F6FA;
  --wb-hairline: #E3E6EC;
  --wb-silver: #8A94A6;
  --wb-white: #FFFFFF;
  --wb-radius-card: 36px;
  --wb-radius-field: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--wb-charcoal);
  -webkit-font-smoothing: antialiased;
}

/* Headings: add class "wb-heading" to Heading widgets for the tight modern look */
.wb-heading,
.wb-heading .elementor-heading-title {
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--wb-navy);
}

/* Hero title: a deliberate, oversized statement - much bigger than the
   standard .wb-heading used for section headings elsewhere. */
.wb-hero-title {
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  font-size: clamp(40px, 6vw, 92px);
}

/* Serif accent word: wrap one word in <span class="accent-serif"> */
.accent-serif {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--wb-blue);
  letter-spacing: -0.025em;
  font-size: 1.1em;
}
.on-dark .accent-serif {
  color: #C5D2EA;
}

/* Eyebrow label above headings */
.wb-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wb-slate);
}

/* Cards */
.wb-card {
  background: var(--wb-panel);
  border-radius: var(--wb-radius-card);
  padding: 44px;
}
.wb-card--outline {
  background: var(--wb-white);
  border: 1px solid #DDE2EA;
}
.wb-card--navy {
  background: var(--wb-navy);
  color: var(--wb-white);
}

/* Buttons: add class "wb-btn" (primary) or "wb-btn wb-btn--outline" to Button widgets.
   !important: Elementor writes a per-page generated stylesheet
   (wp-content/uploads/elementor/css/post-{ID}.css) with an equal-specificity
   ".elementor-widget-button .elementor-button" rule that loads after this
   file on every page, so it wins on load order alone without !important. */
.wb-btn .elementor-button {
  border-radius: 999px !important;
  padding: 17px 36px !important;
  font-weight: 700 !important;
  background: var(--wb-navy) !important;
  color: var(--wb-white) !important;
  transition: opacity 0.2s ease;
}
.wb-btn .elementor-button:hover {
  opacity: 0.85;
}
.wb-btn--outline .elementor-button {
  background: transparent !important;
  color: var(--wb-navy) !important;
  border: 1px solid var(--wb-navy) !important;
}
.wb-btn--light .elementor-button {
  background: var(--wb-white) !important;
  color: var(--wb-navy) !important;
}
.wb-btn--outline-light .elementor-button {
  background: transparent !important;
  color: var(--wb-white) !important;
  border: 1px solid rgba(255,255,255,0.5) !important;
}

/* Hairline divider */
.wb-rule {
  border-top: 1px solid var(--wb-hairline);
}

/* Process numerals */
.wb-numeral {
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #C5D2EA;
}

/* ---------- Contact Form 7 ---------- */
.wpcf7 form p {
  margin: 0 0 20px;
}
.wpcf7 label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--wb-navy);
  margin-bottom: 8px;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--wb-white);
  border: 1px solid #D4D8E0;
  border-radius: var(--wb-radius-field);
  padding: 16px 20px;
  font-family: inherit;
  font-size: 16px;
  color: var(--wb-charcoal);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.wpcf7 textarea {
  min-height: 160px;
  resize: vertical;
}
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--wb-blue);
  box-shadow: 0 0 0 4px rgba(46, 85, 163, 0.15);
}
.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
  background: var(--wb-navy);
  color: var(--wb-white);
  border: none;
  border-radius: 999px;
  padding: 18px 44px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.wpcf7 input[type="submit"]:hover {
  opacity: 0.85;
}
.wpcf7-not-valid-tip {
  font-size: 13px;
  color: #A32D2D;
  margin-top: 6px;
}
.wpcf7 form .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 16px 20px;
  border-radius: var(--wb-radius-field);
  border: 1px solid var(--wb-hairline);
  font-size: 15px;
}
.wpcf7 form.sent .wpcf7-response-output {
  border-color: #3B6D11;
  background: #EAF3DE;
  color: #27500A;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
  border-color: #A32D2D;
  background: #FCEBEB;
  color: #791F1F;
}

/* ---------- Home page media ----------
   !important: Elementor's own frontend.min.css ships
   ".elementor.elementor .e-con > .elementor-widget { max-width: 100% }"
   at specificity (0,3,0), which beats a single custom class every time
   regardless of source order. Any widget that needs its own width/max-width
   inside a Container has to fight that rule the same way. */
/* Hero: full-bleed animated background (shader gradient + 3D mark) behind
   the copy. The section itself needs position:relative + overflow:hidden
   so the absolutely-positioned background mount stays within it. */
.wb-hero-fullbleed {
  position: relative !important;
  overflow: hidden;
  min-height: 100vh;
}
.wb-hero-fullbleed .wb-hero-bg-mount {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: 100%;
  z-index: 0;
}
.wb-hero-3d-mount {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.wb-hero-3d-mount canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.wb-hero-3d-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}
.wb-hero-3d-mount.is-ready .wb-hero-3d-fallback {
  opacity: 0;
  pointer-events: none;
}
.wb-hero-content {
  position: relative;
  z-index: 1;
}
.wb-hero-copy {
  max-width: 600px !important;
}

/* Hero right column: Lottie animation mount. Fixed share of the row,
   doesn't fill to 100% (same --width override needed as any container
   that should size to its own content inside a Container). */
.wb-hero-lottie-wrap {
  --width: auto !important;
  flex: 1 1 380px;
  min-width: 0;
}
.wb-hero-lottie-mount {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  margin-left: auto;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}
@media (max-width: 899px) {
  .wb-hero-lottie-wrap {
    display: none; /* same reasoning as the old W mark: no room beside the copy on narrow screens */
  }
}

/* Scroll-down indicator: classic mouse outline + animated wheel. Purely
   visual, not clickable, hidden under prefers-reduced-motion. */
.wb-scroll-cue {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 50;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.wb-scroll-cue.is-hidden {
  opacity: 0;
}
.wb-scroll-cue-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  position: relative;
}
.wb-scroll-cue-wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
  animation: wb-scroll-wheel 1.6s ease-in-out infinite;
}
.wb-scroll-cue-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
@keyframes wb-scroll-wheel {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; transform: translateY(14px); }
}
@media (prefers-reduced-motion: reduce) {
  .wb-scroll-cue-wheel {
    animation: none;
  }
}

.wb-service-icon {
  width: 56px !important;
  max-width: 56px !important;
  margin-top: 20px;
}
.wb-service-icon img {
  width: 100%;
  height: auto;
  display: block;
}
.wb-equal-row {
  align-items: stretch;
}
/* Elementor's Container element sets --width:100% on every container by
   default, which beats a plain flex-basis rule. Override it directly on
   row children so they sit side by side instead of each filling the row. */
.wb-equal-row > .e-con-inner > .e-con {
  --width: auto;
  flex: 1 1 220px;
  min-width: 0;
}
/* Any container in a row that should shrink to its content instead of
   filling the row (Elementor containers default to --width:100%). */
.wb-flex-fill {
  --width: auto !important;
  flex: 1 1 420px;
  min-width: 0;
}
.wb-no-shrink {
  --width: auto !important;
  flex: 0 0 60px;
}
.wb-section-inner {
  padding: 56px;
}

/* ---------- Layout tokens ---------- */
.wb-container {
  max-width: 1312px;
  margin: 0 auto;
  padding: 0 56px;
}
.wb-section {
  padding-top: 72px;
  padding-bottom: 72px;
}
@media (min-width: 1024px) {
  .wb-section {
    padding-top: 144px;
    padding-bottom: 144px;
  }
}

/* ---------- Header ---------- */
.wb-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--wb-white);
  border-bottom: 1px solid var(--wb-hairline);
}
.wb-header-inner {
  max-width: 1312px;
  margin: 0 auto;
  padding: 20px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.wb-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.wb-logo-full {
  display: block;
  height: 40px;
  width: auto;
}
@media (max-width: 767px) {
  .wb-logo-full {
    height: 30px;
  }
}
.wb-primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.wb-nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.wb-menu-item {
  position: relative;
}
.wb-menu-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--wb-charcoal);
  padding: 8px 0;
}
.wb-menu-link:hover {
  color: var(--wb-blue);
}
.wb-dropdown-caret {
  transition: transform 0.15s ease;
}
.wb-has-dropdown:hover .wb-dropdown-caret {
  transform: rotate(180deg);
}
.wb-sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 10px;
  list-style: none;
  background: var(--wb-white);
  border: 1px solid var(--wb-hairline);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(26, 58, 107, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.wb-has-dropdown:hover .wb-sub-menu,
.wb-has-dropdown:focus-within .wb-sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.wb-sub-menu .wb-menu-link {
  padding: 10px 12px;
  border-radius: 10px;
  width: 100%;
  box-sizing: border-box;
}
.wb-sub-menu .wb-menu-link:hover {
  background: var(--wb-panel);
}
.wb-btn-pill {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 14px;
  transition: opacity 0.2s ease;
}
.wb-btn-pill:hover {
  opacity: 0.85;
}
.wb-btn-primary {
  background: var(--wb-navy);
  color: var(--wb-white) !important;
}
/* Hero CTAs read bigger than the standard pill button elsewhere. */
.wb-hero-content .wb-btn .elementor-button {
  padding: 20px 44px !important;
  font-size: 16px !important;
}
.wb-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.wb-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--wb-navy);
}

@media (max-width: 900px) {
  .wb-header-inner {
    padding: 16px 24px;
  }
  .wb-menu-toggle {
    display: flex;
  }
  .wb-primary-nav {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--wb-white);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 20px;
    transform: translateX(100%);
    transition: transform 0.2s ease;
    overflow-y: auto;
  }
  .wb-primary-nav.is-open {
    transform: translateX(0);
  }
  .wb-nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .wb-sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    display: none;
    padding-left: 16px;
  }
  .wb-has-dropdown.is-expanded .wb-sub-menu {
    display: block;
  }
  .wb-nav-cta {
    justify-content: center;
  }
}

/* ---------- Footer ---------- */
.wb-footer {
  background: var(--wb-panel);
  border-top: 1px solid var(--wb-hairline);
  padding: 72px 0 0;
}
.wb-footer-inner {
  max-width: 1312px;
  margin: 0 auto;
  padding: 0 56px;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
}
.wb-footer-brand .wb-logo {
  margin-bottom: 12px;
}
.wb-footer-tagline {
  font-weight: 700;
  color: var(--wb-navy);
  margin: 0 0 4px;
}
.wb-footer-region {
  color: var(--wb-slate);
  font-size: 14px;
  margin: 0;
}
.wb-footer-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wb-navy);
  margin: 0 0 16px;
}
.wb-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wb-footer-col a {
  color: var(--wb-slate);
  text-decoration: none;
  font-size: 14px;
}
.wb-footer-col a:hover {
  color: var(--wb-blue);
}
.wb-footer-bottom {
  margin-top: 56px;
  border-top: 1px solid var(--wb-hairline);
  padding: 24px 56px;
  text-align: center;
}
.wb-footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: var(--wb-silver);
}
@media (max-width: 900px) {
  .wb-footer-inner {
    grid-template-columns: 1fr 1fr;
    padding: 0 24px;
  }
  .wb-footer-brand {
    grid-column: 1 / -1;
  }
  .wb-footer-bottom {
    padding: 24px;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .wb-card {
    padding: 28px;
    border-radius: 28px;
  }
  .wb-numeral {
    font-size: 48px;
  }
  .wb-container {
    padding: 0 20px;
  }
  .wb-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}
