/* =========================================================
   Pavure Pte. Ltd. — Shared Stylesheet
   Palette derived from logo: deep indigo/violet + warm gold
   ========================================================= */

:root {
  --bg-0: #0b0820;
  --bg-1: #120e2e;
  --bg-2: #1a1340;
  --bg-3: #241a55;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(212, 184, 120, 0.18);
  --border-strong: rgba(212, 184, 120, 0.35);

  --gold: #d4b878;
  --gold-bright: #e8cf94;
  --gold-deep: #b89a5e;
  --violet: #6b4ee6;
  --violet-soft: #8a73f0;

  --text: #ece9f5;
  --text-dim: #b3acc8;
  --text-muted: #847e9c;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 60px rgba(212, 184, 120, 0.15);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif;

  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(107, 78, 230, 0.25), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(212, 184, 120, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--text-dim); }

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

/* ================ NAVIGATION ================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 8, 32, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand img {
  height: 34px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dim);
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-bright);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  border-radius: 2px;
}

.nav-cta {
  padding: 12px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: #1a1340 !important;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(212, 184, 120, 0.28);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(212, 184, 120, 0.45);
}

.nav-toggle { display: none; }

/* ================ BUTTONS ================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: #1a1340;
  box-shadow: 0 4px 20px rgba(212, 184, 120, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212, 184, 120, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn-arrow::after {
  content: "→";
  transition: transform 0.2s ease;
}

.btn-arrow:hover::after { transform: translateX(4px); }

/* ================ HERO ================ */
.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(107, 78, 230, 0.35), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(212, 184, 120, 0.12), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 184, 120, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 184, 120, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--gold-bright);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  background: linear-gradient(135deg, #ffffff 0%, #ece9f5 40%, var(--gold-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}

.hero p.lead {
  font-size: 1.2rem;
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ================ SECTIONS ================ */
section {
  position: relative;
  padding: 96px 0;
}

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

.section-head .eyebrow { margin-bottom: 16px; }

.section-head p {
  font-size: 1.1rem;
  color: var(--text-dim);
}

/* ================ ABOUT ================ */
.about {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-copy h2 {
  background: linear-gradient(135deg, #ffffff 0%, var(--gold-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-copy p {
  font-size: 1.05rem;
  color: var(--text-dim);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.stat-card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.stat-card .num {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-bright);
  display: block;
  margin-bottom: 6px;
}

.stat-card .label {
  font-size: 0.95rem;
  color: var(--text-dim);
}

/* ================ SERVICES ================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 36px 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid var(--border);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(212, 184, 120, 0.18), rgba(107, 78, 230, 0.18));
  border: 1px solid var(--border);
  margin-bottom: 22px;
  color: var(--gold-bright);
}

.service-icon svg { width: 26px; height: 26px; }

.service-card h3 {
  color: #fff;
  margin-bottom: 10px;
}

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

/* ================ CAPABILITIES (alternating list) ================ */
.capabilities {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.capability-list {
  display: grid;
  gap: 80px;
}

.capability-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.capability-row.reverse > :first-child { order: 2; }

.capability-copy h3 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 14px;
}

.capability-copy p { color: var(--text-dim); }

.capability-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-dim);
}

.capability-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 30%, rgba(212, 184, 120, 0.18), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(107, 78, 230, 0.25), transparent 55%),
    linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cap-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* ================ CTA STRIP ================ */
.cta-strip {
  padding: 80px 0;
}

.cta-card {
  background: linear-gradient(135deg, rgba(107, 78, 230, 0.2) 0%, rgba(212, 184, 120, 0.12) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, rgba(212, 184, 120, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

.cta-card h2 {
  position: relative;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #fff 0%, var(--gold-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-card p { position: relative; max-width: 560px; margin: 0 auto 28px; }

.cta-card .hero-actions { position: relative; }

/* ================ CONTACT PAGE ================ */
.contact-hero { padding: 100px 0 40px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  padding-bottom: 100px;
}

.contact-info h2 {
  background: linear-gradient(135deg, #fff 0%, var(--gold-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 18px;
}

.contact-info p { font-size: 1.05rem; }

.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-detail:last-of-type { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }

.contact-detail .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  flex-shrink: 0;
}

.contact-detail .icon svg { width: 20px; height: 20px; }

.contact-detail h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 4px;
  font-weight: 600;
}

.contact-detail p { margin: 0; color: var(--text); font-size: 1rem; }

.contact-form {
  padding: 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid var(--border);
}

.contact-form h3 {
  color: #fff;
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.contact-form .form-sub {
  color: var(--text-dim);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 3px rgba(212, 184, 120, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23d4b878' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-fineprint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.form-fineprint a { color: var(--gold-bright); text-decoration: underline; }

/* ================ FOOTER ================ */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 60px 0 30px;
  background: rgba(0, 0, 0, 0.25);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}

.footer-brand img {
  height: 38px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-col h5 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-bright);
  margin: 0 0 16px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: var(--text-dim);
  font-size: 0.92rem;
}

.footer-col a:hover { color: var(--gold-bright); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 12px;
  max-width: 100%;
}

/* ================ RESPONSIVE ================ */

/* Prevent grid/flex children from blowing out their tracks
   when content (long emails, addresses, etc.) is wider than the column. */
.about-copy,
.about-stats,
.capability-copy,
.capability-visual,
.contact-info,
.contact-form,
.footer-col,
.footer-brand,
.service-card,
.stat-card,
.hero-inner { min-width: 0; }

.contact-detail p,
.footer-col li,
.footer-col a,
.footer-disclaimer { overflow-wrap: anywhere; word-break: break-word; }

/* ----------- Tablet ( ≤1024px ) ----------- */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 14px 20px; }
  .nav-links { gap: 24px; }

  .hero { padding: clamp(72px, 10vw, 110px) 0 clamp(60px, 8vw, 90px); }
  section { padding: clamp(64px, 9vw, 88px) 0; }

  .about-grid { gap: 56px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capability-list { gap: 64px; }
  .capability-row { gap: 40px; }

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

  .cta-card { padding: 52px 36px; }
}

/* ----------- Small tablet / large mobile ( ≤768px ) ----------- */
@media (max-width: 768px) {
  /* Mobile navigation */
  .nav-links { display: none; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    height: 22px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
    justify-content: center;
  }
  .nav-toggle span {
    height: 2px;
    background: var(--gold-bright);
    border-radius: 2px;
    transition: all 0.2s ease;
  }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 20px 24px;
    gap: 6px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open a {
    display: block;
    padding: 14px 8px;
    font-size: 1rem;
    border-radius: 10px;
  }
  .nav-links.open a:hover { background: rgba(255, 255, 255, 0.04); }
  .nav-links.open .nav-cta {
    text-align: center;
    margin-top: 12px;
    padding: 16px 22px;
    font-size: 1rem;
  }

  /* Stack two-column layouts */
  .about-grid,
  .capability-row,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .capability-row.reverse > :first-child { order: 0; }

  /* Two-up grids stay two-up at this breakpoint */
  .services-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .cta-card { padding: 44px 24px; }

  /* Capability visuals look better wider than tall on mobile */
  .capability-visual { aspect-ratio: 16 / 10; }

  /* Contact page hero shouldn't have huge top padding */
  .contact-hero { padding-top: clamp(56px, 10vw, 88px); }
}

/* ----------- Mobile ( ≤480px ) ----------- */
@media (max-width: 480px) {
  :root { --radius-lg: 16px; }

  .container { padding: 0 16px; }
  .nav-inner { padding: 12px 16px; }
  .nav-brand img { height: 30px; }

  .hero { padding: 56px 0 48px; }
  section { padding: 56px 0; }

  /* Tighter typographic rhythm */
  h1 { font-size: clamp(1.85rem, 8vw, 2.6rem); }
  h2 { font-size: clamp(1.55rem, 6vw, 2rem); }
  .hero p.lead { font-size: 1rem; }
  .section-head p { font-size: 1rem; }
  .section-head { margin-bottom: 40px; }

  /* Collapse remaining 2-up grids */
  .services-grid,
  .footer-grid,
  .about-stats { grid-template-columns: 1fr; }

  .service-card { padding: 28px 22px; }
  .stat-card { padding: 22px; }
  .stat-card .num { font-size: 1.8rem; }

  .contact-form { padding: 24px 20px; }
  .contact-form h3 { font-size: 1.2rem; }

  .cta-card { padding: 36px 20px; }

  /* Full-width buttons for easier tapping; keep wrapping for hero */
  .hero-actions { gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .btn { padding: 14px 22px; }

  /* Prevent iOS auto-zoom on focused inputs */
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 16px; }

  .form-group { margin-bottom: 16px; }

  .footer { padding: 48px 0 24px; }
  .footer-grid { gap: 28px; padding-bottom: 28px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .footer-disclaimer { font-size: 0.75rem; }

  .contact-detail { padding: 18px 0; }
}

/* ----------- Reduced motion ----------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  /* SMIL animations inside the capability illustrations */
  .cap-svg animate,
  .cap-svg animateMotion,
  .cap-svg animateTransform { display: none; }
}
