/*
Theme Name: Lex Nautica
Theme URI: https://lexnautica.com
Description: Custom theme for Lex Nautica PLLC — immigration law for engineers and technical professionals. Navy, brass, and nautical chart aesthetic.
Version: 1.0.0
Author: Lex Nautica PLLC
Author URI: https://lexnautica.com
Text Domain: lex-nautica
License: Proprietary
*/

/* ============================================================
   Lex Nautica — Global Styles
   ============================================================ */

/* ── Design Tokens ──────────────────────────────────────── */
:root {
  --ln-section-pad: 90px;
  --ln-section-pad-sm: 60px;
  --ln-color-navy: #0D1B2A;
  --ln-color-brass: #B8913F;
  --ln-color-blue: #2E6DA4;
  --ln-color-slate: #CBD5E1;
  --ln-color-cream: #F4EDD8;
  --ln-radius: 2px;
  --ln-transition: 0.2s ease;
}

/* ── Gutenberg Block Layout Overrides ───────────────────── */
/* Page sections use alignfull groups with explicit inline padding.
   Blocks were authored with Kadence's wider content size, so we
   let alignwide children span their parent container naturally. */
.wp-block-group__inner-container.is-layout-constrained > .alignwide {
  max-width: none !important;
}

/* ── Reset / Base ────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  color: #2C2C2C;
  background: #FFFFFF;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

img {
  max-width: 100%;
  height: auto;
}

/* ── Accessibility ──────────────────────────────────────── */
/* Double-ring focus indicator: brass outline + navy inner shadow. */
:focus-visible {
  outline: 2px solid #B8913F;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px rgba(13, 27, 42, 0.25);
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.screen-reader-text:focus {
  clip: auto;
  display: block;
  height: auto;
  width: auto;
  position: static;
  background: #B8913F;
  color: #FFFFFF;
  padding: 12px 24px;
  font-weight: 700;
  z-index: 9999;
}

/* ── Header ─────────────────────────────────────────────── */
#ln-header {
  background-color: #0D1B2A;
  border-bottom: 1px solid rgba(46, 109, 164, 0.25);
  position: relative;
  z-index: 100;
}

/* Grid overlay on header */
#ln-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(46, 109, 164, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 109, 164, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

#ln-header > * {
  position: relative;
  z-index: 1;
}

.ln-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 72px;
}

/* Branding */
.ln-header__branding {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ln-header__site-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 22px;
  color: #FFFFFF;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  line-height: 1.2;
}

/* Compass mark before the wordmark */
.ln-header__site-title::before {
  content: '';
  display: inline-block;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='100' cy='100' r='48' fill='none' stroke='%23B8913F' stroke-width='2'/%3E%3Cpolygon points='100,5 103.1,92.6 138.9,61.1 107.4,96.9 195,100 107.4,103.1 138.9,138.9 103.1,107.4 100,195 96.9,107.4 61.1,138.9 92.6,103.1 5,100 92.6,96.9 61.1,61.1 96.9,92.6' fill='%23B8913F'/%3E%3C/svg%3E");
}

.ln-header__tagline {
  color: #B8913F;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0;
  font-family: 'Inter', sans-serif;
}

/* ── Primary Navigation ──────────────────────────────────── */
.ln-nav {
  display: flex;
  align-items: center;
}

.ln-nav__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

.ln-nav__menu .menu-item > a {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: #CBD5E1;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 14px;
  display: block;
  transition: color 0.2s ease;
}

.ln-nav__menu .menu-item > a:hover,
.ln-nav__menu .menu-item:hover > a {
  color: #B8913F;
}

.ln-nav__menu .current-menu-item > a {
  color: #FFFFFF;
}

/* Dropdown parent items — flex row keeps anchor + button on the same baseline */
.ln-nav__menu .menu-item-has-children {
  position: relative;
  display: flex;
  align-items: center;
}

/* Dropdown arrow toggle button */
.ln-nav__dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 4px 4px 0;
  margin-left: -6px;   /* tuck it close to the anchor text */
  color: #CBD5E1;
  display: flex;
  align-items: center;
  line-height: 1;
  transition: color 0.2s ease;
}

.ln-nav__dropdown-toggle:hover,
.menu-item-has-children:hover .ln-nav__dropdown-toggle {
  color: #B8913F;
}

/* Sub-menus — absolutely positioned below the flex li */
.ln-nav__menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  background-color: #0A1628;
  border-top: 2px solid #B8913F;
  border-radius: 0 0 2px 2px;
  min-width: 260px;
  width: max-content;
  max-width: 420px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  z-index: 200;
}

.ln-nav__menu .menu-item-has-children:hover > .sub-menu,
.ln-nav__menu .menu-item-has-children.is-open > .sub-menu {
  display: block;
}

.ln-nav__menu .sub-menu .menu-item > a {
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: #94A3B8;
  padding: 10px 20px;
  white-space: nowrap;
  border-bottom: 1px solid rgba(46, 109, 164, 0.1);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.ln-nav__menu .sub-menu .menu-item:last-child > a {
  border-bottom: none;
}

.ln-nav__menu .sub-menu .menu-item > a:hover {
  color: #B8913F;
  background-color: rgba(255, 255, 255, 0.04);
}

/* Last nav item — brass CTA button */
#ln-primary-menu > .menu-item:last-child > a {
  background-color: #B8913F;
  color: #FFFFFF;
  padding: 8px 18px;
  border-radius: 2px;
  letter-spacing: 1px;
}

#ln-primary-menu > .menu-item:last-child > a:hover {
  background-color: #a07c35;
  color: #FFFFFF;
}

/* Mobile hamburger toggle */
.ln-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.ln-nav__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #CBD5E1;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ── Main Content Area ───────────────────────────────────── */
.ln-main {
  display: block;
}

/* ── Footer ─────────────────────────────────────────────── */
.ln-footer {
  background-color: #0D1B2A;
  color: #94A3B8;
  border-top: 1px solid rgba(184, 145, 63, 0.3);
  padding: 48px 40px 28px;
  font-size: 14px;
}

.ln-footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.ln-footer a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s;
}

.ln-footer a:hover {
  color: #B8913F;
}

.ln-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.ln-footer__menu li {
  margin: 0;
}

/* ── Footer Coordinates Signature ───────────────────────── */
.ln-footer-coords {
  background: #07111C;
  padding: 10px 20px 0;
  text-align: center;
}

.ln-footer-coords span {
  font-family: 'IBM Plex Mono', 'SF Mono', Menlo, monospace;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(184, 145, 63, 0.45);
}

/* ── Attorney Advertising Disclaimer ────────────────────── */
.ln-legal-disclaimer {
  background: #07111C;
  border-top: 1px solid rgba(184, 145, 63, 0.2);
  padding: 14px 20px;
}

.ln-legal-disclaimer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.ln-legal-disclaimer p {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.2px;
  color: rgba(203, 213, 225, 0.65);
  text-align: center;
}

/* ── Hero ───────────────────────────────────────────────── */
.ln-hero {
  position: relative;
  overflow: hidden;
}

/* Nautical chart grid overlay */
.ln-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(46, 109, 164, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 109, 164, 0.12) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

.ln-hero > * {
  position: relative;
  z-index: 1;
}

/* Hero title */
.ln-hero .ln-hero-title {
  font-size: 96px !important;
}

/* Compass rose watermark */
.ln-compass-rose {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 480px;
  height: 480px;
  opacity: 0.055;
  pointer-events: none;
  z-index: 0;
  transition: opacity 1.5s ease;
}

/* Rotate the inner <g> — keeps translateY(-50%) on the SVG intact */
@keyframes ln-compass-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.ln-compass-rose g {
  transform-origin: 100px 100px;
  animation: ln-compass-spin 90s linear infinite;
}

.ln-hero:hover .ln-compass-rose {
  opacity: 0.09;
}

@media (prefers-reduced-motion: reduce) {
  .ln-compass-rose g {
    animation: none;
  }
}

/* ── Three Pillars ──────────────────────────────────────── */
.ln-pillar {
  border-top: 3px solid #B8913F;
  padding-top: 24px;
}

/* ── Visa Cards ─────────────────────────────────────────── */
.ln-visa-card {
  border: 1px solid #E5E7EB;
  border-left: 4px solid #2E6DA4;
  padding: 28px 24px;
  background: #FFFFFF;
  height: 100%;
  transition: border-left-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ln-visa-card:hover {
  border-left-color: #B8913F;
  box-shadow: 0 6px 24px rgba(13, 27, 42, 0.1);
  transform: translateY(-2px);
}

/* ── Industry Cards ─────────────────────────────────────── */
.ln-industry-card {
  padding: 36px 28px;
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ln-industry-card:hover {
  border-bottom-color: #B8913F;
  background-color: #122236;
  box-shadow: 0 6px 24px rgba(184, 145, 63, 0.1);
  transform: translateY(-2px);
}

/* ── Industries Section ─────────────────────────────────── */
.ln-industries {
  position: relative;
  overflow: hidden;
}

.ln-industries::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(46, 109, 164, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 109, 164, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.ln-industries > * {
  position: relative;
}

/* ── About image placeholder ────────────────────────────── */
.ln-about-image-placeholder {
  border-radius: 2px;
}

/* ── Work Visa Pathways Chips (industry pages) ────────────
   The "Relevant Visa Categories / Work Visa Pathways" block uses a Gutenberg
   Columns block. With 6 columns crammed into alignwide width, chip text wraps
   mid-word. Force minimum column width so chips wrap to multiple rows. */
.wp-block-columns:has(.ln-visa-chip) {
  flex-wrap: wrap !important;
  row-gap: 16px;
}

.wp-block-column:has(> .ln-visa-chip),
.wp-block-column:has(.ln-visa-chip) {
  flex-basis: 220px !important;
  flex-grow: 1 !important;
  min-width: 0;
}

.ln-visa-chip {
  height: 100%;
}

.ln-visa-chip a {
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}

/* Mobile: single column stacking */
@media (max-width: 600px) {
  .wp-block-column:has(> .ln-visa-chip),
  .wp-block-column:has(.ln-visa-chip) {
    flex-basis: 100% !important;
  }
}

/* ── Privacy Policy TOC ─────────────────────────────────── */
.ln-pp-toc h3 { color: #B8913F !important; }

.ln-pp-toc ul li a {
  transition: color 0.15s ease, border-color 0.15s ease;
}

.ln-pp-toc ul li a:hover {
  color: #B8913F !important;
  border-bottom-color: #B8913F !important;
}

/* Anchor scroll margin — prevent headings from hugging the viewport top
   when arriving via a TOC link */
.entry-content h2[id],
.entry-content h3[id] {
  scroll-margin-top: 24px;
}

/* ── CTA Banner ─────────────────────────────────────────── */
.ln-cta-banner,
.ln-industries {
  padding-top: var(--ln-section-pad) !important;
  padding-bottom: var(--ln-section-pad) !important;
}

.ln-cta-banner {
  position: relative;
  overflow: hidden;
  /* Breathing room above the banner so it doesn't sit flush against the
     section above it (e.g. visa card grid) */
  margin-top: 56px;
}

.ln-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(46, 109, 164, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 109, 164, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.ln-cta-banner > * {
  position: relative;
}

/* ── Global Button Overrides ────────────────────────────── */
.ln-btn-primary .wp-block-button__link,
.wp-block-button__link {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  border-radius: var(--ln-radius);
  transition: opacity var(--ln-transition), box-shadow var(--ln-transition), background-color var(--ln-transition), color var(--ln-transition);
}

.wp-block-button__link:hover {
  opacity: 0.88;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* Secondary outlined button */
.ln-btn-outline .wp-block-button__link {
  background-color: transparent !important;
  color: var(--ln-color-brass) !important;
  border: 1px solid var(--ln-color-brass) !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

.ln-btn-outline .wp-block-button__link:hover {
  background-color: var(--ln-color-brass) !important;
  color: #FFFFFF !important;
  opacity: 1 !important;
  box-shadow: 0 4px 14px rgba(184, 145, 63, 0.3) !important;
}

/* Button centering fix */
.wp-block-buttons.is-content-justification-center {
  width: 100%;
  display: flex !important;
  justify-content: center !important;
}

/* ── Visa Chips ─────────────────────────────────────────── */
.ln-visa-chip {
  border-radius: 2px;
  margin-bottom: 0;
  transition: border-left-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ln-visa-chip:hover {
  border-left-color: #B8913F !important;
  box-shadow: 0 6px 24px rgba(13, 27, 42, 0.1);
  transform: translateY(-2px);
}

/* ── Page Hero ──────────────────────────────────────────── */
.ln-page-hero,
.ln-page-hero-img {
  position: relative;
  overflow: hidden;
}

.ln-page-hero::before,
.ln-page-hero-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(46, 109, 164, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 109, 164, 0.1) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 2;
}

.ln-page-hero > * {
  position: relative;
  z-index: 3;
}

/* Lift inner content above overlay on cover blocks */
.ln-page-hero-img .wp-block-cover__inner-container {
  position: relative;
  z-index: 3;
}

/* ── Sidebar Boxes ──────────────────────────────────────── */
.ln-sidebar-box {
  margin-bottom: 24px;
  border-radius: 2px;
  /* Fill the column height so adjacent boxes in a flex columns layout
     line up at the bottom edge regardless of content length differences */
  height: 100%;
}

/* Ensure Gutenberg flex columns let their sidebar-box children stretch */
.wp-block-columns:has(.ln-sidebar-box) > .wp-block-column {
  display: flex;
  flex-direction: column;
}

.wp-block-columns:has(.ln-sidebar-box) > .wp-block-column > .wp-block-group {
  flex: 1;
}

.ln-sidebar-box ul {
  margin: 0;
  padding-left: 18px;
}

.ln-sidebar-box li {
  font-family: 'IBM Plex Mono', 'SF Mono', Menlo, monospace !important;
  font-size: 12.5px !important;
  line-height: 1.7 !important;
  margin-bottom: 10px !important;
  color: #374151 !important;
  letter-spacing: -0.01em !important;
}

/* Dark sidebar box override */
.ln-sidebar-box[style*="0D1B2A"] h4,
.ln-sidebar-box[style*="0D1B2A"] p,
.ln-sidebar-box[style*="0D1B2A"] li {
  color: #CBD5E1 !important;
}

/* ── Service Cards ──────────────────────────────────────── */
.ln-service-card {
  height: 100%;
  border-radius: 2px;
  transition: border-top-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ln-service-card:hover {
  border-top-color: #B8913F !important;
  box-shadow: 0 6px 24px rgba(13, 27, 42, 0.1);
  transform: translateY(-2px);
}

/* Service card title links — inherit heading colour, show brass on hover */
.ln-service-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ln-service-card:hover h3 a,
.ln-service-card h3 a:hover {
  color: #B8913F;
}

/* ── Process Steps ──────────────────────────────────────── */
.ln-process-step:last-child {
  border-bottom: none !important;
}

/* ── Timeline ───────────────────────────────────────────── */
.ln-timeline-item:last-child {
  border-bottom: none !important;
}

/* ── Contact Form 7 ─────────────────────────────────────── */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #D1D5DB;
  border-radius: 2px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #2C2C2C;
  background: #FFFFFF;
  margin-bottom: 16px;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: #2E6DA4;
  box-shadow: 0 0 0 3px rgba(46, 109, 164, 0.12);
}

.wpcf7-form textarea {
  min-height: 140px;
  resize: vertical;
}

.wpcf7-form input[type="submit"] {
  background-color: #B8913F;
  color: #FFFFFF;
  border: none;
  padding: 14px 40px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.2s ease;
  width: 100%;
  margin-top: 8px;
}

.wpcf7-form input[type="submit"]:hover {
  opacity: 0.88;
}

.wpcf7-not-valid-tip {
  color: #DC2626;
  font-size: 13px;
  margin-top: -10px;
  margin-bottom: 12px;
  display: block;
}

.wpcf7-response-output {
  border: 1px solid #2E6DA4;
  padding: 12px 16px;
  border-radius: 2px;
  font-size: 14px;
  margin-top: 16px;
}

.wpcf7-form .wpcf7-acceptance {
  display: block;
  margin: 8px 0 18px;
}

.wpcf7-form .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
  display: block;
}

.wpcf7-form .wpcf7-acceptance .wpcf7-list-item-label,
.wpcf7-form .wpcf7-acceptance label {
  display: inline;
  font-size: 12px;
  line-height: 1.55;
  color: #475569;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.1px;
}

.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
  margin-right: 8px;
  vertical-align: top;
  margin-top: 3px;
  accent-color: #B8913F;
}

/* ── Industry Image Gallery Strip ───────────────────────── */
.ln-gallery-img {
  margin: 0;
  overflow: hidden;
  display: block;
}

.ln-gallery-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.ln-gallery-img:hover img {
  transform: scale(1.02);
}

/* ── Sticky Consultation CTA ─────────────────────────────── */
.ln-sticky-cta {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  background: var(--ln-color-brass);
  color: #FFFFFF !important;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none !important;
  padding: 14px 24px;
  border-radius: var(--ln-radius);
  box-shadow: 0 4px 20px rgba(184, 145, 63, 0.35);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.2s ease;
}

.ln-sticky-cta--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ln-sticky-cta:hover {
  box-shadow: 0 6px 28px rgba(184, 145, 63, 0.5);
  transform: translateY(-2px);
}

/* ── Breadcrumbs ─────────────────────────────────────────── */
.ln-breadcrumbs {
  margin-bottom: 32px !important;
}

.ln-breadcrumbs__list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.ln-breadcrumbs__item {
  display: flex;
  align-items: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: #94A3B8;
  margin: 0 !important;
}

.ln-breadcrumbs__item + .ln-breadcrumbs__item::before {
  content: '›';
  margin: 0 8px;
  color: rgba(184, 145, 63, 0.5);
}

.ln-breadcrumbs__item a {
  color: #94A3B8 !important;
  text-decoration: none !important;
  transition: color var(--ln-transition);
}

.ln-breadcrumbs__item a:hover {
  color: var(--ln-color-brass) !important;
}

.ln-breadcrumbs__item--current {
  color: var(--ln-color-blue);
}

/* ── See Also / Related Visas ────────────────────────────── */
.ln-see-also {
  margin-top: 48px !important;
  padding-top: 24px;
  border-top: 1px solid #E5E7EB;
}

.ln-see-also__label {
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: var(--ln-color-blue) !important;
  margin: 0 0 14px !important;
}

.ln-see-also__list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.ln-see-also__list li {
  margin: 0 !important;
}

.ln-see-also__list a {
  display: block;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ln-color-navy) !important;
  text-decoration: none !important;
  border: 1px solid rgba(184, 145, 63, 0.35);
  border-radius: var(--ln-radius);
  padding: 12px 18px;
  transition: background-color var(--ln-transition), border-color var(--ln-transition), color var(--ln-transition);
}

/* On wider screens, cap at 4 columns so chips don't get too wide on
   industry pages with constrained content widths */
@media (min-width: 900px) {
  .ln-see-also__list {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    max-width: 720px;
  }
}

.ln-see-also__list a:hover {
  background-color: var(--ln-color-brass);
  border-color: var(--ln-color-brass);
  color: #FFFFFF !important;
}

/* ── Last Updated Stamp ──────────────────────────────────── */
.ln-last-updated {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: #6B7280;
  margin-top: 48px !important;
  padding-top: 16px;
  border-top: 1px solid rgba(184, 145, 63, 0.2);
}

/* ── Resource Cards ─────────────────────────────────────── */
.ln-resource-card {
  transition: border-left-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  margin-bottom: 24px;
}

.ln-resource-card:hover {
  border-left-color: #B8913F !important;
  box-shadow: 0 6px 24px rgba(13, 27, 42, 0.1);
  transform: translateY(-2px);
}

/* ── Article Prose ──────────────────────────────────────── */
.entry-content h2 {
  border-bottom: 1px solid #E5E7EB;
  padding-bottom: 10px;
}

/* ── Visa Grid (3×3) ─────────────────────────────────────── */
.ln-visa-grid > .wp-block-group__inner-container {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.ln-visa-grid .wp-block-group {
  min-width: 0;
}

.ln-visa-grid .ln-visa-card {
  height: auto;
}

/* ── Home Page Visa Preview (5-card grid) ───────────────── */
.ln-home-visa-grid > .wp-block-group__inner-container {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 24px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.ln-home-visa-grid .wp-block-group {
  min-width: 0;
}

/* ── Education Certificate Grid ─────────────────────────── */
.ln-cert-grid > .wp-block-group__inner-container {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  align-items: stretch !important;
  gap: 20px !important;
  width: 100%;
}

.ln-cert-card {
  border: 1px solid #B8913F !important;
  border-top: 3px solid #B8913F !important;
  background: #FDFAF5 !important;
  min-width: 0;
  height: 240px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden;
}

.ln-cert-card > .wp-block-group__inner-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: center;
  height: 100%;
  padding: 18px 16px 16px !important;
  box-sizing: border-box;
}

.ln-cert-card .ln-cert-degree {
  font-family: 'Playfair Display', serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0D1B2A !important;
  margin: 0 0 4px 0 !important;
  line-height: 1.3 !important;
}

.ln-cert-card .ln-cert-degree::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: #B8913F;
  margin: 8px auto 0;
  opacity: 0.6;
}

.ln-cert-card .ln-cert-field {
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #6B7280 !important;
  letter-spacing: 0.3px !important;
  margin: 0 0 8px 0 !important;
  line-height: 1.4 !important;
}

.ln-cert-card .ln-cert-school {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #2E6DA4 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  margin-top: auto !important;
  margin-bottom: 0 !important;
  line-height: 1.35 !important;
}

.ln-cert-card .ln-cert-year {
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 11px !important;
  color: #2E6DA4 !important;
  font-weight: 600 !important;
  margin: 4px 0 0 0 !important;
  letter-spacing: 1px !important;
}

/* ── Compass Horizon Divider ─────────────────────────────── */
.wp-block-separator.is-style-wide,
.wp-block-separator:not(.is-style-dots),
.ln-divider {
  border: none !important;
  background: none !important;
  height: 12px !important;
  max-width: 220px !important;
  margin: 40px auto !important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpolygon points='6,1 11,6 6,11 1,6' fill='none' stroke='%23B8913F' stroke-width='1.2'/%3E%3C/svg%3E"),
    linear-gradient(to right, transparent 0%, rgba(184,145,63,0.55) 25%, rgba(184,145,63,0.55) 75%, transparent 100%) !important;
  background-size: 12px 12px, 100% 1px !important;
  background-position: center center, center center !important;
  background-repeat: no-repeat, no-repeat !important;
}

/* Auto-divider before section headings */
.wp-block-group__inner-container:has(.ln-home-visa-grid) > .wp-block-heading::before,
.ln-industries .wp-block-heading::before,
.ln-cta-banner .wp-block-heading::before {
  content: '';
  display: block;
  width: 220px;
  height: 12px;
  margin: 0 auto 36px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpolygon points='6,1 11,6 6,11 1,6' fill='none' stroke='%23B8913F' stroke-width='1.2'/%3E%3C/svg%3E"),
    linear-gradient(to right, transparent 0%, rgba(184,145,63,0.55) 25%, rgba(184,145,63,0.55) 75%, transparent 100%);
  background-size: 12px 12px, 100% 1px;
  background-position: center center, center center;
  background-repeat: no-repeat, no-repeat;
}

/* ── Custom 404 Page ─────────────────────────────────────── */
.ln-404-wrap {
  background: var(--ln-color-navy);
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  position: relative;
}

.ln-404-inner {
  text-align: center;
  max-width: 560px;
}

.ln-404-compass {
  width: 120px;
  height: 120px;
  margin-bottom: 32px;
  opacity: 0.9;
}

.ln-404-code {
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 11px !important;
  letter-spacing: 4px !important;
  color: var(--ln-color-brass) !important;
  margin: 0 0 16px !important;
}

.ln-404-heading {
  font-family: 'Playfair Display', serif !important;
  font-size: 72px !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  margin: 0 0 16px !important;
  line-height: 1.1 !important;
}

.ln-404-coords {
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 12px !important;
  letter-spacing: 2px !important;
  color: rgba(184, 145, 63, 0.7) !important;
  margin: 0 0 24px !important;
}

.ln-404-message {
  font-family: 'Inter', sans-serif !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
  color: #94A3B8 !important;
  margin: 0 0 40px !important;
}

.ln-404-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.ln-404-btn-primary,
.ln-404-btn-outline {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none !important;
  padding: 13px 28px;
  border-radius: var(--ln-radius);
  transition: all var(--ln-transition);
  display: inline-block;
}

.ln-404-btn-primary {
  background: var(--ln-color-brass);
  color: #FFFFFF !important;
  border: 1px solid var(--ln-color-brass);
}

.ln-404-btn-primary:hover {
  box-shadow: 0 6px 24px rgba(184, 145, 63, 0.4);
  transform: translateY(-1px);
}

.ln-404-btn-outline {
  background: transparent;
  color: var(--ln-color-slate) !important;
  border: 1px solid rgba(203, 213, 225, 0.25);
}

.ln-404-btn-outline:hover {
  border-color: var(--ln-color-brass);
  color: var(--ln-color-brass) !important;
}

/* ── Responsive ─────────────────────────────────────────── */

/* ── Tablet (≤1024px) ───────────────────────────────────── */
@media (max-width: 1024px) {
  /* Visa grid: 3-col → 2-col */
  .ln-visa-grid > .wp-block-group__inner-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Home visa preview: 5-col → 3-col */
  .ln-home-visa-grid > .wp-block-group__inner-container {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  /* Cert grid: 4-col → 3-col */
  .ln-cert-grid > .wp-block-group__inner-container {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* ── Mobile (≤768px) ────────────────────────────────────── */
@media (max-width: 768px) {
  .ln-header__inner {
    padding: 0 20px;
    min-height: 60px;
  }

  /* Show hamburger, hide desktop nav */
  .ln-nav__toggle {
    display: flex;
  }

  .ln-nav__menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #0D1B2A;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0;
    border-top: 1px solid rgba(46, 109, 164, 0.25);
    gap: 0;
    z-index: 50;
  }

  .ln-nav__menu.is-open {
    display: flex;
  }

  .ln-nav__menu .menu-item > a {
    padding: 12px 24px;
  }

  .ln-nav__menu .sub-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border-top: none;
    border-left: 2px solid rgba(184, 145, 63, 0.3);
    margin-left: 16px;
    max-width: none;
  }

  .ln-nav__dropdown-toggle {
    position: absolute;
    right: 16px;
  }

  .ln-nav__menu .menu-item-has-children {
    position: relative;
  }

  /* Compass rose — shrink and shift off-screen edge */
  .ln-compass-rose {
    width: 260px;
    height: 260px;
    opacity: 0.04;
    right: -60px;
  }

  /* Hero title */
  .ln-hero .ln-hero-title {
    font-size: 52px !important;
  }

  /* Visa grids: collapse to single column */
  .ln-visa-grid > .wp-block-group__inner-container {
    grid-template-columns: 1fr !important;
  }

  .ln-home-visa-grid > .wp-block-group__inner-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .ln-visa-card {
    margin-bottom: 16px;
  }

  /* Cert grid: 2-col on tablet-sized phones */
  .ln-cert-grid > .wp-block-group__inner-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Footer */
  .ln-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .ln-footer {
    padding: 40px 20px 24px;
  }

  /* Sticky CTA — full-width bar at bottom on mobile */
  .ln-sticky-cta {
    bottom: 0;
    right: 0;
    left: 0;
    border-radius: 0;
    text-align: center;
    padding: 16px 24px;
    box-shadow: 0 -4px 20px rgba(184, 145, 63, 0.25);
  }

  .ln-sticky-cta:hover {
    transform: none;
  }

  /* 404 page */
  .ln-404-heading {
    font-size: 56px !important;
  }
}

/* ── Small phone (≤480px) ───────────────────────────────── */
@media (max-width: 480px) {
  /* Hero title — tighter for narrow screens */
  .ln-hero .ln-hero-title {
    font-size: 40px !important;
  }

  /* Home visa preview: 2-col → 1-col */
  .ln-home-visa-grid > .wp-block-group__inner-container {
    grid-template-columns: 1fr !important;
  }

  /* Cert grid: → single column on small phones */
  .ln-cert-grid > .wp-block-group__inner-container {
    grid-template-columns: 1fr !important;
  }

  /* Cert cards don't need fixed height when stacked */
  .ln-cert-card {
    height: auto !important;
  }

  /* 404 page */
  .ln-404-heading {
    font-size: 44px !important;
  }

  .ln-404-actions {
    flex-direction: column;
    align-items: center;
  }

  /* Footer menu wraps tighter */
  .ln-footer__menu {
    gap: 10px;
  }

  /* Nav Contact button — strip desktop pill style, show as brass text link */
  #ln-primary-menu > .menu-item:last-child > a {
    background-color: transparent;
    border: none;
    color: #B8913F;
    padding: 12px 24px;
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(184, 145, 63, 0.2);
    margin: 0;
    border-radius: 0;
  }

  /* Content buttons — shrink to fit, keep on one line ("CONTACT LEX NAUTICA") */
  .wp-block-button__link {
    font-size: 12px;
    letter-spacing: 0.6px;
    padding: 12px 18px;
    white-space: nowrap;
  }

  /* Page hero headings — prevent descender clipping (y, g, p, q)
     and ensure cover block has breathing room at the bottom edge */
  .ln-page-hero h1,
  .ln-page-hero-img h1,
  .ln-page-hero h2,
  .ln-page-hero-img h2 {
    line-height: 1.3 !important;
    padding-bottom: 0.25em !important;
    margin-bottom: 0 !important;
    font-size: clamp(36px, 9vw, 56px) !important;
  }

  /* Cover block inner container — extra bottom padding so descenders
     never touch the cover's overflow:hidden edge */
  .ln-page-hero-img .wp-block-cover__inner-container,
  .ln-page-hero .wp-block-cover__inner-container,
  .ln-page-hero,
  .ln-page-hero-img {
    padding-bottom: 56px !important;
  }
}
