/* Site theme: colours, buttons and card styles for the home page and the product centre.
   This file is loaded after the styles written inside those two pages, so a rule here wins over
   the same rule there. The product detail pages, the resource centre and the article pages take
   the same colours from the :root line at the top of product-detail.css: change both together. */
:root {
  --ink: #0b1f2e;            /* text */
  --muted: #5a7080;          /* secondary text */
  --line: #dfe8ee;           /* borders */
  --paper: #f5f8fa;          /* page background */
  --brand: #0b3a53;          /* primary buttons and strong surfaces */
  --brand-hover: #10506b;
  --accent: #097579;         /* links, labels and active states on light backgrounds */
  --radius-md: 16px;
  --radius: 16px;
  --card-shadow: 0 1px 2px rgba(9, 36, 54, .04), 0 8px 24px rgba(9, 36, 54, .06);
  --card-shadow-hover: 0 2px 4px rgba(9, 36, 54, .05), 0 18px 40px rgba(9, 36, 54, .12);
  --brand-surface: linear-gradient(150deg, #0b3a53 0%, #0a6a73 100%);
  /* --cyan (#1fd2c0) keeps the value set in the pages: it is the highlight on dark backgrounds. */
}

/* Buttons: one shape and one primary colour on every page. */
.primary-btn, .ghost-btn, .dark-btn { border-radius: 10px; }
.primary-btn, .hero .primary-btn { color: #fff; background: var(--brand); box-shadow: 0 6px 16px rgba(11, 58, 83, .16); }
.primary-btn:hover, .hero .primary-btn:hover { background: var(--brand-hover); box-shadow: 0 10px 22px rgba(11, 58, 83, .2); }
.ghost-btn, .dark-btn, .hero .ghost-btn { color: var(--brand); background: #fff; border: 1px solid #cfdbe3; box-shadow: none; }
.ghost-btn:hover, .dark-btn:hover, .hero .ghost-btn:hover { background: #f1f6f9; border-color: #b7c8d3; }
/* On dark panels the primary button takes the bright highlight colour instead. */
.contact-inner .primary-btn, .contact-modal-actions .primary-btn { color: #04262b; background: var(--cyan); box-shadow: none; }
.contact-inner .primary-btn:hover, .contact-modal-actions .primary-btn:hover { background: #45dccd; }
.contact-inner .dark-btn, .contact-modal-actions .dark-btn { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); }
.contact-inner .dark-btn:hover, .contact-modal-actions .dark-btn:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .45); }
.chat-form button { color: #fff; background: var(--brand); border-radius: 10px; }
.service-btn { background: var(--accent); }

/* Accent colour for small labels and links (dark enough to read on white). */
.section-kicker, .text-link, .product-meta, .insight-type, .product-label { color: var(--accent); }
.main-nav a::after, .nav-links a::after { background: var(--accent); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(9, 117, 121, .14); }

/* Home page carousel. A picture is never shown larger than its real size, because enlarging is
   what makes it look blurred. A slide marked "is-photo" shows a photograph in a rounded frame;
   the other slides show a cut-out picture on a light stage. */
.hero-inner { mix-blend-mode: normal; }
.hero-product { padding: 26px; overflow: hidden; border: 1px solid #e3ebf0; border-radius: 24px; background: linear-gradient(160deg, #fff 0%, #f2f6f9 100%); box-shadow: var(--card-shadow); }
.hero-product img { width: auto; height: auto; max-width: 100%; max-height: 100%; }
.hero-product.is-photo { width: auto; max-width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; box-shadow: 0 18px 44px rgba(9, 36, 54, .16); }
.hero-product.is-photo img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; mix-blend-mode: normal; }

/* Cards: the same corner radius, hairline border and soft shadow everywhere. */
.product-card, .solution-card, .company-stat, .insight-card { border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--card-shadow); }
.insight-card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.product-card:hover, .solution-card:hover, a.insight-card:hover { transform: translateY(-4px); border-color: #c6d6df; box-shadow: var(--card-shadow-hover); }
.product-card::after { display: none; }
.company-stat { background: #fff; }
.company-stat strong { color: var(--accent); }
.solution-card:first-child, .insight-card.featured { background: var(--brand-surface); }
.solution-icon { border-radius: 12px; color: var(--accent); background: #e4f1f2; }
.solutions { background: #edf2f5; }
.tech-card { border-color: rgba(150, 195, 212, .18); border-radius: var(--radius-md); background: rgba(255, 255, 255, .04); transition: border-color .25s ease, background .25s ease; }
.tech-card:hover { border-color: rgba(31, 210, 192, .45); background: rgba(255, 255, 255, .07); }
.service-modal, .page-modal, .modal { border-radius: 18px; }

/* Picture areas: a plain light stage. (A grid pattern used to lie under the pictures and showed
   through photographs, which made them look dirty.) */
.device-stage, .product-img { background: #f3f7f9; }
.device-stage { border: 1px solid #e8eef2; border-radius: 12px; }
.product-img { border-bottom: 1px solid #e8eef2; }
.device-stage::before, .product-img::before { display: none; }

@media (min-width: 981px) {
  /* Solutions: the first card is twice as tall; the other four form a 2 x 2 block beside it.
     (Before, every card was stretched to the height of the first one and was mostly empty.) */
  .solution-grid { grid-auto-rows: minmax(212px, auto); }
  .solution-card, .solution-card:first-child { min-height: 0; }
  .solution-card:first-child { grid-row: span 2; }
}

/* Closing call to action: a dark rounded card instead of a full-width coloured band. */
.contact-band { padding: 0 0 96px; background: var(--paper); }
.contact-inner { padding: 46px 52px; border-radius: 22px; color: #fff; background: var(--brand-surface); box-shadow: 0 18px 44px rgba(9, 48, 68, .18); }
.contact-band h2 { font-size: clamp(26px, 3.1vw, 40px); }
/* Secondary text on the dark brand surface: light enough to read at the brighter end of the gradient. */
.contact-band p, .solution-card:first-child p, .insight-card.featured p { color: #d3e8ec; }
/* Links and small notes on that surface: the usual highlight colour is too dark there to read well. */
.solution-card:first-child .text-link, .insight-card.featured .insight-type, .insight-card.featured .insight-date { color: #9ef0e8; }
@media (max-width: 760px) {
  .contact-band { padding-bottom: 64px; }
  .contact-inner { padding: 30px 24px; }
}

/* Product centre. */
.toolbar { border-radius: 14px; }
.filter { border-color: #d5e0e7; }
.filter:hover { color: var(--brand); border-color: #b7c8d3; }
.filter.active { color: #fff; border-color: var(--brand); background: var(--brand); }
.detail-btn { border-color: #cfdbe3; border-radius: 8px; color: var(--brand); background: #fff; }
.detail-btn:hover { background: #f1f6f9; }
.modal-note { border-left-color: var(--accent); }
