/*
  Goal: New/updated canopytechnology.com.sg website — built to (1) present Canopy's
  real services & pricing, (2) satisfy IMDA PSG "pre-approved vendor" website
  requirements (solution page, pricing, documented support hours), and
  (3) be optimised for GEO — both AI answer-engine visibility (structured data,
  FAQ content) and local Singapore search visibility.
  Shared stylesheet for every page.

  Visual style (2026-09 refresh): modelled on the dark-hero / gradient-headline /
  pill-button look of webpuppies.com.sg's web-development page, re-skinned in
  Canopy's real logo colours (slate #597A8B, red #BF2027) instead of their blue.
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --canopy-slate: #597A8B;
  --canopy-slate-dark: #3F5A68;
  --canopy-slate-light: #9DC0CF;
  --canopy-red: #BF2027;
  --canopy-red-dark: #971A20;
  --canopy-coral: #FF6B6F;
  --ink: #1C2226;
  --ink-soft: #4B565C;
  --bg: #FFFFFF;
  --bg-alt: #F4F6F7;
  --border: #E1E6E8;
  --radius: 14px;
  --max-width: 1140px;

  --navy: #0A121D;
  --navy-alt: #101B29;
  --navy-border: rgba(255,255,255,0.14);
  --on-dark: #FFFFFF;
  --on-dark-soft: rgba(255,255,255,0.72);

  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

h1, h2, h3, h4, h5 { font-weight: 700; letter-spacing: -0.01em; }

img { max-width: 100%; display: block; }

a { color: var(--canopy-slate-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: rgba(63,90,104,0.45); }
a:hover { text-decoration-color: currentColor; }
a.no-underline, .btn, .nav-cta, .brand, .social-row a, .pill { text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Dotted-grid texture for dark hero sections, applied via ::before so no extra markup is needed */
.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.14) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 0%, #000 40%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 0%, #000 40%, transparent 85%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Header / Nav ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(6px);
  z-index: 50;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-logo { height: 48px; width: auto; display: block; }
@media (max-width: 500px) { .brand-logo { height: 38px; } }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--canopy-red);
  border-bottom-color: var(--canopy-red);
  text-decoration: none;
}
.nav-links a.active { color: var(--canopy-red); border-bottom-color: var(--canopy-red); }
.nav-links a.nav-cta,
.nav-links a.nav-cta:hover { border-bottom-color: transparent; }

.nav-cta {
  background: linear-gradient(135deg, var(--canopy-red) 0%, var(--canopy-red-dark) 100%);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(191,32,39,0.35);
  transition: filter 0.15s, transform 0.15s;
}
.nav-cta:hover { filter: brightness(1.08); text-decoration: none; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--ink);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 1rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 14px;
    padding: 16px 20px 20px;
    border-top: 1px solid var(--border);
    background: #fff;
  }
  .nav-links.open { display: flex; }
  .nav-row { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 70% 60% at 75% -10%, rgba(157,192,207,0.28), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, #0d1c2b 55%, #0a1420 100%);
  color: #fff;
  padding: 72px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-backsplash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 800;
  margin: 0 0 14px;
  line-height: 1.15;
  color: #fff;
  background: linear-gradient(90deg, #E7F0F4 0%, var(--canopy-slate-light) 45%, var(--canopy-red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero h1 { -webkit-text-fill-color: transparent; color: transparent; }
}
.hero p.lead {
  font-size: 1.1rem;
  max-width: 640px;
  color: #EAF1F4;
  margin: 0 0 26px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s, background 0.15s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--canopy-red) 0%, var(--canopy-red-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(191,32,39,0.32);
}
.btn-primary:hover { filter: brightness(1.08); text-decoration: none; transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-outline:hover { background: rgba(255,255,255,0.12); text-decoration: none; }
.btn-dark { background: var(--navy-alt); color: #fff; border: 1px solid var(--navy-border); }
.btn-dark:hover { background: #000; text-decoration: none; }

.trust-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
.trust-grid .stat b { display: block; font-size: 1.3rem; color: var(--canopy-slate-dark); }
.trust-grid .stat span { font-size: 0.85rem; color: var(--ink-soft); }
@media (max-width: 700px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sections ---------- */
section.block { padding: 60px 0; }
section.block.alt { background: var(--bg-alt); }

section.block.dark {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-alt) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
section.block.dark .section-head h2 { color: #fff; }
section.block.dark .section-head p { color: var(--on-dark-soft); }
section.block.dark .section-head .eyebrow { color: var(--canopy-coral); }
section.block.dark .container { position: relative; z-index: 1; }

.section-head { max-width: 700px; margin: 0 0 34px; }
.section-head .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--canopy-red);
  margin: 0 0 8px;
}
.section-head h2 { font-size: 1.9rem; margin: 0 0 10px; }
.section-head p { color: var(--ink-soft); margin: 0; }

.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(28,34,38,0.08); }
.card h3 { margin: 8px 0 8px; font-size: 1.1rem; }
.card p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }
.card .icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  color: var(--canopy-slate-dark);
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.card a.card-link { font-weight: 600; font-size: 0.9rem; display: inline-block; margin-top: 10px; }

.block.dark .card {
  background: rgba(255,255,255,0.05);
  border-color: var(--navy-border);
}
.block.dark .card:hover { box-shadow: 0 14px 30px rgba(0,0,0,0.35); border-color: rgba(255,255,255,0.25); }
.block.dark .card h3 { color: #fff; }
.block.dark .card p { color: var(--on-dark-soft); }
.block.dark .card .icon { background: rgba(255,255,255,0.1); color: #fff; }
.block.dark .card a.card-link { color: var(--canopy-slate-light); }

/* ---------- Pricing ---------- */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.pricing-table th, .pricing-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.pricing-table th { background: var(--bg-alt); font-weight: 700; }
.pricing-table tr:last-child td { border-bottom: none; }
.price-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 10px;
}

.tier-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 700px) { .tier-cards { grid-template-columns: 1fr; } }
.tier-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: #fff;
  transition: transform 0.18s, box-shadow 0.18s;
}
.tier-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(28,34,38,0.08); }
.tier-card.featured { border-color: var(--canopy-red); box-shadow: 0 0 0 1px var(--canopy-red); }
.tier-card .tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--canopy-red) 0%, var(--canopy-red-dark) 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.tier-card .price { font-size: 1.8rem; font-weight: 800; color: var(--canopy-slate-dark); margin: 6px 0; }
.tier-card .price small { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); }
.tier-card ul { padding-left: 20px; margin: 14px 0; color: var(--ink-soft); font-size: 0.92rem; }
.tier-card ul li { margin-bottom: 6px; }

/* ---------- Support hours box ---------- */
.support-box {
  border: 1px solid var(--border);
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.support-box .icon { font-size: 1.6rem; }
.support-box h4 { margin: 0 0 6px; }
.support-box p { margin: 0 0 4px; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Testimonials / case studies ---------- */
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.testimonial:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(28,34,38,0.08); }
.testimonial p.quote { font-style: italic; color: var(--ink); margin: 0 0 14px; }
.testimonial .who { font-weight: 700; font-size: 0.9rem; }
.testimonial .who span { font-weight: 400; color: var(--ink-soft); }

.case-study {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: #fff;
  margin-bottom: 20px;
}
.case-study h3 { margin-top: 0; }
.case-study .cs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 12px; }
.case-study .cs-grid div b { display: block; color: var(--canopy-red); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
@media (max-width: 700px) { .case-study .cs-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-item h3 { margin: 0 0 8px; font-size: 1.05rem; }
.faq-item p { margin: 0; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-alt) 100%);
  color: #fff;
  padding: 56px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { margin: 0 0 10px; font-size: 1.7rem; }
.cta-band p { color: var(--on-dark-soft); margin: 0 0 22px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #B9C2C7; padding: 46px 0 24px; border-top: 1px solid var(--navy-border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h5 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 14px; }
.site-footer a { color: #B9C2C7; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; font-size: 0.9rem; }
.social-row { display: flex; gap: 12px; margin-top: 18px; }
.social-row a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: #B9C2C7;
  transition: background 0.15s, color 0.15s;
}
.social-row a:hover { background: var(--canopy-red); color: #fff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid var(--navy-border);
  margin-top: 34px;
  padding-top: 18px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Breadcrumb / page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(ellipse 70% 80% at 80% -20%, rgba(157,192,207,0.24), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, #0d1c2b 100%);
  color: #fff;
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 700; color: var(--canopy-coral);
}
.page-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  color: #fff;
}
.page-hero p { color: var(--on-dark-soft); max-width: 680px; margin: 0; }

.industries-band { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Illustrations / imagery ---------- */
.skyline-banner { position: relative; width: 100%; height: 170px; overflow: hidden; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.skyline-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; display: block; }
.skyline-banner .caption {
  position: absolute; left: 0; right: 0; bottom: 10px;
  text-align: center; font-size: 0.8rem; color: var(--ink-soft);
  letter-spacing: 0.03em;
}
@media (max-width: 600px) { .skyline-banner { height: 120px; } }

.illustration-frame {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  transition: box-shadow 0.18s;
}
.illustration-frame img { width: 100%; height: auto; display: block; border-radius: 6px; }
.illustration-frame:hover { box-shadow: 0 14px 30px rgba(0,0,0,0.35); }

.social-tip-caption { font-size: 0.85rem; text-align: center; margin: 10px 0 0; color: var(--on-dark-soft); }
.social-follow-label { font-weight: 600; color: #fff; margin: 0 0 10px; }

/* ---------- KPI grid ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 22px; }
@media (max-width: 500px) { .kpi-grid { grid-template-columns: 1fr; } }
.kpi-stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.kpi-stat b { display: block; font-size: 1.5rem; color: var(--canopy-slate-dark); }
.kpi-stat span { font-size: 0.85rem; color: var(--ink-soft); }
.kpi-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 14px; }
