/*
Theme Name: Synergy Marine
Description: Raceboats, workshop services and a WooCommerce storefront.
Version: 0.5.21
Requires PHP: 7.4
Text Domain: synergy-marine
*/

@font-face {
  font-family: Inter;
  src: url("assets/fonts/Inter-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("assets/fonts/Inter-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root{--navy:#101c30;--navy2:#182a43;--red:#c62230;--paper:#f4f5f6;--ink:#172033}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,Arial,sans-serif;color:var(--ink);background:#dce2e8}a{color:inherit;text-decoration:none}.header{height:90px;background:#0b1729;display:flex;align-items:center;justify-content:space-between;padding:0 max(5%,calc((100% - 1260px)/2));position:relative;z-index:10}.brand img{width:235px;max-height:70px;object-fit:contain}.header nav{display:flex;align-items:center;gap:28px}.header nav a{color:#e9edf3;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.055em}.header nav a:hover{color:#ff6870}.nav-cta{background:var(--red);padding:13px 17px}.menu{display:none}.hero{min-height:610px;background:#14243b;position:relative;overflow:hidden;color:#fff;display:flex;align-items:center}.hero-photo{position:absolute;inset:0 0 0 38%;background:linear-gradient(115deg,rgba(13,26,43,.2),rgba(13,26,43,.12)),repeating-linear-gradient(135deg,#273c54 0,#273c54 24px,#304860 24px,#304860 48px);clip-path:polygon(13% 0,100% 0,100% 100%,0 100%)}.placeholder-label{position:absolute;top:50%;left:25%;right:8%;text-align:center;border:1px dashed #b6c6d7;padding:32px 12px;font-size:13px;letter-spacing:.14em;color:#e3eaf1}.hero-content{position:relative;z-index:2;max-width:720px;margin-left:max(5%,calc((100% - 1260px)/2));padding:80px 0}.eyebrow{font-size:12px;font-weight:800;letter-spacing:.18em;text-transform:uppercase}.hero h1,h2,h3{letter-spacing:-.055em}h1{font-size:clamp(50px,7vw,104px);line-height:.97;margin:28px 0}h1 em{font-style:normal;color:#f0f3f8}.hero-content>p:not(.eyebrow){font-size:17px;line-height:1.7;max-width:500px;color:#e3eaf1}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:35px}.btn{display:inline-block;padding:17px 24px;text-transform:uppercase;font-size:12px;letter-spacing:.07em;font-weight:800}.red{background:var(--red);color:white}.outline{border:1px solid #a9b7c8;color:white}.white{background:white;color:var(--navy)}.hero-stripe{position:absolute;bottom:0;right:12%;width:140px;height:9px;background:var(--red);transform:skewX(-35deg)}.section{max-width:1260px;margin:auto;padding:90px 5%}.red-text{color:var(--red)}h2{font-size:clamp(32px,4.2vw,58px);line-height:1.05;margin:15px 0 25px;font-weight:900}.lead{max-width:780px;color:#5e6877;line-height:1.8;font-size:17px}.services{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:45px}.service{border:1px solid #e3e6ea;background:white}.photo{position:relative;display:grid;place-items:center;min-height:235px;background:linear-gradient(145deg,#40556d,#15273d);overflow:hidden}.photo:before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(145deg,transparent 0,transparent 34px,rgba(255,255,255,.035) 34px,rgba(255,255,255,.035) 36px)}.photo span{position:relative;border:1px dashed #bdc8d6;color:#e6edf5;padding:18px;text-align:center;font-size:11px;letter-spacing:.11em;max-width:80%}.ph-comp{background:linear-gradient(145deg,#54606c,#242e38)}.ph-print{background:linear-gradient(145deg,#36485a,#111c2b)}.service-body{padding:25px}.index{color:var(--red);font-size:11px;letter-spacing:.14em;font-weight:800}.service h3,.fleet h3{font-size:23px;margin:12px 0}.service p{color:#687381;font-size:14px;line-height:1.7;min-height:75px}.service a{font-size:12px;text-transform:uppercase;font-weight:800;color:var(--red)}.dark-section{background:var(--navy);color:#fff}.section-head{display:flex;align-items:end;justify-content:space-between;gap:30px}.section-head>p{max-width:320px;color:#8c9aab;line-height:1.6}.fleet{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:24px}.fleet .photo{min-height:220px}.fleet p{color:#b1bdcc;font-size:13px}.fine{font-size:11px;color:#a2acb9}.feature{display:grid;grid-template-columns:1.1fr 1fr;gap:70px;align-items:center}.feature .photo{min-height:390px}.feature p:not(.eyebrow){line-height:1.8;color:#637082;margin-bottom:30px}.shop-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:24px}.shop-grid>div{padding:34px 25px;background:#edf0f4;font-size:18px;font-weight:800}.shop-grid span{float:right;color:var(--red)}.news{background:#f3f5f7}.news .section>p:not(.eyebrow){color:#6e7784}.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:35px}.news-grid article{background:white;padding:28px;border-top:5px solid var(--red)}.news-grid span{font-size:11px;color:var(--red);font-weight:800}.news-grid h3{font-size:19px}.contact{background:var(--red);color:#fff}.contact-inner{display:flex;align-items:center;justify-content:space-between;gap:35px;padding-bottom:40px}.contact p{max-width:560px;line-height:1.7}.contact>.fine{padding:0 5% 20px;margin:0;color:#ffe4e7}footer{background:#0b1729;color:#a8b5c6;padding:30px 5%;display:flex;justify-content:space-between;align-items:center;gap:20px;font-size:12px}footer img{width:160px}footer a{color:white}@media(max-width:900px){.header{height:78px}.brand img{width:195px}.menu{display:block;background:none;border:0;color:white;font-size:27px;cursor:pointer}.header nav{display:none;position:absolute;top:78px;left:0;right:0;background:#0b1729;padding:20px 5%;flex-direction:column;align-items:stretch}.header nav.open{display:flex}.hero{min-height:580px}.hero-photo{inset:0;clip-path:none;opacity:.38}.hero-content{padding:65px 5%;margin:0}.services,.fleet,.shop-grid,.news-grid{grid-template-columns:1fr 1fr}.feature{grid-template-columns:1fr;gap:25px}.section{padding:65px 5%}}@media(max-width:580px){.services,.fleet,.shop-grid,.news-grid{grid-template-columns:1fr}.section-head,.contact-inner{display:block}.hero h1{font-size:52px}.hero-photo .placeholder-label{left:10%;right:10%}.service p{min-height:0}footer{flex-wrap:wrap}}
.skip-link{position:absolute;left:1rem;top:1rem;transform:translateY(-200%);background:white;padding:.75rem;z-index:100}.skip-link:focus{transform:none}:focus-visible{outline:3px solid #db4d57;outline-offset:4px}.header nav ul{display:flex;gap:22px;list-style:none;padding:0;margin:0}.header .menu{font:inherit;color:white}.hero h1,.section>h2,.contact h2{text-transform:uppercase}.hero-photo img,.photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.hero-photo::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#14243b 0%,transparent 70%)}.fleet .btn{margin-top:22px}.entry h1{font-size:clamp(36px,6vw,72px)}.entry h2{font-size:clamp(25px,4vw,40px)}.entry p,.entry li{line-height:1.55}.entry img{max-width:100%;height:auto}.entry-photo{margin:0 0 1.25rem}.entry a:not(.button):not(.btn){text-decoration:underline;text-underline-offset:3px}.entry article+article{margin-top:2rem}.header nav .current-menu-item>a{color:#ff6870}@media(max-width:900px){.header nav ul{flex-direction:column}.hero-photo::after{background:#14243b55}.header nav:focus-within{display:flex}}@media(scripting:none) and (max-width:900px){.header{height:auto;min-height:78px;flex-wrap:wrap}.header .menu{display:none}.header nav{display:flex;position:static;flex:1 0 100%}}

.fleet .fleet-photo{min-height:0;aspect-ratio:5/4;background:#14243b}.fleet .fleet-photo::before{display:none}.fleet-photo img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover}.fleet .photo:not(.fleet-photo){min-height:0;aspect-ratio:5/4}@media(min-width:901px){.fleet{grid-template-columns:repeat(4,minmax(0,1fr))}}
.hero-photo--ok img{display:block;width:100%;height:100%;object-fit:cover;object-position:52% center}.hero-photo--ok::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#14243b 0%,transparent 72%)}@media(max-width:900px){.hero-photo--ok::after{background:#14243b35}}
.raceboat-photo{aspect-ratio:4/3;min-height:0}.raceboat-photo::before{display:none}.raceboat-photo img{display:block;width:100%;height:100%;object-fit:contain}
@media(min-width:901px){.services{grid-template-columns:repeat(4,minmax(0,1fr))}}

.raceboats-menu{position:relative}.raceboats-menu summary{cursor:pointer;color:#e9edf3;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.055em}.raceboats-links{position:absolute;top:100%;left:0;min-width:215px;padding:8px;background:#0b1729;border:1px solid #40556d;z-index:15}.raceboats-links a{display:block;padding:11px;white-space:nowrap}.raceboats-links a:hover,.raceboats-links a:focus-visible{background:#182a43}@media(max-width:900px){.raceboats-links{position:static;margin-top:8px}.header .menu{font:inherit}}@media(scripting:none) and (max-width:900px){.header{height:auto;min-height:78px;flex-wrap:wrap}.header>.menu{display:none}.header nav{display:flex;position:static;flex:1 0 100%}}

/* Type scale for the homepage and long-form pages. */
body { font-size: 14px; line-height: 1.55; }
p { margin-block: .25em calc(.25em + 8px); }
.hero h1 { font-size: clamp(40px, 5.5vw, 76px); margin: 20px 0; }
h2 { font-size: clamp(20px, 2.5vw, 29px); }
.boat-entry h1, .entry h1, .cadet-configurator h1 { font-size: clamp(24px, 3.3vw, 36px); margin-block: .4em .22em; }
.boat-entry h2, .entry h2, .cadet-configurator h2 { font-size: clamp(16px, 1.8vw, 20px); line-height: 1.2; margin-block: .7rem calc(.4rem + 2px); }
.service h3, .fleet h3, .news-grid h3, .cadet-configurator h3 { font-size: 16px; }
.hero-content > p:not(.eyebrow), .lead { font-size: 15px; }
.boat-entry > p:not(.lead), .entry > article > p { max-width: none; }
.entry p, .boat-entry p { max-width: none; }

.contact-page { max-width: 1100px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 6vw, 68px); }
.contact-page address { font-style: normal; line-height: 1.65; }
.enquiry-form { display: grid; gap: 8px; }
.enquiry-form label { margin-top: 6px; font-weight: 700; }
.enquiry-form label span { font-weight: 400; }
.enquiry-form input, .enquiry-form textarea { width: 100%; padding: 10px; border: 1px solid #9ba5b3; border-radius: 3px; font: inherit; }
.enquiry-form textarea { resize: vertical; }
.enquiry-form button { justify-self: start; margin-top: 8px; border: 0; cursor: pointer; }
.contact-notice { padding: 12px; background: #edf0f4; }
.workshop-map { margin-top: 40px; }
.workshop-map iframe { display: block; width: 100%; height: clamp(280px, 45vw, 390px); border: 0; background: #edf0f4; }
.workshop-map .actions { margin-top: 15px; }
@media (max-width: 680px) { .contact-layout { grid-template-columns: 1fr; } }

.section.boat-entry, .section.entry:not(.shop) { padding-block: clamp(24px, 4vw, 48px); }

.boat-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 31%); align-items: start; gap: clamp(20px, 3vw, 36px); }
.boat-description > p { max-width: none; }
.boat-specs { padding: 14px; background: #fff; border-top: 2px solid var(--red); font-size: .9rem; }
.boat-specs table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; line-height: 1.45; }
.boat-specs caption { padding-bottom: 7px; text-align: left; font-weight: 800; }
.boat-specs th, .boat-specs td { padding: 6px 4px 6px 0; vertical-align: top; border-bottom: 1px solid #dbe0e6; }
.boat-specs th { width: 42%; }
.boat-specs td { overflow-wrap: anywhere; }
.enquiry-button { margin-bottom: 8px; }
.cadet-configurator-link { margin-block: 12px 0; }
@media (max-width: 680px) {
    .boat-detail-grid { grid-template-columns: minmax(0, 1fr); }
}

.entry figure figcaption { font-style: italic; }
.btn.red { margin-block-start: 4px; }
.actions:has(> .btn.red) { padding-block-start: 4px; }
.actions > .btn.red { margin-block-start: 0; }
.enquiry-form .btn.red { margin-block-start: 12px; }

.site-footer { display: block; padding: 38px 5% 20px; }
.footer-columns, .footer-bottom { max-width: 1140px; margin-inline: auto; }
.footer-columns { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, 240px); gap: 22px 24px; }
.site-footer .footer-logo { display: block; width: 220px; max-width: 100%; height: auto; margin-bottom: 16px; }
.footer-contact address { color: #d5dce6; font-style: normal; line-height: 1.6; margin-bottom: 9px; }
.footer-contact > a { display: block; width: fit-content; padding-block: 2px; overflow-wrap: anywhere; }
.footer-label { color: #fff; font-size: 14px; font-weight: 700; margin: 0 0 12px; }
.footer-social { display: grid; align-content: start; justify-items: start; gap: 6px; }
.footer-social .footer-label { margin-bottom: 2px; }
.footer-social-link { display: inline-flex; align-items: center; gap: 4px; }
.footer-social-link svg { flex: none; width: 28px; height: 28px; }
.footer-contact > a:hover, .footer-policies a:hover, .footer-social-link:hover, .footer-bottom a:hover { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; border-top: 1px solid #40556d; margin-top: 26px; padding-top: 13px; }
@media (max-width: 980px) { .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-columns { grid-template-columns: minmax(0, 1fr); } }
.footer-map { max-width: 280px; }
.footer-map .footer-label { margin-bottom: 8px; }
.footer-map iframe {
  display: block;
  width: 100%;
  height: 136px;
  border: 1px solid #40556d;
  border-radius: 4px;
  background: #dce2e8;
}
.footer-map a {
  display: inline-block;
  margin-top: 7px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 780px) { .footer-map { grid-column: 1 / -1; } }
.home-content .section { padding-block: 60px; }
.home-content .contact-inner { padding-bottom: 28px; }
@media (max-width: 900px) {
    .home-content .section { padding-block: 44px; }
    .home-content .contact-inner { padding-bottom: 24px; }
}

.used-boat-list { display: grid; gap: 20px; margin-top: 16px; }
.used-boat { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); background: #fff; border: 1px solid #dbe0e6; }
.used-boat figure { margin: 0; }
.used-boat figure img { display: block; width: 100%; height: auto; }
.used-boat-detail { padding: 18px; }
.used-boat-detail h2 { margin-top: 0; }
.used-boat-price { color: var(--red); font-weight: 800; }
.used-boat-detail ul { margin-block: 8px; padding-inline-start: 18px; }
.entry .used-boat-list article + article { margin-top: 0; }
@media (max-width: 680px) { .used-boat { grid-template-columns: minmax(0, 1fr); } }

.used-parts-title { margin-top: 24px; }
.used-parts .used-boat-detail h3 { margin-top: 0; }
.used-parts figure { padding: 10px; }
.used-parts figure img { max-width: 300px; margin-inline: auto; }

.home-header > .brand {
  position: relative;
  flex-shrink: 0;
  transform: translateY(39px);
}
.home-header > .brand img {
  display: block;
  width: clamp(280px, 28.5vw, 400px);
  max-height: none;
  height: auto;
}
@media (max-width: 900px) {
  .home-header > .brand { transform: translateY(24px); }
  .home-header > .brand img { width: clamp(205px, 69vw, 294px); }
  .home-header > nav { z-index: 1; }
}
@media (scripting: none) and (max-width: 900px) {
  .home-header > .brand { transform: none; }
}

.workshop-photo::before { display: none; }
.home-content .service .photo,
.home-content .feature .workshop-photo {
  aspect-ratio: 16 / 9;
  min-height: 0;
}
.home-content .service .photo img,
.home-content .feature .workshop-photo img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-content .service .raceboat-photo img { object-position: center bottom; }
.photo-gallery { margin-block: 26px; }
.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.photo-gallery-grid figure { margin: 0; }
.photo-gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #172638;
}
.photo-gallery-grid figcaption { margin-top: 6px; }
.photo-gallery-grid cite { display: block; font-style: italic; }
@media (max-width: 780px) {
  .photo-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .photo-gallery-grid { grid-template-columns: minmax(0, 1fr); }
}

.photo-zoom { display: block; position: relative; cursor: zoom-in; }
.photo > .photo-zoom { position: absolute; inset: 0; }
.photo-zoom:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.photo > .photo-zoom:focus-visible { outline-offset: -4px; color: white; }
.photo-viewer {
  border: 0;
  padding: 0;
  max-width: 92vw;
  max-height: 92vh;
  background: #0b1729;
  color: white;
  overflow: auto;
}
.photo-viewer::backdrop { background: rgb(5 12 22 / 87%); }
html:has(.photo-viewer[open]) { overflow: hidden; }
.photo-viewer-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  margin: 0;
}
.photo-viewer .photo-viewer-close button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: rgb(11 23 41 / 86%);
}
.photo-viewer-close button::before,
.photo-viewer-close button::after {
  content: '';
  grid-area: 1 / 1;
  width: 18px;
  height: 2px;
  background: currentColor;
}
.photo-viewer-close button::before { transform: rotate(45deg); }
.photo-viewer-close button::after { transform: rotate(-45deg); }
.photo-viewer-close button:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}
.photo-viewer-stage { position: relative; }
.photo-viewer-navigation:not([hidden]) {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.photo-viewer .photo-viewer-navigation button {
  display: grid;
  place-items: center;
  width: clamp(44px, 12%, 72px);
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: auto;
}
.photo-viewer-navigation button::before,
.photo-viewer-navigation button::after {
  content: '';
  grid-area: 1 / 1;
  pointer-events: none;
}
.photo-viewer-navigation button::before {
  width: 40px;
  height: 40px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: rgb(11 23 41 / 86%);
}
.photo-viewer-navigation button::after {
  width: 10px;
  height: 10px;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  transform: translateX(-2px) rotate(45deg);
}
.photo-viewer-navigation button[data-step="-1"]::after {
  transform: translateX(2px) rotate(-135deg);
}
.photo-viewer-navigation button:focus-visible { outline: none; }
.photo-viewer-navigation button:focus-visible::before {
  outline: 2px solid white;
  outline-offset: 2px;
}
@media (hover: hover) and (pointer: fine) {
  .photo-viewer-navigation button:not(:hover):not(:focus-visible) {
    opacity: 0;
  }
}
.photo-viewer-position {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.photo-viewer button {
  padding: 6px 12px;
  border: 1px solid currentColor;
  background: #0b1729;
  color: white;
  font: inherit;
  cursor: pointer;
}
.photo-viewer img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 76vh;
  margin-inline: auto;
  object-fit: contain;
}
.photo-viewer .photo-viewer-credit {
  margin: 0;
  padding: 6px 12px;
  font-style: italic;
}

.news-list { margin-block: 24px; }
.news-list .news-card {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding-block: 16px;
  border-bottom: 1px solid #b7c0ca;
}
.news-list .news-card + .news-card { margin-top: 0; }
.news-card-copy h2, .news-card-copy h3 { margin-top: 0; }
.news-card-copy p:last-child { margin-bottom: 0; }
.news-card-copy h2 a:hover, .news-card-copy h3 a:hover { color: var(--red); }
.news-thumbnail {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #14243b;
}
.news-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news-thumbnail img.news-thumbnail-logo { object-fit: contain; padding: 12%; }
.news-grid .news-card { padding: 0; }
.news-grid .news-card-copy { padding: 18px; }
.news-grid + p { margin-top: 20px; }
.news-article { display: flow-root; max-width: 1100px; margin-inline: auto; font-size: 16px; line-height: 1.7; }
.entry > article.news-article > p, .news-article .lead { max-width: none; }
.entry .news-article p, .entry .news-article li { line-height: 1.7; }
.news-article > h1 { line-height: 1.15; margin-bottom: 1rem; }
.news-article p { margin-block: 0 1rem; overflow-wrap: break-word; }
.news-article :where(figure.wp-block-image, .wp-block-image > figure, figure.entry-photo) {
  clear: both; width: min(100%, var(--news-photo-width, 560px)); max-width: 100%; margin: 1.5rem auto;
}
.news-article :where(.wp-block-image, .entry-photo) img { display: block; width: 100%; max-width: 100%; height: auto; }
.entry .is-style-news-thumbnail { --news-photo-width: 160px; }
.entry .is-style-news-small { --news-photo-width: 320px; }
.entry .is-style-news-third { --news-photo-width: 33.333333%; }
.entry .is-style-news-half { --news-photo-width: 50%; }
.entry .is-style-news-medium { --news-photo-width: 560px; }
.entry .is-style-news-two-thirds { --news-photo-width: 66.666667%; }
.entry .is-style-news-large { --news-photo-width: 75%; }
.entry .is-style-news-full { --news-photo-width: 100%; }
.entry figure.wp-block-image[class*="is-style-news-"] { width: min(100%, var(--news-photo-width)); }
/* Selected presets fill their image box even when the block had old pixel dimensions. */
.entry [class*="is-style-news-"] img { width: 100% !important; height: auto !important; }
.news-article figure.is-resized:not([class*="is-style-news-"]) { width: fit-content; }
.entry figure.alignleft { float: left; clear: left; width: min(100%, var(--news-photo-width, 420px)); max-width: calc(100% - 16rem); margin: .35rem 2rem 1.25rem 0; }
.entry figure.alignright { float: right; clear: right; width: min(100%, var(--news-photo-width, 420px)); max-width: calc(100% - 16rem); margin: .35rem 0 1.25rem 2rem; }
.news-article figure.aligncenter { float: none; clear: both; margin-inline: auto; }
.entry figure:is(.alignwide, .alignfull, .is-style-news-full),
.entry :is(.alignwide, .alignfull, .is-style-news-full) > figure {
  float: none; clear: both; width: 100%; max-width: 100%; margin: 1.75rem 0;
}
.news-article figcaption { margin-top: .65rem; font-size: 14px; line-height: 1.5; color: #4b586b; }
.news-article > h2, .news-article > h3 { clear: both; }
.news-article .news-back-link { clear: both; padding-top: 1rem; }
.page-article { display: flow-root; }
.entry :where(figure.wp-block-image, figure.entry-photo)[class*="is-style-news-"] { width: min(100%, var(--news-photo-width)); max-width: 100%; }
.entry figure.wp-block-image.aligncenter { float: none; clear: both; margin-inline: auto; }
.entry .wp-block-image img { display: block; max-width: 100%; height: auto; }
.entry .wp-block-image figcaption { margin-top: .65rem; font-size: 14px; line-height: 1.5; color: #4b586b; }
@media (max-width: 680px) {
  .entry figure:is(.alignleft, .alignright) { float: none; clear: both; max-width: 100%; margin: 1.25rem auto; }
  .entry figure:is(.alignwide, .alignfull, .is-style-news-full) { margin-inline: 0; }
}
@media (max-width: 560px) {
  .news-list .news-card { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

/* 3D printing services */
.printing-split,
.printing-benefits {
  display: grid;
  gap: clamp(16px, 3vw, 36px);
  align-items: start;
}
.printing-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.printing-intro { align-self: center; }
.printing-intro .lead { font-weight: 650; color: var(--ink); }
.printing-split figure { margin: 0; }
.printing-split img { display: block; width: 100%; height: auto; }
.printing-section { margin-top: clamp(22px, 4vw, 44px); }
.printing-section > p { max-width: none; }
.printing-benefits {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
  margin-top: 14px;
}
.printing-benefits > div {
  background: var(--paper);
  border-top: 3px solid var(--red);
  padding: 14px 16px;
}
.printing-benefits h3 { margin-top: 0; }
.printing-content p a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
.printing-case,
.printing-quote { padding: clamp(16px, 3vw, 28px); }
.printing-case { background: var(--navy); color: #fff; }
.printing-case .eyebrow { color: #d7e3f3; }
.printing-quote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  background: var(--paper);
}
.printing-quote > div { flex: 1 1 34rem; }
.printing-quote h2 { margin-top: 0; }
.printing-quote .printing-note { font-size: .9em; }
@media (max-width: 720px) {
  .printing-split,
  .printing-benefits { grid-template-columns: minmax(0, 1fr); }
}

/* Clear action buttons and boat design/pricing signposts. */
.btn:not(.red):not(.white):not(.outline):not(.cadet-share-button) { background:var(--navy); color:#fff; border:1px solid var(--navy); }
a.btn:hover { filter:brightness(1.12); }
.boat-designer-callout { display:flex; align-items:center; gap:18px; margin:24px 0; padding:24px; background:var(--navy); color:#fff; border-top:5px solid var(--red); }
.boat-designer-callout svg { width:52px; flex:0 0 52px; color:#ccd9e8; }
.boat-designer-callout .eyebrow { color:#ff8c94; font-size:10px; margin:0 0 8px; }
.boat-designer-callout h2 { color:#fff; font-size:20px; line-height:1.2; letter-spacing:-.025em; margin:0 0 10px; }
.boat-designer-callout p:not(.eyebrow) { color:#dbe4ee; font-size:13px; line-height:1.55; margin:0 0 16px; }
.boat-designer-callout .btn { font-size:11px; padding:13px 16px; text-decoration:none; }
.boat-specs .boat-designer-callout { padding:20px 16px; gap:12px; }
.boat-specs .boat-designer-callout svg { width:36px; flex-basis:36px; }
@media(max-width:380px) { .boat-designer-callout svg { display:none; } }

/* Responsive boat video. */
.boat-video { margin:32px 0; }
.boat-video-frame { position:relative; aspect-ratio:16 / 9; background:var(--navy); }
.boat-video-frame iframe { position:absolute; inset:0; display:block; width:100%; height:100%; border:0; }
.boat-video > p { font-size:12px; margin-top:10px; }
.boat-video > p a { text-decoration:underline; text-underline-offset:3px; }

.boat-design-notes { margin:20px 0 28px; padding:0 0 0 20px; border-left:3px solid var(--red); }
.boat-design-notes footer { display:block; background:transparent; padding:4px 0 0; color:#5e6877; font-size:12px; }

.hull-design-gallery .photo-gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.hull-design-gallery .photo-gallery-grid img { aspect-ratio:1292 / 727; object-fit:contain; background:#808080; }
@media(max-width:540px) { .hull-design-gallery .photo-gallery-grid { grid-template-columns:minmax(0,1fr); } }

/* Merlin photo layout: one large image and three matching thumbnails. */
.merlin-photo-header{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,1fr);gap:12px;margin:18px 0 30px;height:clamp(300px,38vw,560px)}
.merlin-photo-header .boat-figure{margin:0;min-height:0;overflow:hidden}
.merlin-photo-header .boat-figure img{display:block;width:100%;height:100%;object-fit:cover}
.merlin-photo-thumbnails{display:grid;grid-template-rows:repeat(3,minmax(0,1fr));gap:12px;min-height:0}
.merlin-carousel-controls{display:flex;justify-content:flex-end;gap:8px;margin:0 0 12px}
.merlin-carousel-controls button{background:#c9242c;color:white;border:0;border-radius:3px;width:40px;height:36px;font-size:28px;line-height:1;cursor:pointer}
.merlin-carousel-controls button:disabled{opacity:.35;cursor:default}
.photo-gallery-grid.merlin-carousel{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:12px}
.merlin-carousel figure{flex:0 0 calc((100% - 32px)/3);margin:0;scroll-snap-align:start}
.merlin-carousel img{width:100%;aspect-ratio:16/10;object-fit:contain;display:block;background:#808080}
@media(max-width:640px){.merlin-photo-header{height:auto;grid-template-columns:1fr}.merlin-photo-main{aspect-ratio:4/3}.merlin-photo-thumbnails{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:none;gap:8px}.merlin-photo-thumbnails figure{aspect-ratio:4/3}.merlin-carousel figure{flex-basis:85%}}

.merlin-photo-header .photo-zoom{height:100%;width:100%}

.hull-design-gallery .photo-gallery-grid img{aspect-ratio:15/8;object-fit:cover;height:auto}

/* Custom WordPress navigation, including child pages and contact button. */
.header nav .primary-links{display:flex;align-items:center;gap:28px;list-style:none;margin:0;padding:0}
.header nav .primary-links li{position:relative;list-style:none;margin:0}
.header nav .primary-links>li{display:flex;align-items:center}
.header nav .primary-links .sub-menu{display:none;position:absolute;top:100%;left:0;min-width:245px;margin:0;padding:12px 0;background:#0b1729;box-shadow:0 8px 20px #0004;z-index:30}
.header nav .primary-links .sub-menu a{display:block;padding:10px 16px;line-height:1.4}
.header nav .primary-links li.submenu-open>.sub-menu{display:block}
.header nav .submenu-toggle{display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;color:#fff;cursor:pointer;padding:14px 8px;line-height:1}
.header nav .submenu-toggle::after{content:"";border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid currentColor}
.header nav .submenu-toggle[aria-expanded="true"]::after{transform:rotate(180deg)}
.header nav .submenu-toggle:focus-visible{outline:2px solid white;outline-offset:-3px}
.header nav li.nav-cta{background:transparent;padding:0;display:flex;align-items:center}
.header nav li.nav-cta>a{display:inline-flex;align-items:center;justify-content:center;background:var(--red);color:#fff;padding:13px 17px;line-height:1.2}
.header nav li.nav-cta>a:hover,.header nav li.nav-cta>a:focus{background:#a91d29;color:#fff}
@media(max-width:900px){
.header nav .primary-links{flex-direction:column;align-items:stretch;gap:16px}
.header nav .primary-links>li{flex-wrap:wrap}
.header nav .primary-links .sub-menu{position:static;flex-basis:100%;min-width:0;box-shadow:none;padding:4px 0 4px 12px}
.header nav .submenu-toggle{margin-left:auto;min-width:44px;min-height:44px}
}

/* Keep the header aligned when navigating between short and long pages. */
html{overflow-y:scroll}

/* Admin-selected homepage action photos keep the original banner layout. */
.hero-slideshow .hero-slide{position:absolute;inset:0;display:block;width:100%;height:100%;object-position:52% center;opacity:0;transition:opacity 1.2s ease-in-out;object-fit:cover}
.hero-slideshow .hero-slide.is-active{opacity:1}
@media(prefers-reduced-motion:reduce){.hero-slideshow .hero-slide{transition:none}}

/* Native page-editor blocks retain the homepage layout. */
.home-visual .synergy-home-layout{margin:0}
.home-visual .wp-block-columns.services,.home-visual .wp-block-columns.fleet{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:0}
.home-visual .wp-block-column{min-width:0;margin:0}
.home-visual .wp-block-image.photo{margin:0}
.home-visual .wp-block-image.photo img{height:100%;width:100%;object-fit:cover}
.home-visual .wp-block-buttons{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.home-visual .wp-block-button__link{display:inline-block;border-radius:0;padding:17px 24px;font:700 12px/1.4 Inter,Arial,sans-serif;letter-spacing:.07em;text-transform:uppercase;text-decoration:none}
.home-visual .synergy-button-red .wp-block-button__link{background:var(--red);color:white}
.home-visual .synergy-button-outline .wp-block-button__link{background:transparent;border:1px solid #a9b7c8;color:white}
.home-visual .synergy-button-white .wp-block-button__link{background:white;color:var(--red)}
.home-visual .contact-inner>.wp-block-group{max-width:720px}
.home-visual .contact-inner>.wp-block-buttons{margin:0}
.home-visual .dark-section :is(h2,h3,p,a){color:inherit}
.home-visual .service-body>:first-child{margin-top:0}
.home-visual .service-body>:last-child{margin-bottom:0}
.home-visual .wp-block-group.section>h2,.home-visual .contact h2{text-transform:uppercase}
@media(max-width:900px){.home-visual .wp-block-columns.services,.home-visual .wp-block-columns.fleet{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){.home-visual .wp-block-columns.services,.home-visual .wp-block-columns.fleet{grid-template-columns:minmax(0,1fr)}}

.footer-policies { display: grid; align-content: start; justify-items: start; gap: 12px; padding-top: 2px; }
.footer-policies a { line-height: 1.5; }
.policy-page article { max-width: none; margin-inline: auto; }
.policy-page h2 { margin-top: 1.6rem; }
.policy-page p { line-height: 1.65; overflow-wrap: anywhere; }
