/* Principled Computer Services
   Type: Montserrat (matches the logo wordmark)
   Colors pulled from the logo: navy wordmark, slate subline, recycle green, shield cyan */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
}

:root {
  --navy: #0a4775;         /* "PRINCIPLED" */
  --navy-700: #083a61;
  --ink: #0b2238;          /* dark sections */
  --ink-800: #0f2c47;
  --slate: #3b5667;        /* "COMPUTER SERVICES" + tagline */
  --slate-400: #6b8291;
  --green: #2e9e2f;        /* recycle arrows */
  --green-600: #23852a;
  --green-bright: #5bc236;
  --cyan: #22b3e6;         /* shield glow */
  --bg: #ffffff;
  --bg-soft: #f3f6f8;
  --line: #dde5eb;
  --line-dark: rgba(255, 255, 255, 0.12);

  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 10px 30px rgba(11, 34, 56, 0.08);
  --max: 1200px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--slate);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--green-600); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.accent { color: var(--green); }
.accent-cyan { color: var(--cyan); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: #c9d6e0; }
.section-dark h2, .section-dark h3 { color: #fff; }
@media (max-width: 700px) { .section { padding: 64px 0; } }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.section-dark .eyebrow { color: var(--green-bright); }
.lead { font-size: 1.15rem; color: var(--slate); max-width: 640px; }
.section-dark .lead { color: #c9d6e0; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 48px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 0.95rem;
  padding: 14px 24px; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  text-decoration: none; line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-600); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.section-dark .btn-outline, .btn-outline-light { border-color: rgba(255,255,255,0.5); color: #fff; }
.section-dark .btn-outline:hover, .btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.link-arrow { font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow::after { content: "\2192"; transition: transform 0.15s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* Top bar + header */
.topbar { background: var(--ink); color: #c9d6e0; font-size: 0.82rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; font-weight: 600; }
.topbar a:hover { color: var(--green-bright); }
@media (max-width: 700px) { .topbar .hide-sm { display: none; } .topbar .container { justify-content: center; } }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand img { width: 64px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-weight: 800; font-size: 1.6rem; letter-spacing: 0.02em; color: var(--navy); }
.brand-text span { font-weight: 500; font-size: 0.8rem; letter-spacing: 0.14em; color: var(--slate); margin-top: 5px; }
@media (max-width: 480px) {
  .brand img { width: 52px; }
  .brand-text strong { font-size: 1.3rem; }
  .brand-text span { font-size: 0.66rem; }
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); font-weight: 600; font-size: 0.9rem; padding: 8px 10px; border-radius: var(--radius); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green-600); }
.nav .btn { margin-left: 8px; padding: 11px 18px; color: #fff; }
.nav .btn:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1140px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 92px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px; box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin: 16px 0 0; justify-content: center; border-bottom: 0; }
}

/* Hero */
.hero {
  padding: 120px 0 128px; overflow: hidden;
  background: #fff url("/assets/img/hero-datacenter.webp") right center / cover no-repeat;
}
.hero-content { max-width: 560px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: 1.2rem; }
.hero-art { position: relative; }
.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(11, 34, 56, 0.12); padding: 28px;
}
.hero-card-head { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.hero-card-head img { width: 44px; }
.hero-card-head strong { color: var(--navy); display: block; font-size: 1rem; }
.hero-card-head span { font-size: 0.8rem; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px dashed var(--line); color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat;
}
.checklist li small { display: block; font-weight: 500; color: var(--slate-400); font-size: 0.82rem; }
.section-dark .checklist li { color: #fff; border-color: var(--line-dark); }
.hero-badge {
  position: absolute; right: -14px; bottom: -22px; background: var(--navy); color: #fff;
  border-radius: var(--radius-lg); padding: 16px 20px; box-shadow: var(--shadow); text-align: center;
}
.hero-badge strong { display: block; font-size: 2rem; font-weight: 800; line-height: 1; }
.hero-badge span { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
@media (max-width: 900px) {
  .hero { padding: 56px 0 64px; background-position: 75% center; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-badge { right: 12px; }
}

@media (max-width: 1100px) {
  /* Racks sit behind the text on narrower screens: wash them out so the copy stays readable */
  .hero { background-image: linear-gradient(90deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.86) 60%, rgba(255,255,255,0.55) 100%), url("/assets/img/hero-datacenter.webp"); }
}

/* Trust strip */
.trust { background: var(--ink); color: #c9d6e0; }
.trust .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust-item { padding: 26px 20px; border-left: 1px solid var(--line-dark); display: flex; gap: 14px; align-items: center; }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item svg { flex: 0 0 30px; width: 30px; height: 30px; color: var(--green-bright); }
.trust-item strong { color: #fff; display: block; font-size: 0.95rem; }
.trust-item span { font-size: 0.8rem; display: block; line-height: 1.4; }
@media (max-width: 900px) {
  .trust .container { grid-template-columns: 1fr 1fr; }
  .trust-item { border-left: 0; padding-left: 0; }
}
@media (max-width: 520px) { .trust .container { grid-template-columns: 1fr; } .trust-item { padding: 14px 0; } }

/* Tabs (platform-style panel) */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.tab {
  font-family: inherit; font-weight: 600; font-size: 0.88rem; cursor: pointer;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-dark);
  background: transparent; color: #c9d6e0; transition: all 0.15s;
}
.tab:hover { color: #fff; border-color: rgba(255,255,255,0.35); }
.tab[aria-selected="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  background: var(--ink-800); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: 48px;
}
.panel[hidden] { display: none; }
.panel-icon { width: 56px; height: 56px; border-radius: 12px; background: rgba(91, 194, 54, 0.14); display: grid; place-items: center; margin-bottom: 20px; color: var(--green-bright); }
.panel-icon svg { width: 28px; height: 28px; }
.panel h3 { font-size: 1.6rem; }
.panel-side { background: rgba(255,255,255,0.04); border-radius: var(--radius); padding: 24px 28px; }
@media (max-width: 800px) { .panel { grid-template-columns: 1fr; padding: 28px 20px; gap: 24px; } }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px; transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #c9d6e0; }
.card .icon { width: 48px; height: 48px; border-radius: 10px; background: #e8f5e6; color: var(--green-600); display: grid; place-items: center; margin-bottom: 18px; }
.card .icon.blue { background: #e3f1fa; color: var(--navy); }
.card .icon svg { width: 24px; height: 24px; }
.card p { font-size: 0.95rem; }
.card .link-arrow { margin-top: auto; padding-top: 8px; font-size: 0.9rem; }
.card-accent { border-top: 4px solid var(--green); }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } .split-reverse > :first-child { order: 0; } }

.feature-box {
  background: linear-gradient(145deg, var(--navy) 0%, var(--ink) 100%); color: #d6e2ea;
  border-radius: var(--radius-lg); padding: 40px; position: relative; overflow: hidden;
}
.feature-box::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,179,230,0.35), transparent 70%);
}
.feature-box h3 { color: #fff; font-size: 1.5rem; }
.feature-box .checklist li { color: #fff; border-color: var(--line-dark); }
.feature-box .checklist li small { color: #9fb3c2; }

/* Stats (recognition-style) */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-dark); }
.stat { padding: 32px 24px 8px 0; display: flex; gap: 20px; align-items: baseline; border-bottom: 1px solid var(--line-dark); }
.stat strong { font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 800; color: var(--green-bright); line-height: 1; min-width: 110px; }
.stat span { font-size: 0.9rem; color: #c9d6e0; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr; } }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; font-size: 2.2rem; font-weight: 800; color: var(--green); line-height: 1;
}
.step h3 { font-size: 1.1rem; }
.step p { font-size: 0.95rem; }

/* Chips list (what we buy) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 0.88rem; color: var(--ink); }
.section-dark .chips li { background: rgba(255,255,255,0.06); border-color: var(--line-dark); color: #fff; }

/* Page hero (interior pages) */
.page-hero { background: var(--ink); color: #c9d6e0; padding: 80px 0 72px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(46,158,47,0.25), transparent 70%),
    radial-gradient(500px 300px at 70% 100%, rgba(34,179,230,0.18), transparent 70%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); max-width: 820px; }
.page-hero .lead { color: #c9d6e0; }
.page-hero .eyebrow { color: var(--green-bright); }
.breadcrumbs { font-size: 0.82rem; margin-bottom: 18px; color: #9fb3c2; }
.breadcrumbs a { color: #fff; }

/* FAQ accordion */
.faq-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; gap: 32px; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 700; color: var(--ink); font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.6rem; font-weight: 400; color: var(--green); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 20px 0; margin: 0; font-size: 0.95rem; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--ink) 70%); color: #d6e2ea; border-radius: var(--radius-lg); padding: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band .btn-row { justify-content: flex-end; margin-top: 0; }
.cta-phone { display: block; font-size: 1.6rem; font-weight: 800; color: #fff; margin-top: 4px; }
.cta-phone:hover { color: var(--green-bright); }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; padding: 36px 24px; } .cta-band .btn-row { justify-content: flex-start; } }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list svg { flex: 0 0 24px; width: 24px; height: 24px; color: var(--green); margin-top: 2px; }
.contact-list strong { display: block; color: var(--ink); }
.map-embed { border: 0; width: 100%; height: 280px; border-radius: var(--radius-lg); margin-top: 24px; }

/* Product tags */
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: auto 0 0; padding: 8px 0 0; }
.tags li { font-size: 0.72rem; font-weight: 700; color: var(--navy); background: var(--bg-soft); border-radius: 4px; padding: 4px 8px; }

/* Values */
.value { border-left: 3px solid var(--green); padding: 4px 0 4px 20px; }
.value h3 { margin-bottom: 6px; }
.quote { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 600; color: var(--navy); line-height: 1.4; margin: 0; }
.quote .accent { font-weight: 800; }

/* Footer */
.site-footer { background: var(--ink); color: #9fb3c2; padding: 72px 0 28px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #c9d6e0; }
.site-footer a:hover { color: var(--green-bright); }
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text span { color: #9fb3c2; }
.footer-tagline { margin-top: 18px; color: #c9d6e0; font-weight: 600; }
.footer-tagline span { color: var(--green-bright); }
.footer-bottom { border-top: 1px solid var(--line-dark); margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.8rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--green); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 16px; top: 16px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* Stats beside text stack in one column */
.split .stats { grid-template-columns: 1fr; }
