* {
  box-sizing: border-box;
}

html {
  font-family: Arial, Helvetica, sans-serif;
  color: #1f2937;
  background: #ffffff;
}

body {
  margin: 0;
  background: #ffffff;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;

  padding: 0.85rem 1.25rem;

  background: #ffffff;
  border-bottom: 1px solid #d8dde3;
  box-shadow: 0 0.15rem 0.5rem rgb(0 0 0 / 8%);
}

.site-brand-area {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
}

.site-brand-row {
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

.site-brand-link {
  display: block;
  width: 50%;
}

.site-brand-image {
  display: block;
  width: 100%;
  height: auto;
  margin-left: 0;
}


/* Landscape: banner shifted right, with white space on the left */

@media (orientation: landscape) {
  .site-brand-image {
    width: 65%;
    margin-left: 25%;
  }
}

.site-nav {
  grid-column: 2;
  grid-row: 1;

  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.5rem;
}

.site-nav-button {
  display: inline-block;
  padding: 0.65rem 1rem;

  color: #ffffff;
  background: #0066cc;
  border-radius: 0.3rem;

  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav-button:hover,
.site-nav-button-active {
  color: #ffffff;
  background: #004f9e;
}

.site-title {
  color: #1d3557;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.site-brand {
  color: #1f2937;
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.site-tagline {
  color: #0066cc;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

/* Home page */

.home-intro {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.25rem 1.5rem;
  text-align: center;
}

.home-intro h1 {
  margin: 0 0 0.75rem;
}

.home-intro p {
  max-width: 720px;
  margin: 0 auto;

  color: #098029;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.6;
}

.products-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.products-section-heading {
  margin-bottom: 1.5rem;
  text-align: center;
}

.products-section-heading h2 {
  margin: 0 0 0.5rem;
}

.products-heading {
  margin: 0 0 1.5rem;

  color: #aa28bc;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* Product cards */

.product-card {
  min-width: 0;
  overflow: hidden;

  background: #ffffff;
  border: 1px solid #d8dde3;
  border-radius: 0.5rem;
  box-shadow: 0 0.15rem 0.5rem rgb(0 0 0 / 8%);

  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1.2rem rgb(0 0 0 / 14%);
}

.product-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.product-card-image {
  display: flex;
  align-items: center;
  justify-content: center;

  height: 160px;
  padding: 0.75rem;

  background: #f6f8fa;
}

.product-card-image img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
}

.product-card-content {
  padding: 1.1rem 1.1rem 1.25rem;
  text-align: center;
}

.product-card-content h3 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
}

.product-card-content p {
  margin: 0 0 1rem;
  color: #4b5563;
  line-height: 1.5;
}

.product-card-button {
  color: #0066cc;
  font-weight: 700;
}

/* Individual product page */

.product-page {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;

  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.product-large-image {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 280px;
  padding: 1rem;

  background: #f6f8fa;
  border: 1px solid #d8dde3;
  border-radius: 0.5rem;
}

.product-large-image img {
  display: block;
  width: 100%;
  max-width: 1000px;
  max-height: 1000px;
  height: auto;
  object-fit: contain;
}

.product-details h1 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.product-summary {
  max-width: 650px;
  margin: 0 auto 1.5rem;

  color: #4b5563;
  font-size: 1.15rem;
  line-height: 1.6;
}

.product-details p {
  max-width: 700px;
  margin: 1rem auto;
  line-height: 1.6;
}

.product-details ul {
  display: inline-block;
  margin: 1rem auto;
  text-align: left;
}

.product-details li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.product-datasheet-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 1.2rem;

  color: #ffffff;
  background: #0066cc;
  border-radius: 0.3rem;

  font-weight: 700;
  text-decoration: none;
}

.product-datasheet-button:hover {
  color: #ffffff;
  background: #004f9e;
}

/* Product picture and caption layouts */

.product-pictures {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 2.5rem;
}

.product-picture {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;

  max-width: 100%;
  margin: 0;
}

.product-picture img {
  display: block;
  width: 100%;
  height: auto;

  border: 1px solid #d8dde3;
  border-radius: 0.35rem;
}

.product-picture figcaption {
  color: #4d5965;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.6;
  text-align: left;
  white-space: pre-line;
}

/* Image left, text right */

.product-picture--left {
  grid-template-columns: var(--picture-width) minmax(0, 1fr);
}

.product-picture--left img {
  grid-column: 1;
  grid-row: 1;
}

.product-picture--left figcaption {
  grid-column: 2;
  grid-row: 1;
  text-align: left;
}

/* Text left, image right */

.product-picture--right {
  grid-template-columns: minmax(0, 1fr) var(--picture-width);
}

.product-picture--right img {
  grid-column: 2;
  grid-row: 1;
}

.product-picture--right figcaption {
  grid-column: 1;
  grid-row: 1;
  text-align: right;
}

/* Centred image, text below */

.product-picture--center {
  display: block;
  max-width: 48rem;
  margin-right: auto;
  margin-left: auto;
}

.product-picture--center figcaption {
  margin-top: 1rem;
  text-align: center;
}

/* About and Contact pages */

.standard-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.standard-page h1 {
  text-align: center;
}

.standard-page p,
.standard-page li {
  line-height: 1.6;
}

/* About Us profile image */

.standard-page img[alt="about-profile"] {
  display: block;
  float: left;
  width: 180px !important;
  max-width: 100% !important;
  height: auto;
  margin: 0 2rem 1rem 0;
}

.standard-page:has(img[alt="about-profile"]) h1 {
  text-align: left;
}

.standard-page:has(img[alt="about-profile"])::after {
  content: "";
  display: block;
  clear: both;
}

/* Product title and PDF icon */

.product-title-actions {
  grid-column: 3;
  grid-row: 1;

  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;

  margin-left: 2rem;
  white-space: nowrap;
}


.product-title-actions .specification-icon-link,
.product-title-actions .movie-icon-link {
  flex: 0 0 auto;
}


.product-title-actions .pdf-download-icon,
.product-title-actions .movie-icon {
  display: block;
  width: 3.5rem;
  height: 4.4rem;
}

.product-title-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 1.5rem;
}

.product-title-row h1 {
  grid-column: 2;
  margin: 0;
  text-align: center;
}


.specification-icon-link,
.movie-icon-link {
  display: block;
}

.pdf-download-icon,
.movie-icon {
  display: block;
  width: 3.5rem;
  height: 4.4rem;
}

.specification-icon-link:hover,
.movie-icon-link:hover {
  opacity: 0.75;
}


.product-detail-page video {
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 2rem auto 0;
}

.product-video-label {
  margin: 4rem 0 0.5rem;
  text-align: center;
  font-weight: 700;
}

/* Tablet */

@media (min-width: 600px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Desktop */

@media (min-width: 900px) {
  .product-detail-page {
    max-width: 1400px;
  }
}

@media (min-width: 1000px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-page {
    grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
    align-items: start;
  }
}

/* Wide desktop */

@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Phone portrait */

/* Compact phone and phone-landscape layout */

@media (max-width: 700px),
       (orientation: landscape) and (max-width: 950px) and (max-height: 550px) {

  .site-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .site-brand-area {
    text-align: center;
  }

  .site-brand-row {
    justify-content: center;
  }

  .site-brand-link {
    width: 100%;
  }

  .site-brand-image {
    width: 100%;
    margin-left: 0;
  }

  .site-nav {
    width: 100%;
    justify-content: center;
  }

  .product-picture {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .product-picture--left img,
  .product-picture--right img {
    grid-column: 1;
    grid-row: 1;
  }

  .product-picture--left figcaption,
  .product-picture--right figcaption {
    grid-column: 1;
    grid-row: 2;
    text-align: center;
  }

  .standard-page img[alt="about-profile"] {
    float: none;
    width: 180px !important;
    margin: 0 0 1rem;
  }

  .standard-page:has(img[alt="about-profile"]) h1 {
    text-align: left;
  }
}

/* Full-width centred pictures on individual product pages only */

.product-detail-page .product-picture--center {
  width: var(--picture-width);
  max-width: 100vw;
  margin-right: 0;
  margin-left: 50%;
  transform: translateX(-50%);
}


.product-detail-page .product-picture--center img {
  width: 100% !important;
}

.product-detail-page h2 {
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  visibility: hidden;
}

.product-detail-page h2 + ul {
  padding-left: 0;
  text-align: center;
  list-style-position: inside;
}

/* Header banner wording */


.site-banner-text {
  display: flex;
  align-items: center;
  margin-left: 1rem;

  color: #ae3939;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 2.6rem);
  font-weight: 600;
  line-height: 1.1;
  text-align: left;
}

/* Reveal telephone number button */


.phone-reveal {
  margin: 2rem 0;
  text-align: left;
}


.phone-reveal-button {
  padding: 0.8rem 1.2rem;

  color: #ffffff;
  background: #0066cc;
  border: 0;
  border-radius: 0.3rem;
  cursor: pointer;

  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
}


.phone-reveal-button:hover {
  background: #004f9e;
}


.phone-reveal-number {
  margin-top: 1rem;

  font-size: 1.35rem;
  font-weight: 700;
}


.phone-reveal-number a {
  color: #0066cc;
  text-decoration: none;
}


.phone-reveal-number a:hover {
  text-decoration: underline;
}

/* Compact navigation and text for phones in portrait or landscape */

@media (orientation: portrait),
       (orientation: landscape) and (max-width: 950px) and (max-height: 550px) {

  .site-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
  }

  .site-nav-button {
    flex: 0 0 auto;
    padding: 0.3rem 0.45rem;
    font-size: 0.7rem;
    text-align: center;
    white-space: nowrap;
  }

  .products-heading {
    font-size: 1.7rem;
    line-height: 1.2;
  }

  h1,
  .product-details h1,
  .product-title-row h1 {
    font-size: 1.3rem;
    line-height: 1.2;
  }

  .site-banner-text {
    margin-left: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.15;
  }
}
/* Phone landscape: compact horizontal navigation */
/* Compact layout for phone-sized screens */

@media (max-width: 800px) {
  .site-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .site-brand-area {
    text-align: center;
  }

  .site-brand-row {
    justify-content: center;
  }

  .site-brand-link {
    width: 100%;
  }

  .site-brand-image {
    width: 100%;
    margin-left: 0;
  }

  .products-heading {
    font-size: 1.7rem;
    line-height: 1.2;
  }

  h1 {
    font-size: 1.3rem;
    line-height: 1.2;
  }

  .site-banner-text {
    margin-left: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.15;
  }

  .product-picture {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .product-picture--left img,
  .product-picture--right img {
    grid-column: 1;
    grid-row: 1;
  }

  .product-picture--left figcaption,
  .product-picture--right figcaption {
    grid-column: 1;
    grid-row: 2;
    text-align: center;
  }

  .standard-page img[alt="about-profile"] {
    float: none;
    width: 180px !important;
    margin: 0 0 1rem;
  }
}


/* Phone portrait: small horizontal navigation */

@media (max-width: 800px) and (orientation: portrait) {
  .site-nav {
    display: flex;
    width: 100%;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
  }

  .site-nav-button {
    display: block;
    flex: 0 0 auto;
    padding: 0.3rem 0.45rem;

    font-size: 0.7rem;
    text-align: center;
    white-space: nowrap;
  }
}


/* Phone landscape: compact vertical navigation */

@media (max-width: 800px) and (orientation: landscape) {
  .site-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    text-align: left;
  }

  .site-brand-area {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
  }

  .site-brand-row {
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .site-brand-link {
    flex: 0 1 50%;
    width: 50%;
  }

  .site-brand-image {
    width: 100%;
    margin: 0;
  }

  .site-banner-text {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 0;
    font-size: 0.9rem;
    line-height: 1.15;
    text-align: left;
  }

  .site-nav {
    display: flex;
    flex: 0 0 auto;
    width: auto;
    flex-direction: column !important;
    align-items: stretch;
    justify-content: center;
    gap: 0.25rem;
  }

  .site-nav-button {
    display: block;
    padding: 0.25rem 0.4rem;

    font-size: 0.65rem;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
  }
}