/* Plain CSS. Edit these variables to change the shared design. */
:root {
  --gold: #bd903b;
  --gold-dark: #795719;
  --ink: #353535;
  --muted: #646464;
  --soft: #f6f5f2;
  --line: #dedbd5;
  --width: 1100px;
  --header-offset: 156px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-offset); }
body { margin: 0; color: var(--ink); background: #fff; font: 17px/1.65 Arial, Helvetica, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
iframe { width: 100%; border: 0; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--gold-dark); }
button, input, textarea { font: inherit; }
button, .button { touch-action: manipulation; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #27699c; outline-offset: 4px; }
h1, h2, h3, p, ul, figure { margin-top: 0; }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: clamp(34px, 4vw, 48px); }
h2 { font-size: 28px; }
h3 { font-size: 21px; }
p { margin-bottom: 1.25em; }
[hidden] { display: none !important; }
.container { width: min(var(--width), calc(100% - 48px)); margin-inline: auto; }
.section { padding-block: 68px; }
.section-muted { background: var(--soft); }
.section-heading { margin-bottom: 28px; font-size: clamp(28px, 3vw, 36px); font-weight: 500; }
.section-heading::after { content: ""; display: block; width: 48px; height: 3px; margin-top: 18px; background: var(--gold); }
.section-heading span { display: block; font-size: .7em; margin-bottom: 7px; }
.centered { text-align: center; max-width: 820px; margin-inline: auto; }
.centered::after { margin-inline: auto; }
.two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.align-center { align-items: center; }
.full-width { grid-column: 1 / -1; }
.button { display: inline-block; border: 0; padding: 12px 23px; background: var(--gold); color: #171207; text-decoration: none; font-size: 14px; font-weight: 700; line-height: 1.5; text-transform: uppercase; letter-spacing: .025em; }
.button:hover { background: #a77b2e; color: #fff; }
.button:disabled { opacity: .7; cursor: wait; }
.button-light { background: #fff; color: #47381f; }
.text-link { font-weight: 700; color: var(--gold-dark); }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; left: 12px; top: 12px; z-index: 100; padding: 10px 18px; background: white; color: black; }

/* Shared header and navigation */
.topbar { padding-block: 6px; background: var(--gold); color: #201807; font-size: 12px; font-weight: 700; }
.topbar a { text-decoration: none; display: inline-block; }
.topbar a:hover { text-decoration: underline; color: #000; }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; transition: box-shadow .25s ease; }
.header-inner { display: flex; align-items: center; gap: 48px; min-height: 132px; transition: min-height .25s ease, padding .25s ease; }
/* Reserve the logo column so desktop navigation stays in place as it shrinks. */
.brand { flex: 0 0 300px; }
.brand img { width: 300px; transition: width .25s ease; }
.site-header.is-compact { box-shadow: 0 2px 9px rgba(0, 0, 0, .12); }
.site-header.is-compact .header-inner { min-height: 72px; }
.site-header.is-compact .brand img { width: 145px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 25px; }
.main-nav a { padding-block: 12px; text-decoration: none; font-size: 14px; text-transform: uppercase; color: #5a5a5a; }
.main-nav a:hover, .main-nav a[aria-current] { color: #242424; box-shadow: inset 0 -2px var(--gold); }
.menu-toggle { display: none; border: 1px solid var(--line); background: white; color: var(--ink); padding: 9px 12px; }
.menu-toggle span { margin-left: 8px; }

/* Homepage hero. One persistent form; two photographs and titles. */
.hero { --hero-slide-duration: 7s; position: relative; min-height: 650px; color: #fff; background: #253441; isolation: isolate; }
.hero-slides, .hero-slide { position: absolute; inset: 0; z-index: -1; }
.hero-slides { overflow: hidden; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: rgba(10, 20, 33, .51); z-index: -1; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; z-index: -2; }
/* Gentle forward movement on the photo. Text and form remain still.
   JavaScript advances the slide when this animation finishes. */
.js .hero-slide.is-active .hero-photo { animation: hero-zoom var(--hero-slide-duration) linear both; }
.js .hero.is-paused .hero-slide.is-active .hero-photo { animation-play-state: paused; }
@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}
.hero-slide > .container { height: 100%; display: flex; align-items: center; }
.hero h1, .hero-title { width: 45%; margin: 0; font-size: clamp(30px, 3.8vw, 45px); font-weight: 400; line-height: 1.15; text-transform: uppercase; padding-block: 50px; }
.hero-content { display: flex; justify-content: flex-end; padding-top: 54px; padding-bottom: 80px; }
.enquiry-panel { width: 45%; padding: 26px 30px 20px; background: rgba(0, 0, 0, .77); }
.enquiry-panel h2 { font-size: 31px; text-transform: uppercase; font-weight: 400; margin-bottom: 17px; }
.hero-controls { position: absolute; bottom: 21px; left: 0; right: 0; display: flex; align-items: center; gap: 13px; }
.hero-controls button { border: 1px solid #ffffff80; background: #0006; color: #fff; min-width: 42px; min-height: 40px; padding: 4px 12px; font-size: 15px; }
.hero-controls button:hover { background: #000a; }

/* Forms also work as ordinary POST requests with JavaScript disabled. */
.contact-form label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.contact-form label span { font-weight: 400; }
.contact-form input:not([type=hidden]), .contact-form textarea { display: block; width: 100%; min-width: 0; border: 1px solid #c7c7c7; border-radius: 0; background: white; color: #222; padding: 9px 11px; margin-bottom: 17px; }
.contact-form textarea { resize: vertical; min-height: 104px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.form-trap { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form-status { font-size: 14px; line-height: 1.55; margin: 0; }
.form-status:not(:empty) { margin-top: 15px; padding: 12px; border: 1px solid currentColor; }
.contact-form.is-error .form-status { color: #a71f1f; background: #fff3f3; }
.contact-form.is-success .form-status { color: #12542b; background: #effcf3; }

/* Homepage content */
.coatings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; }
.coating { text-align: center; }
.coating img { width: 100%; max-width: 270px; margin-inline: auto; }
.coating h3 { margin: 18px 0 0; font-size: 16px; text-transform: uppercase; line-height: 1.5; }
.coating h3 span { display: block; }
.video-section { padding-block: 60px; background: linear-gradient(#00172155, #00172155), url("../images/video-background.jpg") center/cover; }
.video-frame { width: min(880px, 100%); min-height: 200px; margin-inline: auto; aspect-ratio: 16/9; background: #121212; }
.video-frame iframe { height: 100%; display: block; }
.video-file-fallback { height: 100%; min-height: 200px; padding: 24px; display: grid; align-content: center; justify-items: center; text-align: center; gap: 18px; color: #fff; }
.video-file-fallback p { margin: 0; font-size: clamp(20px, 3vw, 28px); }
.video-caption { margin: 18px 0 0; text-align: center; color: #fff; font-size: 15px; }
.video-caption a:hover { color: #efc775; }
.services-grid, .feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.service-number { display: block; font-size: 25px; color: var(--gold-dark); margin-bottom: 8px; }
.service-summary h3 { font-size: 17px; text-transform: uppercase; }
.service-summary h3 a { text-decoration: none; }
.service-summary p { color: var(--muted); font-size: 16px; }
.callout { background: var(--gold); padding-block: 30px; color: #211a0d; }
.callout .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.callout h2 { margin: 0; font-size: 24px; font-weight: 400; }
.callout h2 span { display: block; margin-top: 7px; font-size: 19px; }
.callout .button { flex-shrink: 0; }
.feature-card { display: flex; flex-direction: column; align-items: flex-start; }
.feature-card img { width: 100%; aspect-ratio: 500/368; object-fit: cover; margin-bottom: 23px; }
.feature-card h2 { font-size: 22px; margin-bottom: 13px; }
.feature-card p { font-size: 16px; color: var(--muted); }
.feature-card .text-link { margin-top: auto; }
.testimonials { background: linear-gradient(#101722d9, #101722d9), url("../images/testimonials-background.jpg") center/cover; color: white; }
.testimonials figure { margin: 0; }
.testimonials blockquote { margin: 0 0 18px; font-size: 20px; font-style: italic; }
.testimonials figcaption { font-size: 14px; color: #e0c181; }

/* About, services and contact pages */
.page-banner { min-height: 340px; display: grid; place-items: center; color: #fff; text-align: center; background-color: #675022; background-position: center; background-size: cover; }
.page-banner h1 { margin: 0; }
.about-banner { background-image: linear-gradient(#18150f88, #18150f88), url("../images/about-banner.jpg"); }
.services-banner { background-image: linear-gradient(#18150f88, #18150f88), url("../images/services-banner.jpg"); }
.image-stack { display: grid; gap: 28px; align-content: start; }
.image-stack img { width: 100%; }
.plain-list { padding-left: 21px; }
.plain-list li { padding-block: 3px; }
.plain-list li::marker { color: var(--gold-dark); }
.service-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 26px; padding: 0; list-style: none; margin-bottom: 28px; }
.service-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 40px; }
.team-member { border-top: 3px solid var(--gold); padding: 25px; background: var(--soft); text-align: center; }
.team-member h2 { font-size: 24px; margin-bottom: 9px; }
.team-member p { margin-bottom: 0; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 70px; }
.contact-details h2, .contact-panel h2 { font-size: 25px; }
address { font-style: normal; margin-bottom: 22px; }
.company-name { display: inline-block; font-size: 18px; line-height: 1.5; margin-bottom: 8px; }
.contact-panel { padding: 28px; background: var(--soft); }
.contact-alternative { font-size: 14px; margin-top: 22px; margin-bottom: 0; overflow-wrap: anywhere; }
.map-section { padding-bottom: 60px; }
.map-section iframe { display: block; min-height: 410px; }

/* Shared footer */
.site-footer { background: #242424; color: #dedede; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 35px; padding-block: 48px; font-size: 15px; }
.site-footer h2 { font-size: 17px; color: white; text-transform: uppercase; padding-bottom: 14px; border-bottom: 2px solid #646464; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #efc775; text-decoration: underline; }
.footer-grid p { overflow-wrap: anywhere; }
.newsletter-row { display: flex; align-items: stretch; }
.newsletter-row input:not([type=hidden]) { margin: 0; }
.newsletter-row button { flex-shrink: 0; padding-inline: 13px; }
.footer-bottom { background: #191919; font-size: 13px; padding-block: 16px; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-bottom p { margin: 0; }

/* Tablet and phone layouts */
@media (max-width: 900px) {
  .header-inner { gap: 24px; }
  .brand { flex-basis: 250px; }
  .brand img { width: 250px; }
  .main-nav { gap: 18px; }
  .two-columns { gap: 28px; }
  .hero h1, .hero-title { font-size: 35px; }
  .enquiry-panel { width: 49%; padding: 23px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > section:last-child { grid-column: 1 / -1; max-width: 500px; }
  .contact-grid { gap: 30px; }
}
@media (max-width: 700px) {
  :root { --header-offset: 240px; }
  .container { width: calc(100% - 36px); }
  .section { padding-block: 42px; }
  .topbar { text-align: center; font-size: 11px; }
  .header-inner { flex-wrap: wrap; justify-content: space-between; min-height: 105px; gap: 0; padding-block: 9px; }
  .brand { flex: 0 0 auto; }
  .brand img { width: 225px; }
  .site-header.is-compact .header-inner { padding-block: 6px; }
  .main-nav { width: 100%; justify-content: center; gap: 5px 20px; padding-top: 8px; }
  .main-nav a { font-size: 14px; }
  .js .menu-toggle { display: block; }
  .js .main-nav:not(.is-open) { display: none; }
  .js .main-nav.is-open { display: grid; grid-template-columns: 1fr 1fr; }
  .main-nav.is-open a { text-align: center; }
  .hero { padding-top: 240px; min-height: 0; }
  .hero-slide > .container { align-items: flex-start; }
  .hero h1, .hero-title { width: 100%; max-width: 580px; font-size: 31px; padding-top: 32px; line-height: 1.15; }
  .hero-content { padding-top: 0; padding-bottom: 75px; }
  .enquiry-panel { width: 100%; padding: 22px; }
  .enquiry-panel h2 { font-size: 26px; }
  .hero-photo { object-position: 35% center; }
  .two-columns, .contact-grid, .team-grid { grid-template-columns: 1fr; gap: 28px; }
  .coatings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  .coating h3 { font-size: 13px; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .feature-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature-card img { max-height: 320px; }
  .callout .container { flex-direction: column; align-items: flex-start; gap: 20px; }
  .callout h2 { font-size: 23px; }
  .video-section { padding-block: 35px; }
  .page-banner { min-height: 230px; }
  .service-list { grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .contact-panel { padding: 22px; }
  .map-section iframe { min-height: 330px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-grid > section:last-child { grid-column: auto; }
  .footer-bottom .container { display: block; }
  .footer-bottom p { margin-bottom: 12px; }
}
@media (max-width: 380px) {
  .brand img { width: 196px; }
  .menu-toggle { font-size: 14px; padding: 8px; }
  .hero h1, .hero-title { font-size: 28px; }
  .services-grid, .service-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header, .header-inner, .brand img { transition: none; }
  .js .hero-slide.is-active .hero-photo { animation: none; transform: none; }
}
