/* Interface Marine: page effects that Elementor's settings can't express. */

/* What We Do (Home): the harbour picture is pinned to the whole screen (behind everything),
   and the right-hand panel is a window onto it. As you scroll, the window moves up the page
   and reveals different parts of the picture; the frosted glass blurs whatever shows through.
   clip-path crops the pinned picture to the panel (this also works on iPhone, unlike background-attachment: fixed). */
.wwd-stage { clip-path: inset(0); overflow: clip; }
@media (min-width: 1025px) { .wwd-stage { clip-path: inset(1px 0 0 0); } } /* 1px top inset: the section starts on a fractional pixel and the fixed picture would otherwise peek through as a light line under the hero */
.wwd-bg { max-width: none !important; }

/* Seam: the photo reaches 1px under the panel on desktop, so no sub-pixel gap can show between them */
@media (min-width: 1025px) {
  .wwd-photo-img { width: calc(100% + 1px) !important; max-width: none !important; }
}

/* Frosted glass. The blur is its own layer between the picture and the panel, extending 40px past the
   window on every side (cropped by the window). That keeps the blur even right up to the edges, so there is
   no light or dark line beside the photo. The panel's grey tint and gradient sit on top of it. */
.glass-panel { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.wwd-stage::after {
  content: ""; position: absolute; inset: -40px; z-index: 0; pointer-events: none;
  backdrop-filter: blur(9px) brightness(0.7) grayscale(1);
  -webkit-backdrop-filter: blur(9px) brightness(0.7) grayscale(1);
}

/* Desktop text sizes inside the panel */
@media (min-width: 1025px) {
  .glass-panel h2 { font-size: 2.5rem !important; }
  .glass-panel p { font-size: 1.0625rem !important; }
}
/* Smaller desktops (1025-1399px, between Elementor's tablet and full desktop sizes) */
@media (min-width: 1025px) and (max-width: 1399px) {
  .glass-panel { padding: 2.25rem 3rem !important; gap: 0.9rem !important; }
  .glass-panel h2 { font-size: 2rem !important; }
  .glass-panel p { font-size: 0.975rem !important; }
}

/* Phone: slightly smaller text in the panel under the full-width photo */
@media (max-width: 767px) {
  .glass-panel h2 { font-size: 1.75rem !important; }
}
/* Hero join: drop the panel's shadow so it doesn't darken the bottom of the hero. */
.glass-panel { box-shadow: none !important; }

/* Hero subtitle shadow: Elementor has no text-shadow setting. A tight shadow sharpens the letter edges and a wide,
   soft navy glow forms a seamless darker spot behind the words, so the white text reads over any photo. */
.hero-sub { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7), 0 0 14px rgba(1, 26, 51, 0.9), 0 0 28px rgba(1, 26, 51, 0.7); }

/* Instagram feed size (Spotlight shortcode on Media and Gallery): 20% smaller than full width, centred. */
.elementor-element-ae9120d, .elementor-element-c7df2a4 { width: 80% !important; max-width: 80% !important; align-self: center; margin-left: auto; margin-right: auto; }
@media (max-width: 767px) { .elementor-element-ae9120d, .elementor-element-c7df2a4 { width: 100% !important; max-width: 100% !important; } }

/* Document card file icon: a faint outline file in the top-right corner of every sample/guide card. */
.doc-thumb { position: relative; }
.doc-thumb::after { content: ""; position: absolute; top: 1rem; right: 1rem; width: 2.8rem; height: 2.8rem; background-color: #ffffff; opacity: 0.28; pointer-events: none; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M9 13h6M9 17h4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M9 13h6M9 17h4'/%3E%3C/svg%3E") center / contain no-repeat; }
