/* Cornucopia Solutions Pte. Ltd. — v2 stylesheet (light, corporate, hero-led layout) */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --surface: #ffffff;
  --border: #e3e8f0;
  --text: #16203a;
  --text-muted: #5b6579;
  --accent: #1d4ed8;
  --accent-2: #2f6fed;
  --accent-soft: rgba(29, 78, 216, 0.08);
  --radius: 12px;
  --max-width: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Inter, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-2);
}

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

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

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: 0.2px;
}

nav.main-nav {
  display: flex;
  gap: 30px;
}

nav.main-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 7px;
  font-weight: 600;
  border-bottom: none !important;
}

.nav-cta:hover {
  background: var(--accent-2);
}

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

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 24px 100px;
  background: linear-gradient(125deg, #0f1f4d 0%, #1d4ed8 55%, #2f6fed 100%);
  color: #fff;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.hero::before {
  width: 420px;
  height: 420px;
  top: -160px;
  right: -120px;
}

.hero::after {
  width: 260px;
  height: 260px;
  bottom: -120px;
  right: 18%;
  background: rgba(255, 255, 255, 0.06);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.85);
}

.section-head .eyebrow,
.page-header .eyebrow {
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin: 0 0 20px;
  max-width: 720px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 0 32px;
}

.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}

.btn-primary {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  color: var(--accent-2);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.btn-outline:hover {
  border-color: #fff;
  color: #fff;
}

/* On light sections, buttons need dark-on-light variants */
section:not(.hero) .btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px var(--accent-soft);
}

section:not(.hero) .btn-primary:hover {
  background: var(--accent-2);
  color: #fff;
}

section:not(.hero) .btn-outline {
  color: var(--accent);
  border: 1px solid var(--border);
}

section:not(.hero) .btn-outline:hover {
  border-color: var(--accent);
}

/* Sections */
section {
  padding: 72px 24px;
}

section.alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 620px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  margin: 0 0 12px;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

/* Cards / grid */
.grid {
  display: grid;
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(29, 78, 216, 0.08);
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card .icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, #1d4ed8, #2f6fed);
  color: #fff;
  text-align: center;
  border-radius: var(--radius);
  padding: 56px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.cta-banner h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-banner p {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.85);
}

/* Page header (inner pages) */
.page-header {
  padding: 72px 24px 44px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  margin: 0 0 14px;
}

.page-header p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0;
}

/* Company info list */
.info-list {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.info-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
}

.info-item .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
  font-weight: 700;
}

.info-item .value {
  font-size: 1rem;
  color: var(--text);
}

/* Contact layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: start;
}

.email-card {
  text-align: center;
  padding: 44px 30px;
}

.email-card .icon {
  margin: 0 auto 18px;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  color: var(--text-muted);
  font-size: 0.88rem;
  background: var(--bg-alt);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

/* Responsive */
@media (max-width: 860px) {
  .grid-3,
  .grid-2,
  .info-list,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  nav.main-nav {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 14px;
    display: none;
  }

  nav.main-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }
}
