/* ============================================================
   PALM — Shared Design System
   Fonts: Chillax (headings) · Outfit (body)
   Theme: Light / White
   Primary: #FF4646
   ============================================================ */

@import url('https://api.fontshare.com/v2/css?f[]=chillax@400,500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

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

:root {
  --red:        #FF4646;
  --red-dark:   #CC2828;
  --red-light:  #FFF0F0;
  --red-mid:    #FFE0E0;
  --black:      #0F0F0F;
  --gray-90:    #1A1A1A;
  --gray-70:    #3A3A3A;
  --gray-60:    #6B6B6B;
  --gray-40:    #A0A0A0;
  --gray-20:    #D4D2CF;
  --gray-10:    #F0EFED;
  --gray-5:     #F8F7F5;
  --white:      #FFFFFF;
  --border:     #E4E2DF;
  --shadow-xs:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:  0 6px 24px rgba(0,0,0,0.09);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.13);
  --font-head:  'Chillax', sans-serif;
  --font-body:  'Outfit', sans-serif;
  --r-sm:  8px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  32px;
  --r-full: 9999px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  color: var(--black);
}
h1 { font-size: clamp(40px, 5.5vw, 78px); }
h2 { font-size: clamp(30px, 3.8vw, 52px); }
h3 { font-size: clamp(18px, 2vw, 26px); }
h4 { font-size: 18px; }
p  { color: var(--gray-60); line-height: 1.72; }

/* ── Utilities ──────────────────────────────────────────── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section    { padding: 100px 0; }
.section-sm { padding: 64px 0; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red-light);
  color: var(--red);
  border-radius: var(--r-full);
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.section-header { max-width: 640px; margin: 0 auto 64px; text-align: center; }
.section-header h2 { margin-bottom: 16px; }
.section-header p  { font-size: 17px; }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

/* ── Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: var(--white);
  border: none; padding: 13px 28px;
  border-radius: var(--r-full);
  font-size: 15px; font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer; text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,70,70,0.3);
}

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--black);
  border: 1.5px solid var(--border);
  padding: 12px 28px; border-radius: var(--r-full);
  font-size: 15px; font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer; text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.btn-outline:hover {
  border-color: var(--black);
  background: var(--gray-10);
  transform: translateY(-2px);
}

.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--red);
  border: none; padding: 14px 32px;
  border-radius: var(--r-full);
  font-size: 15px; font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.2); }

/* ── RFI/RFP Bar ─────────────────────────────────────────── */
.rfp-bar {
  background: var(--gray-90);
  padding: 10px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 13px;
  font-family: var(--font-body);
}
.rfp-bar-text {
  color: rgba(255,255,255,0.75);
  font-weight: 400;
}
.rfp-bar-text strong { color: var(--white); font-weight: 600; }
.rfp-bar-btn {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 5px 14px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  transition: background 0.2s;
  white-space: nowrap;
}
.rfp-bar-btn:hover { background: var(--red-dark); }

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; margin-right: 24px; }
.nav-logo svg { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-links a {
  text-decoration: none;
  color: var(--gray-60);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--black); background: var(--gray-10); }
.nav-links a.active { color: var(--black); font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; margin-left: auto; }
.lang-toggle {
  display: flex;
  background: var(--gray-10);
  border-radius: var(--r-full);
  padding: 3px;
}
.lang-toggle button {
  border: none; background: transparent;
  padding: 5px 13px; border-radius: var(--r-full);
  font-size: 13px; font-weight: 600; cursor: pointer;
  color: var(--gray-60); transition: all 0.2s;
  font-family: var(--font-body);
}
.lang-toggle button.active {
  background: var(--white); color: var(--black);
  box-shadow: var(--shadow-xs);
}
.nav-demo {
  background: var(--red); color: var(--white);
  border: none; padding: 9px 20px;
  border-radius: var(--r-full);
  font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  font-family: var(--font-body);
  white-space: nowrap;
}
.nav-demo:hover { background: var(--red-dark); transform: translateY(-1px); }

/* ── Footer ─────────────────────────────────────────────── */
.footer { background: var(--gray-90); padding: 72px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand .footer-logo { display: block; margin-bottom: 18px; }
.footer-brand .footer-logo svg { height: 30px; width: auto; filter: brightness(0) invert(1) opacity(0.9); }
.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.38);
  line-height: 1.7;
  max-width: 280px;
}
.footer-col-title {
  font-family: var(--font-head);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.38); margin-bottom: 18px;
}
.footer-links { list-style: none; }
.footer-links li + li { margin-top: 12px; }
.footer-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-left { font-size: 13px; color: rgba(255,255,255,0.28); }
.footer-mobven {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: rgba(255,255,255,0.35);
}
.footer-mobven strong { color: rgba(255,255,255,0.55); font-weight: 600; }

/* ── RFI/RFP Modal ──────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10,10,10,0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white);
  border-radius: var(--r-xl);
  max-width: 600px; width: 100%;
  max-height: 92vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s ease;
}
.modal-overlay.active .modal { transform: none; }
.modal-head {
  padding: 36px 36px 0;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.modal-head-text h3 { font-size: 26px; margin-bottom: 6px; }
.modal-head-text p { font-size: 14px; color: var(--gray-60); }
.modal-close {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--border); background: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.2s, border-color 0.2s;
}
.modal-close:hover { background: var(--gray-10); border-color: var(--gray-20); }
.modal-close svg { width: 16px; height: 16px; stroke: var(--gray-60); fill: none; stroke-width: 2.5; stroke-linecap: round; }
.modal-body { padding: 28px 36px 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--black); margin-bottom: 8px;
}
.form-label span { color: var(--red); }
.form-input, .form-textarea, .form-select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  font-size: 14px; font-family: var(--font-body);
  color: var(--black); background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none; appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255,70,70,0.08);
}
.form-textarea { resize: vertical; min-height: 96px; }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; cursor: pointer; }
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--r-md);
  padding: 28px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  margin-top: 4px;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--red); background: var(--red-light);
}
.upload-zone input[type="file"] {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer;
  width: 100%; height: 100%;
}
.upload-icon {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--gray-10); display: flex;
  align-items: center; justify-content: center; margin: 0 auto 12px;
}
.upload-icon svg { width: 22px; height: 22px; stroke: var(--gray-60); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.upload-title { font-size: 14px; font-weight: 600; color: var(--black); margin-bottom: 4px; }
.upload-sub { font-size: 12px; color: var(--gray-40); }
.upload-sub span { color: var(--red); font-weight: 600; }
.file-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.file-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--gray-5); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 9px 12px;
}
.file-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.file-name { font-size: 13px; color: var(--black); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { font-size: 12px; color: var(--gray-40); white-space: nowrap; }
.file-remove { background: none; border: none; cursor: pointer; display: flex; padding: 2px; color: var(--gray-40); transition: color 0.2s; }
.file-remove:hover { color: var(--red); }
.file-remove svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; }
.form-submit {
  width: 100%; margin-top: 24px;
  background: var(--red); color: var(--white);
  border: none; padding: 15px;
  border-radius: var(--r-full);
  font-size: 16px; font-weight: 600;
  cursor: pointer; font-family: var(--font-body);
  transition: background 0.2s;
}
.form-submit:hover { background: var(--red-dark); }

/* ── Logo (inline SVG helper) ───────────────────────────── */
.logo-svg-wrap { display: flex; align-items: center; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .wrap { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .rfp-bar { padding: 10px 20px; font-size: 12px; }
  .section { padding: 64px 0; }
  .section-sm { padding: 48px 0; }
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .modal-head { padding: 28px 24px 0; }
  .modal-body { padding: 20px 24px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
