/* ============================================================
   Ovec Systems Ltd — Design C (Modern Minimal)
   Shared site-wide stylesheet
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:    #0050b3;
  --blue2:   #0066cc;
  --blue3:   #e8f1ff;
  --sky:     #00aaff;
  --white:   #ffffff;
  --off:     #f8f9fc;
  --text:    #1e293b;
  --muted:   #64748b;
  --border:  #e2e8f0;
  --shadow:  rgba(0,50,120,0.08);
  --max:     1100px;
  --rad:     8px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

a            { color: var(--blue2); text-decoration: none; }
a:hover      { color: var(--sky); }
a:visited    { color: var(--blue); }
img          { max-width: 100%; height: auto; display: block; }
ul, ol       { padding-left: 1.5em; }
li           { margin-bottom: 0.3em; }

/* ---- TOP BAR ---- */
.top-bar {
  background: var(--blue);
  padding: 6px 20px;
}
.top-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}
.top-bar-inner a { color: rgba(255,255,255,0.8); font-size: 12px; }
.top-bar-inner a:hover { color: var(--white); }
.top-bar-inner span { color: rgba(255,255,255,0.35); }

/* ---- STICKY HEADER ---- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 16px;
}

/* Logo — icon image + company name text */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: 6px 0;
  text-decoration: none;
}
.site-logo:hover { opacity: 0.88; }
.site-logo .logo-img {
  width: auto;
  height: 64px;
  display: block;
  flex-shrink: 0;
}
.site-logo .logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  gap: 4px;
}
.site-logo .logo-wordmark {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.site-logo .logo-tagline {
  font-family: 'Lucida Handwriting', 'Brush Script MT', cursive;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
}
/* OVEC wordmark — O is full size, VEC is 70% of O, all vertically centred */
.site-logo .logo-name {
  display: flex;
  align-items: center;   /* vertically centre O and VEC on the same midline */
  font-family: 'Times New Roman', Times, serif;
  font-weight: bold;
  color: var(--muted);
  line-height: 1;
}
.site-logo .logo-o {
  font-size: 31.5px;
}
.site-logo .logo-vec {
  font-size: 25.2px;  /* 31.5 × 0.80 */
  position: relative;
  top: 2px;
}
.site-logo .logo-sub {
  display: flex;
  align-items: center;
  font-family: 'Times New Roman', Times, serif;
  font-weight: bold;
  color: var(--muted);
  line-height: 1;
  text-transform: uppercase;
}
.site-logo .logo-sub-cap {
  font-size: 31.5px;   /* matches logo-o */
}
.site-logo .logo-sub-rest {
  font-size: 25.2px;  /* 31.5 × 0.80 */
  position: relative;
  top: 2px;
}
.site-logo .logo-sub span:nth-child(3) {
  margin-left: 8px;  /* matches gap between OVEC and SYSTEMS */
}

/* Inline horizontal navigation */
.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}
.site-nav a {
  display: inline-block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 11px;
  border-radius: var(--rad);
  transition: color 0.15s, background 0.15s;
}
.site-nav a:visited { color: var(--muted); }
.site-nav a:hover,
.site-nav a.active { color: var(--blue); background: var(--blue3); }
.site-nav a.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  font-weight: 600;
  margin-left: 4px;
}
.site-nav a.nav-cta:hover { background: var(--blue2); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--rad);
  padding: 8px 12px;
  cursor: pointer;
  color: var(--blue);
  font-size: 18px;
  line-height: 1;
}
.nav-toggle:hover { background: var(--blue3); }

/* ---- PAGE TITLE BAND (inner pages) ---- */
.page-title-band {
  padding: 28px 20px;
  background: var(--blue);
}
.page-title-band-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.page-title-band .eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
}
.page-title-band h1 {
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}
.page-title-band .subtitle {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  margin-top: 6px;
  font-style: italic;
}

/* ---- PILL PRODUCT BAR ---- */
.pill-bar {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue2) 100%);
  padding: 12px 20px;
  position: relative;
  overflow: hidden;
}
.pill-bar::before {
  content: '';
  position: absolute;
  width: 3000px; height: 3000px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
  background-image: url('/images/tartanTile.png');
  background-repeat: repeat;
  background-size: 120px 132px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.pill-bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(0,80,179,0.68) 0%, rgba(0,102,204,0.68) 100%);
  pointer-events: none;
  z-index: 1;
}
.pill-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.pill-bar-inner .lbl {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.pill-bar-inner a {
  display: inline-block;
  padding: 4px 13px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  transition: all 0.15s;
  box-shadow: 0 1px 3px var(--shadow);
}
.pill-bar-inner a:visited { color: var(--blue); }
.pill-bar-inner a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

/* ---- MAIN CONTENT AREA ---- */
.page-content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 20px 64px;
}

/* Prose text */
.page-content p  { margin-bottom: 1em; color: var(--text); }
.page-content h2 { font-size: 18px; color: var(--blue); font-weight: 700; margin: 1.6em 0 0.6em; border-bottom: 2px solid var(--blue3); padding-bottom: 6px; }
.page-content h3 { font-size: 16px; color: var(--text); font-weight: 700; margin: 1.2em 0 0.4em; }
.page-content ul, .page-content ol { margin-bottom: 1em; color: var(--text); }
.page-content a  { color: var(--blue2); }
.page-content a:hover { color: var(--sky); }
.page-content strong { color: var(--text); }
.page-content em { color: var(--muted); }

/* ---- PRODUCT PAGE STYLES ---- */
.product-intro {
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  padding: 20px 24px;
  margin-bottom: 28px;
  font-size: 15px;
}

.product-images {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 20px 0;
}
.product-images figure {
  margin: 0;
  text-align: center;
  flex: 1 1 200px;
  max-width: 300px;
}
.product-images img {
  border-radius: var(--rad);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px var(--shadow);
}
.product-images figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

/* Spec table */
.spec-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 560px;
  margin: 20px 0;
  font-size: 14px;
  border-radius: var(--rad);
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
}
.spec-table caption {
  font-weight: 700;
  color: var(--blue);
  text-align: left;
  padding: 0 0 8px;
  font-size: 15px;
}
.spec-table th,
.spec-table td {
  border: 1px solid var(--border);
  padding: 8px 14px;
  text-align: left;
  vertical-align: top;
}
.spec-table th {
  background: var(--off);
  color: var(--blue);
  font-weight: 600;
  width: 45%;
}
.spec-table tr.section-head th {
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  border-color: var(--blue);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.spec-table td { color: var(--text); background: var(--white); }
.spec-table tr:hover td { background: var(--off); }

@media (max-width: 520px) {
  .spec-table, .spec-table tbody, .spec-table tr,
  .spec-table th, .spec-table td { display: block; width: 100%; }
  .spec-table th { width: 100%; border-bottom: none; }
  .spec-table td { border-top: none; padding-left: 16px; }
}

/* Features list as a nice card */
.features-list {
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  padding: 20px 24px 16px;
  margin: 20px 0;
}
.features-list h3 {
  font-size: 14px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.features-list ul {
  columns: 2;
  column-gap: 24px;
  padding-left: 1.2em;
}
.features-list ul li { font-size: 14px; margin-bottom: 5px; break-inside: avoid; }
@media (max-width: 600px) { .features-list ul { columns: 1; } }

/* ---- FAQ STYLES ---- */
.faq-list { margin-top: 8px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--rad);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px var(--shadow);
}
.faq-q {
  background: var(--off);
  color: var(--blue);
  font-weight: 700;
  padding: 14px 18px;
  cursor: pointer;
  position: relative;
  font-size: 15px;
}
.faq-q::after {
  content: '+';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 300;
  color: var(--muted);
}
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { padding: 16px 18px; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-a p { margin-bottom: 0.75em; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a ol, .faq-a ul { margin: 0.5em 0 0.75em; }

/* Leak table inside FAQ */
.leak-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 420px;
  margin: 12px 0;
  font-size: 13px;
  border-radius: 4px;
  overflow: hidden;
}
.leak-table td {
  border: 1px solid var(--border);
  padding: 6px 10px;
  color: var(--text);
}
.leak-table tr:first-child td {
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  text-align: center;
}
.leak-table tr:nth-child(odd):not(:first-child) td { background: var(--off); }

/* ---- VIDEO EMBED ---- */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 560px;
  border-radius: var(--rad);
  box-shadow: 0 4px 20px var(--shadow);
  border: 1px solid var(--border);
  margin: 16px 0;
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---- CTA STRIP ---- */
.cta-strip {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue2) 100%);
  border-radius: 10px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 40px 0 0;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
/* Angled tartan — sits under the blue wash */
.cta-strip::before {
  content: '';
  position: absolute;
  width: 300%; height: 300%;
  top: -100%; left: -100%;
  background-image: url('/images/tartanTile.png');
  background-repeat: repeat;
  background-size: 120px 132px;
  transform: rotate(-18deg);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
/* Blue tint washed over tartan */
.cta-strip::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(0,80,179,0.68) 0%, rgba(0,102,204,0.68) 100%);
  pointer-events: none;
  z-index: 1;
  border-radius: 10px;
}
.cta-strip > * { position: relative; z-index: 2; }
.cta-strip h2 { color: var(--white); font-size: 18px; margin-bottom: 4px; }
.cta-strip p  { color: rgba(255,255,255,0.75); font-size: 14px; }
.btn-white {
  display: inline-block;
  background: var(--white);
  color: var(--blue);
  padding: 10px 22px;
  border-radius: var(--rad);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.btn-white:hover, .btn-white:visited { color: var(--blue); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.18); }

/* ---- PARTNER BOX ---- */
.partner-box {
  text-align: center;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--rad);
  background: var(--off);
  margin-top: 32px;
}
.partner-box p { font-size: 12px; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.partner-box img { max-width: 160px; margin: 0 auto; }

/* ---- MAP WRAPPER ---- */
.map-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  max-width: 680px;
  height: 0;
  border-radius: var(--rad);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  border: 1px solid var(--border);
  margin: 16px 0;
}
.map-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 24px 20px;
  font-size: 12px;
}
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: var(--white); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-nav.open { display: flex; flex-direction: column; align-items: flex-start; width: 100%; }
  .nav-toggle { display: flex; }
  .header-inner { flex-wrap: wrap; padding: 8px 16px; }
  .site-logo .logo-img { height: 48px; }
  .site-logo .logo-o { font-size: 24px; }
  .site-logo .logo-vec { font-size: 19.2px; }
  .site-logo .logo-sub-cap { font-size: 24px; }
  .site-logo .logo-sub-rest { font-size: 19.2px; }
}
@media (max-width: 600px) {
  .top-bar { display: none; }
  .page-title-band h1 { font-size: 20px; }
  .cta-strip { flex-direction: column; text-align: center; padding: 24px 20px; }
  .page-content { padding: 24px 16px 48px; }
  .pill-bar-inner { gap: 6px; }
}
