/* ==========================================================================
   Veltuz — Unified Core Styles (v1.1)
   Merged: earlier core.css + “VELTUZ SOFTWARE PVT LTD — Custom CSS”
   Place after Tailwind (if used) and before Alpine.js
   ========================================================================== */

/* ------------------------------
   0) CSS Variables (Brand Palette)
   ------------------------------ */
:root {
  /* Brand */
  --vel-brand: #0f172a;      /* primary dark (hero bg) */
  --vel-brand-2: #1e293b;    /* dark tint */
  --vel-accent: #FFB400;     /* UPDATED accent (buttons/highlights) */

  /* Text & surfaces */
  --vel-ink: #0b1020;        /* heading color */
  --vel-text: #1F2937;       /* slate-800 */
  --vel-muted: #6B7280;      /* slate-500 */
  --vel-surface: #ffffff;    /* card bg */
  --vel-surface-2: #F9FAFB;  /* soft bg */

  /* Lines, rings */
  --vel-border: #E5E7EB;     /* borders */
  --ring: 2px;               /* focus ring width */

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 6px 18px rgba(2,6,23,.08);
  --shadow-lg: 0 14px 32px rgba(2,6,23,.12);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 14px;
  --radius-2xl: 16px;
  --radius: 1rem;            /* 16px rounded base */
  --radius-2: 2rem;          /* curved cards */

  /* Layout */
  --container: 1100px;
  --gap: 24px;

  /* Motion */
  --speed-1: 180ms;
  --speed-2: 280ms;
}

/* ------------------------------
   1) Reset / Base
   ------------------------------ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
  color: var(--vel-text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection { background: rgba(255,180,0,.6); color: #0F172A; }

/* Focus visible baseline (for non-Tailwind components) */
:focus-visible { outline: var(--ring) solid var(--vel-accent); outline-offset: 2px; }

/* ------------------------------
   2) Typography
   ------------------------------ */
h1, h2, h3, h4 {
  color: var(--vel-ink);
  line-height: 1.2;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: clamp(18px, 2.4vw, 22px); }
p  { margin: 0 0 14px; }
.lead  { font-size: clamp(16px, 2.2vw, 18px); color: #334155; }
.muted { color: var(--vel-muted); }
.accent{ color: var(--vel-accent); }

/* ------------------------------
   3) Layout Helpers
   ------------------------------ */
.container { max-width: var(--container); margin-inline: auto; padding: 24px; }
.section { padding: 56px 0; }

.grid-2, .grid-3, .grid-4, .grid, .stats { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid   { grid-template-columns: 1.1fr .9fr; }

.stack { display: grid; gap: 12px; }
.center { display: grid; place-items: center; text-align: center; }

.spacer-xs { height: 6px; }
.spacer-sm { height: 12px; }
.spacer-md { height: 20px; }
.spacer-lg { height: 32px; }

/* ------------------------------
   4) Components
   ------------------------------ */

/* Hero backgrounds */
.hero {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255,180,0,0.12), transparent 60%),
    linear-gradient(180deg, var(--vel-brand), var(--vel-brand-2));
  color: #e5e7eb;
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero .title { color: #fff; }
.hero .hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}

/* Additional hero backdrop (for light heroes) */
.hero-bg{
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(255,180,0,0.12), transparent 60%),
    radial-gradient(900px 500px at 0% 0%,   rgba(255,180,0,0.10), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

/* Cards */
.card {
  background: var(--vel-surface);
  border: 1px solid var(--vel-border);
  border-radius: var(--radius-2);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--speed-2) ease, box-shadow var(--speed-2) ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* Secondary card variants (legacy support) */
.stat, .hero-card {
  border-radius: var(--radius-lg);
}
.hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  padding: 16px 16px 2px;
  display: grid;
  gap: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.hero-card .row { display: flex; gap: 10px; align-items: flex-start; }
.hero small { color: #cbd5e1; }

/* Lists */
.list { display: grid; gap: 12px; margin: 10px 0 0; padding: 0; }
.list .item { display: flex; gap: 12px; align-items: flex-start; }

/* Badge / Chip */
.badge, .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}
.badge {
  color: #0b1020;
  background: rgba(255,180,0,.12);
  border: 1px solid rgba(255,180,0,.25);
}
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  padding: 8px 12px;
  border: 1px dashed #dbe3ef;
  background: #fff;
  color: #0b1020;
  font-size: 13px;
}

/* Buttons */
.btn {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  background: var(--vel-accent);
  color: #0B1220;
  border: 0;
  border-radius: 1rem;
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--speed-1) ease, box-shadow var(--speed-1) ease, filter var(--speed-1) ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); filter: brightness(.95); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(1px); }
.btn:focus { outline: none; box-shadow: 0 0 0 var(--ring) rgba(255,180,0,.35); }

/* Semantic button variants */
.btn--brand { background: var(--vel-accent); color: #0B1220; }
.btn--brand:hover { filter: brightness(.95); }
.btn--ghost {
  border: 1px solid var(--vel-border);
  color: var(--vel-text);
  background: transparent;
}
.btn--ghost:hover { background:#F1F5F9; } /* slate-100 */
.btn-outline, .btn-ghost { /* legacy names kept */
  background: #fff;
  color: #0b1020;
  border: 1px solid var(--vel-border);
  box-shadow: var(--shadow-sm);
}

/* Links + arrow icon hover */
a.link, .link a { position: relative; color: var(--vel-ink); transition: color .12s ease; }
a.link:hover, .link a:hover { color: var(--vel-accent); }
a.link svg, .link a svg {
  width: 16px; height: 16px;
  color: rgba(255,255,255,.6);
  transition: color .12s ease, transform .12s ease;
}
a.link:hover svg, .link a:hover svg { color: var(--vel-accent); transform: translateX(2px); }

/* Icons */
.icon { width: 20px; height: 20px; flex: 0 0 20px; }

/* Stats */
.stats { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  background: var(--vel-surface-2);
  border: 1px solid var(--vel-border);
  padding: 18px;
  border-radius: var(--radius-lg);
  text-align: center;
}
.stat .num { font-size: 28px; font-weight: 800; color: var(--vel-ink); }
.stat .label { font-size: 13px; color: #475569; }

/* CTA */
.cta {
  background: linear-gradient(180deg, #fff, var(--vel-surface-2));
  border-top: 1px solid var(--vel-border);
  padding: 56px 0;
}
.cta .box {
  background: #fff;
  border: 1px solid var(--vel-border);
  border-radius: var(--radius-2xl);
  padding: 26px;
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow-md);
}

/* Ribbon (used on Project Brief form) */
.ribbon{
  position:absolute; top:1rem; left:-2rem;
  transform: rotate(-45deg);
  background: var(--vel-accent);
  color:#0B1220; font-weight:700; font-size:.7rem;
  padding:.25rem 2rem;
  box-shadow: var(--shadow-md);
  pointer-events:none;
  border-radius:.25rem;
}

/* ---------------------------------------------
   Mega menu panel (shared look for dropdowns)
   --------------------------------------------- */
.mega{
  width:640px; max-width:90vw;
  background:#fff;
  border:1px solid var(--vel-border);
  border-radius: var(--radius-2);
  box-shadow: var(--shadow-lg);
  padding:1rem;
}
.mega-item{
  display:flex; gap:.75rem; align-items:flex-start;
  border:1px solid var(--vel-border);
  border-radius: var(--radius-2);
  padding:1rem;
  background:#fff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--speed-1) ease, box-shadow var(--speed-1) ease, border-color var(--speed-1) ease;
}
.mega-item:hover{
  transform: translateY(-2px);
  border-color: #FDE68A; /* yellow-300 */
  box-shadow: var(--shadow-md);
}

/* ----------------------------
   Hide scrollbar (carousel)
   ---------------------------- */
.hide-scrollbar{ -ms-overflow-style: none; scrollbar-width: none; }
.hide-scrollbar::-webkit-scrollbar{ display:none; }

/* -------------------------------------------
   Carousel helpers (Alpine-driven carousels)
   ------------------------------------------- */
.carousel-track{
  display:flex; gap:2rem; overflow-x:auto; scroll-behavior:smooth;
  scroll-snap-type: x mandatory;
  padding:1rem .25rem;
}
.carousel-card{
  min-width:200px; scroll-snap-align:start;
  border:1px solid var(--vel-border);
  border-radius: var(--radius-2);
  background:#fff; padding:1.25rem;
  text-align:center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--speed-2) ease, box-shadow var(--speed-2) ease;
}
.carousel-card:hover{ transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.carousel-fade-left{
  position:absolute; inset:0 auto 0 0; width:40px;
  background: linear-gradient(to right, #fff, rgba(255,255,255,0));
  border-top-left-radius: var(--radius-2);
  border-bottom-left-radius: var(--radius-2);
  pointer-events:none;
}
.carousel-fade-right{
  position:absolute; inset:0 0 0 auto; width:40px;
  background: linear-gradient(to left, #fff, rgba(255,255,255,0));
  border-top-right-radius: var(--radius-2);
  border-bottom-right-radius: var(--radius-2);
  pointer-events:none;
}

/* ----------------------------------
   Testimonials (center emphasis UI)
   ---------------------------------- */
.testi{
  border:1px solid var(--vel-border);
  border-radius: var(--radius-2);
  background:#fff;
  box-shadow: var(--shadow-sm);
  padding:1.5rem;
}
.testi--side{
  filter: blur(1.5px);
  transform: scale(.97);
  opacity:.92;
  position:relative;
}
.testi--side::after{
  content:"";
  position:absolute; inset:0;
  border-radius: var(--radius-2);
  background: rgba(255,180,0,.08);
  mix-blend: multiply;
  pointer-events:none;
}

/* -----------------------------
   Footer & small refinements
   ----------------------------- */
.footer {
  background: #0b1222;
  color: #e5e7eb;
  border-top: 4px solid var(--vel-accent);
  padding: 32px 0;
}
.footer .cols { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.footer .col h4 { margin: 0 0 10px; color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.footer .menu { display: grid; gap: 8px; }
.footer .menu a { display: inline-flex; align-items: center; gap: 8px; }
.footer .menu a svg {
  width: 16px; height: 16px;
  color: rgba(255,255,255,.6);
  transition: color .12s ease, transform .12s ease;
}
.footer .menu a:hover svg { color: var(--vel-accent); transform: translateX(2px); }
.footer .bottom {
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 16px;
  font-size: 13px;
  color: #cbd5e1;
}
.footer-links a{
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: color var(--speed-1) ease;
}
.footer-links a:hover{ color:#fff; text-decoration: underline; }

/* ------------------------------
   5) Forms (Contact page)
   ------------------------------ */
form { display: grid; gap: 14px; }
.row  { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field{ display: grid; gap: 6px; }
label {
  font-weight: 600;
  color: var(--vel-ink);
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.input, .textarea, .select,
input, select, textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--vel-border);
  border-radius: 1rem;
  background: #fff;
  color: var(--vel-text);
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--speed-1) ease, box-shadow var(--speed-1) ease, background .12s ease;
}
.textarea, textarea { min-height: 140px; resize: vertical; }
.input::placeholder, .textarea::placeholder,
input::placeholder, textarea::placeholder { color: #94A3B8; } /* slate-400 */

.input:focus, .textarea:focus, .select:focus,
input:focus, select:focus, textarea:focus {
  border-color: var(--vel-accent);
  box-shadow: 0 0 0 var(--ring) rgba(255,180,0,.35);
  outline: none;
}

/* Checkbox sizing (Contact consent) */
input[type="checkbox"] { width: 18px; height: 18px; border-radius: 4px; }

/* Validation states (optional) */
.is-invalid { border-color: #ef4444; }
.is-valid   { border-color: #22c55e; }

/* ------------------------------
   8) Utilities
   ------------------------------ */
.hide { display: none !important; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.max-w-sm { max-width: 520px; }
.max-w-md { max-width: 720px; }
.max-w-lg { max-width: 920px; }
.rounded    { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.u-border{ border:1px solid var(--vel-border); }
.u-rounded{ border-radius: var(--radius-2); }
.u-shadow{ box-shadow: var(--shadow-sm); }
.u-shadow-lg{ box-shadow: var(--shadow-lg); }
.u-hover-lift{ transition: transform var(--speed-2), box-shadow var(--speed-2); }
.u-hover-lift:hover{ transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.border { border: 1px solid var(--vel-border); }
.bg-surface   { background: var(--vel-surface); }
.bg-surface-2 { background: var(--vel-surface-2); }
.text-ink   { color: var(--vel-ink); }
.text-muted { color: var(--vel-muted); }
.text-accent{ color: var(--vel-accent); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; } .mt-4 { margin-top: 24px; }
.mb-0 { margin-bottom:0; } .mb-1 { margin-bottom:6px; } .mb-2 { margin-bottom:12px; } .mb-3 { margin-bottom:18px; } .mb-4 { margin-bottom:24px; }
.p-0 { padding:0; } .p-1 { padding:6px; } .p-2 { padding:12px; } .p-3 { padding:18px; } .p-4 { padding:24px; }

/* ------------------------------
   9) Responsive
   ------------------------------ */
@media (max-width: 960px) {
  .hero .hero-grid,
  .grid-2, .grid-3, .grid-4, .grid, .stats { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .container { padding: 20px; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer .cols { grid-template-columns: 1fr; }
}

/* ------------------------------
   10) Motion reduction
   ------------------------------ */
@media (prefers-reduced-motion: reduce){
  *{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0ms !important;
    scroll-behavior: auto !important;
  }
}
