/* Cloud Solutions by ClickNext — landing page */

/* NOTE: self-hosted, no runtime dependency on Google Fonts. License: fonts/OFL.txt */
@font-face {
  font-family: "Noto Sans Thai";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/noto-sans-thai-thai.woff2") format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
  font-family: "Noto Sans Thai";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/noto-sans-thai-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* NOTE: palette follows ClickNext (red primary, charcoal text, light grey-blue background).
   Accent is darker than ClickNext #F20024 so text and buttons pass contrast on white. */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --text: #22272e;
  --text-muted: #5a636e;
  --border: #e2e7ed;
  --accent: #d7001f;
  --accent-hover: #ae001a;
  --accent-soft: #fdecef;
  --dark: #22272e;
  --dark-muted: #b3bac4;

  --radius: 10px;
  --max-width: 1140px;
  --font: "Noto Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.4;
}

p {
  margin: 0;
}

.nowrap {
  white-space: nowrap;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.eyebrow {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-sm {
  padding: 7px 16px;
  font-size: 14px;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: #ffffff;
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
}

.btn-light {
  background: #ffffff;
  color: var(--dark);
}

.btn-light:hover {
  background: var(--accent-soft);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.brand {
  display: flex;
  white-space: nowrap;
  align-items: baseline;
  gap: 8px;
}

.brand img {
  align-self: center;
}

.brand-name {
  font-weight: 700;
  font-size: 18px;
}

.brand-by {
  font-size: 13px;
  color: var(--text-muted);
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
  color: var(--text-muted);
}

.nav a:hover {
  color: var(--text);
}

/* Hero */

.hero {
  padding: 88px 0 80px;
  background: linear-gradient(var(--bg-alt), var(--bg));
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: 46px;
  font-weight: 700;
  margin-bottom: 16px;
}

.lead {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 32em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Hero offer panel: Cloud Services + Solutions */

.offer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.offer-block {
  padding: 22px 24px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.offer-dark {
  background: var(--dark);
  border-color: var(--dark);
  color: #ffffff;
}

.offer-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.offer-dark .offer-label {
  color: var(--dark-muted);
}

.offer-plus {
  align-self: center;
  width: 32px;
  height: 32px;
  margin: -8px 0;
  z-index: 1;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  border-radius: 50%;
}

.providers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* NOTE: text labels only, no vendor logos — partner status is not confirmed */
.provider {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-muted);
  background: #ffffff;
}

.provider-primary {
  border-color: var(--text);
  color: var(--text);
  font-size: 18px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.steps li {
  padding: 8px 0;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  border-top: 2px solid var(--accent);
}

/* Sections */

.section {
  padding: 88px 0;
}

.section-tight {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 40px;
}

.section h2 {
  font-size: 32px;
  font-weight: 700;
}

.section-intro {
  margin-top: 8px;
  color: var(--text-muted);
  max-width: 40em;
}

.providers-head {
  margin-top: 18px;
}

/* Cloud Services: name-only tiles, no product catalog */

.tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 20px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
}

.tiles-note {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 15px;
}

.icon {
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 8px;
  background: var(--accent-soft);
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Professional Services: Plan -> Build -> Run, equal weight */

.stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* NOTE: subgrid keeps the stage heads the same height, so service lists start on one line */
.stage {
  position: relative;
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  row-gap: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
}

/* NOTE: arrow between stages shows the flow from plan to production */
.stage:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 44px;
  right: -25px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  clip-path: polygon(30% 10%, 80% 50%, 30% 90%, 30% 70%, 58% 50%, 30% 30%);
}

.stage-head {
  padding: 24px 26px 20px;
  border-bottom: 1px solid var(--border);
}

.stage-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
}

.stage-head h3 {
  font-size: 24px;
  margin-bottom: 6px;
}

.stage-head p {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.65;
}

.stage-list {
  list-style: none;
  margin: 0;
  padding: 16px 26px 22px;
}

.stage-list li {
  position: relative;
  padding: 6px 0 6px 18px;
  font-size: 16px;
  font-weight: 500;
}

.stage-list li::before {
  content: "";
  position: absolute;
  left: 0;
  /* NOTE: aligned to the first line so two-line items keep the dot at the top */
  top: calc(6px + 0.85em);
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--accent);
}

/* AI Infrastructure & Platform: deliberately smaller than the two main services */

.ai-panel {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: center;
  padding: 36px 40px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--dark);
  border-radius: 14px;
}

.section .ai-panel h2 {
  font-size: 26px;
}

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips li {
  padding: 7px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
}

/* Why ClickNext */

.why {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

.why-sub {
  margin-top: 10px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
}

.why-body {
  display: grid;
  gap: 36px;
}

/* NOTE: the two core strengths are promoted; the other four support them */
.highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.highlight {
  padding: 26px 28px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}

.highlight h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.highlight p {
  color: var(--text-muted);
}

.points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
}

.points li {
  padding-left: 18px;
  border-left: 2px solid var(--border);
}

.points h3 {
  font-size: 17px;
  margin-bottom: 2px;
}

.points p {
  color: var(--text-muted);
  font-size: 16px;
}

/* Contact */

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px;
  background: var(--dark);
  color: #ffffff;
  border-radius: 14px;
  border-bottom: 4px solid var(--accent);
}

.cta-panel h2 {
  font-size: 28px;
  margin-bottom: 6px;
}

.cta-panel p {
  color: var(--dark-muted);
}

/* Footer */

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}

.site-footer strong {
  color: var(--text);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.footer-note {
  margin-top: 8px;
  font-size: 12.5px;
  color: #8a929c;
}

/* Responsive: tablet */

@media (max-width: 1000px) {
  .tiles {
    grid-template-columns: repeat(3, 1fr);
  }

  .stages {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .stage:not(:last-child)::after {
    top: auto;
    bottom: -29px;
    right: auto;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 64px 0;
  }

  .hero-inner,
  .why {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .nav {
    display: none;
  }

  .header-inner {
    justify-content: space-between;
  }

  .ai-panel {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px 28px;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 28px;
  }
}

/* Responsive: mobile */

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 16px;
  }

  .brand-by {
    display: none;
  }

  .hero h1 {
    font-size: 32px;
  }

  .lead {
    font-size: 17px;
  }

  .section,
  .section-tight {
    padding: 60px 0;
  }

  .section h2 {
    font-size: 25px;
  }

  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  .highlights,
  .points {
    grid-template-columns: 1fr;
  }
}
