/* Gloss Boats — rebuilt from the Squarespace design.
   Brand colours are set once here so they are easy to change later. */
:root {
  --navy: #023374;
  --periwinkle: #8ba4ea;
  --sky: #cce6ff;
  --white: #fff;
  --black: #000;
  --ink: #000;
  --head: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --radius: 8px;
  --wrap: 1320px;
  --pad: clamp(20px, 4vw, 40px);
  --header-h: 99px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-weight: 300; font-size: 17px; line-height: 1.6; letter-spacing: -0.03em; color: var(--ink); background: var(--sky); }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; text-transform: capitalize; margin: 0 0 .5em; line-height: 1.05; }
h1 { font-size: clamp(38px, 4.1vw, 58.5px); letter-spacing: -0.04em; }
h2 { font-size: clamp(32px, 3.35vw, 48px); letter-spacing: -0.04em; }
h3 { font-size: clamp(28px, 2.65vw, 37.7px); letter-spacing: -0.04em; }
h4 { font-size: clamp(21px, 1.9vw, 27.4px); letter-spacing: -0.04em; line-height: 1.08; }
h1 strong, h2 strong, h3 strong, h4 strong { font-weight: 700; }
.center { text-align: center; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.wrap.narrow { max-width: 960px; }
.section { padding: clamp(60px, 7vw, 100px) 0; position: relative; }

/* ---------- colour themes (match Squarespace section themes) ---------- */
.t-light { background: var(--sky); color: var(--black); }
.t-light h2 { color: var(--periwinkle); }
.t-light h3, .t-light h4 { color: var(--navy); }
.t-light h1 { color: var(--black); }
.t-white { background: var(--white); }
.t-white h1, .t-white h2 { color: var(--periwinkle); }
.t-white h3, .t-white h4 { color: var(--navy); }
.t-dark { background: var(--navy); color: var(--white); }
.t-dark h1, .t-dark h2, .t-dark h3, .t-dark h4 { color: var(--white); }
.t-bright { background: var(--periwinkle); color: var(--white); }
.t-bright h1 { color: var(--white); }
.t-faq { background: var(--white); color: var(--periwinkle); }
.t-faq h2, .t-faq h4 { color: var(--periwinkle); }
.t-gradient { color: var(--white); background: var(--periwinkle); overflow: hidden; isolation: isolate; }
.t-gradient::before { content: ""; position: absolute; inset: -40%; z-index: -1;
  background: radial-gradient(circle at 20% 30%, rgba(2,51,116,.55), transparent 45%), radial-gradient(circle at 80% 70%, rgba(204,230,255,.55), transparent 40%), radial-gradient(circle at 60% 20%, rgba(139,164,234,1), transparent 50%);
  animation: drift 18s ease-in-out infinite alternate; }
.t-gradient h2, .t-gradient h3, .t-gradient h4 { color: var(--white); }
@keyframes drift { to { transform: translate(8%, -6%) rotate(12deg); } }
@media (prefers-reduced-motion: reduce) { .t-gradient::before { animation: none; } }
.t-footer { background: var(--black); color: var(--white); }
.t-footer h4, .t-footer strong { color: var(--periwinkle); }

/* ---------- buttons ---------- */
.btn { display: inline-block; font-family: var(--body); font-weight: 300; font-size: 15.3px; letter-spacing: -0.03em; line-height: 1.3; padding: 12px 30.6px; border-radius: var(--radius); background: var(--periwinkle); color: var(--white); text-decoration: none; border: 0; cursor: pointer; transition: opacity .2s; }
.btn:hover { opacity: .85; }
.btn-outline { background: transparent; border: 2px solid var(--periwinkle); color: var(--periwinkle); font-size: 17px; padding: 8.5px 23.8px; }
.btn-block { display: block; width: 100%; text-align: center; padding: 18px; }
.btn-sm { padding: 12px 30px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(204,230,255,.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.header-inner { height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--pad); max-width: 1440px; margin: 0 auto; }
.main-nav { display: flex; gap: 24px; font-size: 15.3px; }
.main-nav a { text-decoration: none; }
.main-nav a:hover, .main-nav a.active { text-decoration: underline; text-underline-offset: 4px; }
.nav-folder { position: relative; }
.nav-sub { position: absolute; top: 100%; left: -16px; padding: 12px 16px; background: var(--white); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.08); display: none; min-width: 200px; }
.nav-sub a { display: block; padding: 6px 0; }
.nav-folder:hover .nav-sub, .nav-folder:focus-within .nav-sub { display: block; }
.logo img { height: 72px; width: auto; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.social svg { width: 22px; height: 22px; fill: currentColor; display: block; }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; justify-self: end; cursor: pointer; padding: 8px; }
.burger span { display: block; height: 2px; background: #000; margin: 7px 0; transition: transform .2s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.mobile-menu { display: none; }

/* ---------- generic layouts ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); }
.split-intro { display: grid; grid-template-columns: 0.75fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.lead { font-size: 20.5px; line-height: 1.55; }
.eyebrow { font-weight: 600; margin-bottom: 1em; }
ul { padding-left: 1.2em; margin: 0 0 1em; }
li p { margin: 0 0 .25em; }

/* home hero */
.hero { padding-top: clamp(80px, 12vw, 150px); padding-bottom: 70px; overflow: hidden; }
.hero h1 { max-width: 68%; }
.hero hr { border: 0; border-top: 1px solid rgba(255,255,255,.6); margin: 50px calc(-1 * var(--pad)) 40px; }
.hero-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
.hero-row p { max-width: 36%; }
.bubbles span { position: absolute; border-radius: 50%; background: rgba(255,255,255,.18); bottom: -40px; animation: rise linear infinite; }
@keyframes rise { to { transform: translateY(-900px); opacity: 0; } }

.video-band { height: 315px; position: relative; overflow: hidden; background: var(--navy); }
.video-band video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.media-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.media-split img { width: 100%; height: 100%; max-height: 440px; object-fit: cover; }

/* full-bleed image split used on service pages */
.bleed-split { display: grid; grid-template-columns: 1fr 1fr; padding: 0; min-height: 560px; }
.bleed-split .text { padding: clamp(60px, 6vw, 81px) var(--pad) clamp(60px, 6vw, 90px) max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad))); }
.bleed-split .text h4 { margin-top: 1.4em; }
.bleed-split .text .btn { margin-top: 30px; }
.bleed-split .img { position: relative; min-height: 360px; }
.bleed-split .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.image-band { height: 576px; background-size: cover; background-position: center; }
.image-band.short { height: 481px; }

/* services carousel */
.carousel { position: relative; }
.carousel-track { display: flex; gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.carousel-track::-webkit-scrollbar { display: none; }
.svc-card { flex: 0 0 calc((100% - 60px) / 3); scroll-snap-align: start; background: var(--white); padding: 20px; display: flex; flex-direction: column; }
.svc-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 24px; }
.svc-card h3 { font-size: clamp(28px, 2.75vw, 39.5px); color: var(--black) !important; }
.svc-card p { flex: 1; }
.svc-card .btn { align-self: flex-start; margin-top: 20px; }
.carousel-nav { display: flex; justify-content: center; gap: 12px; margin-top: 40px; }
.carousel-nav button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--periwinkle); color: #fff; font-size: 20px; cursor: pointer; }

/* why choose */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.why-intro { align-self: center; padding-right: 20px; }
.why-intro h3 { color: var(--navy); }
.why-card { border: 1px solid var(--periwinkle); border-radius: 14px; padding: 40px 50px; box-shadow: 2px 2px 3px rgba(139,164,234,.35); }
.why-card img { width: 111px; height: 111px; margin-bottom: 14px; }
.why-card h4 { color: var(--periwinkle) !important; }

/* stats CTA */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 40px auto 50px; max-width: 1000px; }
.stats h2 { font-size: clamp(36px, 3.4vw, 48px); margin-bottom: .15em; }
.cta-text { margin: 30px auto; }
.cta h4 { line-height: 1.15; }
.cta .btn { margin-top: 30px; }

/* FAQ */
.faq-list { margin-top: 40px; }
.faq-row { display: grid; grid-template-columns: 50px 1fr 1fr; gap: 30px; padding: 30px 0; border-bottom: 1px solid var(--periwinkle); align-items: start; }
.faq-row:last-child { border-bottom: 0; }
.faq-num { font-family: var(--head); font-weight: 700; font-size: 27px; }
.faq-q { margin: 0; }
.faq-a { color: var(--periwinkle); }

/* accordion */
.accordion { border-top: 1px solid currentColor; }
.acc-item { border-bottom: 1px solid currentColor; }
.acc-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 0; font-family: var(--head); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; text-transform: capitalize; line-height: 1.2; }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary i { width: 14px; height: 14px; position: relative; flex: none; }
.acc-item summary i::before, .acc-item summary i::after { content: ""; position: absolute; background: currentColor; left: 0; right: 0; top: 6px; height: 1.5px; transition: transform .2s; }
.acc-item summary i::after { transform: rotate(90deg); }
.acc-item[open] summary i::after { transform: rotate(0); }
.acc-body { padding: 0 0 20px; }

/* brands */
.brands { padding: 60px 0; }
.brands h3 { margin-bottom: 20px; }
.brand-strip { display: grid; grid-template-columns: repeat(9, 1fr); gap: 24px; align-items: center; }
.brand-strip img { width: 100%; height: auto; mix-blend-mode: multiply; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.55fr; gap: clamp(30px, 4vw, 60px); align-items: start; }
.contact-grid .phones { display: grid; gap: 14px; margin: 40px 0 60px; max-width: 330px; }
.form-panel { background: var(--navy); border-radius: 14px; padding: clamp(24px, 5vw, 80px); }
.form-card { background: var(--white); border-radius: 14px; padding: clamp(20px, 3vw, 30px); }
.form-card label, .form-card legend { display: block; font-size: 15px; margin-bottom: 6px; }
.form-card .req { color: #888; font-size: 13px; }
.field { margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-card input[type=text], .form-card input[type=email], .form-card input[type=tel], .form-card textarea { width: 100%; padding: 12px; border: 1px solid #a9a9a9; border-radius: var(--radius); font: inherit; letter-spacing: normal; background: #fff; }
.form-card textarea { min-height: 120px; resize: vertical; }
.form-card fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.form-card .choice { display: flex; gap: 8px; align-items: center; margin: 6px 0; font-size: 15px; }
.form-card .btn { margin-top: 6px; }
.form-card .hp { position: absolute; left: -9999px; }
.form-msg { margin-top: 12px; font-weight: 400; }
.form-msg.ok { color: #1a7f37; }
.form-msg.err { color: #b42318; }
.map-split { display: grid; grid-template-columns: 1.6fr 1fr; padding: 0; min-height: 700px; }
.map-split iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.map-split .text { padding: clamp(60px, 7vw, 122px) var(--pad); }
.map-split h4 { color: var(--periwinkle) !important; margin-top: 1.2em; }
.map-fallback { position: relative; background: #0b2c5c; min-height: 420px; }
.map-fallback iframe { position: absolute; inset: 0; }

/* articles */
.page-top { padding-top: 70px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 30px; margin-top: 50px; }
.post-card { text-decoration: none; display: flex; flex-direction: column; }
.post-img { aspect-ratio: 3/2; overflow: hidden; margin-bottom: 18px; background: var(--sky); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-img img { transform: scale(1.04); }
.post-card h3 { font-size: 26px; color: var(--navy); margin: 6px 0 10px; }
.post-meta { font-size: 14px; color: #555; }
.post-meta a { color: var(--navy); }
.read-more { margin-top: auto; color: var(--periwinkle); font-weight: 400; }
.post { max-width: 820px; }
.post h1 { color: var(--navy) !important; margin: 10px 0 30px; }
.post-body h2 { color: var(--periwinkle); margin-top: 1.4em; }
.post-body h3, .post-body h4 { color: var(--navy); margin-top: 1.4em; }
.post-body img, .post-video { margin: 30px 0; width: 100%; }
.post-body a { color: var(--navy); }
.post-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 70px; padding-top: 30px; border-top: 1px solid var(--periwinkle); }
.post-pager a { text-decoration: none; font-family: var(--head); font-weight: 700; color: var(--navy); }
.post-pager small { display: block; font-family: var(--body); font-weight: 300; color: #555; }
.post-pager .next { text-align: right; }

/* footer */
.site-footer { padding: 77px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr .8fr 1.3fr; gap: 30px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-social { display: flex; gap: 16px; }
.newsletter p { margin-bottom: 16px; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter-form input { flex: 1 1 200px; padding: 12px; border-radius: var(--radius); border: 1px solid #555; background: #111; color: #fff; font: inherit; }
.newsletter-form .form-msg { flex-basis: 100%; margin: 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-top: 60px; padding-top: 30px; border-top: 1px solid #333; }
.legal { font-size: 14px; margin: 0; }
.nzmia { width: 180px; height: auto; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .svc-card { flex-basis: calc((100% - 30px) / 2); }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-intro { grid-column: 1 / -1; }
  .brand-strip { grid-template-columns: repeat(5, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter { grid-column: 1 / -1; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  :root { --header-h: 76px; }
  .main-nav, .header-actions { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .logo img { height: 56px; }
  .burger { display: block; }
  .mobile-menu { position: fixed; inset: var(--header-h) 0 0 0; background: var(--sky); padding: 30px var(--pad); flex-direction: column; gap: 14px; font-family: var(--head); font-size: 28px; font-weight: 700; overflow-y: auto; }
  .mobile-menu a { text-decoration: none; }
  .mobile-menu .m-label { margin: 10px 0 0; font-size: 14px; font-family: var(--body); font-weight: 600; text-transform: uppercase; color: var(--navy); }
  .mobile-menu .m-sub { font-size: 22px; padding-left: 12px; }
  .mobile-menu .btn { font-family: var(--body); font-size: 17px; margin-top: 20px; text-align: center; }
  body.menu-open .mobile-menu { display: flex; }
  body.menu-open { overflow: hidden; }
  .two-col, .split-intro, .media-split, .bleed-split, .map-split, .stats, .faq-row, .post-grid { grid-template-columns: 1fr; }
  .faq-row { gap: 10px; }
  .hero h1 { max-width: none; }
  .hero-row { flex-direction: column; }
  .hero-row p { max-width: none; }
  .bleed-split .img { order: -1; }
  .image-band { height: 300px; }
  .svc-card { flex-basis: 86%; }
  .why-grid { grid-template-columns: 1fr; }
  .brand-strip { grid-template-columns: repeat(3, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* buttons on the bright periwinkle hero */
.t-bright .btn { background: var(--white); color: var(--navy); }
