/* =========================================================
   NS Distribution (M) Sdn Bhd - website styles
   Theme: NSD navy (#262262, from the logo) and white.
   Change the variables below to adjust the whole site.
   No inline styles anywhere: the Content-Security-Policy blocks them.
   ========================================================= */
:root {
  --navy: #262262;          /* NSD logo navy */
  --navy-dark: #18153f;
  --blue: #2f5bd3;          /* buttons and links */
  --blue-dark: #2347ad;
  --sky: #6f8cf0;           /* lighter accent */
  --tint: #eef2fc;          /* light blue section background */
  --line: #d6def5;
  --white: #fff;
  --text: #1d2033;
  --muted: #5a6078;
  --radius: 12px;
  --max: 1180px;
  --shadow: 0 8px 28px rgba(38, 34, 98, .10);
  --overlay: linear-gradient(120deg, rgba(24, 21, 63, .92) 0%, rgba(38, 34, 98, .78) 50%, rgba(38, 34, 98, .45) 100%);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { color: var(--navy); line-height: 1.22; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; }

.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.narrow { max-width: 820px; }
.medium { max-width: 980px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 13px 26px; border-radius: 8px; font: 600 1rem var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--tint); color: var(--navy); }
.btn-ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
/* Logo is a wide navy mark on a transparent background (images/nsd-logo.png, 107x52) */
.brand img { width: auto; height: 40px; }
.brand span { font-weight: 600; color: var(--navy); line-height: 1.15; font-size: .9rem; }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: .76rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav a, .submenu-btn { display: block; padding: 10px 12px; border-radius: 6px; color: var(--navy); text-decoration: none; font: 500 .95rem var(--font); background: none; border: 0; cursor: pointer; }
.main-nav a:hover, .submenu-btn:hover { background: var(--tint); color: var(--navy); }
.main-nav a[aria-current="page"], .submenu-btn.is-current { color: var(--blue); }
.main-nav .nav-cta { background: var(--blue); color: #fff; margin-left: 8px; }
.main-nav .nav-cta:hover { background: var(--blue-dark); color: #fff; }
/* On the Contact page: keep the text white and switch the box to navy (instead of the blue text used by other links) */
.main-nav .nav-cta[aria-current="page"] { background: var(--navy); color: #fff; }
.main-nav .nav-cta[aria-current="page"]:hover { background: var(--navy-dark); color: #fff; }
.has-sub { position: relative; }
.submenu-btn::after { content: " \25BE"; font-size: .8em; }
.submenu { display: none; position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.open .submenu { display: block; }

/* ---------- Hero (photo with navy overlay) ---------- */
.hero { position: relative; color: #fff; padding: 110px 0; background-color: var(--navy); background-size: cover; background-position: center; }
.hero-tall { padding: 150px 0; }
.hero h1, .hero h2 { color: #fff; }
.hero-accent { color: #c9d6ff; }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .hero-accent { background: linear-gradient(110deg, #fff 5%, #b8caff 50%, #e4eaff 95%); background-size: 200% 100%; background-clip: text; -webkit-background-clip: text; color: transparent; }
}
.hero p { color: #e1e4f8; font-size: 1.12rem; max-width: 760px; }
.hero.center p { margin-inline: auto; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.hero .eyebrow, .on-dark .eyebrow { color: #aebcf8; }
.hero-home       { background-image: var(--overlay), url("../images/hero/home.jpg"); }
.hero-about      { background-image: var(--overlay), url("../images/hero/about.jpg"); }
.hero-draas      { background-image: var(--overlay), url("../images/hero/draas.jpg"); }
.hero-solutions  { background-image: var(--overlay), url("../images/hero/solutions.jpg"); }
.hero-maintenance{ background-image: var(--overlay), url("../images/hero/it-maintenance.jpg"); }
.hero-cloud      { background-image: var(--overlay), url("../images/hero/cloud.jpg"); }
.hero-laptop     { background-image: var(--overlay), url("../images/hero/laptop.jpg"); }
.hero-event      { background-image: var(--overlay), url("../images/hero/event.jpg"); }
.hero-career     { background-image: var(--overlay), url("../images/hero/career.jpg"); }
.hero-contact    { background-image: var(--overlay), url("../images/hero/contact.jpg"); }
.hero-plain      { background-image: var(--overlay); }

.hero-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: last baseline; }
.hero-split h1, .hero-split p { margin-bottom: 0; }
.threat-row { list-style: none; padding: 0; margin-top: 56px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.threat-row li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 18px 12px; text-align: center; font-weight: 600; }
.threat-row svg { width: 38px; height: 38px; display: block; margin: 0 auto 8px; color: #fff; }
.threat-row small { display: block; font-weight: 400; color: #c9cff3; font-size: .8rem; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-tint { background: var(--tint); }
.section-navy { background: var(--navy); color: #e1e4f8; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 780px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.lead { font-size: 1.2rem; color: var(--muted); }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid.grid-wide { gap: 80px; }
/* grid-3 + grid-center: centre the leftover card(s) in the last row (desktop only;
   below 781px the grid is a single column, see the 780px media query) */
@media (min-width: 781px) {
  :is(.grid-3, .tiles-3).grid-center { grid-template-columns: repeat(6, 1fr); }
  :is(.grid-3, .tiles-3).grid-center > * { grid-column: span 2; }
  :is(.grid-3, .tiles-3).grid-center > :nth-child(3n+1):nth-last-child(2) { grid-column: 2 / span 2; }
  :is(.grid-3, .tiles-3).grid-center > :nth-child(3n+1):last-child { grid-column: 3 / span 2; }
}

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p { color: var(--muted); margin: 0; }
.card.center .icon { margin-inline: auto; }
.icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); color: var(--navy); margin-bottom: 18px; }
.icon svg { width: 30px; height: 30px; }

/* Topic cards (Event page): a card links to #panel-id; the targeted panel shows and the cards hide. */
.topics, .topic-panel { scroll-margin-top: 90px; }
.topic-card { display: block; color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.topic-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue); color: inherit; }
.topic-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.topic-more { display: inline-block; margin-top: 14px; font-weight: 600; font-size: .95rem; color: var(--blue); }
.topic-panel { display: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.topic-panel:target { display: block; animation: topic-in .3s ease; }
.topics:has(.topic-panel:target) .topic-grid { display: none; }
@keyframes topic-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.topic-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.topic-head .icon { margin: 0; flex: none; }
.topic-head .eyebrow { margin-bottom: 2px; }
.topic-head h3 { margin: 0; font-size: 1.5rem; }
.topic-close { margin-left: auto; flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--tint); color: var(--navy); font-size: 1.6rem; line-height: 1; text-decoration: none; }
.topic-close:hover { background: var(--line); color: var(--navy); }
.topic-panel > p { color: var(--muted); max-width: 760px; }
.topic-panel .empty-state { margin: 24px 0 28px; }
.topic-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Photo tiles (Home services, Cloud) */
.tiles { list-style: none; padding: 0; display: grid; gap: 18px; }
.tiles-4 { grid-template-columns: repeat(4, 1fr); }
.tiles-3 { grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
.tile { position: relative; display: flex; align-items: flex-end; min-height: 230px; padding: 22px; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.12rem; line-height: 1.3; background-color: var(--navy); background-size: cover; background-position: center; transition: transform .2s, box-shadow .2s; }
a.tile:hover, button.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: #fff; }
button.tile { width: 100%; border: 0; font-family: inherit; text-align: left; cursor: pointer; }
button.tile:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.tile::after { content: "\2192"; position: absolute; top: 18px; right: 20px; font-size: 1.2rem; opacity: .85; }
div.tile::after { content: none; }
button.tile::after { content: "+"; top: 12px; font-size: 1.7rem; font-weight: 400; transition: transform .25s; }
.tile-backup    { background-image: linear-gradient(transparent 30%, rgba(24,21,63,.92)), url("../images/tiles/backup.jpg"); }
.tile-recovery  { background-image: linear-gradient(transparent 30%, rgba(24,21,63,.92)), url("../images/tiles/recovery.jpg"); }
.tile-ransom    { background-image: linear-gradient(transparent 30%, rgba(24,21,63,.92)), url("../images/tiles/ransomware.jpg"); }
.tile-cloud     { background-image: linear-gradient(transparent 30%, rgba(24,21,63,.92)), url("../images/tiles/cloud-tile.jpg"); }
.tile-microsoft { background-image: linear-gradient(transparent 30%, rgba(24,21,63,.92)), url("../images/tiles/microsoft.jpg"); }
.tile-outsource { background-image: linear-gradient(transparent 30%, rgba(24,21,63,.92)), url("../images/tiles/outsourcing.jpg"); }
.tile-other     { background-image: linear-gradient(transparent 30%, rgba(24,21,63,.92)), url("../images/tiles/other.jpg"); }
.tile-hci       { background-image: linear-gradient(transparent 40%, rgba(24,21,63,.92)), url("../images/cloud-computing/hci.png"); }
.tile-portal    { background-image: linear-gradient(transparent 40%, rgba(24,21,63,.92)), url("../images/cloud-computing/portal.png"); }
.tile-cluster   { background-image: linear-gradient(transparent 40%, rgba(24,21,63,.92)), url("../images/cloud-computing/clustered.png"); }
.tile-migration { background-image: linear-gradient(transparent 30%, rgba(24,21,63,.92)), url("../images/home/circuit.jpg"); }
.tile-hybrid    { background-image: linear-gradient(transparent 30%, rgba(24,21,63,.92)), url("../images/hero/cloud.jpg"); }

/* Click-to-drop-down text under a tile (button.tile[aria-controls] + .tile-drop) */
.tile-drop { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .3s ease, visibility .3s; }
.tile-drop > div { overflow: hidden; }
.tile-drop p { margin: 0; padding: 20px 22px; background: var(--tint); border-radius: 0 0 var(--radius) var(--radius); color: var(--muted); }
button.tile[aria-expanded="true"] + .tile-drop { grid-template-rows: 1fr; visibility: visible; }
button.tile[aria-expanded="true"] { border-radius: var(--radius) var(--radius) 0 0; transform: none; box-shadow: none; }
button.tile[aria-expanded="true"]::after { transform: rotate(45deg); }

/* Help banner */
.help-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 44px; padding: 34px 40px; border-radius: var(--radius); background: linear-gradient(120deg, var(--navy), #33309a); color: #fff; }
.help-banner h2 { color: #fff; font-size: 1.5rem; margin-bottom: 4px; }
.help-banner p { margin: 0; color: #d9dcf5; }

/* Split: text + photo */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; }
.split-text { padding: 72px max(40px, calc((100vw - var(--max)) / 2)); padding-right: 56px; display: flex; flex-direction: column; justify-content: center; }
.split.reverse .split-text { order: 2; padding-left: 56px; padding-right: max(40px, calc((100vw - var(--max)) / 2)); }
.split-text p { color: var(--muted); }
.split-media { background-size: cover; background-position: center; background-color: var(--navy); min-height: 320px; }
.media-circuit { background-image: url("../images/home/circuit.jpg"); }
.media-code    { background-image: url("../images/home/code.jpg"); }
.media-servers { background-image: url("../images/it-maintenance/servers.jpg"); }
.media-laptop  { background-image: url("../images/it-maintenance/laptop.jpg"); }
.media-team    { background-image: url("../images/career/team.jpg"); min-height: 520px; }

.tick-list { list-style: none; padding: 0; margin: 14px 0 0; }
.tick-list li { padding-left: 28px; position: relative; margin-bottom: 9px; }
.tick-list li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 14px; height: 8px; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); }
.on-dark .tick-list li::before { border-color: #aebcf8; }

/* Callout heading */
.callout { border-left: 5px solid var(--blue); background: var(--tint); padding: 28px 32px; border-radius: 0 var(--radius) var(--radius) 0; }
.callout h2 { margin-bottom: .4em; }
.callout p { margin: 0; color: var(--muted); }

/* Partner logos */
.partner-group { margin-top: 34px; }
.partner-group h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; text-align: center; }
.logo-row { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.logo-row li { background: #fff; border: 1px solid var(--line); border-radius: 10px; height: 92px; display: grid; place-items: center; padding: 16px 20px; }
.logo-row img { max-height: 52px; max-width: 100%; width: auto; object-fit: contain; }
.partner-group .logo-row, .logo-row-centered { display: flex; flex-wrap: wrap; justify-content: center; }
.partner-group .logo-row li, .logo-row-centered li { width: calc((100% - 70px) / 6); }
.chip-row { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip-row li { background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 600; border-radius: 999px; padding: 9px 20px; }

/* Products overview */
.product-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.product-card { grid-column: span 4; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(38, 34, 98, .16); }
.product-card:last-child { grid-column: 5 / span 4; }
.product-card > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--navy); }
.product-card-content { padding: 24px; }
.product-card-number { display: block; margin-bottom: 8px; color: var(--blue); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.product-card h2 { font-size: 1.35rem; }
.product-card p { margin: 0; color: var(--muted); }

/* Testimonials */
.quote-scroller { list-style: none; padding: 0 0 12px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; }
.quote-card { scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.quote-card blockquote { margin: 0 0 16px; color: var(--text); font-style: italic; }
.quote-card .who { margin: auto 0 0; color: var(--muted); font-size: .92rem; }
.quote-card .who strong { display: block; color: var(--navy); font-size: 1rem; }
.stars { color: #f2b01e; letter-spacing: 2px; margin: 0 0 12px; }
.stars .off { color: #d0d4e4; }

/* CTA band */
.cta-band { padding: 84px 0; text-align: center; color: #fff; background-color: var(--navy); background-size: cover; background-position: center; }
.cta-band h2 { color: #fff; }
.cta-band h3 { color: #fff; }
.cta-band p { color: #d9dcf5; max-width: 680px; margin-inline: auto; }
.cta-server { background-image: linear-gradient(rgba(24,21,63,.85), rgba(24,21,63,.85)), url("../images/home/server.jpg"); }
.cta-cloud { background-image: linear-gradient(rgba(24,21,63,.82), rgba(24,21,63,.82)), url("../images/hero/cloud.jpg"); }
.cta-big { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: .02em; }

/* About: stats, vision/mission/values, story */
.stats { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stats li { text-align: center; color: var(--muted); padding: 10px; }
.stats strong { display: block; font-size: 3rem; color: var(--navy); line-height: 1.1; margin-bottom: 8px; }
.vmv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vmv article { border-radius: var(--radius); padding: 34px; color: #e1e4f8; }
.vmv h2 { color: #fff; font-size: 1.5rem; }
.vmv p { margin: 0; }
.vmv-1 { background: var(--navy); }
.vmv-2 { background: var(--blue); }
.vmv-3 { background: var(--navy-dark); }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.story img, .rounded-img { border-radius: var(--radius); }
.photo-wide img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); }

/* DRaaS */
.icon-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.icon-list li { display: flex; align-items: center; gap: 14px; font-weight: 600; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.icon-list svg { width: 34px; height: 34px; flex: none; color: var(--blue); }
.pull-quote { margin: 24px 0 0; }
.pull-quote blockquote { margin: 0 0 14px; font-size: 1.3rem; color: var(--navy); font-style: italic; line-height: 1.5; }
.pull-quote figcaption { color: var(--muted); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.price-card { border-radius: var(--radius); padding: 34px; color: #fff; background-color: var(--navy); background-size: cover; background-position: center; display: flex; flex-direction: column; }
.price-card h3 { color: #fff; font-size: 1.7rem; margin-bottom: 4px; }
.price-card .tag { display: inline-block; align-self: flex-start; background: rgba(255,255,255,.18); border-radius: 999px; padding: 3px 14px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.price-card .price { font-size: 1.25rem; font-weight: 700; color: #cdd6fb; }
.price-card ul { padding-left: 20px; margin: 10px 0 18px; }
.price-card li { margin-bottom: 6px; }
.price-card .term { margin-top: auto; color: #cdd6fb; font-size: .92rem; }
.price-card.featured { outline: 3px solid var(--sky); outline-offset: 3px; }
.price-basic    { background-image: linear-gradient(rgba(24,21,63,.86), rgba(24,21,63,.93)), url("../images/draas/basic.jpg"); }
.price-enhanced { background-image: linear-gradient(rgba(38,34,98,.80), rgba(24,21,63,.93)), url("../images/draas/enhanced.jpg"); }
.price-premium  { background-image: linear-gradient(rgba(24,21,63,.86), rgba(24,21,63,.93)), url("../images/draas/premium.jpg"); }
.action-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0; }
.action-row a { display: block; padding: 18px; border: 1px solid rgba(255,255,255,.35); border-radius: 10px; color: #fff; text-decoration: none; font-weight: 600; }
.action-row a:hover { background: #fff; color: var(--navy); }
.faq details { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; background: #fff; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--navy); list-style: none; position: relative; padding-right: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 14px; font-size: 1.4rem; color: var(--blue); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

/* Solutions: numbered blocks */
.numbered { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.numbered article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 32px; position: relative; }
.numbered .no { display: block; font-size: 2.6rem; font-weight: 800; color: var(--tint); -webkit-text-stroke: 1.5px var(--blue); line-height: 1; margin-bottom: 14px; }
.numbered p { color: var(--muted); }
.numbered ul { padding-left: 20px; color: var(--text); }
.numbered li { margin-bottom: 4px; }
.offer-card { background: var(--navy); color: #e1e4f8; border-radius: var(--radius); padding: 32px; }
.offer-card h3 { color: #fff; font-size: 1.35rem; }
.offer-card small { display: block; font-size: .85rem; color: #aebcf8; font-weight: 500; margin-top: 4px; }
.band-text { background: var(--blue); color: #fff; text-align: center; padding: 26px 20px; font-size: clamp(1.2rem, 3vw, 2rem); font-weight: 800; letter-spacing: .18em; }

/* IT maintenance plans */
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; border-top: 5px solid var(--blue); }
.plan .kicker { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.plan h3 { font-size: 1.25rem; }
.plan .tick-list { margin-bottom: 22px; }
.plan .btn { margin-top: auto; text-align: center; }

/* Laptop photo cards */
.photo-cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.photo-cards img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); margin-bottom: 16px; }
.photo-cards p { color: var(--muted); }
.about-panel { background: linear-gradient(120deg, var(--navy-dark), var(--navy) 60%, #33309a); color: #e1e4f8; border-radius: var(--radius); padding: 48px; }
.about-panel h2 { color: #fff; }
.about-panel p { margin: 0; max-width: 820px; }

/* Event: staff quotes */
.staff-quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.staff-quote { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; border-left: 5px solid var(--blue); }
.staff-quote blockquote { margin: 0 0 20px; font-size: 1.08rem; color: var(--text); }
.staff-quote figcaption { display: flex; align-items: center; gap: 14px; }
.staff-quote img { width: 52px; height: 52px; border-radius: 50%; }
.staff-quote strong { display: block; color: var(--navy); }
.staff-quote span span { color: var(--muted); font-size: .92rem; }

/* Career: jobs (built from data/jobs.json) */
.job-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.job { border-radius: var(--radius); padding: 34px; color: #e1e4f8; background: var(--navy); display: flex; flex-direction: column; }
.job:nth-child(even) { background: var(--blue); }
.job h3 { color: #fff; font-size: 1.45rem; margin-bottom: 10px; }
.job .no { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #c3cdf9; margin-bottom: 8px; }
.job .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.job .tag { background: rgba(255,255,255,.16); color: #fff; border-radius: 999px; padding: 3px 12px; font-size: .8rem; font-weight: 600; }
.job ul { padding-left: 20px; margin-bottom: 20px; }
.job li { margin-bottom: 8px; }
.job .closing { color: #c3cdf9; font-size: .9rem; }
.job .btn { margin-top: auto; align-self: flex-start; }
.empty-state { text-align: center; padding: 44px 24px; border: 1px dashed var(--line); border-radius: var(--radius); background: #fff; color: var(--muted); }
.job-note { margin-top: 30px; color: var(--muted); }

/* Contact */
.contact-info > p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: flex-start; gap: 16px; background: var(--tint); border-radius: var(--radius); padding: 18px 20px; line-height: 1.55; }
.contact-list .icon { width: 44px; height: 44px; border-radius: 12px; margin: 0; flex: none; background: #fff; color: var(--blue); }
.contact-list .icon svg { width: 22px; height: 22px; }
.contact-label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-list strong { color: var(--navy); }
.contact-list a { font-weight: 600; font-size: 1.08rem; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-info { display: flex; flex-direction: column; }
.contact-info .map-frame { flex: 1; height: auto; min-height: 300px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: stretch; }
.map-frame { width: 100%; height: 100%; min-height: 520px; border: 0; border-radius: var(--radius); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: .94rem; color: var(--navy); }
.req { color: var(--blue); }
input, select, textarea { font: 1rem var(--font); padding: 12px 14px; border: 1px solid #c4cce6; border-radius: 8px; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 2px solid rgba(47,91,211,.2); }
textarea { min-height: 150px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); }
.consent input { margin-top: 6px; }
.hp-field { position: absolute; left: -9999px; }
.form-status { margin-top: 16px; font-weight: 600; }
.form-status.ok { color: #1c7c3c; }
.form-status.err { color: #b42318; }
/* Contact form: confirmation pop-up before sending */
.confirm-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100vh - 48px); overflow-y: auto; padding: 32px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); background: #fff; }
.confirm-dialog::backdrop { background: rgba(24, 21, 63, .55); }
.confirm-dialog[open] { animation: topic-in .2s ease; }
.confirm-dialog h3 { margin: 0 0 4px; color: var(--navy); font-size: 1.35rem; }
.confirm-lead { margin: 0 0 18px; color: var(--muted); }
.confirm-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; padding: 18px; background: var(--tint); border-radius: 8px; }
.confirm-list dt { font-weight: 600; font-size: .94rem; color: var(--navy); }
.confirm-list dd { margin: 0; overflow-wrap: anywhere; }
.confirm-message { white-space: pre-line; max-height: 180px; overflow-y: auto; }
.confirm-dialog .btn-row { justify-content: flex-end; margin-top: 22px; }
@media (max-width: 520px) {
  .confirm-dialog { padding: 22px; }
  .confirm-list { grid-template-columns: 1fr; gap: 2px; }
  .confirm-list dd { margin-bottom: 10px; }
  .confirm-dialog .btn-row .btn { flex: 1; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .confirm-dialog[open] { animation: none; } }

/* Placeholder text: content still to be confirmed. Search for class="placeholder" before launch. */
.placeholder { background: #fff6d6; border: 1px dashed #d9a400; border-radius: 4px; padding: 0 4px; color: #6b5200; }

/* Prose (privacy policy) */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #c9cdea; padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 44px; }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; columns: 2; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #c9cdea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; }
/* Same navy logo, turned white so it shows on the dark footer */
.footer-brand img { width: auto; height: 44px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem; }

/* ---------- Motion ---------- */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-gradient {
  to { background-position: 100% 0; }
}
@keyframes tile-appear {
  from { clip-path: inset(100% 0 0 0 round 12px); translate: 0 20px; }
  to { clip-path: inset(0); translate: 0 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero > .container { animation: rise-in .9s ease-out; }
  .hero > .container:focus-within { animation: none; }
  .hero-accent { animation: hero-gradient 7s ease-in-out infinite alternate; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .btn { transition: background .15s, color .15s, border-color .15s, transform .2s, box-shadow .2s; }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(24, 21, 63, .18); }
  :is(.card:not(.topic-card), .plan, .price-card, .numbered article, .job, .logo-row li) { transition: transform .2s, box-shadow .2s; }
  :is(.card:not(.topic-card), .plan, .price-card, .numbered article, .job, .logo-row li):hover { transform: translateY(-4px); box-shadow: var(--shadow); }
}
@media (prefers-reduced-motion: no-preference) {
  .motion-item.motion-item { transition: opacity .8s ease, translate .8s cubic-bezier(.2, .7, .2, 1), transform .25s, box-shadow .25s, border-color .2s; }
  .motion-item:not(.motion-in):not(:focus-within) { opacity: .08; translate: 0 24px; }
  .motion-item.motion-above:not(.motion-in):not(:focus-within) { translate: 0 -24px; }
}
@supports (clip-path: inset(0)) {
  @media (prefers-reduced-motion: no-preference) {
    .sequence-ready:not(.sequence-visible):not(:focus-within) { clip-path: inset(100% 0 0 0); }
    .sequence-visible:not(.sequence-complete):not(:focus-within) { animation: tile-appear .6s cubic-bezier(.2, .7, .2, 1) backwards; }
    .sequence-visible:not(.sequence-complete):nth-child(6n+2) { animation-delay: .12s; }
    .sequence-visible:not(.sequence-complete):nth-child(6n+3) { animation-delay: .24s; }
    .sequence-visible:not(.sequence-complete):nth-child(6n+4) { animation-delay: .36s; }
    .sequence-visible:not(.sequence-complete):nth-child(6n+5) { animation-delay: .48s; }
    .sequence-visible:not(.sequence-complete):nth-child(6n+6) { animation-delay: .6s; }
  }
}
@media (forced-colors: active), print {
  .hero-accent { background: none; color: inherit; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px 20px 20px; max-height: calc(100vh - 76px); overflow-y: auto; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; }
  .submenu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
  .submenu-btn { width: 100%; text-align: left; }
  .submenu-btn::after { content: ""; }
  .main-nav .nav-cta { margin: 8px 0 0; text-align: center; }
  .tiles-4, .grid-4, .stats, .photo-cards { grid-template-columns: repeat(2, 1fr); }
  .logo-row { grid-template-columns: repeat(3, 1fr); }
  .partner-group .logo-row li, .logo-row-centered li { width: calc((100% - 28px) / 3); }
  .threat-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .product-card { grid-column: span 6; }
  .product-card:last-child { grid-column: 4 / span 6; }
}
@media (max-width: 780px) {
  body { font-size: 16px; }
  .section, .cta-band { padding: 60px 0; }
  .hero { padding: 72px 0; }
  .hero-tall { padding: 96px 0; }
  .grid-2, .grid-3, .grid-4, .tiles-3, .tiles-4, .split, .story, .vmv, .icon-list, .price-grid, .action-row, .numbered,
  .photo-cards, .staff-quotes, .job-grid, .contact-split, .form-grid, .hero-split, .footer-grid { grid-template-columns: 1fr; }
  .split .split-text, .split.reverse .split-text { order: 1; padding: 48px 20px; }
  .split .split-media { order: 2; }
  .grid.grid-wide { gap: 22px; }
  .logo-row, .threat-row { grid-template-columns: repeat(2, 1fr); }
  .partner-group .logo-row li, .logo-row-centered li { width: calc((100% - 14px) / 2); }
  .stats { grid-template-columns: 1fr 1fr; }
  .map-frame { min-height: 340px; }
  .help-banner { padding: 28px; }
  .about-panel { padding: 32px; }
  .topic-panel, .form-card { padding: 24px; }
  .topic-head h3 { font-size: 1.25rem; }
}
@media (max-width: 600px) {
  .product-card, .product-card:last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile, .topic-card, .product-card, .btn, .tile-drop, button.tile::after { transition: none; }
  .topic-panel:target { animation: none; }
  .topic-card:hover, .product-card:hover, a.tile:hover, button.tile:hover { transform: none; }
}
.cta-band .btn-row { justify-content: center; }
.map-frame { background: var(--tint); }
