:root {
  --primary-colour: #00A8E8;
  --accent-colour: #FFB703;
  --background-colour: #FFFFFF;
  --text-colour: #333333;
  --surface: #ffffff;
  --surface-2: #f6f7fb;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background-color: var(--background-colour);
  color: var(--text-colour);
  line-height: 1.6;
}

a { color: var(--primary-colour); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.page-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin: 1.5rem auto 2.5rem;
}

@media (max-width: 700px) {
  .page-shell { border-radius: 14px; margin: 1rem auto 2rem; }
}

.site-header {
  background: #000;
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
}

/* Hero header variant: background art aligned to the content shell */
.site-header--hero {
  padding: 0;
}
.site-header--hero .site-header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  isolation: isolate;
}
.site-header--hero .site-header-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Center the background art and fade it out toward both sides */
  background-image:
    linear-gradient(to right,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 0.80) 20%,
      rgba(0, 0, 0, 0.00) 50%,
      rgba(0, 0, 0, 0.80) 80%,
      rgba(0, 0, 0, 1) 100%
    ),
    var(--hero-art-image, url('/images/title-background-3.jpeg'));
  background-repeat: no-repeat;
  background-position: center, center;
  background-size: cover, auto 100%;
  opacity: 0.42;
}
.site-header--hero .site-header-inner > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 700px) {
  .site-header--hero .site-header-inner::before {
    opacity: 0.26;
    background-size: cover, cover;
  }
}
.site-header .logo {
  width: 180px;
  height: auto;
  margin-bottom: 1.5rem;
  max-width: 100%;
}

/* Larger logo on the public hero header */
.site-header--hero .logo {
  width: 200px;
}
.site-header h1 {
  font-size: 3rem;
  margin: 0.5rem 0;
  font-weight: 700;
}
.site-header .tagline {
  font-size: 1.25rem;
  margin: 0 auto;
  max-width: 600px;
  color: #cccccc;
}

.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1rem 2rem;
  background-color: #111;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}
.site-nav a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}
.site-nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--primary-colour);
  transition: width .3s;
  position: absolute;
  bottom: 0;
  left: 0;
}
.site-nav a:hover::after {
  width: 100%;
}

section { margin-bottom: 3rem; }
section h2 {
  color: var(--primary-colour);
  margin-bottom: 1rem;
  font-weight: 700;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1rem;
  transition: transform .2s, box-shadow .2s;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}
.product-card .product-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.75rem;
  flex: 1 1 auto;
}

.product-card .product-title {
  margin: 0;
  color: var(--text-colour);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

.product-card .product-desc {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .product-footer {
  padding-top: 0.9rem;
}

.product-card .btn {
  width: 100%;
  text-align: center;
}
.product-card .product-media {
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
  margin: 0;
}
.product-card .product-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform .25s;
}
.product-card:hover .product-media img { transform: scale(1.03); }

.product-media-empty {
  display: grid;
  place-items: center;
  height: 200px;
  border: 1px dashed var(--border);
}
.product-media-empty-text {
  font-weight: 700;
  opacity: 0.65;
}

.quote-block {
  padding: 2rem;
  background-color: var(--surface);
  border-left: 4px solid var(--primary-colour);
  font-style: italic;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--primary-colour);
  color: #fff;
  font-weight: 700;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }

.field label { font-weight: 700; }
.field input,
.field textarea {
  width: 100%;
  padding: 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-colour);
}

.site-footer {
  background-color: #f0f0f5;
  color: var(--text-colour);
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 0.9rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background-colour: #0B2545;
    --text-colour: #ffffff;
    --primary-colour: #6da8ff;
    --accent-colour: #ffd96b;
    --surface: #102a52;
    --surface-2: #071c35;
    --border: rgba(255, 255, 255, 0.12);
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  }
  .site-nav { background-color: #071c35; }
  .site-footer { background-color: #071c35; color: #ccccff; }
}
