/*
Theme Name: SeaKnot Marine
Theme URI: https://eduspacebd.com
Author: Manisankar Halder
Author URI: https://eduspacebd.com
Description: A custom classic WordPress theme for a professional maritime consultancy website.
Version: 1.8.6
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: seaknot-marine
*/

:root {
  --sm-navy: #0b2035;
  --sm-navy-deep: #071827;
  --sm-blue: #0d5b78;
  --sm-cyan: #54c5d8;
  --sm-white: #ffffff;
  --sm-ink: #15283a;
  --sm-muted: #647587;
  --sm-soft: #f2f6f8;
  --sm-border: #dce5eb;
  --sm-container: 1200px;
  --sm-radius: 8px;
  --sm-shadow: 0 18px 50px rgba(7, 24, 39, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  color: var(--sm-ink);
  background: var(--sm-white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--sm-blue); text-decoration: none; }
a:hover { color: var(--sm-cyan); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--sm-cyan); outline-offset: 3px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  padding: 12px 16px; background: #fff; color: #000;
}
.skip-link:focus { left: 12px; top: 12px; }
.sm-container { width: min(var(--sm-container), calc(100% - 48px)); margin-inline: auto; }
.sm-section { padding: 88px 0; }
.sm-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--sm-blue); font-size: .78rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
}
.sm-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--sm-cyan); }
.sm-section-heading { max-width: 720px; margin-bottom: 38px; }
.sm-section-heading h2 { margin: 12px 0 14px; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.12; letter-spacing: -.035em; }
.sm-section-heading p { color: var(--sm-muted); margin: 0; }
.sm-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px; border: 1px solid transparent;
  border-radius: 3px; background: var(--sm-cyan); color: var(--sm-navy-deep);
  font-size: .88rem; font-weight: 800; transition: transform .2s ease, background .2s ease;
}
.sm-button:hover { background: #8ae0e9; color: var(--sm-navy-deep); transform: translateY(-2px); }
.sm-button--outline { border-color: rgba(255,255,255,.65); background: transparent; color: #fff; }
.sm-button--outline:hover { background: #fff; color: var(--sm-navy); }
.sm-button--dark { background: var(--sm-navy); color: #fff; }
.sm-button--dark:hover { background: var(--sm-blue); color: #fff; }

/* Header */
.sm-site-header {
  position: sticky; top: 0; z-index: 1000; color: #fff;
  background: rgba(7, 24, 39, .97); box-shadow: 0 5px 24px rgba(0,0,0,.08);
}
.admin-bar .sm-site-header { top: 32px; }
.sm-header-main { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.sm-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; min-width: 190px; }
.sm-brand:hover { color: #fff; }
.sm-brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(84,197,216,.65); color: var(--sm-cyan); font-size: 1.35rem; font-weight: 900; }
.sm-brand-name { display: block; font-size: 1rem; font-weight: 900; line-height: 1.1; letter-spacing: .08em; text-transform: uppercase; }
.sm-brand-tagline { display: block; margin-top: 5px; color: #b9c8d4; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; }
.sm-nav-wrap { display: flex; align-items: center; gap: 26px; }
.sm-primary-nav ul { display: flex; align-items: center; gap: 25px; padding: 0; margin: 0; list-style: none; }
.sm-primary-nav li { position: relative; }
.sm-primary-nav a { display: block; padding: 28px 0; color: #e8eef3; font-size: .82rem; font-weight: 700; }
.sm-primary-nav a:hover, .sm-primary-nav .current-menu-item > a { color: var(--sm-cyan); }
.sm-primary-nav .sub-menu {
  position: absolute; top: 100%; left: -18px; display: none; min-width: 220px;
  padding: 8px; background: #fff; box-shadow: var(--sm-shadow); border-top: 3px solid var(--sm-cyan);
}
.sm-primary-nav .sub-menu a { padding: 10px 12px; color: var(--sm-ink); }
.sm-primary-nav .sub-menu a:hover { background: var(--sm-soft); color: var(--sm-blue); }
.sm-primary-nav li:hover > .sub-menu, .sm-primary-nav li:focus-within > .sub-menu { display: block; }
.sm-header-cta { white-space: nowrap; }
.sm-menu-toggle { display: none; width: 46px; height: 44px; border: 1px solid #496174; background: transparent; color: #fff; cursor: pointer; }
.sm-menu-toggle span { display: block; width: 20px; height: 2px; margin: 5px auto; background: currentColor; }

/* Hero */
.sm-hero {
  position: relative; display: flex; align-items: center; min-height: min(760px, calc(100vh - 82px));
  overflow: hidden; color: #fff;
  background-color: var(--sm-navy);
  background-image: linear-gradient(115deg, #071827 0%, #0b2a42 55%, #174a61 100%);
  background-position: center; background-size: cover; background-repeat: no-repeat;
  isolation: isolate;
}
.sm-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(5,20,34,.88) 0%, rgba(5,20,34,.65) 48%, rgba(5,20,34,.18) 100%);
}
.sm-hero-inner { width: 100%; padding: 100px 0 110px; }
.sm-hero-copy { max-width: 760px; }
.sm-hero .sm-eyebrow { color: #bceef3; }
.sm-hero h1 { margin: 20px 0 24px; max-width: 780px; font-size: clamp(2.7rem, 6vw, 5.6rem); line-height: .99; letter-spacing: -.055em; }
.sm-hero p { max-width: 620px; margin: 0 0 32px; color: #e1eaf0; font-size: clamp(1rem, 1.6vw, 1.2rem); }
.sm-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sm-hero-note { margin-top: 52px; display: flex; align-items: center; gap: 14px; color: #d8e3eb; font-size: .82rem; }
.sm-hero-note strong { color: #fff; }
.sm-hero-note-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; color: var(--sm-cyan); }

/* Home sections */
.sm-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.sm-intro-art { position: relative; min-height: 420px; background: linear-gradient(140deg, #dcebf0, #a9c7d2); overflow: hidden; }
.sm-intro-art::before { content: ""; position: absolute; inset: 12% -5% -15% 10%; background: linear-gradient(145deg, #6d9ba9, #164a66); transform: skewY(-12deg); }
.sm-intro-art::after { content: "SEA  •  SURVEY  •  SAFETY"; position: absolute; left: 24px; bottom: 24px; padding: 12px 15px; background: #fff; color: var(--sm-navy); font-size: .72rem; font-weight: 800; letter-spacing: .1em; }
.sm-intro-copy h2 { margin: 14px 0 20px; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.1; letter-spacing: -.04em; }
.sm-intro-copy p { color: var(--sm-muted); }
.sm-check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 26px 0 30px; padding: 0; list-style: none; }
.sm-check-list li::before { content: "✓"; margin-right: 10px; color: var(--sm-blue); font-weight: 900; }
.sm-soft-section { background: var(--sm-soft); }
.sm-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sm-service-card { min-height: 255px; padding: 30px; border: 1px solid var(--sm-border); background: #fff; transition: transform .22s ease, box-shadow .22s ease; }
.sm-service-card:hover { transform: translateY(-5px); box-shadow: var(--sm-shadow); }
.sm-service-number { color: var(--sm-blue); font-size: .78rem; font-weight: 900; letter-spacing: .12em; }
.sm-service-card h3 { margin: 22px 0 12px; font-size: 1.25rem; line-height: 1.25; }
.sm-service-card p { margin: 0 0 20px; color: var(--sm-muted); font-size: .93rem; }
.sm-text-link { font-size: .84rem; font-weight: 800; }
.sm-parallax {
  position: relative; padding: 110px 0; color: #fff; background-color: var(--sm-navy);
  background-image: linear-gradient(90deg, rgba(7,24,39,.94), rgba(7,24,39,.72)), var(--sm-parallax-image, linear-gradient(120deg, #0b2035, #14536b));
  background-position: center; background-size: cover; background-attachment: fixed;
}
.sm-parallax-content { max-width: 760px; }
.sm-parallax h2 { margin: 16px 0 20px; font-size: clamp(2.1rem, 4.8vw, 4rem); line-height: 1.05; letter-spacing: -.04em; }
.sm-parallax p { color: #dce6ed; max-width: 650px; }
.sm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 38px; }
.sm-stat { padding: 22px 0; border-top: 1px solid rgba(255,255,255,.35); }
.sm-stat strong { display: block; color: var(--sm-cyan); font-size: 1.65rem; }
.sm-stat span { color: #dce6ed; font-size: .84rem; }
.sm-cta-band { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 44px; background: var(--sm-cyan); }
.sm-cta-band h2 { margin: 0; max-width: 700px; color: var(--sm-navy); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.15; }
.sm-cta-band p { margin: 8px 0 0; color: #214558; }

/* Generic content and footer */
.sm-page-hero { padding: 78px 0; color: #fff; background: linear-gradient(120deg, var(--sm-navy), #14536b); }
.sm-page-hero h1 { margin: 10px 0 0; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.05; }
.sm-content { min-height: 320px; padding: 70px 0 90px; }
.sm-content-inner { max-width: 850px; }
.sm-content-inner > *:first-child { margin-top: 0; }
.sm-content-inner h2, .sm-content-inner h3 { line-height: 1.2; }
.sm-content-inner p, .sm-content-inner li { color: #405568; }
.sm-site-footer { color: #d7e1e9; background: #071827; }
.sm-footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 42px; padding: 72px 0 58px; }
.sm-footer-brand p { max-width: 300px; color: #aebfcb; font-size: .9rem; }
.sm-footer-title { margin: 0 0 20px; color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.sm-footer-links { padding: 0; margin: 0; list-style: none; }
.sm-footer-links li { margin: 0 0 10px; }
.sm-footer-links a, .sm-footer-contact a { color: #b8c8d4; font-size: .88rem; }
.sm-footer-links a:hover, .sm-footer-contact a:hover { color: var(--sm-cyan); }
.sm-footer-contact p { margin: 0 0 12px; color: #b8c8d4; font-size: .88rem; }
.sm-footer-bottom { border-top: 1px solid #263a4b; }
.sm-footer-bottom-inner { min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 20px; color: #94a8b8; font-size: .78rem; }
.sm-footer-bottom a { color: #b8c8d4; }
.sm-footer-bottom p { margin: 0; }
.sm-empty-menu { color: #b8c8d4; font-size: .82rem; }
.sm-pagination { margin-top: 35px; }
.sm-pagination .page-numbers { display: inline-block; margin-right: 6px; padding: 7px 12px; border: 1px solid var(--sm-border); }
.sm-pagination .current { background: var(--sm-navy); color: #fff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1050px) {
  .sm-primary-nav ul { gap: 16px; }
  .sm-primary-nav a { font-size: .76rem; }
  .sm-header-cta { display: none; }
  .sm-footer-main { grid-template-columns: 1.3fr 1fr 1fr; }
  .sm-footer-contact { grid-column: 2 / 4; }
}
@media (max-width: 780px) {
  html { scroll-padding-top: 76px; }
  .admin-bar .sm-site-header { top: 46px; }
  .sm-container { width: min(var(--sm-container), calc(100% - 32px)); }
  .sm-header-main { min-height: 72px; }
  .sm-menu-toggle { display: block; }
  .sm-nav-wrap { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 10px 16px 22px; background: var(--sm-navy-deep); border-top: 1px solid #294054; }
  .sm-nav-wrap.is-open { display: block; }
  .sm-primary-nav ul { display: block; }
  .sm-primary-nav a { padding: 12px 8px; font-size: .9rem; }
  .sm-primary-nav .sub-menu { position: static; display: block; padding: 0 0 0 16px; background: transparent; border: 0; box-shadow: none; }
  .sm-primary-nav .sub-menu a { color: #c7d4de; }
  .sm-hero { min-height: 620px; }
  .sm-hero-inner { padding: 78px 0; }
  .sm-intro-grid { grid-template-columns: 1fr; }
  .sm-intro-art { min-height: 300px; order: 2; }
  .sm-service-grid { grid-template-columns: 1fr 1fr; }
  .sm-stats { grid-template-columns: 1fr 1fr; }
  .sm-parallax { background-attachment: scroll; padding: 80px 0; }
  .sm-cta-band { align-items: flex-start; flex-direction: column; padding: 30px; }
  .sm-footer-main { grid-template-columns: 1fr 1fr; gap: 32px 24px; padding: 52px 0 40px; }
  .sm-footer-brand { grid-column: 1 / -1; }
  .sm-footer-contact { grid-column: auto; }
}
@media (max-width: 520px) {
  .sm-brand { min-width: 0; }
  .sm-brand-name { font-size: .86rem; }
  .sm-brand-tagline { font-size: .56rem; }
  .sm-brand-mark { width: 38px; height: 38px; }
  .sm-hero h1 { font-size: clamp(2.5rem, 12vw, 3.8rem); }
  .sm-hero-note { align-items: flex-start; margin-top: 36px; }
  .sm-check-list, .sm-service-grid { grid-template-columns: 1fr; }
  .sm-service-card { min-height: 0; }
  .sm-footer-main { grid-template-columns: 1fr; }
  .sm-footer-brand, .sm-footer-contact { grid-column: auto; }
  .sm-footer-bottom-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: 18px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* v1.2 refinements */
.sm-intro-art[style*="background-image"]::before,
.sm-intro-art[style*="background-image"]::after { display: none; }
.sm-intro-art[style*="background-image"] { min-height: 420px; }
.sm-featured-image { margin-bottom: 30px; }
.sm-featured-image img { display: block; width: 100%; height: auto; }
.sm-content-inner .wp-block-image img { height: auto; }
.sm-content-inner .wp-block-button__link { background: var(--sm-cyan); color: var(--sm-navy); border-radius: 3px; }
@media (max-width: 780px) {
  .sm-intro-art[style*="background-image"] { min-height: 300px; }
}


/* v1.3 — editorial and interior-page templates */
.sm-page-hero { padding: 78px 0 82px; color: #fff; background: linear-gradient(115deg, #0a2034, #14506a); }
.sm-page-hero h1 { max-width: 900px; margin: 18px 0 0; font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1.04; letter-spacing: -.04em; }
.sm-page-hero p { max-width: 680px; margin: 20px 0 0; color: rgba(255,255,255,.82); }
.sm-page-hero--compact { padding-top: 58px; padding-bottom: 60px; }
.sm-content { padding: 70px 0 88px; }
.sm-content-inner { max-width: 820px; }
.sm-content-inner > :first-child { margin-top: 0; }
.sm-content-inner p, .sm-article p { line-height: 1.8; }
.sm-article-layout { max-width: 900px; }
.sm-article-title { margin: 12px 0 28px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.12; }
.sm-post-meta { color: #64788a; font-size: .88rem; }
.sm-post-meta a { color: inherit; }
.sm-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sm-post-card { min-width: 0; border: 1px solid #dce5ea; background: #fff; }
.sm-post-card-image, .sm-post-card-image img { display: block; width: 100%; }
.sm-post-card-image img { height: 220px; object-fit: cover; }
.sm-post-card-body { padding: 24px; }
.sm-post-card h2 { margin: 10px 0; font-size: 1.35rem; line-height: 1.25; }
.sm-post-card h2 a { color: var(--sm-navy); text-decoration: none; }
.sm-post-card p { color: #53697a; line-height: 1.7; }
.sm-pagination { margin-top: 42px; }
.sm-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 10px; }
.sm-pagination a, .sm-pagination span { padding: 9px 13px; border: 1px solid #dce5ea; }
.sm-empty-state { padding: 40px; background: #f1f5f7; }
.sm-error-section { padding: 100px 0; }
.sm-error-inner { max-width: 760px; }
.sm-error-inner h1 { font-size: clamp(2rem, 4vw, 3rem); }
.sm-error-inner p { margin-bottom: 24px; color: #53697a; }
.sm-search-form { display: flex; gap: 10px; margin-bottom: 34px; }
.sm-search-form input[type="search"] { flex: 1; min-width: 0; padding: 12px; border: 1px solid #ccd8df; }
.sm-search-form input[type="submit"] { padding: 12px 18px; border: 0; background: var(--sm-navy); color: #fff; cursor: pointer; }
@media (max-width: 900px) {
  .sm-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .sm-page-hero { padding: 54px 0 58px; }
  .sm-content { padding: 44px 0 58px; }
  .sm-post-grid { grid-template-columns: 1fr; }
  .sm-post-card-image img { height: 240px; }
  .sm-post-card-body { padding: 20px; }
  .sm-error-section { padding: 64px 0; }
}


/* =========================================================
   SeaKnot Marine v1.4 — responsive refinement
   Focus: readable hero, consistent cards, interior-page rhythm.
   ========================================================= */
:root {
  --sm-content-width: 1120px;
}
.sm-container {
  width: min(var(--sm-content-width), calc(100% - 48px));
  margin-inline: auto;
}
.sm-hero {
  background-color: #071a2a;
  background-position: center right;
  background-size: cover;
  position: relative;
  isolation: isolate;
}
.sm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(5, 22, 36, .94) 0%, rgba(5, 22, 36, .78) 44%, rgba(5, 22, 36, .18) 100%);
}
.sm-hero-inner {
  min-height: clamp(430px, 46vw, 620px);
  display: flex;
  align-items: center;
  padding-block: clamp(60px, 8vw, 100px);
}
.sm-hero-copy {
  width: min(720px, 68%);
}
.sm-hero-copy h1 {
  max-width: 720px;
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  line-height: .99;
  letter-spacing: -.045em;
  overflow-wrap: normal;
  text-wrap: balance;
}
.sm-hero-copy > p {
  max-width: 570px;
  line-height: 1.75;
}
.sm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.sm-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
.sm-intro-grid {
  align-items: center;
}
.sm-intro-art {
  min-width: 0;
  overflow: hidden;
}
.sm-service-grid {
  align-items: stretch;
}
.sm-service-card {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.sm-service-card p {
  flex: 1;
}
.sm-service-card h2,
.sm-service-card h3 {
  overflow-wrap: anywhere;
}
.sm-section-heading {
  max-width: 760px;
}
.sm-section-heading h2 {
  text-wrap: balance;
}
.sm-parallax {
  background-color: #0a2034;
  background-image: linear-gradient(90deg, rgba(5, 22, 36, .96), rgba(5, 22, 36, .86)), var(--sm-parallax-image, none);
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}
.sm-parallax-content {
  width: min(760px, calc(100% - 48px));
}
.sm-cta-band {
  gap: 24px;
}
.sm-cta-band > div {
  min-width: 0;
}
.sm-cta-band h2,
.sm-cta-band p {
  overflow-wrap: anywhere;
}
.sm-footer-grid {
  min-width: 0;
}
.sm-footer-grid > * {
  min-width: 0;
}
.sm-footer-grid a {
  overflow-wrap: anywhere;
}
.sm-content-inner img,
.sm-article img {
  max-width: 100%;
  height: auto;
}
.sm-content-inner iframe,
.sm-article iframe {
  max-width: 100%;
}

/* Tablet */
@media (max-width: 980px) {
  .sm-container {
    width: min(100% - 40px, 760px);
  }
  .sm-hero-copy {
    width: min(680px, 82%);
  }
  .sm-hero::before {
    background: linear-gradient(90deg, rgba(5, 22, 36, .95) 0%, rgba(5, 22, 36, .82) 58%, rgba(5, 22, 36, .42) 100%);
  }
  .sm-intro-grid {
    gap: 36px;
  }
  .sm-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sm-service-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .sm-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 640px) {
  .sm-container {
    width: calc(100% - 36px);
  }
  .sm-hero {
    background-position: 62% center;
  }
  .sm-hero::before {
    background: linear-gradient(90deg, rgba(5, 22, 36, .94) 0%, rgba(5, 22, 36, .82) 68%, rgba(5, 22, 36, .60) 100%);
  }
  .sm-hero-inner {
    min-height: 0;
    padding-block: 64px 54px;
  }
  .sm-hero-copy {
    width: 100%;
    max-width: 100%;
  }
  .sm-hero-copy h1 {
    max-width: 100%;
    margin-block: 16px 18px;
    font-size: clamp(2.35rem, 10.5vw, 3.5rem);
    line-height: 1.02;
    letter-spacing: -.04em;
    text-wrap: balance;
  }
  .sm-hero-copy > p {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.65;
  }
  .sm-hero-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
    max-width: 340px;
  }
  .sm-hero-actions .sm-button {
    width: 100%;
  }
  .sm-hero-note {
    margin-top: 26px;
    max-width: 100%;
  }
  .sm-section {
    padding-block: 48px;
  }
  .sm-intro-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .sm-intro-copy h2 {
    font-size: clamp(1.8rem, 7vw, 2.3rem);
    line-height: 1.12;
    text-wrap: balance;
  }
  .sm-intro-art,
  .sm-intro-art[style*="background-image"] {
    min-height: 250px;
    aspect-ratio: 4 / 3;
  }
  .sm-service-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .sm-service-card:last-child:nth-child(odd) {
    grid-column: auto;
  }
  .sm-service-card {
    padding: 22px;
  }
  .sm-service-card h2,
  .sm-service-card h3 {
    font-size: 1.2rem;
    line-height: 1.3;
  }
  .sm-section-heading h2 {
    font-size: clamp(1.85rem, 7vw, 2.4rem);
    line-height: 1.12;
  }
  .sm-section-heading > p {
    line-height: 1.65;
  }
  .sm-parallax {
    background-attachment: scroll;
    background-position: center;
  }
  .sm-parallax-content {
    width: calc(100% - 36px);
    padding-block: 54px;
  }
  .sm-parallax-content h2 {
    font-size: clamp(2rem, 8vw, 2.7rem);
    line-height: 1.08;
    text-wrap: balance;
  }
  .sm-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
  }
  .sm-stat {
    padding-block: 16px;
  }
  .sm-cta-band {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 20px;
  }
  .sm-cta-band .sm-button {
    width: 100%;
  }
  .sm-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .sm-footer-brand p {
    max-width: 420px;
  }
  .sm-footer-bottom {
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
  }
  .sm-page-hero {
    padding: 48px 0 52px;
  }
  .sm-page-hero h1 {
    font-size: clamp(2.4rem, 11vw, 3.4rem);
    overflow-wrap: anywhere;
  }
  .sm-content {
    padding: 42px 0 56px;
  }
  .sm-post-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .sm-post-card-image img {
    height: auto;
    max-height: 280px;
  }
}

/* Respect visitors' motion preferences. */
@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}


/* v1.5 — interior content refinement */
.sm-interior-cta { margin-top: 54px; }
.sm-content-inner > h2,
.sm-content-inner > h3 { color: var(--sm-navy); line-height: 1.2; }
.sm-content-inner > ul,
.sm-content-inner > ol { padding-left: 1.4em; line-height: 1.8; }
.sm-content-inner blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  border-left: 3px solid var(--sm-cyan);
  background: #f1f5f7;
}
.sm-article .post-navigation,
.sm-post-navigation { margin-top: 36px; padding-top: 24px; border-top: 1px solid #dce5ea; }
.sm-article .post-navigation a { color: var(--sm-navy); }
.sm-archive-description { max-width: 720px; margin-top: 18px; color: rgba(255,255,255,.82); }
@media (max-width: 640px) {
  .sm-interior-cta { margin-top: 34px; }
}


/* v1.6 — native contact form */
.sm-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, .85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.sm-contact-form-panel {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid #dce5ea;
  background: #fff;
}
.sm-contact-form-panel h2,
.sm-contact-aside h2 { margin-top: 0; color: var(--sm-navy); line-height: 1.2; }
.sm-contact-intro { color: #64788a; }
.sm-contact-form { margin-top: 26px; }
.sm-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.sm-form-field { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.sm-form-field--full { grid-column: 1 / -1; }
.sm-form-field label { color: var(--sm-navy); font-size: .95rem; font-weight: 700; }
.sm-form-field input,
.sm-form-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #cbd8e0;
  border-radius: 2px;
  background: #fff;
  color: #10283b;
  font: inherit;
  line-height: 1.5;
}
.sm-form-field textarea { resize: vertical; min-height: 160px; }
.sm-form-field input:focus,
.sm-form-field textarea:focus {
  outline: 3px solid rgba(79, 195, 213, .28);
  border-color: #168ca5;
}
.sm-privacy-note { margin: 18px 0; color: #64788a; font-size: .88rem; line-height: 1.65; }
.sm-contact-submit { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.sm-form-notice { margin: 18px 0; padding: 14px 16px; border-left: 4px solid; line-height: 1.6; }
.sm-form-notice--success { color: #155b3a; background: #edf8f1; border-color: #25875a; }
.sm-form-notice--error { color: #7c2525; background: #fff1f0; border-color: #c44842; }
.sm-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.sm-contact-aside {
  padding: 28px;
  background: #f1f5f7;
  border-top: 3px solid var(--sm-cyan);
}
.sm-contact-aside > p { color: #53697a; line-height: 1.75; }
.sm-contact-detail { display: flex; flex-direction: column; gap: 5px; padding: 18px 0; border-top: 1px solid #d7e1e7; }
.sm-contact-detail span { color: #64788a; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.sm-contact-detail a { color: var(--sm-navy); font-weight: 700; overflow-wrap: anywhere; }
.sm-contact-response { margin-top: 22px; font-size: .88rem; }
@media (max-width: 760px) {
  .sm-contact-layout { grid-template-columns: 1fr; }
  .sm-contact-form-panel { padding: 22px 18px; }
  .sm-contact-aside { padding: 24px 20px; }
}
@media (max-width: 520px) {
  .sm-form-grid { grid-template-columns: 1fr; gap: 16px; }
  .sm-form-field--full { grid-column: auto; }
  .sm-contact-submit { width: 100%; }
}


/* v1.7 — editable homepage section manager */
.sm-managed-hero,
.sm-managed-parallax { background-image: linear-gradient(90deg, rgba(5, 22, 36, .92) 0%, rgba(5, 22, 36, .72) 48%, rgba(5, 22, 36, .24) 100%), var(--sm-section-image); background-size: cover; background-position: center; }
.sm-managed-hero:not([style*="--sm-section-image"]),
.sm-managed-parallax:not([style*="--sm-section-image"]) { background-image: linear-gradient(115deg, #0b2035, #104c62); }
.sm-managed-content .sm-content-inner { max-width: 900px; margin-inline: auto; }
.sm-managed-content .sm-content-inner > img,
.sm-managed-content .sm-content-inner img { border-radius: 2px; }
.post-type-sm_home_section .column-title { font-weight: 600; }

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    overflow-x: hidden;
}


/* SeaKnot Marine: improve single article width */
body.single-post .sm-content-inner,
body.single-post .sm-article-layout {
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Make the featured image fill the article width */
body.single-post .sm-featured-image,
body.single-post .sm-featured-image img,
body.single-post .sm-article img {
    max-width: 100%;
}

/* Keep the article responsive on mobile */
@media (max-width: 640px) {
    body.single-post .sm-content-inner,
    body.single-post .sm-article-layout {
        width: 100%;
        max-width: 100%;
    }
}


/* SeaKnot Marine 1.8: dynamic header/footer layout support */
.sm-site-header .sm-header-main { width:min(var(--sm-container),calc(100% - 48px)); margin-inline:auto; gap:24px; }
.sm-site-header .sm-brand { order:0; }
.sm-site-header .sm-nav-wrap { display:flex; align-items:center; justify-content:flex-end; gap:clamp(12px,2vw,26px); }
.sm-site-header .sm-header-widget { flex:0 1 auto; }
.sm-site-header .sm-header-widget .widget { margin:0; }
.sm-site-header.sm-header-logo-center .sm-brand { margin-left:auto; margin-right:auto; }
.sm-footer-custom-logo { display:block; width:auto; max-width:180px; max-height:72px; object-fit:contain; margin-bottom:12px; }
.sm-footer-column .menu, .sm-footer-column .sm-footer-links { list-style:none; padding:0; margin:0; }
.sm-footer-column .menu li, .sm-footer-column .sm-footer-links li { margin:0 0 10px; }
.sm-footer-column .menu a { color:var(--sm-hf-footer-link,#b8c8d4); font-size:.88rem; }
.sm-footer-column .menu a:hover { color:var(--sm-hf-footer-hover,#54c5d8); }
.sm-footer-bottom-inner { flex-wrap:wrap; }
.sm-footer-bottom-widgets { margin-left:auto; }
@media(max-width:780px) {
 .sm-site-header .sm-header-main { width:calc(100% - 32px); gap:12px; }
 .sm-site-header .sm-header-widget { display:none; }
 .sm-site-header .sm-brand { margin-right:auto; }
 .sm-site-header .sm-nav-wrap { display:none; position:absolute; top:100%; left:0; right:0; width:100%; margin:0; flex-direction:column; align-items:stretch; }
 .sm-site-header .sm-nav-wrap.is-open { display:flex; }
 .sm-site-header .sm-header-cta { display:inline-flex; align-self:flex-start; margin:10px 8px 0; }
}


/* SeaKnot Marine 1.8.1: widget-controlled footer columns */
.sm-footer-main > .sm-footer-column,
.sm-footer-main > .sm-footer-brand {
  min-width: 0;
}
.sm-footer-column .widget,
.sm-footer-widget-area .widget {
  margin: 0 0 1.25rem;
}
.sm-footer-column .widget:last-child,
.sm-footer-widget-area .widget:last-child {
  margin-bottom: 0;
}
.sm-footer-column ul {
  padding-left: 0;
  list-style: none;
}
.sm-footer-column li {
  margin: 0 0 .55rem;
}
.sm-footer-column .wp-block-heading,
.sm-footer-column .widget-title {
  color: var(--sm-hf-footer-heading, #fff);
}
.sm-footer-widget-area {
  margin-top: 1rem;
}
.sm-footer-bottom-inner {
  flex-wrap: wrap;
  gap: 1rem;
}
.sm-footer-bottom-widgets {
  flex-basis: 100%;
}
.sm-footer-bottom-widgets .widget {
  margin: 0;
}
@media (max-width: 520px) {
  .sm-footer-main > .sm-footer-column,
  .sm-footer-main > .sm-footer-brand {
    min-width: 0;
    width: 100%;
  }
}


/* SeaKnot Marine 1.8.3: accessible desktop and mobile submenu toggles */
.sm-primary-nav li.menu-item-has-children {
  position: relative;
}
.sm-primary-nav li.menu-item-has-children > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.sm-primary-nav .sm-submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: 0 0 0 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  vertical-align: middle;
}
.sm-primary-nav .sm-submenu-toggle svg {
  display: block;
  width: 11px;
  height: 8px;
  transition: transform .2s ease;
}
.sm-primary-nav li:hover > .sm-submenu-toggle svg,
.sm-primary-nav li:focus-within > .sm-submenu-toggle svg,
.sm-primary-nav li.sm-submenu-open > .sm-submenu-toggle svg {
  transform: rotate(180deg);
}
.sm-primary-nav li.menu-item-has-children > .sub-menu {
  display: none;
}
.sm-primary-nav li.menu-item-has-children:hover > .sub-menu,
.sm-primary-nav li.menu-item-has-children:focus-within > .sub-menu,
.sm-primary-nav li.menu-item-has-children.sm-submenu-open > .sub-menu {
  display: block;
}
@media (max-width: 780px) {
  .sm-site-header .sm-primary-nav li.menu-item-has-children {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    align-items: center;
  }
  .sm-site-header .sm-primary-nav li.menu-item-has-children > a {
    min-width: 0;
    padding-right: 8px;
  }
  .sm-site-header .sm-primary-nav .sm-submenu-toggle {
    width: 38px;
    height: 42px;
    margin: 0;
    color: #fff;
  }
  .sm-site-header .sm-primary-nav .sm-submenu-toggle svg {
    width: 13px;
    height: 9px;
  }
  .sm-site-header .sm-primary-nav li.menu-item-has-children > .sub-menu {
    display: none;
    grid-column: 1 / -1;
    position: static;
    min-width: 0;
    width: 100%;
    padding: 0 0 6px 14px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .sm-site-header .sm-primary-nav li.menu-item-has-children.sm-submenu-open > .sub-menu {
    display: block;
  }
  .sm-site-header .sm-primary-nav li.menu-item-has-children:hover > .sub-menu,
  .sm-site-header .sm-primary-nav li.menu-item-has-children:focus-within > .sub-menu {
    display: none;
  }
  .sm-site-header .sm-primary-nav li.menu-item-has-children.sm-submenu-open:hover > .sub-menu,
  .sm-site-header .sm-primary-nav li.menu-item-has-children.sm-submenu-open:focus-within > .sub-menu {
    display: block;
  }
  .sm-site-header .sm-primary-nav .sub-menu a {
    padding: 11px 10px;
    white-space: normal;
  }
}

/* SeaKnot Marine v1.8.5 — consolidated tablet and responsive refinements */
@media (min-width: 781px) and (max-width: 1050px) {
  /* Footer: brand and contact share the first row; service/location columns sit below. */
  .sm-site-footer .sm-footer-main {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row;
    align-items: start;
    column-gap: 36px;
    row-gap: 30px;
    padding-top: 48px;
    padding-bottom: 42px;
  }
  .sm-site-footer .sm-footer-main > .sm-footer-brand {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: auto !important;
    min-width: 0;
  }
  .sm-site-footer .sm-footer-main > .sm-footer-column:last-child {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: auto !important;
    min-width: 0;
  }
  .sm-site-footer .sm-footer-main > .sm-footer-column:not(:last-child) {
    grid-row: 2 !important;
    min-width: 0;
    width: auto !important;
  }
  .sm-site-footer .sm-footer-brand p { max-width: 48ch; }
  .sm-site-footer .sm-footer-main p,
  .sm-site-footer .sm-footer-main li,
  .sm-site-footer .sm-footer-main a {
    text-align: left;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .sm-site-footer .sm-footer-title { line-height: 1.35; }

  /* Service cards: avoid three cramped cards across tablet widths. */
  .sm-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .sm-service-card { min-width: 0; }

  /* Managed hero: keep the heading and copy clear of the sticky header. */
  .sm-managed-hero .sm-hero-inner {
    padding-top: 148px;
    padding-bottom: 72px;
    min-height: 0;
  }
  .sm-managed-hero .sm-hero-copy {
    width: min(100%, 760px);
    max-width: 760px;
  }
  .sm-managed-hero .sm-hero-copy h1 {
    max-width: 100%;
    line-height: 1.06;
    overflow-wrap: break-word;
    text-wrap: balance;
  }
}

/* Tablet/small-screen content should never force horizontal scrolling. */
.sm-footer-main,
.sm-footer-main > *,
.sm-service-grid > * { min-width: 0; }
.sm-footer-main p,
.sm-footer-main a,
.sm-footer-main li { overflow-wrap: anywhere; }

@media (min-width: 521px) and (max-width: 780px) {
  .sm-site-footer .sm-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px 22px;
    padding-top: 42px;
    padding-bottom: 36px;
  }
  .sm-site-footer .sm-footer-main > .sm-footer-brand { grid-column: 1 / -1 !important; }
  .sm-site-footer .sm-footer-main > .sm-footer-column { grid-column: auto !important; }
  .sm-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .sm-managed-hero .sm-hero-inner { padding-block: 88px 58px; }
  .sm-managed-hero .sm-hero-copy { width: 100%; max-width: 100%; }
}

@media (max-width: 520px) {
  .sm-site-footer .sm-footer-main { grid-template-columns: minmax(0, 1fr) !important; }
  .sm-site-footer .sm-footer-main > .sm-footer-brand,
  .sm-site-footer .sm-footer-main > .sm-footer-column { grid-column: auto !important; grid-row: auto !important; }
  .sm-service-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .sm-managed-hero .sm-hero-inner { padding-block: 68px 48px; }
}



/* v1.8.6 navigation toggle correction:
   The Services anchor remains a normal page link. The adjacent arrow button
   independently toggles the submenu and can close it even while hovered/focused. */
.sm-primary-nav li.menu-item-has-children > .sub-menu {
  display: none;
}
.sm-primary-nav li.menu-item-has-children:hover:not(.sm-submenu-closed) > .sub-menu,
.sm-primary-nav li.menu-item-has-children:focus-within:not(.sm-submenu-closed) > .sub-menu,
.sm-primary-nav li.menu-item-has-children.sm-submenu-open > .sub-menu {
  display: block;
}
.sm-primary-nav li.menu-item-has-children.sm-submenu-closed > .sub-menu {
  display: none !important;
}
.sm-primary-nav li.menu-item-has-children.sm-submenu-closed > .sm-submenu-toggle svg {
  transform: rotate(0deg);
}
.sm-primary-nav li.menu-item-has-children.sm-submenu-open > .sm-submenu-toggle svg {
  transform: rotate(180deg);
}
