/* =========================================================
   Vani Packaging Solution — design tokens
   ========================================================= */
:root {
  --navy-900: #071b34;
  --navy-800: #0a2647;
  --navy-700: #0f3868;
  --navy-600: #1a4a86;
  --navy-500: #2b5da3;
  --gold-100: #fbf1de;
  --gold-300: #e3b968;
  --gold-500: #c8952e;
  --gold-600: #a97620;
  --ink: #10192c;
  --muted: #5b6b85;
  --muted-2: #8493ab;
  --line: #e2e7f0;
  --line-strong: #c9d3e2;
  --paper: #f5f7fb;
  --white: #ffffff;
  --danger: #b42318;
  --danger-bg: #fdf2f1;

  --shadow-sm: 0 2px 10px rgba(10, 31, 68, 0.07);
  --shadow-md: 0 14px 34px rgba(10, 31, 68, 0.12);
  --shadow-lg: 0 26px 64px rgba(9, 25, 51, 0.22);

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  font-family: var(--font-body);
}

/* =========================================================
   Reset & base
   ========================================================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: 0.002em;
}

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection {
  background: var(--gold-300);
  color: var(--navy-900);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--gold-600);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--gold-500);
  display: inline-block;
}

h1 {
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.08;
  margin-bottom: 12px;
}

h3 {
  font-size: 19px;
  line-height: 1.25;
  margin-bottom: 8px;
}

p {
  line-height: 1.65;
}

/* =========================================================
   Registration-mark corner motif (signature element)
   ========================================================= */
.reg-corners {
  position: relative;
}

.reg-corners::before {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  background-image: linear-gradient(var(--gold-500), var(--gold-500)),
    linear-gradient(var(--gold-500), var(--gold-500)), linear-gradient(var(--gold-500), var(--gold-500)),
    linear-gradient(var(--gold-500), var(--gold-500)), linear-gradient(var(--gold-500), var(--gold-500)),
    linear-gradient(var(--gold-500), var(--gold-500)), linear-gradient(var(--gold-500), var(--gold-500)),
    linear-gradient(var(--gold-500), var(--gold-500));
  background-repeat: no-repeat;
  background-size: 2px 16px, 16px 2px, 2px 16px, 16px 2px, 2px 16px, 16px 2px, 2px 16px, 16px 2px;
  background-position: top left, top left, top right, top right, bottom left, bottom left, bottom right,
    bottom right;
}

.reg-corners:hover::before,
.reg-corners:focus-within::before {
  opacity: 1;
}

/* =========================================================
   Buttons
   ========================================================= */
.button,
.square-button {
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.button.primary {
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: 0 10px 24px rgba(200, 149, 46, 0.32);
}

.button.primary:hover {
  background: var(--gold-600);
  transform: translateY(-1px);
}

.button.secondary {
  background: var(--white);
  color: var(--navy-800);
  border: 1px solid var(--line-strong);
}

.button.secondary:hover {
  border-color: var(--navy-600);
  background: var(--paper);
}

.button.danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #f2b8b5;
}

.button.danger:hover {
  background: #fbe3e1;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: 0.01em;
}

.brand small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.03em;
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
}

nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--navy-800);
  transition: background 0.15s ease, color 0.15s ease;
}

nav a:hover {
  background: var(--paper);
  color: var(--gold-600);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-800);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 27, 52, 0.15) 0%, rgba(7, 27, 52, 0.65) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(340px, 1.05fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(52px, 8vw, 96px) clamp(18px, 5vw, 56px);
}

.hero-copy {
  color: white;
  max-width: 620px;
}

.hero-copy h1 {
  color: white;
}

.hero-copy .eyebrow {
  color: var(--gold-300);
  font-size: 13px;
  letter-spacing: 0.18em;
}

.hero-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18.5px;
  line-height: 1.7;
  max-width: 520px;
}

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

.hero-actions .button.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: white;
  border-color: rgba(255, 255, 255, 0.28);
}

.hero-actions .button.secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Showcase grid — fixed-ratio tiles, no fragile height-matching */
.hero-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.showcase-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(165deg, #ffffff 0%, #eef2f8 100%);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.showcase-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 22px;
}

.showcase-tile span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  padding: 7px 11px;
  color: white;
  background: rgba(7, 27, 52, 0.88);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* =========================================================
   Stats strip
   ========================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: white;
}

.stats div {
  padding: 26px clamp(14px, 3vw, 36px);
  border-right: 1px solid var(--line);
}

.stats div:last-child {
  border-right: none;
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  font-family: var(--font-display);
  color: var(--navy-900);
  font-size: 28px;
  font-weight: 700;
}

.stats span {
  color: var(--muted);
  margin-top: 3px;
  font-size: 14px;
}

/* =========================================================
   Sections — shared layout
   ========================================================= */
.section,
.solutions-band,
.contact-section {
  padding: clamp(48px, 7vw, 88px) clamp(18px, 5vw, 56px);
}

.section,
.solutions-band > div:first-child,
.about-section,
.contact-section {
  max-width: 1320px;
  margin: 0 auto;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 8px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(200px, 320px) minmax(160px, 200px);
  gap: 10px;
}

/* =========================================================
   Form controls
   ========================================================= */
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  background: white;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(26, 74, 134, 0.14);
}

textarea {
  resize: vertical;
}

/* =========================================================
   Product grid
   ========================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(165deg, #ffffff 0%, #eef2f8 100%);
}

.product-card .content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 18px 20px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge {
  color: var(--gold-600);
  background: var(--gold-100);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 600;
}

.product-card h3 {
  margin: 12px 0 6px;
}

.product-card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
  flex: 1;
}

.product-card .button {
  margin-top: 14px;
  width: 100%;
}

/* =========================================================
   Solutions band
   ========================================================= */
.solutions-band {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.solutions-band > div:first-child {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(300px, 1.15fr);
  gap: 40px;
  align-items: start;
}

.solutions-band p,
.about-section p,
.contact-section p {
  color: var(--muted);
  line-height: 1.65;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.solution-grid article {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.solution-grid article:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.solution-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 20px;
  background: linear-gradient(165deg, #ffffff 0%, #eef2f8 100%);
  border-bottom: 1px solid var(--line);
}

.solution-grid h3,
.solution-grid p {
  padding: 0 18px;
}

.solution-grid h3 {
  margin-top: 18px;
  font-size: 18px;
}

.solution-grid p {
  padding-bottom: 18px;
  font-size: 14.5px;
}

/* =========================================================
   About
   ========================================================= */
.about-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr);
  gap: 40px;
  align-items: start;
  padding: clamp(48px, 7vw, 88px) clamp(18px, 5vw, 56px);
}

.about-points p {
  font-size: 16px;
}

.about-points ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.about-points li {
  padding: 16px 18px;
  background: white;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-500);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--navy-900);
}

/* =========================================================
   Contact
   ========================================================= */
.contact-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr);
  gap: 40px;
  align-items: start;
}

.contact-section.contact-section {
  background: var(--navy-900);
  color: white;
  max-width: none;
  padding-left: clamp(18px, 5vw, 56px);
  padding-right: clamp(18px, 5vw, 56px);
}

.contact-section .eyebrow {
  color: var(--gold-300);
}

.contact-section h2 {
  color: white;
}

.contact-list {
  display: grid;
  gap: 10px;
}

.contact-list a,
.contact-list span {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.contact-list a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

/* =========================================================
   Floating WhatsApp
   ========================================================= */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 25;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: white;
  background: #1fa855;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 16px 40px rgba(31, 168, 85, 0.4);
  transition: transform 0.15s ease;
}

.whatsapp-float:hover {
  transform: scale(1.06);
}

/* =========================================================
   Admin panel
   ========================================================= */
.admin-panel {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  justify-content: flex-end;
  background: rgba(6, 18, 34, 0.55);
}

.admin-panel.open {
  display: flex;
}

.admin-shell {
  width: min(780px, 100%);
  height: 100%;
  overflow-y: auto;
  padding: 22px;
  background: var(--paper);
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.24);
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-head h2 {
  margin-bottom: 0;
}

.square-button {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  color: white;
  font-size: 15px;
}

.square-button:hover {
  background: var(--navy-700);
}

.admin-card {
  margin-bottom: 16px;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.admin-card h3 {
  font-size: 16px;
  margin-bottom: 14px;
}

.notice-card {
  border-color: rgba(200, 149, 46, 0.4);
  background: var(--gold-100);
}

.hint-link {
  display: inline-block;
  margin: 12px 0 8px;
  color: var(--navy-700);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
}

.admin-card label {
  display: block;
  margin-bottom: 14px;
  color: #344054;
  font-size: 14px;
  font-weight: 600;
}

.admin-card label > input,
.admin-card label > select,
.admin-card label > textarea {
  margin-top: 6px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
}

.checkbox-row input {
  width: auto;
}

.hint {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 0;
}

.form-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-actions {
  margin-bottom: 16px;
}

.admin-product-list {
  display: grid;
  gap: 10px;
}

.admin-product-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.admin-product-row img {
  width: 60px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--paper);
}

.row-actions {
  display: flex;
  gap: 8px;
}

.row-actions button {
  border: 1px solid var(--line-strong);
  background: white;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13.5px;
}

.row-actions button:hover {
  border-color: var(--navy-600);
  color: var(--navy-700);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    max-width: 460px;
  }

  .section-heading,
  .solutions-band > div:first-child,
  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 860px) {
  .site-header {
    flex-wrap: wrap;
  }

  nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    gap: 4px;
    padding-top: 6px;
    margin-top: 6px;
    border-top: 1px solid var(--line);
  }

  nav a {
    padding: 8px 12px;
    white-space: nowrap;
  }

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

  .stats div:nth-child(2) {
    border-right: none;
  }

  .about-points ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .catalog-tools,
  .two-col,
  .stats {
    grid-template-columns: 1fr;
  }

  .stats div {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .stats div:last-child {
    border-bottom: none;
  }

  .solution-grid {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    max-width: none;
  }

  .admin-product-row {
    grid-template-columns: 52px 1fr;
  }

  .row-actions {
    grid-column: 1 / -1;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 420px) {
  .brand small {
    display: none;
  }
}
